Martín Santillán Cooper commited on
Commit
42e2cdc
1 Parent(s): a50a656

fix: chat variable doenst exist

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -167,7 +167,7 @@ def generate_text(messages, criteria_name):
167
  with torch.no_grad():
168
  # output = model.generate(chat, sampling_params, use_tqdm=False)
169
  output = model.generate(
170
- chat,
171
  do_sample=False,
172
  max_new_tokens=nlogprobs,
173
  return_dict_in_generate=True,
 
167
  with torch.no_grad():
168
  # output = model.generate(chat, sampling_params, use_tqdm=False)
169
  output = model.generate(
170
+ input_ids,
171
  do_sample=False,
172
  max_new_tokens=nlogprobs,
173
  return_dict_in_generate=True,