Instructions to use stabilityai/stable-audio-3-optimized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Stable Audio 3
How to use stabilityai/stable-audio-3-optimized with Stable Audio 3:
# 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
Decoder ONNX: clip+scale in FP32 before int32 cast
Browse filesThe PCM-baked tail (audio → clamp → ×32767 → int32) ran in the engine's
FP16/BF16 trunk, where 32767 is not representable (rounds up to 32768),
causing the int32 output to exceed the int16 range. The consumer code
then wrapped 32768 → -32768 on int16 downcast, producing audible clicks
on loud transients.
Fix: cast audio to FP32 before the clip/scale chain in both
build_same_l_decoder.py and build_same_s_decoder.py producers. 32767 is
exact in FP32. A trailing clamp(-32767, 32767) is added as
belt-and-suspenders against any residual numerical drift.
Affected: dec_dynamic_triton_swa.{onnx,trt} (SAME-L), dec_dynamic_bf16.{onnx,trt} (SAME-S).
Verified: 0 samples outside [-32767, +32767] on real-music decode (was ~800 with the old engines).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f76e79f27e5f33161b314d0c89b484d96106646dac594f5eaf4a74bf65a8d26
|
| 3 |
+
size 1192532027
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ba1e92f888e4ad6caef75858a4dff0bd14d24422ffcfd7a7517fc65f56de5f90
|
| 3 |
+
size 218677278
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13fdf7dcea5c171c3de4b072fda04212aeeaf07ecd52b6cd47aa10fc08a848a5
|
| 3 |
+
size 1198546196
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:edafd78ff38d706ad2e8498b20cdc66d0177860067dc4ee1045457c35ab78ba7
|
| 3 |
+
size 115053940
|