Skip to main content

A modular YML config file parser and runner.

Project description

Kaizo

YML file config reader and runner

The parser in utils/parser.py makes experiments highly flexible. Each YAML file may contain:

  • Direct values: simple scalars (e.g., epochs: 10)
  • Resolvable values: dictionaries specifying module, source, call, args, and optional lazy
  • References: re-use values defined earlier in the config (args.variable_name)
  • Local modules: custom Python files specified by local to extend functionality

This design lets you declaratively define entire experiments.

Example Config

Below is the example config file:

ddpm:
  module: trainer.models.ddpm
  source: DDPMTrainer
  args:
    prefix: notebooks
    model_type: sde
    img_size: 32
    in_channels: 1
    batch_size: 64
    shuffle: True
    save_freq: 50
    dataset_path: ./notebooks/data
    beta_min: 0.1
    beta_max: 1
    target_transform:
    download: True
    loader:
      module: loaders
      source: MNISTLoader
      call: False

This config demonstrates:

  • Loading MNIST with MNISTLoader
  • Using an SDE-based diffusion trainer
  • Training with batch_size=64 and saving checkpoints every 50 steps
  • Building a UNet-like model with in_channels=1 and img_size=32

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kaizo-0.1.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kaizo-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file kaizo-0.1.0.tar.gz.

File metadata

  • Download URL: kaizo-0.1.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kaizo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d132ce0030db67dc608f725c1e5bec8402e1a4894af9573c70d82fc4c116fde4
MD5 c67835555d35b2451e9737b3b5cc7838
BLAKE2b-256 4a5401bd7341d0050f8c970c83f8fec26d8a8cb545fb45d5bc1c414779c19744

See more details on using hashes here.

Provenance

The following attestation bundles were made for kaizo-0.1.0.tar.gz:

Publisher: publish.yml on NaughtFound/kaizo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kaizo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: kaizo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kaizo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63655a57f5574a933103bd77c88eb0f56fc54c4ee9e2597aacd33229902667b3
MD5 99ca071585cd25749844521826387374
BLAKE2b-256 862bd95dac3a2bd95a0687254b59e663117e4671d88b6ff5a2f98d0315b7f886

See more details on using hashes here.

Provenance

The following attestation bundles were made for kaizo-0.1.0-py3-none-any.whl:

Publisher: publish.yml on NaughtFound/kaizo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page