quant: publish the quantized encodings
Browse files- README.md +42 -7
- SHA256SUMS +1 -0
- stable-audio-3-medium-base-dit-1.5B-v1.0-Q4_K_M.gguf +3 -0
README.md
CHANGED
|
@@ -6,6 +6,7 @@ license_name: stable-audio-community
|
|
| 6 |
license_link: LICENSE.md
|
| 7 |
pipeline_tag: text-to-audio
|
| 8 |
base_model: stabilityai/stable-audio-3-medium-base
|
|
|
|
| 9 |
tags:
|
| 10 |
- audio-generation
|
| 11 |
- diffusion
|
|
@@ -16,7 +17,7 @@ tags:
|
|
| 16 |
|
| 17 |
# Stable Audio 3 Medium Base DiT — GGUF for sa3.cpp
|
| 18 |
|
| 19 |
-
F16 and
|
| 20 |
[stabilityai/stable-audio-3-medium-base](https://huggingface.co/stabilityai/stable-audio-3-medium-base),
|
| 21 |
for native LoRA/DoRA training with [sa3.cpp](https://github.com/betweentwomidnights/sa3.cpp).
|
| 22 |
|
|
@@ -26,11 +27,12 @@ Do not use the post-trained/ARC medium DiT as the training base.
|
|
| 26 |
|
| 27 |
## Files
|
| 28 |
|
| 29 |
-
| file | purpose |
|
| 30 |
-
|---|---|
|
| 31 |
-
| `stable-audio-3-medium-base-dit-1.5B-v1.0-
|
| 32 |
-
| `stable-audio-3-medium-base-dit-1.5B-v1.0-
|
| 33 |
-
| `
|
|
|
|
| 34 |
|
| 35 |
The tokenizer, T5Gemma encoder, conditioner, SAME autoencoder, and inference DiT are fetched from
|
| 36 |
the normal medium model set; they are intentionally not duplicated here.
|
|
@@ -40,11 +42,44 @@ python tools/download_models.py --variant medium --encoding f16 --training-base
|
|
| 40 |
build-cuda/bin/sa3-train --model medium --models-dir models --dataset /path/to/dataset --out train-runs/example
|
| 41 |
```
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
## Provenance
|
| 44 |
|
| 45 |
- Source revision: `b32993f73c3bdc3864043a72d8032606bba737c8`
|
| 46 |
-
- Conversion: `tools/convert_dit.py --variant medium --training-base`, then `tools/quantize_gguf.py`
|
|
|
|
| 47 |
- Relationship: tensor rename/serialization and precision conversion only; no retraining
|
|
|
|
| 48 |
|
| 49 |
## License and attribution
|
| 50 |
|
|
|
|
| 6 |
license_link: LICENSE.md
|
| 7 |
pipeline_tag: text-to-audio
|
| 8 |
base_model: stabilityai/stable-audio-3-medium-base
|
| 9 |
+
base_model_relation: quantized
|
| 10 |
tags:
|
| 11 |
- audio-generation
|
| 12 |
- diffusion
|
|
|
|
| 17 |
|
| 18 |
# Stable Audio 3 Medium Base DiT — GGUF for sa3.cpp
|
| 19 |
|
| 20 |
+
F32, F16 and Q4_K_M GGUF conversions of the training DiT from
|
| 21 |
[stabilityai/stable-audio-3-medium-base](https://huggingface.co/stabilityai/stable-audio-3-medium-base),
|
| 22 |
for native LoRA/DoRA training with [sa3.cpp](https://github.com/betweentwomidnights/sa3.cpp).
|
| 23 |
|
|
|
|
| 27 |
|
| 28 |
## Files
|
| 29 |
|
| 30 |
+
| file | size | purpose |
|
| 31 |
+
|---|---:|---|
|
| 32 |
+
| `stable-audio-3-medium-base-dit-1.5B-v1.0-Q4_K_M.gguf` | 962 MB | smallest, and the fastest to train on |
|
| 33 |
+
| `stable-audio-3-medium-base-dit-1.5B-v1.0-F16.gguf` | 2773 MB | the reference training base |
|
| 34 |
+
| `stable-audio-3-medium-base-dit-1.5B-v1.0-F32.gguf` | 5545 MB | CPU/reference validation |
|
| 35 |
+
| `SHA256SUMS` | | release checksums |
|
| 36 |
|
| 37 |
The tokenizer, T5Gemma encoder, conditioner, SAME autoencoder, and inference DiT are fetched from
|
| 38 |
the normal medium model set; they are intentionally not duplicated here.
|
|
|
|
| 42 |
build-cuda/bin/sa3-train --model medium --models-dir models --dataset /path/to/dataset --out train-runs/example
|
| 43 |
```
|
| 44 |
|
| 45 |
+
## Training on the Q4_K_M base
|
| 46 |
+
|
| 47 |
+
Training against a quantized base is supported on **every** backend — CPU, CUDA, Vulkan and Metal.
|
| 48 |
+
The frozen base only ever enters the adapter path as a `mul_mat` argument, and the one backward that
|
| 49 |
+
needed it, `out_prod(W, transpose(grad))`, now accepts a quantized `src0` on all three GPU backends.
|
| 50 |
+
|
| 51 |
+
It is *faster* than F16 rather than a tradeoff, on a 2.9x smaller file — steady state, medium,
|
| 52 |
+
128 frames, `dora-rows`:
|
| 53 |
+
|
| 54 |
+
| backend | Q4_K_M | F16 |
|
| 55 |
+
|---|---:|---:|
|
| 56 |
+
| CUDA | 0.93 s/step | 1.08 s/step |
|
| 57 |
+
| Vulkan | 1.72 s/step | 1.90 s/step |
|
| 58 |
+
| Metal (M4) | 2.95 s/step | 3.39 s/step |
|
| 59 |
+
| CPU | 29.2 s/step | 46.9 s/step |
|
| 60 |
+
|
| 61 |
+
A 2000-step DoRA trained on the Q4_K_M base is **audibly indistinguishable** from the same run on
|
| 62 |
+
the F16 base; loss tracks 2.5-4% higher throughout, the offset a slightly degraded forward should
|
| 63 |
+
produce. Peak VRAM drops from 5243 to 3414 MiB, which is the part that decides whether a small
|
| 64 |
+
machine can train at all.
|
| 65 |
+
|
| 66 |
+
```bash
|
| 67 |
+
python tools/download_models.py --variant medium --encoding q4_k_m --training-base
|
| 68 |
+
build-cuda/bin/sa3-train --model medium --models-dir models \
|
| 69 |
+
--dit models/stable-audio-3-medium-base-dit-1.5B-v1.0-Q4_K_M.gguf \
|
| 70 |
+
--dataset /path/to/dataset --adapter-type dora-rows --rank 16 --out train-runs/example
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
The resulting adapter is an ordinary GGUF LoRA — nothing about it is quantization-specific, so it
|
| 74 |
+
applies to an F16 or a quantized inference DiT either way.
|
| 75 |
+
|
| 76 |
## Provenance
|
| 77 |
|
| 78 |
- Source revision: `b32993f73c3bdc3864043a72d8032606bba737c8`
|
| 79 |
+
- Conversion: `tools/convert_dit.py --variant medium --training-base`, then `tools/quantize_gguf.py`
|
| 80 |
+
for F16 and `sa3-quantize --mix q4_k_m` for the quant
|
| 81 |
- Relationship: tensor rename/serialization and precision conversion only; no retraining
|
| 82 |
+
- The Q4_K_M base passes `sa3-quant-check` against F16 with `below-threshold=0` at cosine `0.990`
|
| 83 |
|
| 84 |
## License and attribution
|
| 85 |
|
SHA256SUMS
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 1 |
b6d672da618e9a3007250df4b44a2b295f429a60e3669ba60987943679a52d7d stable-audio-3-medium-base-dit-1.5B-v1.0-F16.gguf
|
| 2 |
b8901b021eeb15a187a69e224e594545ff5fe0ada57c864db4edf6420997ccb2 stable-audio-3-medium-base-dit-1.5B-v1.0-F32.gguf
|
|
|
|
|
|
| 1 |
b6d672da618e9a3007250df4b44a2b295f429a60e3669ba60987943679a52d7d stable-audio-3-medium-base-dit-1.5B-v1.0-F16.gguf
|
| 2 |
b8901b021eeb15a187a69e224e594545ff5fe0ada57c864db4edf6420997ccb2 stable-audio-3-medium-base-dit-1.5B-v1.0-F32.gguf
|
| 3 |
+
4b97f48b777cbe41c7f7b84bd95971e649ce5e899c97904f6b2a1caea0339719 stable-audio-3-medium-base-dit-1.5B-v1.0-Q4_K_M.gguf
|
stable-audio-3-medium-base-dit-1.5B-v1.0-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b97f48b777cbe41c7f7b84bd95971e649ce5e899c97904f6b2a1caea0339719
|
| 3 |
+
size 1009176288
|