Update README.md
Browse files
README.md
CHANGED
@@ -78,7 +78,7 @@ prompt= """Below is an instruction that describes a task. Write a response that
|
|
78 |
Choose three places you would like to visit and explain why.
|
79 |
|
80 |
### Response:"""
|
81 |
-
inputs = tokenizer(prompt, return_tensors="pt", return_attention_mask=False)
|
82 |
outputs = model.generate(**inputs, max_length=500)
|
83 |
text = tokenizer.batch_decode(outputs)[0]
|
84 |
print(text)
|
|
|
78 |
Choose three places you would like to visit and explain why.
|
79 |
|
80 |
### Response:"""
|
81 |
+
inputs = tokenizer(prompt, return_tensors="pt", return_attention_mask=False).to('cuda')
|
82 |
outputs = model.generate(**inputs, max_length=500)
|
83 |
text = tokenizer.batch_decode(outputs)[0]
|
84 |
print(text)
|