Sakalti commited on
Commit
93eb966
1 Parent(s): 55cbefa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, use_fast=False) # Slow tokenizerを使用
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
  # 生成用の関数