rphrp1985 commited on
Commit
cac98b2
1 Parent(s): 07d42bf

Update app.py

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