mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #90] [MERGED] Route log: the near misses (route ranks k+1 .. k+16) after a '|' - for cache studies, written only with STRATA_GLM_ROUTE_LOG #327
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#327
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/mw00/project-maya/pull/90
Author: @sociolog
Created: 10/10/2026
Status: ✅ Merged
Merged: 10/10/2026
Merged by: @mw00
Base:
main← Head:pr-route-near📝 Commits (2)
e3c9087Route log: the near misses (route ranks k+1 .. k+16) after a '|' - for cache studies, written only with STRATA_GLM_ROUTE_LOGf82ff9cRoute log: the near misses' field is near_ids - windows.h defines near (#90 on Windows)📊 Changes
3 files changed (+18 additions, -5 deletions)
View changed files
📝
include/strata/kernels/glm_fast.hpp(+2 -1)📝
src/core/glm_fast_path.cu(+7 -2)📝
src/kernels/cuda/glm_fast.cu(+9 -2)📄 Description
What
As offered on #79: with
STRATA_GLM_ROUTE_LOG=<prefix>, each route line becomeswhere n0 .. n15 are the experts that just missed the route - ranks k+1 .. k+16 by the same selection score, best first.
That is what a replay needs to ask whether a near miss predicts reuse (on Maya-M it did not: near-miss-weighted counts
and near-miss recency both stayed within a point of plain LFU / LRU - #79).
near_n > 0it continues its top-k selection fornear_nmore ranks (the top k are already-inf in
s_sel; the prediction recomputess_selafter it) and writes them intoMoeRequest::near[16].near_nis16 with the route log on and 0 without - then the extra selection and the 16 writes are skipped, so no more bytes
cross PCIe per route than today.
|and the near misses up to the first -1; the existing comment line staysas it is (the explanation goes below it, so #88's
route_dumpline above it merges cleanly).MoeRequestgrows by 32 bytes (16 shorts, beforex).The replay that reads these lines (with or without the near misses): #91.
Checks
RTX 3090 + 3060, Maya-M (
RAM_RESIDENT=1, split 30):glm_dsa_parity,glm_ffn_parity,glm_hc_parity,glm_kda_parity,glm_layer_parity--selftest: all PASS; server tests OK (3 skipped);STRATA_GLM_SCOREon 1,135 held-out tokens: without the log, the same numbers to the last digit as our build ofv1.0.31's engine code (NLL 1.30094, 114,052 CPU-lane experts); with the log on, the same numbers again - the log
does not touch the decode;
|;🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.