Spaces:
Runtime error
Runtime error
Commit
·
e743472
1
Parent(s):
e794c71
model.eval()の追加
Browse files
app.py
CHANGED
@@ -25,6 +25,9 @@ tokenizer = T5Tokenizer.from_pretrained("rinna/japanese-gpt2-medium")
|
|
25 |
# model = AutoModelForCausalLM.from_pretrained("rinna/japanese-gpt2-medium")
|
26 |
model = AutoModelForCausalLM.from_pretrained("output/")
|
27 |
|
|
|
|
|
|
|
28 |
# 推論の実行
|
29 |
#def Chat(prompt):
|
30 |
# input = tokenizer.encode(prompt, return_tensors="pt")
|
|
|
25 |
# model = AutoModelForCausalLM.from_pretrained("rinna/japanese-gpt2-medium")
|
26 |
model = AutoModelForCausalLM.from_pretrained("output/")
|
27 |
|
28 |
+
# 平均/分散の値を正規化
|
29 |
+
model.eval()
|
30 |
+
|
31 |
# 推論の実行
|
32 |
#def Chat(prompt):
|
33 |
# input = tokenizer.encode(prompt, return_tensors="pt")
|