Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,8 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
|
|
25 |
model = AutoModelForCausalLM.from_pretrained(model_id,
|
26 |
# load_in_8bit=True,
|
27 |
quantization_config=nf4_config,
|
28 |
-
|
|
|
29 |
device_map="auto"
|
30 |
)
|
31 |
|
|
|
25 |
model = AutoModelForCausalLM.from_pretrained(model_id,
|
26 |
# load_in_8bit=True,
|
27 |
quantization_config=nf4_config,
|
28 |
+
attn_implementation="flash_attention_2",
|
29 |
+
# torch_dtype = torch.bfloat16,
|
30 |
device_map="auto"
|
31 |
)
|
32 |
|