Trainer JBang Workflow

This tutorial walks through the shortest useful terminal-first Gollek trainer workflow:

  1. bootstrap the generic trainer runtime
  2. run one family-specific workflow
  3. inspect one produced artifact
  4. reopen one saved result or bundle
  5. choose the next family-specific lane

See also:

Step 1: Check The Generic Trainer Runtime

Start with the smallest trainer-runtime entrypoint:

cd gollek/examples/jbang

jbang trainer/trainer_runtime_bootstrap.java

Use this when you want to verify that the trainer-side runtime surface is available before moving into a family-specific workflow.

Step 2: Pick One Family Workflow

Choose one of the current stronger trainer families:

Byte-Latent:

./trainer/run_byte_latent_workflow.sh full /tmp/gollek-byte-latent

Recursive Reasoning:

./trainer/run_recursive_reasoning_workflow.sh full /tmp/recursive-reasoning

DiffusionOPD:

jbang trainer/trainer_diffusion_opd_report_inspector.java \
  /path/to/diffusion-opd-report.json \
  overview

That split gives you:

  • checkpoint/workflow/compare flows for Byte-Latent
  • report/compare/bundle flows for Recursive Reasoning
  • report/query/bundle inspection entrypoints for DiffusionOPD

Step 3: Inspect One Produced Artifact

Once one workflow has produced artifacts, use the matching inspector.

Byte-Latent workflow manifest:

jbang trainer/trainer_byte_latent_workflow_inspector.java \
  /tmp/gollek-byte-latent-workflow-manifest.json \
  overview

Recursive Reasoning report:

jbang trainer/trainer_recursive_reasoning_inspector.java \
  /tmp/recursive-reasoning-baseline \
  overview

DiffusionOPD report:

jbang trainer/trainer_diffusion_opd_report_inspector.java \
  /path/to/diffusion-opd-report.json \
  taskSummaries:sort=-meanLoss:top=5 table

Step 4: Reopen One Saved Result Or Bundle

The stronger current lanes already support saved artifacts:

Recursive Reasoning compare bundle:

jbang trainer/trainer_recursive_reasoning_compare_inspector.java \
  /tmp/recursive-reasoning-compare-bundle \
  bundleSummary

Byte-Latent workflow bundle:

jbang trainer/trainer_byte_latent_workflow_inspector.java \
  /tmp/byte-latent-workflow-bundle \
  bundleHealth:ci

This is the point where the terminal-first lane becomes reusable instead of single-run only.

Step 5: Decide The Next Family

Use this rule of thumb:

  • choose Byte-Latent when you want checkpoint, workflow, and compare lanes
  • choose DiffusionOPD when you want typed report, campaign, release, and bundle inspection lanes
  • choose Recursive Reasoning when you want GRAM-style rollout reports, compare results, and compare bundles

Next Step

After this tutorial, the best follow-up hubs are: