vilarin commited on
Commit
bccdc56
1 Parent(s): d8a8bf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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