Quick start#
After Installation, use a packaged preset to train NHP on the Taxi Hugging Face dataset. This short run uses the CPU:
from easy_tpp.config_factory import Config
from easy_tpp.runner import Runner
config = Config.preset(
"NHP", "taxi",
overrides=["trainer_config.max_epoch=1", "trainer_config.gpu=-1"],
)
runner = Runner.build_from_config(config)
runner.run()
The first run downloads the dataset through the Hugging Face datasets
package. The run directory below base_dir contains the resolved config,
logs, and saved model. See Configuration and presets for overrides and preset
settings, or Data loading to use local JSON or pickle files.
Use a YAML experiment#
For a complete YAML configuration, start with Training a Model and Configuring the Pipeline. The same registered config and runner APIs launch it:
config = Config.build_from_yaml_file("taxi.yaml", experiment_id="NHP_train")
runner = Runner.build_from_config(config)
runner.run()
Continue with Evaluate a Model to score a checkpoint, Prediction and generation for generation, or Colab notebooks for a guided Colab walkthrough.