Add generated quant-kernel JIT and accelerate Gemma4, BGE-M3, and GLiNER2 - #372
Open
timkaye11 wants to merge 6 commits into
Open
Add generated quant-kernel JIT and accelerate Gemma4, BGE-M3, and GLiNER2#372timkaye11 wants to merge 6 commits into
timkaye11 wants to merge 6 commits into
Conversation
ajroetker
reviewed
Jul 17, 2026
ajroetker
reviewed
Jul 17, 2026
| @@ -0,0 +1,345 @@ | |||
| name: CUDA Gemma 4 L4 Evidence | |||
Contributor
There was a problem hiding this comment.
Seems like we probably want this to be an e2e test or not in ci
ajroetker
reviewed
Jul 17, 2026
ajroetker
reviewed
Jul 17, 2026
ajroetker
reviewed
Jul 17, 2026
timkaye11
force-pushed
the
codex/quant-kernel-runtime-jit
branch
from
August 3, 2026 16:40
08bf6d0 to
1d98ca0
Compare
…NER2 Adds evidence-gated Metal and CUDA quant-kernel generation and runtime routing, Gemma4 QAT long-context and sampling improvements, the interactive inference CLI, BGE-M3 and GLiNER2 acceleration, and related SDK and runtime hardening.
timkaye11
force-pushed
the
codex/quant-kernel-runtime-jit
branch
from
August 3, 2026 20:04
1d98ca0 to
ad36877
Compare
timkaye11
force-pushed
the
codex/quant-kernel-runtime-jit
branch
from
August 4, 2026 02:57
b7da786 to
5a3ed60
Compare
timkaye11
force-pushed
the
codex/quant-kernel-runtime-jit
branch
from
August 4, 2026 05:39
5a3ed60 to
3917bc4
Compare
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
This PR adds an evidence-gated GPU kernel pipeline and applies it across Gemma4, BGE-M3, and GLiNER2.
antfly inference chat: model aliases and pulling, streamed multi-turn generation, context trimming, slash commands, interruption, and per-turn statistics.Benchmarks
Local, unattested Apple measurements use ReleaseFast builds. Decode measurements exclude prefill.
The short Gemma4 MTP result uses qualified experimental opt-ins; the canonical long-output and CUDA measurements identify remaining prefill and long-context headroom rather than claiming universal superiority.
GLiNER2 Metal improved approximately 6.9× over its pre-optimization batch-16 baseline and is 33–43% faster than native CPU at these shapes. Entity sets matched native exactly at batches 1 and 16; one batch-8 run produced three additional near-threshold entities with ≤0.3% score-sum drift.
Validation