Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sileod authored Jun 8, 2024
1 parent 9c1280a commit 70a04c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ class hparams:
learning_rate = 3e-5 # see hf.co/docs/transformers/en/main_classes/trainer#transformers.TrainingArguments

tasks = [rte]
model, trainer = tn.Model_Trainer(task,hparams)
trainer.train()
trainer.evaluate()
model, trainer = tn.Model_Trainer(tasks,hparams)
trainer.train(), trainer.evaluate()
p = trainer.pipeline()
p([{'text':'premise here','text_pair': 'hypothesis here'}]) # HuggingFace pipeline for inference
```
Expand Down

0 comments on commit 70a04c5

Please sign in to comment.