mlinmg commited on
Commit
cc7a4b1
·
verified ·
1 Parent(s): c98de0f

Upload 3 files

Browse files
Files changed (2) hide show
  1. config.json +0 -3
  2. gpt_config.py +10 -10
config.json CHANGED
@@ -86,7 +86,6 @@
86
  "number_text_tokens": 6681,
87
  "perceiver_cond_length_compression": 256,
88
  "reorder_and_upcast_attn": false,
89
- "repetition_penalty": 5.0,
90
  "resid_pdrop": 0.1,
91
  "scale_attn_by_inverse_layer_idx": false,
92
  "sound_norm_refs": false,
@@ -94,8 +93,6 @@
94
  "start_text_token": null,
95
  "stop_audio_token": 1025,
96
  "stop_text_token": null,
97
- "temperature": 0.75,
98
- "top_p": 0.85,
99
  "train_solo_embeddings": false,
100
  "transformers_version": "4.46.0",
101
  "use_masking_gt_prompt_approach": true,
 
86
  "number_text_tokens": 6681,
87
  "perceiver_cond_length_compression": 256,
88
  "reorder_and_upcast_attn": false,
 
89
  "resid_pdrop": 0.1,
90
  "scale_attn_by_inverse_layer_idx": false,
91
  "sound_norm_refs": false,
 
93
  "start_text_token": null,
94
  "stop_audio_token": 1025,
95
  "stop_text_token": null,
 
 
96
  "train_solo_embeddings": false,
97
  "transformers_version": "4.46.0",
98
  "use_masking_gt_prompt_approach": true,
gpt_config.py CHANGED
@@ -65,11 +65,11 @@ class XTTSGPTConfig(PretrainedConfig):
65
  label_smoothing: float = 0.0,
66
 
67
  # Generation parameters
68
- temperature: float = 0.75,
69
- length_penalty: float = 1.0,
70
- repetition_penalty: float = 5.0,
71
- top_k: int = 50,
72
- top_p: float = 0.85,
73
  cond_len: int = 30, # Changed from gpt_cond_len
74
  cond_chunk_len: int = 4, # Changed from gpt_cond_chunk_len
75
  max_ref_len: int = 30,
@@ -154,11 +154,11 @@ class XTTSGPTConfig(PretrainedConfig):
154
  self.label_smoothing = label_smoothing
155
 
156
  # Generation parameters
157
- self.temperature = temperature
158
- self.length_penalty = length_penalty
159
- self.repetition_penalty = repetition_penalty
160
- self.top_k = top_k
161
- self.top_p = top_p
162
  self.cond_len = cond_len
163
  self.cond_chunk_len = cond_chunk_len
164
  self.max_ref_len = max_ref_len
 
65
  label_smoothing: float = 0.0,
66
 
67
  # Generation parameters
68
+ #temperature: float = 0.75,
69
+ #length_penalty: float = 1.0,
70
+ #repetition_penalty: float = 5.0,
71
+ #top_k: int = 50,
72
+ #top_p: float = 0.85,
73
  cond_len: int = 30, # Changed from gpt_cond_len
74
  cond_chunk_len: int = 4, # Changed from gpt_cond_chunk_len
75
  max_ref_len: int = 30,
 
154
  self.label_smoothing = label_smoothing
155
 
156
  # Generation parameters
157
+ #self.temperature = temperature
158
+ #self.length_penalty = length_penalty
159
+ #self.repetition_penalty = repetition_penalty
160
+ #self.top_k = top_k
161
+ #self.top_p = top_p
162
  self.cond_len = cond_len
163
  self.cond_chunk_len = cond_chunk_len
164
  self.max_ref_len = max_ref_len