Instructions to use ryanontheinside/stable-audio-3-optimized-fp8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use ryanontheinside/stable-audio-3-optimized-fp8 with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
SA3-m DiT FP8 ONNX + sm_120 TRT engine (PR47 recipe + dequant-frontend)
Browse files- .gitattributes +2 -0
- README.md +43 -0
- onnx/sa3-m/dit_fp8.onnx +3 -0
- onnx/sa3-m/dit_fp8.onnx.data +3 -0
- tensorRT/sm_120/sa3-m/dit_fp8.trt +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
onnx/sa3-m/dit_fp8.onnx.data filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
tensorRT/sm_120/sa3-m/dit_fp8.trt filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: stabilityai-community
|
| 4 |
+
license_link: https://huggingface.co/stabilityai/stable-audio-3-medium/blob/main/LICENSE.md
|
| 5 |
+
base_model: stabilityai/stable-audio-3-medium
|
| 6 |
+
tags:
|
| 7 |
+
- stable-audio
|
| 8 |
+
- tensorrt
|
| 9 |
+
- fp8
|
| 10 |
+
- quantization
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# SA3-medium DiT — FP8 TensorRT artifacts
|
| 14 |
+
|
| 15 |
+
FP8 GEMM-trunk quantization of the Stable Audio 3 medium DiT, built from
|
| 16 |
+
`stabilityai/stable-audio-3-optimized` `onnx/sa3-m/dit_fp16mixed.onnx` with the
|
| 17 |
+
producer recipe in [Stability-AI/stable-audio-3 PR #47](https://github.com/Stability-AI/stable-audio-3/pull/47)
|
| 18 |
+
(`build/make_calib.py` + `build/build_dit_fp8.py`), including the
|
| 19 |
+
dequant-front-end recipe step. This is a derivative of Stability AI's model
|
| 20 |
+
weights and is distributed under the Stability AI Community License; see the
|
| 21 |
+
base model for terms.
|
| 22 |
+
|
| 23 |
+
## Contents
|
| 24 |
+
|
| 25 |
+
- `onnx/sa3-m/dit_fp8.onnx` + `dit_fp8.onnx.data` — the quantized ONNX
|
| 26 |
+
(arch-independent; compile with `build_from_onnx.py sa3-m-fp8`, plain
|
| 27 |
+
STRONGLY_TYPED, no ModelOpt needed)
|
| 28 |
+
- `tensorRT/sm_120/sa3-m/dit_fp8.trt` — prebuilt engine for RTX 50xx
|
| 29 |
+
(sm_120), TensorRT 10.16.1.11. TRT engines are not portable across GPU
|
| 30 |
+
architectures or TRT minor versions; rebuild from the ONNX for anything else.
|
| 31 |
+
|
| 32 |
+
## Validation (vs the FP16-mixed engine, 47 prompts x 8 sigmas, L=646, RTX 5090)
|
| 33 |
+
|
| 34 |
+
- worst single-step latent cosine (x + dt*v): 0.9993 (n=376)
|
| 35 |
+
- 8-step compounded final-latent cosine over 47 prompts: mean 0.967,
|
| 36 |
+
median 0.972, worst 0.901 (the rollout is chaotic; a 1e-3 input
|
| 37 |
+
perturbation alone compounds to ~0.967, so this is a guide, not a gate)
|
| 38 |
+
- step latency B=1 L=646: ~10.6-11.0 ms vs ~18.7-19.4 ms FP16-mixed (~1.8x)
|
| 39 |
+
- under the stochastic pingpong sampler the engine produces a different but
|
| 40 |
+
comparable sample
|
| 41 |
+
|
| 42 |
+
Inputs/outputs are FP32, drop-in for the FP16-mixed DiT engine
|
| 43 |
+
(`sa3_trt --precision fp8`, paired with the FP16-mixed decoder).
|
onnx/sa3-m/dit_fp8.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:af67c494125d1081a3d2d769ceec454d32be3237b46d9de8843a69fd45571758
|
| 3 |
+
size 12382984
|
onnx/sa3-m/dit_fp8.onnx.data
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f425d71772126f9a5bec68f50fed4f822e117e8bf8cc48a1645e343988b156be
|
| 3 |
+
size 2905153535
|
tensorRT/sm_120/sa3-m/dit_fp8.trt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6ed8394389ccb9389805d6833a537cd0d249e796ad9e9d777ccfcb68d1addfdc
|
| 3 |
+
size 1498263724
|