Repository navigation
Add native Bolt CUDA package preservation example (no optimization) - #2733
Rui Ren (rui-ren) wants to merge 2 commits into
Conversation
Represent decoder, vision encoder and embedding through existing Olive model handlers. Validate native packed graphs and external-data bounds, retain provenance and assets as references, and fail explicitly for unsupported routes and missing CUDA/custom-op support. Never transform or copy the already quantized payloads. Add 22 network-free fixture tests and document that preservation/session creation does not establish numerical model readiness. No framework changes or optimization claims. Signed-off-by: rui-ren <15321482+rui-ren@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Docs CI on 2fcfff6 identified the new main-branch example URL as the sole broken link: the example does not exist on main before merge. Refer to its source-checkout README path without an external pre-merge URL. Preserve all runtime and native-weight behavior. Validation: existing 22 network-free recipe tests pass with GPUs hidden; lintrunner passes. Original bounded native session evidence remains unchanged. Signed-off-by: rui-ren <15321482+rui-ren@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Exact-head CI follow-up: Existing focused fixtures on the follow-up commit: 22 passed, and lintrunner passed. Validation clarification: the initial GPU-hidden local attempt failed during inherited Torch/Transformers accelerator-discovery imports; rerunning the same mocked/IR-only fixtures with GPU3 visible passed in 3.91 seconds. No fixture executed CUDA kernels and no additional full-model/session run was performed. The follow-up commit message's “with GPUs hidden” phrase is incorrect; this comment and the retained failed/successful logs correct that validation detail. New-head workflows are running: Docs, Lint, fast tests. CLA passed. No actionable review/inline comments were present. The Azure bot note says authorized The original bounded full-session attempt/evidence is retained unchanged. It produced no numerical result, and must not be treated as a numerical failure or successful inference. Full model readiness remains NOT_ESTABLISHED. |
Describe your changes
Add a config-driven, reference-only native-preservation example for an existing local three-component NVIDIA Nemotron 3.5 Bolt CUDA export.
CompositeModelandONNXModelhandlers; no framework changes or new pass.RunConfig, resolve decoder/vision_encoder/embedding and bounded package-local external-data references, and round-trip source/GenAI/graph metadata through existing handlers.--inspect-onlyexplicitly recordsNOT_CHECKED.This is not an Olive engine optimization workflow, accuracy evaluator, optimized package, or model-readiness claim. It intentionally does not call
olive runwith a dummy pass. The source package remains in place and the output is not relocatable.Validation
python -m pytest examples/bolt_native_cuda/test_preserve.py --basetemp=./bolt-recipe-test-artifacts -q: 22 passed (network-free IR-built opaque fixtures; runtime-success branches are mocked, not numerical fixtures).lintrunner: ok No lint issues, including pylint.olive --help: pass.MatMulGGMLIQ2XXSon CUDA and finite output. This is kernel availability evidence, not full-model accuracy evidence.MatMulGGMLIQ2XXSis not registered.Source pin:
nvidia/NVIDIA-Nemotron-3.5-Bolt-74B-A9B-24GBatc6cc2e8ffa353403213d6b9b18aaf8eb684d705a.Local native export source:
d3ac98d5aa571b0c4c25fd288bd0a36741c342ee.Corrected CUDA provider SHA-256:
394cc8fadb5006635368e96c8cd0fe124462d1a2a6eb67c3b7fc953f11d19c5d.Model readiness remains NOT_ESTABLISHED. Earlier hidden/cache failures are not waived. Separate qualification must retain finite outputs, NRMSE <= 0.03, cosine >= 0.999 and exact required-token gates.
Checklist before requesting a review
lintrunner -aRelease note: Add a read-only, zero-pass native Bolt CUDA package-consumption example using existing Olive model handlers, with preservation receipts and explicit unsupported-runtime/route errors.
(Optional) Issue link
Independent example-only draft; no framework compatibility fix was warranted.