Add config.json (counted as a download) and fetch it in the quick start
Browse files- README.md +2 -1
- config.json +29 -0
README.md
CHANGED
|
@@ -27,6 +27,7 @@ Code: [github.com/moiseshorta/CoDiCodec-Flow](https://github.com/moiseshorta/CoD
|
|
| 27 |
|---|---|---|---|
|
| 28 |
| `ema.pt` | 388 MB | EMA weights, step 140 000 | generation: `sample`, `realtime`, `server`; base for LoRA training |
|
| 29 |
| `last.pt` | 1.5 GB | raw weights + optimizer + EMA, step 140 000 | resuming or full fine-tuning (`train --init-from`) |
|
|
|
|
| 30 |
|
| 31 |
The CoDiCodec checkpoint is not included; it downloads automatically on first use.
|
| 32 |
|
|
@@ -35,7 +36,7 @@ The CoDiCodec checkpoint is not included; it downloads automatically on first us
|
|
| 35 |
```bash
|
| 36 |
git clone https://github.com/moiseshorta/CoDiCodec-Flow && cd CoDiCodec-Flow
|
| 37 |
pip install -r requirements.txt && pip install -e ./codicodec
|
| 38 |
-
hf download hexorcismos/CoDiCodec-Flow ema.pt --local-dir weights
|
| 39 |
|
| 40 |
# continue a prompt, chunk by chunk (the condition the model was trained on)
|
| 41 |
python cli.py sample --ckpt weights/ema.pt --prompt-wav prompt.wav \
|
|
|
|
| 27 |
|---|---|---|---|
|
| 28 |
| `ema.pt` | 388 MB | EMA weights, step 140 000 | generation: `sample`, `realtime`, `server`; base for LoRA training |
|
| 29 |
| `last.pt` | 1.5 GB | raw weights + optimizer + EMA, step 140 000 | resuming or full fine-tuning (`train --init-from`) |
|
| 30 |
+
| `config.json` | 1 KB | architecture and training-objective settings (also stored inside the checkpoints) | reference |
|
| 31 |
|
| 32 |
The CoDiCodec checkpoint is not included; it downloads automatically on first use.
|
| 33 |
|
|
|
|
| 36 |
```bash
|
| 37 |
git clone https://github.com/moiseshorta/CoDiCodec-Flow && cd CoDiCodec-Flow
|
| 38 |
pip install -r requirements.txt && pip install -e ./codicodec
|
| 39 |
+
hf download hexorcismos/CoDiCodec-Flow config.json ema.pt --local-dir weights
|
| 40 |
|
| 41 |
# continue a prompt, chunk by chunk (the condition the model was trained on)
|
| 42 |
python cli.py sample --ckpt weights/ema.pt --prompt-wav prompt.wav \
|
config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architecture": "FlowDiT",
|
| 3 |
+
"step": 140000,
|
| 4 |
+
"codec": "CoDiCodec (github.com/sony/codicodec), 64-channel continuous latents, 48 kHz stereo",
|
| 5 |
+
"model": {
|
| 6 |
+
"latent_dim": 64,
|
| 7 |
+
"block_size": 8,
|
| 8 |
+
"dim": 768,
|
| 9 |
+
"n_layers": 10,
|
| 10 |
+
"n_heads": 12,
|
| 11 |
+
"head_dim": 64,
|
| 12 |
+
"mlp_mult": 4,
|
| 13 |
+
"dropout": 0.1,
|
| 14 |
+
"max_seq_len": 1024,
|
| 15 |
+
"cond_dim": 768
|
| 16 |
+
},
|
| 17 |
+
"cfm": {
|
| 18 |
+
"objective": "teacher_forcing",
|
| 19 |
+
"t_sample_mode": "uniform",
|
| 20 |
+
"logit_normal_loc": 0.0,
|
| 21 |
+
"logit_normal_scale": 1.0,
|
| 22 |
+
"min_snr_gamma": 0.0,
|
| 23 |
+
"p_unconditional": 0.1,
|
| 24 |
+
"prefix_min_frac": 0.05,
|
| 25 |
+
"prefix_max_frac": 0.75,
|
| 26 |
+
"sample_nfe": 8,
|
| 27 |
+
"sample_solver": "heun"
|
| 28 |
+
}
|
| 29 |
+
}
|