Spaces:
Sleeping
Sleeping
384
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def get_completion(msg):
|
|
52 |
|
53 |
with torch.no_grad():
|
54 |
outputs = peft_model.generate(
|
55 |
-
**inputs, max_new_tokens=
|
56 |
)
|
57 |
|
58 |
#peft_model.to(cpu_device)
|
|
|
52 |
|
53 |
with torch.no_grad():
|
54 |
outputs = peft_model.generate(
|
55 |
+
**inputs, max_new_tokens=384, pad_token_id = tokenizer.eos_token_id
|
56 |
)
|
57 |
|
58 |
#peft_model.to(cpu_device)
|