mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #704] [CLOSED] STRATA_HC_Q8: hyper-connection projections as int8 + fp32 scale per 32 #2775
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#2775
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/704
Author: @merbanan
Created: 10/4/2026
Status: ❌ Closed
Base:
main← Head:feat/hc-q8📝 Commits (10+)
fa16567setup: an earlier config that does not parse is skipped, not a crash; configs are written atomically (#459)749d957setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446)5a30024calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)9f60d13serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)eb8da1d/metrics: each request's speculative draft counts, and their sums in the totals (#457)6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it📊 Changes
8 files changed (+197 additions, -27 deletions)
View changed files
📝
include/strata/core/weights.hpp(+9 -0)📝
include/strata/kernels/fused_gr.hpp(+6 -0)📝
src/core/layer.cpp(+4 -4)📝
src/core/verify.cpp(+1 -0)📝
src/core/weights.cpp(+82 -0)📝
src/kernels/cuda/fused_gr.cu(+61 -17)📝
src/prefill/prefill.cpp(+22 -6)📝
src/program/generate.cpp(+12 -0)📄 Description
Opt-in (STRATA_HC_Q8=1). The four BF16 hc_* projections per layer (1,200 MiB) are skipped by the loader and uploaded as int8 codes with one fp32 scale per 32 values (675 MiB); the freed VRAM goes to the expert cache.
The plain down/up kernels (single-token and multi-token, both tiles) read either form in the same uint4 register budget. With Q8 weights the multi read takes the split variant's down kernel (the plain one) instead of staged, the opt-in v3 read is skipped, and the unfused gr_read refuses. The prompt path expands the codes to a bf16 scratch for its GEMM. Not with a layer split.
RTX 2060 SUPER 8 GB, Q2_0, 128K context, k8v4 KV:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.