prithivMLmods commited on
Commit
76c66ab
·
verified ·
1 Parent(s): e75a58c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -134,7 +134,7 @@ model = AutoModelForCausalLM.from_pretrained(
134
  MODEL_PATH,
135
  #attn_implementation="flash_attention_2",
136
  trust_remote_code=True,
137
- torch_dtype=torch.float16,
138
  device_map='auto'
139
  )
140
  tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH, trust_remote_code=True)
 
134
  MODEL_PATH,
135
  #attn_implementation="flash_attention_2",
136
  trust_remote_code=True,
137
+ torch_dtype=torch.bfloat16,
138
  device_map='auto'
139
  )
140
  tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH, trust_remote_code=True)