robowaifudev
commited on
Commit
•
ecde5fe
1
Parent(s):
d28a350
Update README.md
Browse files
README.md
CHANGED
@@ -80,7 +80,9 @@ model.to(device)
|
|
80 |
model.eval()
|
81 |
|
82 |
# Generate
|
83 |
-
prompt =
|
|
|
|
|
84 |
input_ids = tokenizer.encode(prompt, return_tensors="pt").to(device)
|
85 |
output = model.generate(
|
86 |
input_ids=input_ids,
|
@@ -93,7 +95,7 @@ output = model.generate(
|
|
93 |
repetition_penalty=1.025
|
94 |
)
|
95 |
|
96 |
-
# Output the text
|
97 |
print("Prompt:", prompt)
|
98 |
print("*" * 3)
|
99 |
for i, sentence in enumerate(output):
|
|
|
80 |
model.eval()
|
81 |
|
82 |
# Generate
|
83 |
+
prompt = (
|
84 |
+
"It was a bright cold day in April, and the clocks were striking thirteen. Winston Smith,"
|
85 |
+
)
|
86 |
input_ids = tokenizer.encode(prompt, return_tensors="pt").to(device)
|
87 |
output = model.generate(
|
88 |
input_ids=input_ids,
|
|
|
95 |
repetition_penalty=1.025
|
96 |
)
|
97 |
|
98 |
+
# Output the text
|
99 |
print("Prompt:", prompt)
|
100 |
print("*" * 3)
|
101 |
for i, sentence in enumerate(output):
|