Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
3 |
|
4 |
# モデルとトークナイザーの読み込み
|
5 |
model_name = "Qwen/Qwen2.5-0.5B-Instruct"
|
6 |
-
tokenizer = AutoTokenizer.from_pretrained(model_name
|
7 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
8 |
|
9 |
# 生成用の関数
|
|
|
3 |
|
4 |
# モデルとトークナイザーの読み込み
|
5 |
model_name = "Qwen/Qwen2.5-0.5B-Instruct"
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name) # Slow tokenizerを使用
|
7 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
8 |
|
9 |
# 生成用の関数
|