umisetokikaze
commited on
Commit
•
f9e8abf
1
Parent(s):
ef88650
Update README.md
Browse files
README.md
CHANGED
@@ -74,7 +74,7 @@ system_prompt = "あなたはプロの小説家です。\n小説を書いてく
|
|
74 |
|
75 |
prompt = input("Enter a prompt: ")
|
76 |
system_prompt += prompt + "\n-------- "
|
77 |
-
model_inputs = tokenizer([
|
78 |
|
79 |
|
80 |
generated_ids = model.generate(**model_inputs, max_new_tokens=new_tokens, do_sample=True)
|
|
|
74 |
|
75 |
prompt = input("Enter a prompt: ")
|
76 |
system_prompt += prompt + "\n-------- "
|
77 |
+
model_inputs = tokenizer([system_prompt], return_tensors="pt").to("cuda")
|
78 |
|
79 |
|
80 |
generated_ids = model.generate(**model_inputs, max_new_tokens=new_tokens, do_sample=True)
|