Codec programs with one method, forward (was decode / encode); outputs identical
Browse files
README.md
CHANGED
|
@@ -56,11 +56,11 @@ first.
|
|
| 56 |
The Higgs Audio v2 tokenizer turns 24 kHz mono audio into 8 codebooks of 1024
|
| 57 |
codes at 25 frames per second (960 samples per frame), and back.
|
| 58 |
|
| 59 |
-
- **Decoder:** `
|
| 60 |
4 to 1024 frames (0.16 to 41 s). Core ML on the CPU and GPU, fp16 compute.
|
| 61 |
`fp16` carries the codec's own weights; `int8` carries int8 weights from GPTQ
|
| 62 |
and quantization-aware training of the scales, one scale per 8 input channels.
|
| 63 |
-
- **Encoder:** `
|
| 64 |
25 to 500 frames (1 to 20 s): the waveform cut to whole frames and reshaped.
|
| 65 |
Core ML on the CPU only, fp32 compute, as the encoder's activations need fp32.
|
| 66 |
Both variants carry quantization-aware-trained weights: `int8` everywhere,
|
|
|
|
| 56 |
The Higgs Audio v2 tokenizer turns 24 kHz mono audio into 8 codebooks of 1024
|
| 57 |
codes at 25 frames per second (960 samples per frame), and back.
|
| 58 |
|
| 59 |
+
- **Decoder:** `forward(codes int64[8, T]) -> audio float32[T * 960]`, for T from
|
| 60 |
4 to 1024 frames (0.16 to 41 s). Core ML on the CPU and GPU, fp16 compute.
|
| 61 |
`fp16` carries the codec's own weights; `int8` carries int8 weights from GPTQ
|
| 62 |
and quantization-aware training of the scales, one scale per 8 input channels.
|
| 63 |
+
- **Encoder:** `forward(wav float32[frames, 960]) -> codes int64[8, frames]`, for
|
| 64 |
25 to 500 frames (1 to 20 s): the waveform cut to whole frames and reshaped.
|
| 65 |
Core ML on the CPU only, fp32 compute, as the encoder's activations need fp32.
|
| 66 |
Both variants carry quantization-aware-trained weights: `int8` everywhere,
|
decoder/coreml/fp16/codec_decoder_coreml_fp16.pte
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 43553653
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:595a018a2b8647c64504e57b2a61f1d80fa09165d74305578169e80397cf86df
|
| 3 |
size 43553653
|
decoder/coreml/int8/codec_decoder_coreml_int8.pte
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 23296289
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cca7df67565dcfe81838db2823ad17123240bb98214ad9e59dc108ff3b73e358
|
| 3 |
size 23296289
|
encoder/coreml/int4/codec_encoder_coreml_int4.pte
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 135788813
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8be2da70881f93bb4ca9b1e15c0a7c621d13518c84780d95a12ac12d272466d9
|
| 3 |
size 135788813
|
encoder/coreml/int8/codec_encoder_coreml_int8.pte
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 175933783
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df541de758cec9f55c937618d6c182c1b5bd680ea527a1181c336b0358b7808c
|
| 3 |
size 175933783
|