Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,8 +20,8 @@ DEFAULT_MAX_NEW_TOKENS = 512
|
|
| 20 |
pipe = deepsparse.Pipeline.create(
|
| 21 |
task="text-generation",
|
| 22 |
model_path=MODEL_PATH,
|
| 23 |
-
max_generated_tokens=DEFAULT_MAX_NEW_TOKENS,
|
| 24 |
sequence_length=MAX_MAX_NEW_TOKENS,
|
|
|
|
| 25 |
)
|
| 26 |
|
| 27 |
|
|
|
|
| 20 |
pipe = deepsparse.Pipeline.create(
|
| 21 |
task="text-generation",
|
| 22 |
model_path=MODEL_PATH,
|
|
|
|
| 23 |
sequence_length=MAX_MAX_NEW_TOKENS,
|
| 24 |
+
prompt_sequence_length=16,
|
| 25 |
)
|
| 26 |
|
| 27 |
|