Spaces:
Running
on
Zero
Running
on
Zero
dreamerdeo
commited on
Commit
•
6f7c7d8
1
Parent(s):
49fcdfb
Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ class StopOnTokens(StoppingCriteria):
|
|
25 |
|
26 |
|
27 |
system_role= 'system'
|
28 |
-
user_role = '
|
29 |
-
assistant_role =
|
30 |
|
31 |
sft_start_token = "<|im_start|>"
|
32 |
sft_end_token = "<|im_end|>"
|
@@ -54,7 +54,7 @@ def predict(message, history):
|
|
54 |
generate_kwargs = dict(
|
55 |
model_inputs,
|
56 |
streamer=streamer,
|
57 |
-
max_new_tokens=
|
58 |
do_sample=True,
|
59 |
top_p= 0.75,
|
60 |
top_k= 60,
|
|
|
25 |
|
26 |
|
27 |
system_role= 'system'
|
28 |
+
user_role = 'user'
|
29 |
+
assistant_role = 'assistant'
|
30 |
|
31 |
sft_start_token = "<|im_start|>"
|
32 |
sft_end_token = "<|im_end|>"
|
|
|
54 |
generate_kwargs = dict(
|
55 |
model_inputs,
|
56 |
streamer=streamer,
|
57 |
+
max_new_tokens=512,
|
58 |
do_sample=True,
|
59 |
top_p= 0.75,
|
60 |
top_k= 60,
|