Update README.md
Browse files
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 =
|
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 |
```
|