Gijs Wijngaard commited on
Commit
f931e52
Β·
1 Parent(s): 3d568e9
Files changed (1) hide show
  1. app.py +1 -0
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'})