metal: windows of several tokens (verify + commit of the kept prefix), experts read in place
- window.cpp: a window of 2..8 tokens runs the GDN steps without committing; the projections it feeds them are kept per layer, and commit(n) folds the kept prefix into the state (gdn_step over n tokens with commit, the same kernel: bitwise the window's trajectory) and turns the conv-history ping-pong. K/V and indexer cells past the prefix are rewritten when those positions run again, before anything reads them; the PLE history keeps the n rows. Checked: greedy output with suffix drafts (windows up to 4, 50 of 59 drafts kept) is the same token for token as one-token windows. - generate.cpp (Metal only): --mmap-experts by default (the GGUF shards in place; the window reads them itself): the 31.6 GB expert arena is not loaded any more (RSS 74 -> 40 GB, the rest is the mapped shard) - stubs.cpp regenerated (256 entry points left as stubs) IQ3_XXS vs the CUDA engine (P1004, f-mac, same flags, --kv int8): 200 of 200 tokens equal on the capital prompt, 124 on a story; following CUDA's tokens 3 of 200 picks differ, at margins 0.07-0.23 (near ties).
This commit is contained in:
1 parent
5d76056a4a
commit
cf00b0d031
3 files changed
+48
-46
No files matched your search
@@ -2685,6 +2685,7 @@ int main(int argc, char** argv) {
|
||||
const char* isa_floor = strata::kernels::cpu::isa_floor_build();
|
||||
#if defined(STRATA_GPU_METAL) // Apple Silicon: every expert is on the GPU; ggml-cpu (NEON) is the only CPU expert code
|
||||
strata::metal_engine::set_model_shard(o.native_preset.c_str()); // the decode window reads the model GGUF itself
|
||||
o.mmap_experts = true; // ... experts included: no resident copy of them (the GGUF shards in place)
|
||||
if (false) {
|
||||
#else
|
||||
if (!strata::kernels::cpu::cpu_avx2_ok() && isa_floor[0] == '\0') {
|
||||
|
||||
Reference in new issue
Block a user