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?
- If you want the architecture and module story, start with DiffusionOPD in Gollek.
- If you want the typed report, query, campaign, and delivery API surface, go to DiffusionOPD Reporting and Inspection.
- If you want the Java application workflow from trainer artifacts into typed query usage, use DiffusionOPD Reporting Workflow.
- If you want the terminal-first workflow for selectors, exports, and bundle checks, use DiffusionOPD JBang Inspector Workflow.
- If you only need selector syntax, bundle grammar, or projection names, jump straight to DiffusionOPD Selector Reference.
Do you have one report or two?
- If you only have one
diffusion-opd-report.json, start with: - If you have a stable baseline plus a new run, start with:
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
DiffusionOpdReportsloads the typed report boundaryDiffusionOpdReportQueriesbuilds 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.javagollek/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, anddiffusion-opd-report.json - typed report loading through
DiffusionOpdReports - typed analysis and orchestration entrypoints in
DiffusionOpdReportQueries - bundle manifest loading and bundle inspection through
DiffusionOpdBundleManifestsandDiffusionOpdBundleInspector - 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 repogollek/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 |
Recommended paths by goal
I want to add DiffusionOPD to an application
Read in this order:
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:
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-apigollek-ml-diffusion-opdDefaultDiffusionOpdTrainer- runner adapters
- scheduler bridges
- stage-aware teacher bindings
- adaptive stage weighting
- diagnostics observers
Report and query boundary
Covered primarily in:
Topics:
diffusion-opd-summary.jsondiffusion-opd-history.csvdiffusion-opd-report.jsonDiffusionOpdReportsDiffusionOpdReportQueries- compatibility vs canonical release-delivery export lanes
Terminal inspection boundary
Covered primarily in:
Topics:
- grouped and paired summary selectors
- projection presets like
compact,details, andcompare - bundle export selectors
- bundle summary and health selectors
loadfile:andfilesSummary:views
Suggested reading order for new contributors
If you are onboarding to this area of the codebase, the most effective order is:
- DiffusionOPD in Gollek
- DiffusionOPD Reporting and Inspection
- DiffusionOPD Reporting Workflow
- DiffusionOPD JBang Inspector Workflow
- DiffusionOPD Selector Reference
- DiffusionOPD Reporting Glossary
- DiffusionOPD Baseline Strategy
That sequence moves from architecture, to artifacts, to Java usage, to terminal usage, and finally to syntax lookup.