Skip to content

Add examples that showcase the use of Hyperparameter search with Transformers #589

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LuHC409
Copy link

@LuHC409 LuHC409 commented May 5, 2025

This PR closes issue #37947 by expanding our hyperparameter‑search examples in the Trainer docs. In particular, it:
• Adds a SigOpt example (showing double, int, and categorical params)
• Includes a W&B example with random search configuration
• Ensures all four backends (Optuna, Ray Tune, SigOpt, W&B) follow the same structure
• Updates the setup instructions to list required dependencies

I’ve linked the original issue for context: huggingface/transformers#37947

Please let me know if anything needs tweaking—happy to adjust formatting, add more comments or improve the compute_objective logic! Thanks for taking a look. 🚀

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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