Gijs Wijngaard
commited on
Commit
Β·
5af88f3
1
Parent(s):
b5ad8ed
init
Browse files
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(
|