mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4714] [Engine] Proposal: native Flint Q4_K_M support with hybrid expert execution #2159
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2159
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ec0byte on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4714
Problem and goal
I would like RecursiveSI/Flint to become a first-class native model family in Strata:
selectable for download in the desktop app and runnable through the Terminal, alongside the
existing families.
I currently run Flint Q4_K_M in LM Studio with offloading. The goal is to bring Strata’s GPU
expert caching and CPU/GPU expert execution to Flint, with correct reasoning and coding-tool
support—not to connect Strata to an external inference runtime.
Related: #4649 requests Flint support using an NVFP4 pack. This proposal describes an
implementation starting with Q4_K_M. Please consolidate the discussions if preferred.
Initial target
flint-Q4_K_M.gguf870aedd9e1ebe1c91f94da93b59af17729f6c5c0(engine version 0.1.54 in CMakeLists.txt).Additional packs and backends would require separate validation. The model’s configured 262,144-token capacity would not be advertised as validated Strata support.
Proposed implementation
Add an isolated Flint execution path, following the separate-family-driver pattern used for
Qwen3.6, while reusing compatible Strata components.
Flint-specific requirements include:
tool-call parsing.
Hybrid execution should retain frequently used experts in VRAM and execute nonresident experts
on the CPU. Placement must not alter routing decisions or substitute experts.
New functionality would be explicitly selected. Existing model families and default execution
paths should remain unchanged.
Investigation so far
This proposal was prepared with AI-assisted source inspection. The observations below
distinguish executed header checks from unconfirmed static analysis.
Performed
A read-only Python check used the repository’s
tools/gguf_reader.pyto inspect my local GGUFheader and compare it against an independently specified Flint tensor-layout table.
Observed output:
The check found:
layers.
These checks establish structural consistency, not numerical correctness or full-file
integrity.
Unconfirmed static analysis
compilation and runtime tests.
src/kernels/cuda/iq_kernels.cu, grouped GPU expert dispatch lists Q4_K gate/up andconditionally Q6_K down, but does not list Q4_K down, which this pack requires.
attention sinks, and ungated attention output.
tools/strata_tokenizer.pyneeds explicit Flint pre-tokenization rather than the currentnon-DeepSeek fallback.
setup.pyandtools/strata_mcp.py; desktop-onlycatalog changes would be insufficient.
gating, that would need to be addressed for Flint.
Not performed
No speedup or native Strata memory-fit result is claimed.
Suggested milestones
Model contract:
Expert kernels:
dimensions.
Native execution:
Hybrid execution:
Coding-agent serving:
correctness.
Product integration:
Qualification:
Memory considerations
The initial target machine has 16 GB VRAM and 32 GB RAM. Combined capacity should not be
treated as a single interchangeable memory pool.
Planning and validation need to account for:
For one 65,536-token sequence, arithmetic estimates from Flint’s geometry put raw KV storage
at approximately 1.78 GiB with FP16 storage or 3.57 GiB with FP32 storage when sliding-layer
history is bounded.
These are calculations, not measured allocations, and exclude padding, staging, and runtime
overhead. Cache precision and context limits should be selected through correctness and
hardware validation.
Acceptance and regression requirements
evidence.
the same quantized file.
arithmetic across devices.
Hardware execution is reported separately from compilation.
Maintainer feedback requested
Before implementation, would this initial scope and separate-driver approach be acceptable?
In particular:
explicitly gated until validated?
I can provide testing on the hardware above. Broader backend qualification would need
additional environments or contributors.