baconnier commited on
Commit
71734ec
·
verified ·
1 Parent(s): 9a4f7ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -85,11 +85,12 @@ tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
85
  if tokenizer.pad_token is None:
86
  tokenizer.pad_token = tokenizer.eos_token
87
  tokenizer.pad_token_id = tokenizer.eos_token_id
88
- model = AutoModelForCausalLM.from_pretrained(
89
- MODEL_ID,
90
- device_map="auto",
91
- quantization_config=quantization_config,
92
- torch_dtype=torch.bfloat16
 
93
  )
94
 
95
  # Create Gradio interface
 
85
  if tokenizer.pad_token is None:
86
  tokenizer.pad_token = tokenizer.eos_token
87
  tokenizer.pad_token_id = tokenizer.eos_token_id
88
+
89
+ model = AutoModelForCausalLM.from_pretrained(
90
+ MODEL_ID,
91
+ device_map="auto",
92
+ quantization_config=quantization_config,
93
+ torch_dtype=torch.bfloat16
94
  )
95
 
96
  # Create Gradio interface