Instructions to use ModelsLab/midashenglm-gen-wer-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ModelsLab/midashenglm-gen-wer-lora with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- README.md +22 -24
- adapter_config.json +26 -10
- adapter_model.safetensors +2 -2
- eval_results.json +0 -0
- history.json +56 -12
README.md
CHANGED
|
@@ -39,36 +39,34 @@ and every difference is the adapters.
|
|
| 39 |
|
| 40 |
| capability | metric | base | tuned | change |
|
| 41 |
|---|---|---:|---:|---:|
|
| 42 |
-
| speech | WER | 5.6% | 0.
|
| 43 |
-
| sfx | CLAP text | 0.
|
| 44 |
-
| sfx | CLAP real | 0.
|
| 45 |
-
| music | CLAP text | 0.
|
| 46 |
-
| music | CLAP real | 0.
|
| 47 |
-
| ambience | CLAP text | 0.
|
| 48 |
-
| ambience | CLAP real | 0.
|
| 49 |
-
| mixed | WER |
|
| 50 |
-
| mixed | CLAP text | 0.
|
| 51 |
-
| mixed | CLAP real | 0.
|
| 52 |
| speech | WER, 4-word lines | 13.9% | 0.0% | -13.9% |
|
| 53 |
| speech | WER, 9-word lines | 3.2% | 0.0% | -3.2% |
|
| 54 |
-
| speech | WER, 16-word lines | 1.9% | 0.
|
| 55 |
-
| speech | WER, 27-word lines | 3.4% | 0.
|
| 56 |
-
| speech | mean length | 4.73s | 4.
|
| 57 |
-
| sfx | mean length | 8.
|
| 58 |
-
| music | mean length | 9.
|
| 59 |
-
| ambience | mean length |
|
| 60 |
-
| mixed | mean length |
|
| 61 |
|
| 62 |
CLAP text is "does it match the caption". CLAP real is cosine to the centroid of
|
| 63 |
genuine MECAT audio of that category — "does it sound like the real thing",
|
| 64 |
which text similarity alone cannot see. WER cannot see either: a clip with no
|
| 65 |
words in it scores 0% however badly the room tone came out.
|
| 66 |
|
| 67 |
-
**WER improved by 5.
|
| 68 |
|
| 69 |
-
Caption adherence or realism fell on: sfx
|
| 70 |
-
|
| 71 |
-
Non-speech clips also got materially shorter (ambience 13.5s -> 7.4s, mixed 7.3s -> 5.4s), which matters because the scene prompts explicitly ask for continuity. Training on short read speech taught the stop head to end earlier, and that is correct for a spoken line and wrong for a bed.
|
| 72 |
|
| 73 |
**Use this for speech.** For beds, effects and mixed scenes, A/B it against the base model on your own prompts first — the held-out flow loss improved on every capability, and on the scene arms that did not translate.
|
| 74 |
|
|
@@ -77,11 +75,11 @@ Non-speech clips also got materially shorter (ambience 13.5s -> 7.4s, mixed 7.3s
|
|
| 77 |
| | |
|
| 78 |
|---|---|
|
| 79 |
| Method | LoRA r=32, alpha=64, on LLM attention/MLP and the flow-matching DiT |
|
| 80 |
-
| Trainable |
|
| 81 |
| Precision | float32 with TF32 matmuls, matching how the base model is served |
|
| 82 |
-
| Optimiser | AdamW-8bit, lr
|
| 83 |
| Steps | 2500 at an effective batch of 16 |
|
| 84 |
-
| Capability mix |
|
| 85 |
| Speech data | LibriTTS-R + MECAT S00; clips under 3 s oversampled 2.5x |
|
| 86 |
| Scene data | MECAT-Caption, all eight categories |
|
| 87 |
| Anchor | vector field pulled towards the frozen base, weight 0.5 on 35% of batches |
|
|
|
|
| 39 |
|
| 40 |
| capability | metric | base | tuned | change |
|
| 41 |
|---|---|---:|---:|---:|
|
| 42 |
+
| speech | WER | 5.6% | 0.2% | -5.4% |
|
| 43 |
+
| sfx | CLAP text | 0.4064 | 0.3837 | -0.0226 |
|
| 44 |
+
| sfx | CLAP real | 0.4152 | 0.4201 | +0.0049 |
|
| 45 |
+
| music | CLAP text | 0.4736 | 0.4673 | -0.0063 |
|
| 46 |
+
| music | CLAP real | 0.5928 | 0.6012 | +0.0084 |
|
| 47 |
+
| ambience | CLAP text | 0.2442 | 0.2070 | -0.0371 |
|
| 48 |
+
| ambience | CLAP real | 0.3667 | 0.3732 | +0.0065 |
|
| 49 |
+
| mixed | WER | 4.8% | 4.7% | -0.1% |
|
| 50 |
+
| mixed | CLAP text | 0.1708 | 0.1745 | +0.0037 |
|
| 51 |
+
| mixed | CLAP real | 0.7014 | 0.6943 | -0.0072 |
|
| 52 |
| speech | WER, 4-word lines | 13.9% | 0.0% | -13.9% |
|
| 53 |
| speech | WER, 9-word lines | 3.2% | 0.0% | -3.2% |
|
| 54 |
+
| speech | WER, 16-word lines | 1.9% | 0.6% | -1.2% |
|
| 55 |
+
| speech | WER, 27-word lines | 3.4% | 0.3% | -3.1% |
|
| 56 |
+
| speech | mean length | 4.73s | 4.47s | -0.26s |
|
| 57 |
+
| sfx | mean length | 8.08s | 6.93s | -1.15s |
|
| 58 |
+
| music | mean length | 9.42s | 9.19s | -0.23s |
|
| 59 |
+
| ambience | mean length | 10.43s | 10.29s | -0.14s |
|
| 60 |
+
| mixed | mean length | 4.97s | 4.47s | -0.50s |
|
| 61 |
|
| 62 |
CLAP text is "does it match the caption". CLAP real is cosine to the centroid of
|
| 63 |
genuine MECAT audio of that category — "does it sound like the real thing",
|
| 64 |
which text similarity alone cannot see. WER cannot see either: a clip with no
|
| 65 |
words in it scores 0% however badly the room tone came out.
|
| 66 |
|
| 67 |
+
**WER improved by 5.4 points, and that part is solid. The scene arms are not.**
|
| 68 |
|
| 69 |
+
Caption adherence or realism fell on: sfx clap_text -0.023, ambience clap_text -0.037.
|
|
|
|
|
|
|
| 70 |
|
| 71 |
**Use this for speech.** For beds, effects and mixed scenes, A/B it against the base model on your own prompts first — the held-out flow loss improved on every capability, and on the scene arms that did not translate.
|
| 72 |
|
|
|
|
| 75 |
| | |
|
| 76 |
|---|---|
|
| 77 |
| Method | LoRA r=32, alpha=64, on LLM attention/MLP and the flow-matching DiT |
|
| 78 |
+
| Trainable | 72876032 of 2.89 B |
|
| 79 |
| Precision | float32 with TF32 matmuls, matching how the base model is served |
|
| 80 |
+
| Optimiser | AdamW-8bit, lr 5e-05, cosine decay, grad clip 1.0 |
|
| 81 |
| Steps | 2500 at an effective batch of 16 |
|
| 82 |
+
| Capability mix | sfx 22%, ambience 20%, speech 20%, mixed 20%, music 18% |
|
| 83 |
| Speech data | LibriTTS-R + MECAT S00; clips under 3 s oversampled 2.5x |
|
| 84 |
| Scene data | MECAT-Caption, all eight categories |
|
| 85 |
| Anchor | vector field pulled towards the frozen base, weight 0.5 on 35% of batches |
|
adapter_config.json
CHANGED
|
@@ -1,6 +1,14 @@
|
|
| 1 |
{
|
| 2 |
"alora_invocation_tokens": null,
|
| 3 |
-
"alpha_pattern": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
"arrow_config": null,
|
| 5 |
"auto_mapping": {
|
| 6 |
"base_model_class": "MiDashengLMGenForAudioGeneration",
|
|
@@ -31,23 +39,31 @@
|
|
| 31 |
"peft_version": "0.20.0",
|
| 32 |
"qalora_group_size": 16,
|
| 33 |
"r": 32,
|
| 34 |
-
"rank_pattern": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
"revision": null,
|
| 36 |
"target_modules": [
|
|
|
|
| 37 |
"to_q",
|
| 38 |
"cond_embedder",
|
| 39 |
-
"
|
| 40 |
"gate_proj",
|
| 41 |
-
"
|
|
|
|
|
|
|
| 42 |
"v_proj",
|
| 43 |
-
"o_proj",
|
| 44 |
-
"q_proj",
|
| 45 |
-
"to_v",
|
| 46 |
"to_out.0",
|
| 47 |
-
"
|
| 48 |
-
"ff.0.0",
|
| 49 |
"ff.2",
|
| 50 |
-
"
|
|
|
|
| 51 |
],
|
| 52 |
"target_parameters": null,
|
| 53 |
"task_type": null,
|
|
|
|
| 1 |
{
|
| 2 |
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {
|
| 4 |
+
"cond_embedder": 128,
|
| 5 |
+
"ff.0.0": 128,
|
| 6 |
+
"ff.2": 128,
|
| 7 |
+
"to_k": 128,
|
| 8 |
+
"to_out.0": 128,
|
| 9 |
+
"to_q": 128,
|
| 10 |
+
"to_v": 128
|
| 11 |
+
},
|
| 12 |
"arrow_config": null,
|
| 13 |
"auto_mapping": {
|
| 14 |
"base_model_class": "MiDashengLMGenForAudioGeneration",
|
|
|
|
| 39 |
"peft_version": "0.20.0",
|
| 40 |
"qalora_group_size": 16,
|
| 41 |
"r": 32,
|
| 42 |
+
"rank_pattern": {
|
| 43 |
+
"cond_embedder": 64,
|
| 44 |
+
"ff.0.0": 64,
|
| 45 |
+
"ff.2": 64,
|
| 46 |
+
"to_k": 64,
|
| 47 |
+
"to_out.0": 64,
|
| 48 |
+
"to_q": 64,
|
| 49 |
+
"to_v": 64
|
| 50 |
+
},
|
| 51 |
"revision": null,
|
| 52 |
"target_modules": [
|
| 53 |
+
"to_v",
|
| 54 |
"to_q",
|
| 55 |
"cond_embedder",
|
| 56 |
+
"o_proj",
|
| 57 |
"gate_proj",
|
| 58 |
+
"up_proj",
|
| 59 |
+
"k_proj",
|
| 60 |
+
"down_proj",
|
| 61 |
"v_proj",
|
|
|
|
|
|
|
|
|
|
| 62 |
"to_out.0",
|
| 63 |
+
"to_k",
|
|
|
|
| 64 |
"ff.2",
|
| 65 |
+
"ff.0.0",
|
| 66 |
+
"q_proj"
|
| 67 |
],
|
| 68 |
"target_parameters": null,
|
| 69 |
"task_type": null,
|
adapter_model.safetensors
CHANGED
|
@@ -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:0dba519c37206637b1a1ced846b51cd61adb7d71c3afe1b28a224e4b5b0588a4
|
| 3 |
+
size 291595160
|
eval_results.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
history.json
CHANGED
|
@@ -284,24 +284,68 @@
|
|
| 284 |
},
|
| 285 |
"accepted": true,
|
| 286 |
"stale": 3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 287 |
}
|
| 288 |
],
|
| 289 |
"best": {
|
| 290 |
-
"score": 0.
|
| 291 |
-
"step":
|
| 292 |
"losses": {
|
| 293 |
-
"speech": 0.
|
| 294 |
-
"sfx": 0.
|
| 295 |
-
"music": 0.
|
| 296 |
-
"ambience": 0.
|
| 297 |
-
"mixed": 0.
|
| 298 |
},
|
| 299 |
"deltas": {
|
| 300 |
-
"speech": -0.
|
| 301 |
-
"sfx": -0.
|
| 302 |
-
"music": -0.
|
| 303 |
-
"ambience": -0.
|
| 304 |
-
"mixed": -0.
|
| 305 |
},
|
| 306 |
"stop_ratio": {
|
| 307 |
"speech": 0.9989583333333334,
|
|
|
|
| 284 |
},
|
| 285 |
"accepted": true,
|
| 286 |
"stale": 3
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"step": 1500,
|
| 290 |
+
"losses": {
|
| 291 |
+
"speech": 0.09332506265491247,
|
| 292 |
+
"sfx": 0.20040102116763592,
|
| 293 |
+
"music": 0.16829048842191696,
|
| 294 |
+
"ambience": 0.2020278088748455,
|
| 295 |
+
"mixed": 0.1248040571808815
|
| 296 |
+
},
|
| 297 |
+
"deltas": {
|
| 298 |
+
"speech": -0.023980710613215557,
|
| 299 |
+
"sfx": -0.015695348412964598,
|
| 300 |
+
"music": -0.013629331430336832,
|
| 301 |
+
"ambience": -0.007596263671715041,
|
| 302 |
+
"mixed": -0.008029003051920398
|
| 303 |
+
},
|
| 304 |
+
"mean": 0.15776968766003846,
|
| 305 |
+
"stop_ratio": {
|
| 306 |
+
"speech": 0.9989583333333334,
|
| 307 |
+
"sfx": 0.9924806749622928,
|
| 308 |
+
"music": 0.9984447337962963,
|
| 309 |
+
"ambience": 1.0,
|
| 310 |
+
"mixed": 0.9989255536130536
|
| 311 |
+
},
|
| 312 |
+
"stop_shrink": {
|
| 313 |
+
"speech": 0.0,
|
| 314 |
+
"sfx": 0.0,
|
| 315 |
+
"music": 0.0003259216339538286,
|
| 316 |
+
"ambience": 0.0,
|
| 317 |
+
"mixed": 0.0
|
| 318 |
+
},
|
| 319 |
+
"gen_lengths": {
|
| 320 |
+
"sfx-gravel": 10.0,
|
| 321 |
+
"sfx-fire": 10.0,
|
| 322 |
+
"ambience-rain": 9.8
|
| 323 |
+
},
|
| 324 |
+
"gen_shrink": {
|
| 325 |
+
"sfx-gravel": 0.0,
|
| 326 |
+
"sfx-fire": 0.0,
|
| 327 |
+
"ambience-rain": 0.019999999999999928
|
| 328 |
+
},
|
| 329 |
+
"accepted": true,
|
| 330 |
+
"stale": 4
|
| 331 |
}
|
| 332 |
],
|
| 333 |
"best": {
|
| 334 |
+
"score": 0.15776968766003846,
|
| 335 |
+
"step": 1500,
|
| 336 |
"losses": {
|
| 337 |
+
"speech": 0.09332506265491247,
|
| 338 |
+
"sfx": 0.20040102116763592,
|
| 339 |
+
"music": 0.16829048842191696,
|
| 340 |
+
"ambience": 0.2020278088748455,
|
| 341 |
+
"mixed": 0.1248040571808815
|
| 342 |
},
|
| 343 |
"deltas": {
|
| 344 |
+
"speech": -0.023980710613215557,
|
| 345 |
+
"sfx": -0.015695348412964598,
|
| 346 |
+
"music": -0.013629331430336832,
|
| 347 |
+
"ambience": -0.007596263671715041,
|
| 348 |
+
"mixed": -0.008029003051920398
|
| 349 |
},
|
| 350 |
"stop_ratio": {
|
| 351 |
"speech": 0.9989583333333334,
|