mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-04 23:38:47 +00:00
The rebased #704 under the name asked for there (upstream's STRATA_HC_Q8 now reads the GGUF's Q8_0 bytes, a different thing). Opt-in. 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. - Q8 is a template parameter of the down/up kernels (single- and multi-token): the BF16 instantiations compile exactly as before, the launch sites pick the Q8 ones when w_down / w_up carry scales. The inject rows stay BF16. - The staged / v3 / upmix / PF_HCDOWN / gfx906 split paths read BF16 rows and are skipped for it; the prompt path expands the codes into a bf16 scratch for its GEMM. - The loader seeks with 64-bit offsets. - A layer split keeps BF16 with a warning instead of exiting.