Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|