-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Chapter 12 #32
Comments
Where are you using the above code, in Colab? If so, can you use the versions of transformers/trl as shown in the requirements.txt? |
Using Colab. So changed - To- Had to provide versions to all the libs as additional errors were cropping up. |
@ritesh2014 Thanks for testing the updated requirements! I finally had some time to update this and it should work now. Also, the reason why this took a bit longer is a nice one (cool update in a couple of hours 😉). |
For future reference or anyone who bumps into this error on Colab, you could also replace transformers
Then:
|
Below Code:
trainer = SFTTrainer(
model=model,
train_dataset=dataset,
dataset_text_field="text",
tokenizer=tokenizer,
args=training_arguments,
max_seq_length=512,
)
Error:
TypeError: SFTTrainer.init() got an unexpected keyword argument 'dataset_text_field'
Tried to resolve using Gemini, but the solutions kept throwing new errors and the code got messed up.
Has anyone resolved this?
The text was updated successfully, but these errors were encountered: