Repository navigation
feat(zoo): load the Higgs Audio v2 codec decoder from int8 and int4 checkpoints - #102
Merged
Merged
Conversation
5 of 11 tasks
chmjkb
approved these changes
Nov 5, 2026
chmjkb
reviewed
Nov 5, 2026
xxpopielxx
force-pushed
the
feat/quant-codec
branch
2 times, most recently
from
November 10, 2026 17:12
fd8b7b0 to
28d202e
Compare
…heckpoints The CPU fold reads a quantized project_out or fc2 as its ints times their scales. The convs load quantized through Conv1d and ConvTranspose1d. Unit and GPU tests compare against the dequantized floats
…loats A quantized conv_t1 stored as [out, in·kernel] with the kernel reversed loads as its dequantized torch weight. The test checkpoints quantize every conv in torch layout.
xxpopielxx
force-pushed
the
feat/quant-codec
branch
from
November 12, 2026 13:28
28d202e to
87b70c2
Compare
chmjkb
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Stacked on #97 (base
feat/quant-conv)The codec decoder now loads from a quantized checkpoint. Its convs load quantized through Conv1d and ConvTranspose1d from #97. The load folds project_out and fc2 into a CPU table, so a quantized project_out or fc2 now folds as its ints times their scales.
Introduces a breaking change?
Type of change
Testing instructions
pnpm --filter runntime exec vitest run --project unit test/zoo/higgs: the fold of an int8 and int4 project_out and fc2, and every conv loading quantized.pnpm --filter runntime exec vitest run --project gpu test/zoo/higgs/decoder.gpu.test.ts: the decoder from an int8 and int4 file in f32 and f16 against the same decoder loaded with the dequantized floats.Related issues
Depends on #97.
Checklist
Additional notes