Spaces:
Paused
Paused
Lower the max tokens.
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def add_caseifer(text):
|
|
29 |
new_text += char
|
30 |
return new_text
|
31 |
|
32 |
-
max_new_tokens =
|
33 |
temperature = 0.8 # 1.0 = no change, < 1.0 = less random, > 1.0 = more random, in predictions
|
34 |
top_k = 200 # retain only the top_k most likely tokens, clamp others to have 0 probability
|
35 |
device = 'cpu' # examples: 'cpu', 'cuda', 'cuda:0', 'cuda:1', etc.
|
|
|
29 |
new_text += char
|
30 |
return new_text
|
31 |
|
32 |
+
max_new_tokens = 88 # number of tokens generated in each sample
|
33 |
temperature = 0.8 # 1.0 = no change, < 1.0 = less random, > 1.0 = more random, in predictions
|
34 |
top_k = 200 # retain only the top_k most likely tokens, clamp others to have 0 probability
|
35 |
device = 'cpu' # examples: 'cpu', 'cuda', 'cuda:0', 'cuda:1', etc.
|