Skip to content

tinker_cookbook.stores.RunRegistry

class tinker_cookbook.stores.RunRegistry(**)

Discovers training runs and provides stores for each.

property storage_count

Number of storage backends registered.

property primary_storage

The first (default) storage backend.

storage_for(run_id)

Return the storage backend that owns a run (falls back to primary).

Parameters:

  • run_id (str)

refresh()

Re-scan all storages. Clears cached stores.

get_runs()

Return all discovered runs (lazy — calls :meth:refresh on first access).

get_run(run_id)

Look up a single run by ID, or None if not found.

Parameters:

  • run_id (str)

get_training_store(run_id)

Get a TrainingRunStore for a specific run.

Parameters:

  • run_id (str)

get_eval_store()

Get the EvalStore if eval data exists (cached after first call).