EvSys

combo

Combo - chain multiple algorithms sequentially in one run.

Use case: SFT warmup → GRPO refine, cold-start distill → DAPO, etc. Each phase runs against the same RunContext but writes its artifacts to a phase\{i\}_\{name\} subdirectory; the previous phase's final_checkpoint artifact is threaded into the next phase via ctx.extras.

YAML example::

kind: combo phases:

  • kind: mock_sft config: num_epochs: 1
  • kind: mock_rl config: num_iterations: 50
attributelogger
= logging.getLogger(__name__)
func_phase_context(parent, phase_dir, prior_artifacts, label) -> RunContext

Build a per-phase RunContext that:

  • writes into phase_dir
  • exposes the previous phase's final_checkpoint via ctx.extras
  • shares the parent's data_store, log_store, backend
paramparentRunContext
paramphase_dirPath
paramprior_artifactsdict[str, str]
paramlabelstr

Returns

evsys_sdk.protocols.RunContext