Spaces:
Runtime error
Runtime error
Commit
·
e134697
1
Parent(s):
3b0479f
Upload app.py
Browse files
app.py
CHANGED
|
@@ -82,7 +82,7 @@ class ChatbotArguments:
|
|
| 82 |
},
|
| 83 |
)
|
| 84 |
max_new_tokens: Optional[int] = field(
|
| 85 |
-
default=
|
| 86 |
metadata={
|
| 87 |
"help": "maximum number of generated tokens"
|
| 88 |
},
|
|
@@ -117,7 +117,7 @@ def main():
|
|
| 117 |
model_args,
|
| 118 |
tune_strategy='none',
|
| 119 |
ds_config=ds_config,
|
| 120 |
-
device=pipeline_args.device,
|
| 121 |
)
|
| 122 |
|
| 123 |
# We don't need input data, we will read interactively from stdin
|
|
|
|
| 82 |
},
|
| 83 |
)
|
| 84 |
max_new_tokens: Optional[int] = field(
|
| 85 |
+
default=200,
|
| 86 |
metadata={
|
| 87 |
"help": "maximum number of generated tokens"
|
| 88 |
},
|
|
|
|
| 117 |
model_args,
|
| 118 |
tune_strategy='none',
|
| 119 |
ds_config=ds_config,
|
| 120 |
+
device="cpu",#pipeline_args.device,
|
| 121 |
)
|
| 122 |
|
| 123 |
# We don't need input data, we will read interactively from stdin
|