Spaces:
Sleeping
Sleeping
Commit
·
2697a17
1
Parent(s):
45a4564
INT 8
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ Answer: [/INST]
|
|
| 18 |
def load_model():
|
| 19 |
model_name = "meta-llama/Llama-Guard-3-8B-INT8"
|
| 20 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 21 |
-
model = AutoModelForCausalLM.from_pretrained(model_name
|
| 22 |
return tokenizer, model
|
| 23 |
|
| 24 |
# Function to load image from URL
|
|
|
|
| 18 |
def load_model():
|
| 19 |
model_name = "meta-llama/Llama-Guard-3-8B-INT8"
|
| 20 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 21 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
| 22 |
return tokenizer, model
|
| 23 |
|
| 24 |
# Function to load image from URL
|