Repository navigation
Conversation
Fluid Speech Pro adds a residual block between the subsampler output and Conformer layer 0 (FluidVoice's FrameCleaner: x + up(gelu(mix(down(LayerNorm(x))))), with mix a depthwise Conv1d over time). stt.parakeet.encoder.pre_block_kernel announces it and pre_block_dim gives the projection width; the eight enc.pre_block.* tensors are required when the KV is present, so a partial file is a load error instead of silently running the plain v3 graph. The block runs on the pre_encode output before xscaling, matching the reference's encoder.pre_encode forward hook. Models without the KV take the existing path unchanged. Also emit the KVs/tensors in convert-parakeet.py and pin the depthwise mix kernel to the Conv bucket in transcribe-quantize.
…able Reject stt.parakeet.encoder.pre_block_kernel on the chunked (streaming) attention styles at load and drop the block from the cache-aware streaming graph, which no shipped checkpoint reaches with it. In variable-length batches, zero each utterance's padded frames before the block's depthwise time conv (k=15 otherwise mixes padding into the last 7 real frames; 2.2e-2 max_abs at dec.enc_out on a 4-clip batch), reusing the Conformer conv valid-frame mask. Run the conv through the same direct depthwise op as the Conformer blocks so a batched utterance uses one algorithm at every batch size (jfk x4 now bit-exact on CPU). parakeet_smoke covers the KV checks and a fixture that announces the block without its tensors failing to load.
The parakeet NeMo dumper loads FluidVoice checkpoints through the publisher's fluid_speech.py fetched at the pinned revision (block attached as a forward hook on encoder.pre_encode, clean mode off) and dumps enc.pre_block.out; enc.pre_encode.out is captured with a prepended hook so it stays the subsampler output. The converter loads the .nemo directly, skips the clean_mode.* adapter, requires fluid_speech.insert == 'pre' and a mix kernel matching insert_dim/insert_kernel, and errors on encoder.fv_insert.* weights without the config section. Golden manifest pinned to FluidVoice-Labs/fluid-speech-pro@46027a3b; enc.pre_block.out tolerance from the observed jfk drift.
The generic norm rules miss Fluid Speech Pro's pre-block LayerNorm scale, so every quantized preset stored it as Q8_0/Q*_K and the loader (F32 only) rejected the file. Mirror the norm and mix rules in reference_dtype_for.
parakeet_real_smoke accepts tdt-0.6b-fluid-speech-pro (v3 shape checks plus pre-block KVs, tensor shapes and no streaming) and checks every other variant carries no pre-block; decoder_smoke takes its jfk transcript exactly. Batch golden on the orukeet clip list, frozen from the F32 serial run. run_reference_parakeet_nemo.py loads FluidVoice checkpoints through the publisher loader (--revision).
Accuracy and speed rows are pending the publication sweep and the rig benches.
The converter writes FluidVoice's clean-mode adapter instead of skipping
it: the rank-32 factors as enc.blocks.N.<module>.clean_mode.{a,b} for the
11 adapted modules, weight_ih_l0 @ decoder_input as
pred.lstm.0.clean_mode.bias, joint_hidden as joint.pred.clean_mode.bias,
and stt.parakeet.clean_mode.{rank,alpha,modules}.
The parakeet loader validates the adapter (all tensors present, shapes
and F32/F16 types match the KVs, no clean_mode tensors without the KVs)
and binds nothing, so output is unchanged. transcribe-quantize keeps the
factors at F16 in every preset (new Adapter bucket).
The GGUFs now carry the clean-mode adapter (F32 in the F32 file, F16 in the others, about 55 MB); the runtime validates it but does not apply it yet. Sizes and the validation pin follow the rebuilt files.
This branch has not been deployed
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.
Draft. Prepared with AI assistance (Claude); the description below is an evidence list to be rewritten before review. Closes #263.
Adds FluidVoice's Fluid Speech Pro (FluidVoice-Labs/fluid-speech-pro@46027a3, CC-BY-4.0), a Parakeet TDT 0.6B v3 retrain with one residual block between the subsampler and Conformer layer 0 (x + up(gelu(mix(down(LayerNorm(x))))), mix = depthwise k=15 time conv).
The first commit is Dax Raad's from anomalyco/transcribe.cpp (hex/fluid-pre-block), cherry-picked with authorship. Follow-ups:
Evidence
Before merge
Clean mode: the GGUFs carry FluidVoice's clean-mode adapter (rank 32, alpha 64, 264 A/B pairs as enc.blocks.N..clean_mode.{a,b} in F16, pred.lstm.0.clean_mode.bias and joint.pred.clean_mode.bias in F32, KVs stt.parakeet.clean_mode.{rank,alpha,modules}). The loader validates it and ignores it; output stays verbatim and bit-identical (705 base tensors byte-identical, 37 dumped tensors + transcripts identical across 6 quants x CPU/Metal). Folding the stored adapter reproduces fluid_speech.load(clean_mode=True) exactly from F32 (max 8.9e-6 from the F16 factors). +55 MB per quantized file; +0.5-1.1 MB resident with mmap, +55 MB without mmap or on backends that copy weights. Runtime switch/API left for a follow-up.
Known limits: builds without this change load these GGUFs and silently run without the block.
Still to test