We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
there my example code from datasets import load_dataset from trl import SFTTrainer
dataset = load_dataset("IMDB", split="train")
trainer = SFTTrainer( "sshleifer/tiny-gpt2", train_dataset=dataset, dataset_text_field="text", max_seq_length=512, ) trainer.train()
The text was updated successfully, but these errors were encountered:
You need to instantiate a new object of TrainingArguments and pass num_train_epochs to it. Check out for example what is done here: https://github.com/huggingface/trl/blob/main/examples/scripts/sft.py#L113
TrainingArguments
num_train_epochs
Sorry, something went wrong.
thanks you for help
No branches or pull requests
there my example code
from datasets import load_dataset
from trl import SFTTrainer
dataset = load_dataset("IMDB", split="train")
trainer = SFTTrainer(
"sshleifer/tiny-gpt2",
train_dataset=dataset,
dataset_text_field="text",
max_seq_length=512,
)
trainer.train()
The text was updated successfully, but these errors were encountered: