Repository navigation
parakeet: write pointwise conv kernels 2-D in the converter - #283
Open
ZenAesthete wants to merge 1 commit into
Open
ZenAesthete wants to merge 1 commit into
ZenAesthete wants to merge 1 commit into
Conversation
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.
Summary
Addresses #281. This should be merged after #282.
convert-parakeet.pynow writes the conformer pointwise conv kernels as 2-D[in, out]tensors instead of[1, in, out]. With that layout,transcribe-quantizequantizes them like the other linear weights instead of keeping them in F16. The tensor data itself does not change. Only the size-1 axis is dropped.GGUFs written by this converter need the runtime support from #282, so older runtimes will not be able to load them. Existing GGUFs keep working as before.
Scope
scripts/convert-parakeet.pyadd()has a newdrop_koption, which the encoder block loop sets forconv.pointwise1.weightandconv.pointwise2.weight. A kernel that is already 2-D is written as it is, and any other unexpected shape raises an error. The docstring and the table comment are updated to match.Validation
I converted
nvidia/parakeet-tdt_ctc-110mwith bothmainand this branch and compared the results.[1, in, out]to[in, out], and no data bytes differ.mainconversion on both CPU and Vulkan.scripts/lib/test_quant_policy_sync.pypasses.WER and System Resource Usage Results: standard (Current) vs fixed (New) pointwise layout
Full LibriSpeech test-clean (2,620 utterances)
Setup: Windows 11, Ryzen 5 7530U, CPU backend. Standard files are
transcribe-quantizeoutput from the official F32 GGUFs. Fixed files are the same F32 GGUFs with the size-1 axis dropped from the pointwise tensors.