DiffusionOPD Docs

This is the landing page for Gollek’s DiffusionOPD documentation set.

The DiffusionOPD lane now spans more than just trainer setup. It includes:

  • the Java-first training scaffold
  • normalized report artifacts
  • typed Java report-query APIs
  • campaign, release, and delivery report views
  • JBang-based terminal inspection
  • bundle export, manifest inspection, and bundle health validation

Use this page as the quickest way to choose the right document for the task in front of you.


Which page should I read?


Do you have one report or two?

Rule of thumb:

  • one report leads to status, trend, summary, selector, and bundle-export work
  • two reports lead to campaign, release, and delivery comparison work

Architecture map

flowchart TD
    A["DefaultDiffusionOpdTrainer"] --> B["Persisted artifacts"]
    B --> B1["diffusion-opd-summary.json"]
    B --> B2["diffusion-opd-history.csv"]
    B --> B3["diffusion-opd-report.json"]

    B3 --> C["DiffusionOpdReports"]
    C --> D["DiffusionOpdReportQueries"]
    D --> D1["Status, trend, stability"]
    D --> D2["Portfolio and comparison views"]
    D --> D3["Campaign, release, and delivery views"]

    B3 --> E["JBang inspector"]
    E --> E1["Section and round-history selectors"]
    E --> E2["Summary rollups and projections"]
    E --> E3["Bundle export"]

    E3 --> F["Bundle directory"]
    F --> F1["manifest.json"]
    F --> F2["Generated JSON, CSV, table, and text files"]

    F1 --> G["DiffusionOpdBundleManifests"]
    G --> H["DiffusionOpdBundleInspector"]
    H --> H1["bundleSummary"]
    H --> H2["bundleHealth"]
    H --> H3["files and loadfile views"]

In practice, the flow is:

  • the trainer writes normalized artifacts
  • DiffusionOpdReports loads the typed report boundary
  • DiffusionOpdReportQueries builds application-facing analysis and orchestration views
  • the JBang inspector gives a terminal-first path over the same report
  • bundle export creates a manifest-backed output directory
  • bundle manifest and health APIs validate and reopen that exported pack

Where does this live in the repo?

The main implementation and example entrypoints live here:

Area Path What you find there
DiffusionOPD API contracts gollek/training/gollek-train-diffusion-api/ Typed public records and interfaces for reports, campaigns, releases, and delivery/export views
DiffusionOPD implementation gollek/training/gollek-train-diffusion-opd/ Trainer, report loaders, query helpers, bundle inspection APIs, and JBang-facing support surfaces
Java training examples gollek/training/gollek-train-examples/ Gradle examples for OPD trainer and stable-diffusion bridge workflows
JBang entrypoints gollek/examples/jbang/trainer/ trainer_diffusion_opd_ddim.java, trainer_diffusion_opd_report_inspector.java, and related terminal wrappers

If you are looking for the fastest practical starting points in the repo, use:

  • gollek/training/gollek-train-diffusion-opd/src/main/java/tech/kayys/gollek/train/diffusion/opd/
  • gollek/examples/jbang/trainer/trainer_diffusion_opd_report_inspector.java
  • gollek/examples/jbang/trainer/README.md

What’s stable vs evolving?

Stable enough to build against now

  • persisted artifact names such as diffusion-opd-summary.json, diffusion-opd-history.csv, and diffusion-opd-report.json
  • typed report loading through DiffusionOpdReports
  • typed analysis and orchestration entrypoints in DiffusionOpdReportQueries
  • bundle manifest loading and bundle inspection through DiffusionOpdBundleManifests and DiffusionOpdBundleInspector
  • the JBang report-inspector workflow and its selector/bundle vocabulary as documented in the current reference pages

These are the surfaces to prefer for downstream tools, dashboards, review workflows, and CI-style bundle validation.

Still likely to evolve

  • the exact trainer feature set around newer OPD runtime strategies
  • example-lane fixture conventions and local repo wiring for native stable-diffusion experiments
  • the depth and shape of higher-level campaign, release, and delivery record families as the orchestration lane continues to mature
  • secondary docs and examples that explain operational patterns around the main APIs

Rule of thumb:

  • build integrations against the typed artifact, query, and bundle boundaries
  • treat examples, experimental fixture paths, and some higher-order workflow polish as the parts most likely to keep moving

Docs status

Current OPD docs coverage now includes:

  • architecture and module overview
  • persisted artifact and typed report boundary
  • Java application workflow
  • terminal-first JBang inspection workflow
  • selector and bundle grammar reference
  • reporting vocabulary glossary
  • baseline/current comparison strategy

Recent additions in this docs cluster:

  • landing page and architecture map
  • starter command block
  • selector quick cheat sheet
  • JBang troubleshooting notes
  • artifact-shape examples
  • baseline strategy guide
  • one-report vs two-report chooser
  • repo-location guide
  • stable-vs-evolving guidance

If you still cannot find an answer from this cluster, the next best places to look are:

  • gollek/training/gollek-train-diffusion-opd/ in the repo
  • gollek/examples/jbang/trainer/README.md
  • the JBang inspector wrapper and examples under gollek/examples/jbang/trainer/

Starter commands

If you want one minimal end-to-end terminal flow, start with:

# inspect the report overview
jbang trainer/trainer_diffusion_opd_report_inspector.java report.json overview

# rank the worst task summaries
jbang trainer/trainer_diffusion_opd_report_inspector.java report.json taskSummaries:sort=-meanLoss:top=5 table

# export a standard bundle
jbang trainer/trainer_diffusion_opd_report_inspector.java report.json bundle=standard json /tmp/opd-standard-bundle

# validate that bundle in one compact check
jbang trainer/trainer_diffusion_opd_report_inspector.java /tmp/opd-standard-bundle bundleHealth:ci

That is the shortest practical path from one persisted report to:

  • one quick sanity check
  • one ranked review view
  • one reusable export pack
  • one CI-style integrity signal

For the full terminal workflow, continue with DiffusionOPD JBang Inspector Workflow.


Start here

Page Best for
DiffusionOPD in Gollek Understand the trainer, module boundaries, adapters, and artifact-emission story
DiffusionOPD Reporting and Inspection Understand the typed report, query, campaign, release, and bundle-inspection APIs
DiffusionOPD Reporting Workflow Follow the Java application path from training artifacts into typed query usage
DiffusionOPD JBang Inspector Workflow Follow the terminal-first path for selectors, exports, and bundle validation
DiffusionOPD Selector Reference Look up selector syntax, bundle grammar, projections, and bundle health filters quickly
DiffusionOPD Reporting Glossary Decode the core reporting and inspection vocabulary quickly
DiffusionOPD Baseline Strategy Learn how to create, store, refresh, and compare stable baseline reports

I want to add DiffusionOPD to an application

Read in this order:

  1. DiffusionOPD in Gollek
  2. DiffusionOPD Reporting and Inspection
  3. DiffusionOPD Reporting Workflow

This path is best when you need:

  • trainer integration
  • persisted report loading
  • typed Java query usage
  • campaign/release/delivery views in application code

I want to inspect one run quickly from the terminal

Read in this order:

  1. DiffusionOPD JBang Inspector Workflow
  2. DiffusionOPD Selector Reference

This path is best when you need:

  • one-off diagnostics
  • ranked summary tables
  • export bundles
  • CI-style bundle health checks

I want a quick grammar lookup

Go straight to:

This is the right page when you already know the workflow and only need the exact selector, bundle form, or projection name.


What the docs cover

Trainer and runtime boundary

Covered primarily in:

Topics:

  • gollek-ml-diffusion-api
  • gollek-ml-diffusion-opd
  • DefaultDiffusionOpdTrainer
  • runner adapters
  • scheduler bridges
  • stage-aware teacher bindings
  • adaptive stage weighting
  • diagnostics observers

Report and query boundary

Covered primarily in:

Topics:

  • diffusion-opd-summary.json
  • diffusion-opd-history.csv
  • diffusion-opd-report.json
  • DiffusionOpdReports
  • DiffusionOpdReportQueries
  • compatibility vs canonical release-delivery export lanes

Terminal inspection boundary

Covered primarily in:

Topics:

  • grouped and paired summary selectors
  • projection presets like compact, details, and compare
  • bundle export selectors
  • bundle summary and health selectors
  • loadfile: and filesSummary: views

Suggested reading order for new contributors

If you are onboarding to this area of the codebase, the most effective order is:

  1. DiffusionOPD in Gollek
  2. DiffusionOPD Reporting and Inspection
  3. DiffusionOPD Reporting Workflow
  4. DiffusionOPD JBang Inspector Workflow
  5. DiffusionOPD Selector Reference
  6. DiffusionOPD Reporting Glossary
  7. DiffusionOPD Baseline Strategy

That sequence moves from architecture, to artifacts, to Java usage, to terminal usage, and finally to syntax lookup.