brucoder commited on
Commit
b44bb3e
·
verified ·
1 Parent(s): c72c1e1

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
10
  print("Loading model (this may take a while on CPU)...")
11
  model = AutoModelForCausalLM.from_pretrained(
12
  model_name,
13
- torch_dtype=torch.float32,
14
  low_cpu_mem_usage=True,
15
  )
16
  model.eval()
 
10
  print("Loading model (this may take a while on CPU)...")
11
  model = AutoModelForCausalLM.from_pretrained(
12
  model_name,
13
+ torch_dtype=torch.float16,
14
  low_cpu_mem_usage=True,
15
  )
16
  model.eval()