WIP: [STRA-102] Port IQ4_NL decoding and bounded preparation to Rust #8

Closed
admin wants to merge 1 commits from codex/stra102-rust-iq4-nl into codex/stra102-rust-iq3-core
Owner

Actual C to Rust port

Adds standard-library-only IQ4_NL decoding (kind20,18bytes/32values) from the pinned GGML codebook, retaining shared F16 semantics and MIT/provenance. Bounded GGUF preparation now uses this Rust implementation for kind20; other formats remain unchanged.

Verified local CPU gates

  • Quant5/5, pinned C bridge9/9, bounded visitor7/7; fmt and Clippy pass.
  • 2,031,616 exact finite f32 bit comparisons across all63,488 F16 scales; all packed-field bytes/codepoints covered, plus unaligned batch.
  • All2,048 nonfinite scales preserve admission, NaN classification and exact infinity bits/signs. No portable NaN payload/sign equivalence claimed.
  • Independent source/result review accepted; private oracle targets cleaned.

Linux exact-head qualification pending. This does not qualify complete model/GPU inference, model quality or performance; other legacy C formats/build remain. Stacked on PR6. No merge requested.

## Actual C to Rust port Adds standard-library-only IQ4_NL decoding (kind20,18bytes/32values) from the pinned GGML codebook, retaining shared F16 semantics and MIT/provenance. Bounded GGUF preparation now uses this Rust implementation for kind20; other formats remain unchanged. ## Verified local CPU gates - Quant5/5, pinned C bridge9/9, bounded visitor7/7; fmt and Clippy pass. - 2,031,616 exact finite f32 bit comparisons across all63,488 F16 scales; all packed-field bytes/codepoints covered, plus unaligned batch. - All2,048 nonfinite scales preserve admission, NaN classification and exact infinity bits/signs. No portable NaN payload/sign equivalence claimed. - Independent source/result review accepted; private oracle targets cleaned. Linux exact-head qualification pending. This does not qualify complete model/GPU inference, model quality or performance; other legacy C formats/build remain. Stacked on PR6. No merge requested.
admin added 1 commit 2026-10-07 19:14:25 +00:00
feat(model): port IQ4_NL decoding to independent Rust core
Linux / keyless-cuda-gate (pull_request) Skipped
Linux / verify (pull_request) Successful in 4m58s
Linux / keyless-cuda (pull_request) Skipped
Linux / static-cuda-package (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-cli-container (pull_request) Successful in 6m24s
Linux / linux-static-cli (pull_request) Failing after 12m5s
Linux / release-cli (pull_request) Skipped
1c6d690003
admin closed this pull request 2026-11-22 17:10:02 +00:00
admin deleted branch codex/stra102-rust-iq4-nl 2026-11-22 17:10:02 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: para/leleka#8