Commit
·
4a8eced
1
Parent(s):
8ac3a2d
ajustes
Browse files
README.md
CHANGED
@@ -51,7 +51,7 @@ device = "cuda"
|
|
51 |
text_list = ["Ask not what your country", "Be the change that", "You only live once, but", "I'm selfish, impatient and"]
|
52 |
for text in text_list:
|
53 |
inputs = tokenizer(text, return_tensors="pt").to(device)
|
54 |
-
outputs = model.generate(**inputs, max_new_tokens=
|
55 |
print('>> ', text, " => ", tokenizer.decode(outputs[0], skip_special_tokens=True))
|
56 |
|
57 |
```
|
|
|
51 |
text_list = ["Ask not what your country", "Be the change that", "You only live once, but", "I'm selfish, impatient and"]
|
52 |
for text in text_list:
|
53 |
inputs = tokenizer(text, return_tensors="pt").to(device)
|
54 |
+
outputs = model.generate(**inputs, max_new_tokens=60)
|
55 |
print('>> ', text, " => ", tokenizer.decode(outputs[0], skip_special_tokens=True))
|
56 |
|
57 |
```
|