vilarin commited on
Commit
10f271f
1 Parent(s): 96867c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -37,8 +37,7 @@ tokenizer = AutoTokenizer.from_pretrained(MODEL)
37
  model = AutoModelForCausalLM.from_pretrained(
38
  MODEL,
39
  torch_dtype=torch.bfloat16,
40
- device_map="auto",
41
- ignore_mismatched_sizes=True)
42
  terminators = [
43
  tokenizer.eos_token_id,
44
  tokenizer.convert_tokens_to_ids("<|eot_id|>")
 
37
  model = AutoModelForCausalLM.from_pretrained(
38
  MODEL,
39
  torch_dtype=torch.bfloat16,
40
+ device_map="auto")
 
41
  terminators = [
42
  tokenizer.eos_token_id,
43
  tokenizer.convert_tokens_to_ids("<|eot_id|>")