Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
13 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
14 |
|
15 |
modelpath = "Salesforce/xLAM-1b-fc-r"
|
16 |
-
model = AutoModelForCausalLM.from_pretrained(modelpath,
|
17 |
tokenizer = AutoTokenizer.from_pretrained(modelpath)
|
18 |
|
19 |
|
|
|
13 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
14 |
|
15 |
modelpath = "Salesforce/xLAM-1b-fc-r"
|
16 |
+
model = AutoModelForCausalLM.from_pretrained(modelpath, torch_dtype="auto", trust_remote_code=True)
|
17 |
tokenizer = AutoTokenizer.from_pretrained(modelpath)
|
18 |
|
19 |
|