Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DRAFT] Add support gradient cache for Reranker #148

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
fix: trainer
  • Loading branch information
sigridjineth committed Aug 24, 2024
commit 52616cdd3a198cb1f7a175d04e1e54f4e791f9a5
2 changes: 1 addition & 1 deletion src/tevatron/reranker/driver/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def main():
train_dataset = RerankerTrainDataset(data_args)
train_collator = RerankerTrainCollator(data_args, tokenizer)

trainer_cls = GCTrainer if training_args.grad_cache else RerankerTrainer
trainer_cls = RerankerTrainer
trainer = trainer_cls(
model=model,
args=training_args,
Expand Down