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