Gijs Wijngaard
commited on
Commit
Β·
f931e52
1
Parent(s):
3d568e9
more
Browse files
app.py
CHANGED
|
@@ -17,6 +17,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 17 |
MODEL_ID,
|
| 18 |
device_map="cuda" if torch.cuda.is_available() else "cpu",
|
| 19 |
torch_dtype="auto",
|
|
|
|
| 20 |
)
|
| 21 |
|
| 22 |
model.load_adapter(MODEL_ID, adapter_name="speech", device_map="cuda" if torch.cuda.is_available() else "cpu", adapter_kwargs={"subfolder": 'speech-lora'})
|
|
|
|
| 17 |
MODEL_ID,
|
| 18 |
device_map="cuda" if torch.cuda.is_available() else "cpu",
|
| 19 |
torch_dtype="auto",
|
| 20 |
+
trust_remote_code=True
|
| 21 |
)
|
| 22 |
|
| 23 |
model.load_adapter(MODEL_ID, adapter_name="speech", device_map="cuda" if torch.cuda.is_available() else "cpu", adapter_kwargs={"subfolder": 'speech-lora'})
|