Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ model_base = AutoModelForCausalLM.from_pretrained(
|
|
22 |
quantization_config=bnb_4bit_config,
|
23 |
)
|
24 |
|
25 |
-
model = PeftModel.from_pretrained(model_base,
|
26 |
|
27 |
pipe = pipeline(
|
28 |
"text-generation",
|
|
|
22 |
quantization_config=bnb_4bit_config,
|
23 |
)
|
24 |
|
25 |
+
model = PeftModel.from_pretrained(model_base, ADAPTER_ID, device_map="auto")
|
26 |
|
27 |
pipe = pipeline(
|
28 |
"text-generation",
|