mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 16:29:04 +00:00
A driver of its own beside Flash-Next's (generate/verify/prefill untouched), built from Strata's kernels: - weights from the GGUF: dense Q8_0 on the native MMVQ (with the packed Q8_0 copy), the routed experts repacked at load into native expert blobs (stride in whole blocks for MMQ), F32 norms / projections; - the plain pre-norm residual layer driver, the residual add fused with the next norm, the MoE end (combine + shared-expert gate + add + next norm) in one kernel; - GDN: the fused conv+L2 and SiLU step for a token, one-launch sequential kernels for a prompt chunk; - attention without an indexer: split-K decode over 256-cell chunks (positions on the device, so the decode step is one captured graph), and for a prompt chunk scores / values as FP32 GEMMs per KV head with a causal softmax; - prompt projections as FP16 GEMMs (prefill::Gemm::native), the F32 router / alpha / beta as SGEMM, the prompt's experts on llama.cpp's MMQ (entries sorted by expert on the device); - decode: native router 256/8, native grouped experts (Q5_K / Q6_K downs added to the grouped kernels' down list for FF 512), router + shared gate in one product, alpha/beta in one launch. - serve: READY / GEN (sampling keys) / T / PP / DONE / STOP, the held state reused when a request extends it; --tokens / --force / --dump-full-logits for tools/qwen35/kl.py; --bench-pp / --bench-tg. - hip_compat cublas_v2.h: cublasSgemm / cublasSgemmStridedBatched.