Skip to content

parakeet: write pointwise conv kernels 2-D in the converter - #283

Open
ZenAesthete wants to merge 1 commit into
handy-computer:mainfrom
ZenAesthete:parakeet-convert-pointwise-2d
Open

ZenAesthete wants to merge 1 commit into
handy-computer:mainfrom
ZenAesthete:parakeet-convert-pointwise-2d

Conversation

@ZenAesthete

@ZenAesthete ZenAesthete commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Addresses #281. This should be merged after #282.

convert-parakeet.py now writes the conformer pointwise conv kernels as 2-D [in, out] tensors instead of [1, in, out]. With that layout, transcribe-quantize quantizes 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.py
    add() has a new drop_k option, which the encoder block loop sets for conv.pointwise1.weight and conv.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-110m with both main and this branch and compared the results.

  • The metadata is identical. Exactly 34 tensors (17 layers, two each) change shape from [1, in, out] to [in, out], and no data bytes differ.
  • In F32, the output is byte-identical to the main conversion on both CPU and Vulkan.
  • In Q5_K_M, the file goes from 101.3 MB to 83.8 MB with no F16 tensors left, and the transcript is identical.
  • scripts/lib/test_quant_policy_sync.py passes.

WER and System Resource Usage Results: standard (Current) vs fixed (New) pointwise layout

Full LibriSpeech test-clean (2,620 utterances)

Model Quant File size (MB) Peak RAM, CPU (MB) WER std -> fixed (%) ΔWER (pp) 95 % CI (pp) Utts better / worse
TDT-CTC 110M Q4_K_M 90.0 -> 70.8 (-21%) 380 -> 301 (-21%) 2.451 -> 2.501 +0.049 [+0.011, +0.087] 30 / 53
TDT-CTC 110M Q8_0 135.4 -> 122.8 (-9%) 424 -> 352 (-17%) 2.370 -> 2.360 -0.009 [-0.029, +0.008] 9 / 7
TDT 0.6B v2 Q4_K_M 475.5 -> 367.0 (-23%) 1086 -> 695 (-36%) 1.664 -> 1.658 -0.006 [-0.039, +0.028] 25 / 25
TDT 0.6B v2 Q8_0 729.6 -> 658.8 (-10%) 1329 -> 977 (-26%) 1.617 -> 1.634 +0.017 [-0.002, +0.036] 3 / 10
Unified 0.6B Q4_K_M 477.3 -> 368.7 (-23%) 989 -> 598 (-40%) 1.575 -> 1.575 0.000 [-0.028, +0.028] 17 / 17
Unified 0.6B Q8_0 731.4 -> 660.6 (-10%) 1226 -> 876 (-29%) 1.571 -> 1.579 +0.008 [-0.002, +0.019] 1 / 4
  • ΔWER is fixed minus standard. The 95 % CI is a paired bootstrap over utterances (10,000 resamples), so both versions are compared on exactly the same audio.
  • 5 of the 6 intervals include zero, so no impact on accuracy is observed. The exception is TDT-CTC 110M at Q4_K_M (+0.049 pp, 26 more errors in 52,829 words), which is smaller than that model's published Q5_K_M to Q4_K_M gap (0.06 pp). There are also some other small deviations where accuracy slightly improves.
  • Vulkan check (110M Q4_K_M): ΔWER +0.013 pp [-0.030, +0.057], peak GPU memory 270 -> 163 MB.

Setup: Windows 11, Ryzen 5 7530U, CPU backend. Standard files are transcribe-quantize output from the official F32 GGUFs. Fixed files are the same F32 GGUFs with the size-1 axis dropped from the pointwise tensors.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant