AnishHF commited on
Commit
7e27808
1 Parent(s): 51ff4f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ quantization_config = QuantoConfig(
9
  weights = "int4"
10
  )
11
 
12
- tokenizer = AutoTokenizer.from_pretrained("ProbeMedicalYonseiMAILab/medllama3-v20")
13
  model = AutoModelForCausalLM.from_pretrained("ProbeMedicalYonseiMAILab/medllama3-v20")
14
 
15
  # Function to generate text using the model
 
9
  weights = "int4"
10
  )
11
 
12
+ tokenizer = AutoTokenizer.from_pretrained("ProbeMedicalYonseiMAILab/medllama3-v20", quantization_config=quantization_config, device_map="auto")
13
  model = AutoModelForCausalLM.from_pretrained("ProbeMedicalYonseiMAILab/medllama3-v20")
14
 
15
  # Function to generate text using the model