Skip to content

fix: eliminate onnxruntime-gpu install churn in Docker TensorRT FP8 step#33

Open
forkni wants to merge 1 commit into
dotsimulate:SDTD_040_beta_releasefrom
forkni:fix/onnxruntime-churn-fp8
Open

fix: eliminate onnxruntime-gpu install churn in Docker TensorRT FP8 step#33
forkni wants to merge 1 commit into
dotsimulate:SDTD_040_beta_releasefrom
forkni:fix/onnxruntime-churn-fp8

Conversation

@forkni

@forkni forkni commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • src/streamdiffusion/tools/install-tensorrt.py (used by the Dockerfiles) requested nvidia-modelopt[onnx], whose [onnx] extra hard-pins onnxruntime-gpu==1.22.0 on Windows and, left unbounded, floats modelopt to a version that force-upgrades onnx to 1.21.0 and breaks FP8 quantization.
  • Pins nvidia-modelopt==0.43.0 and drops the [onnx] extra, enumerating its remaining deterministic deps explicitly (cppimport, lief, ml_dtypes, onnxconverter-common~=1.16.0) so the already-installed onnx/onnxruntime-gpu pins from the step above are never touched.
  • Single focused commit, cherry-picked from forkni/StreamDiffusion@SDTD_040_beta_release (internal PR feat: FP8 quantization robustness, quality harness, kvo_cache patch #14).

Test plan

  • Cherry-picked cleanly onto current SDTD_040_beta_release tip, no conflicts.
  • File-scoped diff (src/streamdiffusion/tools/install-tensorrt.py).
  • Verified end-to-end via pip install --dry-run and a full clean install (companion Windows installer fix, tested locally): no onnxruntime-gpu download/uninstall churn in the FP8 step, final state onnxruntime-gpu==1.24.4, onnx==1.19.1, nvidia-modelopt==0.43.0.

nvidia-modelopt[onnx] (unbounded, floats to 0.45.0) hard-pins
onnxruntime-gpu==1.22.0 on Windows and force-upgrades onnx to 1.21.0,
which breaks FP8 quant (external-data loading -> negative QDQ scale).
Pin modelopt==0.43.0 (the proven pin used by the installer's TD path)
and drop the [onnx] extra, enumerating its deterministic deps
explicitly instead — modelopt core has no onnx requirement, so the
onnx==1.19.1/onnxruntime-gpu==1.24.4 pins installed just above are
never perturbed.

Mirrors the same fix landed in forkni/StreamDiffusion-installer#4.

Co-authored-by: Claude Opus 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant