Spaces:
Runtime error
Runtime error
Chaow Wu commited on
Commit ·
efb316c
1
Parent(s): bdaa49e
app.py
CHANGED
|
@@ -30,17 +30,17 @@ def run(user_input, history):
|
|
| 30 |
# in presets/preset-name.yaml are used instead of the individual numbers.
|
| 31 |
'preset': 'None',
|
| 32 |
'do_sample': True,
|
| 33 |
-
'temperature': 1.
|
| 34 |
-
'top_p': 0.
|
| 35 |
'typical_p': 1,
|
| 36 |
'epsilon_cutoff': 0, # In units of 1e-4
|
| 37 |
'eta_cutoff': 0, # In units of 1e-4
|
| 38 |
'tfs': 1,
|
| 39 |
'top_a': 0,
|
| 40 |
-
'repetition_penalty': 1.
|
| 41 |
'repetition_penalty_range': 0,
|
| 42 |
'encoder_repetition_penalty': 1.38,
|
| 43 |
-
'top_k':
|
| 44 |
'min_length': 0,
|
| 45 |
'no_repeat_ngram_size': 0,
|
| 46 |
'num_beams': 1,
|
|
|
|
| 30 |
# in presets/preset-name.yaml are used instead of the individual numbers.
|
| 31 |
'preset': 'None',
|
| 32 |
'do_sample': True,
|
| 33 |
+
'temperature': 1.19,
|
| 34 |
+
'top_p': 0.9,
|
| 35 |
'typical_p': 1,
|
| 36 |
'epsilon_cutoff': 0, # In units of 1e-4
|
| 37 |
'eta_cutoff': 0, # In units of 1e-4
|
| 38 |
'tfs': 1,
|
| 39 |
'top_a': 0,
|
| 40 |
+
'repetition_penalty': 1.44,
|
| 41 |
'repetition_penalty_range': 0,
|
| 42 |
'encoder_repetition_penalty': 1.38,
|
| 43 |
+
'top_k': 20,
|
| 44 |
'min_length': 0,
|
| 45 |
'no_repeat_ngram_size': 0,
|
| 46 |
'num_beams': 1,
|