suriyagunasekar
commited on
Commit
•
6ddac37
1
Parent(s):
cd4510c
Update README.md
Browse files
README.md
CHANGED
@@ -101,7 +101,7 @@ def print_prime(n):
|
|
101 |
Print all primes between 1 and n
|
102 |
"""''', return_tensors="pt", return_attention_mask=False)
|
103 |
|
104 |
-
eos_token_id = tokenizer.encode("
|
105 |
outputs = model.generate(**inputs, max_length=500)
|
106 |
text = tokenizer.batch_decode(outputs)[0]
|
107 |
print(text)
|
|
|
101 |
Print all primes between 1 and n
|
102 |
"""''', return_tensors="pt", return_attention_mask=False)
|
103 |
|
104 |
+
eos_token_id = tokenizer.encode("``<|endoftext|>") # generation ends at `` or <|endoftext|>
|
105 |
outputs = model.generate(**inputs, max_length=500)
|
106 |
text = tokenizer.batch_decode(outputs)[0]
|
107 |
print(text)
|