savasy commited on
Commit
f8fe556
1 Parent(s): 85307d8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -65,7 +65,7 @@ from tqdm import tqdm
65
  with torch.no_grad():
66
  for batch in tqdm(data_loader):
67
  inputs = tokenizer(batch, return_tensors="pt", padding=True).to("cuda")
68
- generated_ids = model.generate(**inputs)
69
  outputs = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
70
  preds+=outputs
71
  ```
 
65
  with torch.no_grad():
66
  for batch in tqdm(data_loader):
67
  inputs = tokenizer(batch, return_tensors="pt", padding=True).to("cuda")
68
+ generated_ids = inference_model.generate(**inputs)
69
  outputs = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
70
  preds+=outputs
71
  ```