Spaces:
Sleeping
Sleeping
Commit ·
00ccd59
1
Parent(s): 7e78cc2
Updated
Browse files
main.py
CHANGED
|
@@ -46,7 +46,7 @@ try:
|
|
| 46 |
model=MODEL_NAME,
|
| 47 |
device=DEVICE,
|
| 48 |
max_new_tokens=1024, # give enough room for thoughtful answers
|
| 49 |
-
temperature=0.
|
| 50 |
do_sample=True, # sample to allow variety
|
| 51 |
top_p=0.9, # nucleus sampling to filter unlikely tokens
|
| 52 |
repetition_penalty=1.2 # avoid repeating the same phrases
|
|
|
|
| 46 |
model=MODEL_NAME,
|
| 47 |
device=DEVICE,
|
| 48 |
max_new_tokens=1024, # give enough room for thoughtful answers
|
| 49 |
+
temperature=0.7, # higher temp = more natural and creative
|
| 50 |
do_sample=True, # sample to allow variety
|
| 51 |
top_p=0.9, # nucleus sampling to filter unlikely tokens
|
| 52 |
repetition_penalty=1.2 # avoid repeating the same phrases
|