Text-to-Audio
PEFT
Safetensors
audio-generation
lora
flow-matching
adhikjoshi commited on
Commit
e9e75f4
·
verified ·
1 Parent(s): dc6bbfc

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. README.md +22 -24
  2. adapter_config.json +26 -10
  3. adapter_model.safetensors +2 -2
  4. eval_results.json +0 -0
  5. 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.0% | -5.6% |
43
- | sfx | CLAP text | 0.4148 | 0.5299 | +0.1151 |
44
- | sfx | CLAP real | 0.4227 | 0.3920 | -0.0306 |
45
- | music | CLAP text | 0.3331 | 0.3212 | -0.0119 |
46
- | music | CLAP real | 0.6323 | 0.6305 | -0.0018 |
47
- | ambience | CLAP text | 0.1993 | 0.1340 | -0.0653 |
48
- | ambience | CLAP real | 0.3546 | 0.4003 | +0.0457 |
49
- | mixed | WER | 15.6% | 0.7% | -14.9% |
50
- | mixed | CLAP text | 0.1076 | 0.0505 | -0.0571 |
51
- | mixed | CLAP real | 0.7155 | 0.7072 | -0.0084 |
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.0% | -1.9% |
55
- | speech | WER, 27-word lines | 3.4% | 0.0% | -3.4% |
56
- | speech | mean length | 4.73s | 4.06s | -0.67s |
57
- | sfx | mean length | 8.36s | 9.91s | +1.56s |
58
- | music | mean length | 9.44s | 9.20s | -0.24s |
59
- | ambience | mean length | 13.49s | 7.40s | -6.09s |
60
- | mixed | mean length | 7.33s | 5.44s | -1.89s |
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.6 points, and that part is solid. The scene arms are not.**
68
 
69
- Caption adherence or realism fell on: sfx clap_real -0.031, music clap_text -0.012, ambience clap_text -0.065, mixed clap_text -0.057.
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 | 53870592 of 2.89 B |
81
  | Precision | float32 with TF32 matmuls, matching how the base model is served |
82
- | Optimiser | AdamW-8bit, lr 0.0001, cosine decay, grad clip 1.0 |
83
  | Steps | 2500 at an effective batch of 16 |
84
- | Capability mix | speech 40%, mixed 22%, music 16%, sfx 14%, ambience 8% |
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
- "k_proj",
40
  "gate_proj",
41
- "to_k",
 
 
42
  "v_proj",
43
- "o_proj",
44
- "q_proj",
45
- "to_v",
46
  "to_out.0",
47
- "up_proj",
48
- "ff.0.0",
49
  "ff.2",
50
- "down_proj"
 
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:e07801aed31344da005c160dc3f996adb5875717b0bb4dcf9aed45fcc6f3de0e
3
- size 215573104
 
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.15784314647316933,
291
- "step": 1250,
292
  "losses": {
293
- "speech": 0.09341771434992552,
294
- "sfx": 0.20048575475811958,
295
- "music": 0.16836701519787312,
296
- "ambience": 0.20210730656981468,
297
- "mixed": 0.12483794149011374
298
  },
299
  "deltas": {
300
- "speech": -0.023011733588667538,
301
- "sfx": -0.015279164569325519,
302
- "music": -0.013180798849136468,
303
- "ambience": -0.007205754018829721,
304
- "mixed": -0.0077596828649870355
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,