Gijs Wijngaard commited on
Commit
5af88f3
Β·
1 Parent(s): b5ad8ed
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -16,6 +16,8 @@ model = AutoModelForCausalLM.from_pretrained(
16
  model_path,
17
  device_map=device,
18
  dtype=torch.float16,
 
 
19
  )
20
 
21
  model.load_adapter(
 
16
  model_path,
17
  device_map=device,
18
  dtype=torch.float16,
19
+ trust_remote_code=True,
20
+ _attn_implementation="flash_attention_2",
21
  )
22
 
23
  model.load_adapter(