Tonic commited on
Commit
8586d5d
1 Parent(s): a8683e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -29,7 +29,8 @@ tokenizer = YiTokenizer(vocab_file="./tokenizer.model")
29
  model = transformers.AutoModelForCausalLM.from_pretrained(model_name,
30
  device_map="auto",
31
  torch_dtype=torch.bfloat16,
32
- load_in_4bit=True # For efficient inference, if supported by the GPU card
 
33
  )
34
 
35
  # Load the model and tokenizer using transformers
 
29
  model = transformers.AutoModelForCausalLM.from_pretrained(model_name,
30
  device_map="auto",
31
  torch_dtype=torch.bfloat16,
32
+ load_in_4bit=True,
33
+ trust_remote_code=True
34
  )
35
 
36
  # Load the model and tokenizer using transformers