Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,8 @@ tokenizer = AutoTokenizer.from_pretrained(
|
|
36 |
, token= token,)
|
37 |
|
38 |
model = AutoModelForCausalLM.from_pretrained(model_id, token= token,
|
39 |
-
# torch_dtype= torch.uint8,
|
|
|
40 |
attn_implementation="flash_attention_2",
|
41 |
# low_cpu_mem_usage=True,
|
42 |
# llm_int8_enable_fp32_cpu_offload=True,
|
|
|
36 |
, token= token,)
|
37 |
|
38 |
model = AutoModelForCausalLM.from_pretrained(model_id, token= token,
|
39 |
+
# torch_dtype= torch.uint8,
|
40 |
+
torch_dtype=torch.float16,
|
41 |
attn_implementation="flash_attention_2",
|
42 |
# low_cpu_mem_usage=True,
|
43 |
# llm_int8_enable_fp32_cpu_offload=True,
|