Quick start =========== After :doc:`installation`, use a packaged preset to train NHP on the Taxi Hugging Face dataset. This short run uses the CPU: .. code-block:: python 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 :doc:`configuration` for overrides and preset settings, or :doc:`data_loading` to use local JSON or pickle files. Use a YAML experiment --------------------- For a complete YAML configuration, start with :doc:`training`. The same registered config and runner APIs launch it: .. code-block:: python config = Config.build_from_yaml_file("taxi.yaml", experiment_id="NHP_train") runner = Runner.build_from_config(config) runner.run() Continue with :doc:`evaluation` to score a checkpoint, :doc:`prediction` for generation, or :doc:`notebooks` for a guided Colab walkthrough.