Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -50,6 +50,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
50 |
MODEL,
|
51 |
torch_dtype=torch.float16,
|
52 |
device_map="auto",
|
|
|
53 |
quantization_config=quantization_config)
|
54 |
|
55 |
# Ensure `pad_token_id` is set
|
|
|
50 |
MODEL,
|
51 |
torch_dtype=torch.float16,
|
52 |
device_map="auto",
|
53 |
+
attn_implementation="flash_attention_2",
|
54 |
quantization_config=quantization_config)
|
55 |
|
56 |
# Ensure `pad_token_id` is set
|