minhdang commited on
Commit
a0a6064
1 Parent(s): a0376c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -21,6 +21,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
21
  model = AutoModelForCausalLM.from_pretrained(model_id,
22
  # load_in_8bit=True,
23
  # quantization_config=nf4_config
 
24
  )
25
 
26
  @spaces.GPU
 
21
  model = AutoModelForCausalLM.from_pretrained(model_id,
22
  # load_in_8bit=True,
23
  # quantization_config=nf4_config
24
+ torch_dtype = torch.bfloat16
25
  )
26
 
27
  @spaces.GPU