Willy030125
commited on
Commit
•
847d97e
1
Parent(s):
767353b
Update README.md
Browse files
README.md
CHANGED
@@ -61,7 +61,7 @@ def generate_response(question: str) -> str:
|
|
61 |
attention_mask=inputs.attention_mask,
|
62 |
eos_token_id=tokenizer.eos_token_id,
|
63 |
pad_token_id=tokenizer.eos_token_id,
|
64 |
-
max_new_tokens=
|
65 |
response = tokenizer.batch_decode(outputs.detach().cpu().numpy(), skip_special_tokens=True)[0]
|
66 |
|
67 |
assistant_start = f'''{question} \n assistant\n '''
|
|
|
61 |
attention_mask=inputs.attention_mask,
|
62 |
eos_token_id=tokenizer.eos_token_id,
|
63 |
pad_token_id=tokenizer.eos_token_id,
|
64 |
+
max_new_tokens=1024)
|
65 |
response = tokenizer.batch_decode(outputs.detach().cpu().numpy(), skip_special_tokens=True)[0]
|
66 |
|
67 |
assistant_start = f'''{question} \n assistant\n '''
|