Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ model_name_or_path = "TheBloke/phi-2-GPTQ"
|
|
| 23 |
# To use a different branch, change revision
|
| 24 |
# For example: revision="gptq-4bit-32g-actorder_True"
|
| 25 |
|
| 26 |
-
config = AutoConfig.from_pretrained(model_name_or_path)
|
| 27 |
config.quantization_config["disable_exllama"] = True
|
| 28 |
|
| 29 |
model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
|
|
|
|
| 23 |
# To use a different branch, change revision
|
| 24 |
# For example: revision="gptq-4bit-32g-actorder_True"
|
| 25 |
|
| 26 |
+
config = AutoConfig.from_pretrained(model_name_or_path,trust_remote_code=True)
|
| 27 |
config.quantization_config["disable_exllama"] = True
|
| 28 |
|
| 29 |
model = AutoModelForCausalLM.from_pretrained(model_name_or_path,
|