liveBook · Manning

Ray Tune

As explained in Transformers in Action

Ray Tune is a Ray library for distributed hyperparameter tuning and experiment management.

Ray Tune is a Ray library for distributed experiment execution and hyperparameter tuning. It coordinates training, evaluation, scheduling, checkpoint selection, and final model training around a PyTorch workflow. section 8.2

How Transformers in Action covers it

How deep it goes
Implements dataset conversion, tokenization, distributed training, search scheduling, checkpoint selection, retraining, and model loading.
Examples
Uses SuperGLUE CommitmentBank classification with searched learning rates, epochs, batch sizes, and weight decay.
What you can do after
Apply it via Ray Tune to compare configurations, select the lowest-loss trial, retrain, restore, and publish a model.
How it connects
Connects Ray Data, TorchTrainer, PyTorch, Hugging Face Transformers, checkpointing, and ASHA scheduling.

Also explained in

Compare how 2 books explain Ray Tune →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Transformers in Action. The section links point to the parts of the book it draws on.