Skip to content

Fix the Transformers integration guide setup - #911

Open
AlexShen-Oguri wants to merge 1 commit into
huggingface:mainfrom
AlexShen-Oguri:codex/evaluate-seq2seq-guide-current-transformers
Open

AlexShen-Oguri wants to merge 1 commit into
huggingface:mainfrom
AlexShen-Oguri:codex/evaluate-seq2seq-guide-current-transformers

Conversation

@AlexShen-Oguri

Copy link
Copy Markdown

Summary

Update the Transformers integration guide to run with its current dependencies. The install command now includes accelerate for Trainer and scikit-learn for Accuracy. The seq2seq example passes its tokenizer through processing_class, and the Trainer example links to TrainingArguments.

Evidence

With Transformers 5.24.1, the original seq2seq example raised TypeError on tokenizer=. The corrected example initialized the trainer and completed an offline evaluation with a tiny T5 model and two rows. The local Accuracy metric returned the expected 0.5 after installing scikit-learn, and the doc build completed all 22 MDX files.

AI disclosure — OpenAI Codex found, edited, and verified the guide changes.

Install the Trainer and accuracy metric dependencies, use the
current tokenizer parameter, and link TrainingArguments.

Co-authored-by: OpenAI Codex <codex@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant