mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-12 18:09:42 +00:00
standardize tts linting and formatting
This commit is contained in:
parent
cfc1a0d4ef
commit
9935ac093f
24 changed files with 371 additions and 355 deletions
|
@ -28,7 +28,7 @@ const std::map<std::string, tts_arch> SUPPORTED_ARCHITECTURES = {
|
|||
{ "orpheus", ORPHEUS_ARCH }
|
||||
};
|
||||
|
||||
/// Given a map from keys to values, creates a new map from values to keys
|
||||
/// Given a map from keys to values, creates a new map from values to keys
|
||||
template<typename K, typename V>
|
||||
static std::map<V, K> reverse_map(const std::map<K, V>& m) {
|
||||
std::map<V, K> r;
|
||||
|
@ -43,10 +43,10 @@ const std::map<tts_arch, std::string> ARCHITECTURE_NAMES = reverse_map(SUPPORTED
|
|||
struct generation_configuration {
|
||||
generation_configuration(
|
||||
std::string voice = "",
|
||||
int top_k = 50,
|
||||
float temperature = 1.0,
|
||||
float repetition_penalty = 1.0,
|
||||
bool use_cross_attn = true,
|
||||
int top_k = 50,
|
||||
float temperature = 1.0,
|
||||
float repetition_penalty = 1.0,
|
||||
bool use_cross_attn = true,
|
||||
std::string espeak_voice_id = "",
|
||||
int max_tokens = 0,
|
||||
float top_p = 1.0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue