TETSU0701 commited on
Commit
5108765
·
verified ·
1 Parent(s): 122752c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -53,9 +53,8 @@ def load_models():
53
  tokenizer = AutoTokenizer.from_pretrained(llm_model_name)
54
  llm_model = AutoModelForCausalLM.from_pretrained(
55
  llm_model_name,
56
- dtype=torch.float16,
57
- device_map="auto",
58
- load_in_4bit=True
59
  )
60
 
61
  return classification_model, llm_model, tokenizer, label_mappings
 
53
  tokenizer = AutoTokenizer.from_pretrained(llm_model_name)
54
  llm_model = AutoModelForCausalLM.from_pretrained(
55
  llm_model_name,
56
+ dtype="auto",
57
+ device_map="auto"
 
58
  )
59
 
60
  return classification_model, llm_model, tokenizer, label_mappings