IS02 commited on
Commit
698d1f5
Β·
verified Β·
1 Parent(s): 688a739

Reorganize model/: safetensors/ for the weights, executorch/mlx/ for the programs

Browse files
README.md CHANGED
@@ -54,15 +54,17 @@ brackets). OmniVoice here runs 16 guided passes, half its default:
54
 
55
  ## Model variants
56
 
57
- Each variant is a folder under `model/` with its own `config.json` and `model.safetensors`. The tokenizer files are
58
- shared and live in `model/`.
59
 
60
  | Folder | Weights | Activations | Size |
61
  |---|---|---|---|
62
- | `model/fp32` | fp32 | full precision | 1.19 GB |
63
- | `model/int8` | int8, one scale per output channel | full precision | 307 MB |
64
- | `model/int8a8` | int8, one scale per output channel | int8, one scale per token | 307 MB |
65
- | `model/int4` | int4, one scale per group of 32 inputs | full precision | 191 MB |
 
 
66
 
67
  In the quantized variants, the decoder's linear layers hold the quantized weights. Their scales are fp16, the text
68
  table and the audio embeddings are int8 with one fp16 scale per row, and the remaining weights are bf16.
 
54
 
55
  ## Model variants
56
 
57
+ The weights are in `model/safetensors/`, one folder per variant with its own `config.json` and `model.safetensors`.
58
+ The tokenizer files are shared and live in `model/`.
59
 
60
  | Folder | Weights | Activations | Size |
61
  |---|---|---|---|
62
+ | `model/safetensors/fp32` | fp32 | full precision | 1.19 GB |
63
+ | `model/safetensors/int8` | int8, one scale per output channel | full precision | 307 MB |
64
+ | `model/safetensors/int8a8` | int8, one scale per output channel | int8, one scale per token | 307 MB |
65
+ | `model/safetensors/int4` | int4, one scale per group of 32 inputs | full precision | 191 MB |
66
+
67
+ ExecuTorch programs are in `model/executorch/<backend>/<precision>/`: MLX in fp16, int8 and int4 (`model/executorch/mlx/`).
68
 
69
  In the quantized variants, the decoder's linear layers hold the quantized weights. Their scales are fp16, the text
70
  table and the audio embeddings are int8 with one fp16 scale per row, and the remaining weights are bf16.
model/{mlx β†’ executorch/mlx}/fp16/echo_mlx_fp16.pte RENAMED
File without changes
model/{mlx β†’ executorch/mlx}/int4/echo_mlx_int4.pte RENAMED
File without changes
model/{mlx β†’ executorch/mlx}/int8/echo_mlx_int8.pte RENAMED
File without changes
model/{fp32 β†’ safetensors/fp32}/config.json RENAMED
File without changes
model/{fp32 β†’ safetensors/fp32}/model.safetensors RENAMED
File without changes
model/{int4 β†’ safetensors/int4}/config.json RENAMED
File without changes
model/{int4 β†’ safetensors/int4}/model.safetensors RENAMED
File without changes
model/{int8 β†’ safetensors/int8}/config.json RENAMED
File without changes
model/{int8 β†’ safetensors/int8}/model.safetensors RENAMED
File without changes
model/{int8a8 β†’ safetensors/int8a8}/config.json RENAMED
File without changes
model/{int8a8 β†’ safetensors/int8a8}/model.safetensors RENAMED
File without changes
run/fixed_reference.ipynb CHANGED
@@ -39,7 +39,7 @@
39
  "from pathlib import Path\n",
40
  "\n",
41
  "ROOT = Path(\"..\") # the release repo root, seen from this notebook\n",
42
- "CHECKPOINT = ROOT / \"model/fp32\" # config.json and model.safetensors: fp32, int8, int8a8 or int4\n",
43
  "TOKENIZER = ROOT / \"model\" # the text tokenizer\n",
44
  "CODEC = \"eustlb/higgs-audio-v2-tokenizer\" # the Higgs codec: a Hugging Face hub id or a local copy\n",
45
  "REFERENCE = ROOT / \"../../data/test/english/codecs/en_5_gemma.npy\" # FILL BY YOURSELF\n",
 
39
  "from pathlib import Path\n",
40
  "\n",
41
  "ROOT = Path(\"..\") # the release repo root, seen from this notebook\n",
42
+ "CHECKPOINT = ROOT / \"model/safetensors/fp32\" # config.json and model.safetensors: fp32, int8, int8a8 or int4\n",
43
  "TOKENIZER = ROOT / \"model\" # the text tokenizer\n",
44
  "CODEC = \"eustlb/higgs-audio-v2-tokenizer\" # the Higgs codec: a Hugging Face hub id or a local copy\n",
45
  "REFERENCE = ROOT / \"../../data/test/english/codecs/en_5_gemma.npy\" # FILL BY YOURSELF\n",
run/voice_cloning.ipynb CHANGED
@@ -37,7 +37,7 @@
37
  "from pathlib import Path\n",
38
  "\n",
39
  "ROOT = Path(\"..\") # the release repo root, seen from this notebook\n",
40
- "CHECKPOINT = ROOT / \"model/fp32\" # config.json and model.safetensors: fp32, int8, int8a8 or int4\n",
41
  "TOKENIZER = ROOT / \"model\" # the text tokenizer\n",
42
  "CODEC = \"eustlb/higgs-audio-v2-tokenizer\" # the Higgs codec: a Hugging Face hub id or a local copy\n",
43
  "REFERENCE = ROOT / \"../../data/test/german/audio/de_1_anna.wav\" # a clean recording of 3-10 s\n",
 
37
  "from pathlib import Path\n",
38
  "\n",
39
  "ROOT = Path(\"..\") # the release repo root, seen from this notebook\n",
40
+ "CHECKPOINT = ROOT / \"model/safetensors/fp32\" # config.json and model.safetensors: fp32, int8, int8a8 or int4\n",
41
  "TOKENIZER = ROOT / \"model\" # the text tokenizer\n",
42
  "CODEC = \"eustlb/higgs-audio-v2-tokenizer\" # the Higgs codec: a Hugging Face hub id or a local copy\n",
43
  "REFERENCE = ROOT / \"../../data/test/german/audio/de_1_anna.wav\" # a clean recording of 3-10 s\n",