Promoted Example Tutorials¶
This page promotes the maintained examples that best match the current ZeroProofML product story. Use it as the shortest docs-backed path from SCM basics to training, export, and strict deployment checks.
These tutorials were selected because they cover the highest-signal maintained workflows:
- SCM onboarding
- coverage-aware training
- deployment bundle export/runtime
- flattened strict inference for composed rational pipelines
1. SCM onboarding¶
Use examples/01_quickstart.py, examples/02_rational_layer.py, and
examples/03_projective_mode.py as a single short sequence.
Run:
python examples/01_quickstart.py
python examples/02_rational_layer.py
python examples/03_projective_mode.py
What to look for:
examples/01_quickstart.pyshows bottom propagation for the core SCM ops.examples/02_rational_layer.pymoves from scalar SCM values to a trainable rational layer.examples/03_projective_mode.pyshows the(P, Q)training representation before strict decoding.
Keep these docs open while you run the scripts:
2. Coverage-aware training¶
Use examples/05_coverage_control.py when you want the smallest maintained
training example that makes bottom-rate control explicit.
Run:
python examples/05_coverage_control.py
What to look for:
coverage_loss(...)penalises the gap between target coverage and achieved non-bottom rate.- The example masks bottom outputs before the MSE term so singular samples do not silently contaminate the finite regression path.
- The final printout gives a quick sanity check for target versus achieved coverage.
Related guides:
3. Strict deployment bundle¶
Use examples/06_export_bundle.py together with
examples/cpp/minimal_bundle_consumer.cpp for the maintained deployment
tutorial path.
Run the Python export:
python examples/06_export_bundle.py
Then build the C++ consumer against your local ONNX Runtime install:
c++ -std=c++17 examples/cpp/minimal_bundle_consumer.cpp \
-I/path/to/onnxruntime/include \
-I/path/to/nlohmann \
-L/path/to/onnxruntime/lib \
-lonnxruntime \
-o minimal_bundle_consumer
./minimal_bundle_consumer export_bundle_demo
What to look for:
- The exported bundle keeps the stable strict output order:
decoded,bottom_mask,gap_mask. metadata.jsonpins the strict-inference contract, batch semantics, and schema versions.- The C++ wrapper validates the same contract before running ONNX Runtime.
Related guides:
4. Flatten once, check once¶
Use examples/fru_strict_check_demo.py for the maintained composed-rational
tutorial path.
Run:
python examples/fru_strict_check_demo.py
What to look for:
- Multiple rational stages are flattened into one final
P/Qpair. - Denominator provenance records which intermediate stages contributed strict factors.
- The stagewise bottom cases and the final
strict_inference(...)result agree, so the example shows how to defer the authoritative strict check to the end of the pipeline.
Related guides:
Reference-only supported examples¶
The remaining supported examples stay important, but they are better used as focused reference scripts than as first tutorials:
examples/04_2r_arm.pyexamples/autodiff_demo.pyexamples/bridge_demo.pyexamples/optimization_demo.py
5. End-to-end deployment workflows¶
For larger deployment paths that chain multiple maintained surfaces together, use the in-tree deployment examples:
examples/deployment/README.mdexamples/deployment/01_bundle_export_runtime.mdexamples/deployment/02_robotics_fallback_routing.mdexamples/deployment/03_benchmark_report_generation.mdexamples/deployment/04_ros2_node_launch.md
These examples connect the promoted bundle-export tutorial to the maintained reference deployment, benchmark report, and ROS 2 launch paths documented in:
For the full maintained-vs-archival map, see 38_examples_inventory.md.