Spaces:
Runtime error
Runtime error
remove hf token requirement
Browse files
app.py
CHANGED
@@ -29,8 +29,7 @@ base_model = AutoModelForCausalLM.from_pretrained(
|
|
29 |
base_model_id,
|
30 |
quantization_config=bnb_config,
|
31 |
device_map="auto",
|
32 |
-
trust_remote_code=True
|
33 |
-
token=True
|
34 |
)
|
35 |
|
36 |
model = PeftModel.from_pretrained(base_model, ft_model_id).to(device)
|
|
|
29 |
base_model_id,
|
30 |
quantization_config=bnb_config,
|
31 |
device_map="auto",
|
32 |
+
trust_remote_code=True
|
|
|
33 |
)
|
34 |
|
35 |
model = PeftModel.from_pretrained(base_model, ft_model_id).to(device)
|