[PR #287] [MERGED] glm checkpoints: CKPT_EVERY also sets the prompt piece size #447

Closed
opened 2026-10-29 21:25:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mw00/project-maya/pull/287
Author: @gopinath87607
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/20/2026
Merged by: @mw00

Base: main ← Head: pr/ckpt-docs


📝 Commits (1)

  • a1eff48 glm checkpoints: STRATA_GLM_CKPT_EVERY is a piece-size speed dial, and 0 measured -37% on a 100k fresh read

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 docs/SETTINGS.md (+1 -1)

📄 Description

Why this PR was recreated. The original (#240) was opened from the gopinath87607/ewaste-maya fork. Deleting that fork deleted its branches, and GitHub closes every pull request whose branch lived in a deleted fork - a closed PR whose source branch is gone cannot be reopened. This is the same work from a new fork (gopinath87607/project-maya), rebased onto current main (v1.1.16 renamed the settings to MAYA_*; that rename is resolved in docs/SETTINGS.md and the code still reads the STRATA_* spelling the alias sets). It replaces the closed #240, which was closed by the fork's deletion, not by a maintainer.


What this changes

docs/SETTINGS.md: the row for STRATA_GLM_CKPTS / STRATA_GLM_CKPT_EVERY now says what _EVERY also does to a fresh read.

_EVERY was documented as what saves conversation checkpoints. It is equally the knob that cuts a fresh prompt into pieces, and every piece pays the prompt path's whole fill and drain: a piece costs about 14.6 s + 6.5 s a chunk (fitted from every piece of all three arms below, within ~2%), so the number of pieces is straight wall time.

0 is not "no checkpoints": ckpt_marks always keeps the two turn marks (the end of the system prompt and the start of the prompt's last turn) and only skips the periodic loop, so another chat with the same system prompt and an edited or replaced last message still restores. What 0 gives up is a client that rewrote a turn before the last one, which then reads from the system-prompt mark instead of a nearer periodic one. 32768 is the middle: periodic marks stay, and the read becomes four pieces instead of five.

What it leaves alone

Documentation only. The default stays 16384, and the knob's behavior is unchanged.

Measurements

Measured 2026-10-15 on the Maya-L split at 8,192-token chunks, on one 100,535-token fresh read (the same text regenerated byte-identically from the 2026-10-14 generator; token count matched to the token: 100,523 + the 12-token template). The engine was restarted between arms, and each arm read a 580-token warm prompt first so no arm paid first-touch kernels:

_EVERY pieces read per token
16384 (default) 5 (49152 + 16384x3 + 2230) 148,804 ms 1.480 ms/token
32768 4 (32768x3 + 2230) 134,922 ms 1.342 ms/token (-9.3%)
0 1, 13 chunks of 7744 93,249 ms 0.928 ms/token (-37.4%)

The chunk count is 13 in every arm: the same work, cut differently.

Two caveats are in the row as well: the greedy 8-token answer moved from "I've read the log" (16384, 32768) to "I've read the machine" (0) - the different chunk arithmetic (7744 vs 8192) perturbs the last bits of the reduction, the same class of difference any chunk-size change makes, not a wrong read; and these are one machine's numbers, one text's routes.

Checks

  • Docs only; no code changed.
  • The numbers are the checkout's runs on the hardware named; this branch was not re-run.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/mw00/project-maya/pull/287 **Author:** [@gopinath87607](https://github.com/gopinath87607) **Created:** 10/20/2026 **Status:** ✅ Merged **Merged:** 10/20/2026 **Merged by:** [@mw00](https://github.com/mw00) **Base:** `main` ← **Head:** `pr/ckpt-docs` --- ### 📝 Commits (1) - [`a1eff48`](https://github.com/mw00/project-maya/commit/a1eff48d057bc2125bbb29e7628e58ae60108b05) glm checkpoints: STRATA_GLM_CKPT_EVERY is a piece-size speed dial, and 0 measured -37% on a 100k fresh read ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/SETTINGS.md` (+1 -1) </details> ### 📄 Description > **Why this PR was recreated.** The original (#240) was opened from the `gopinath87607/ewaste-maya` fork. Deleting that fork deleted its branches, and GitHub closes every pull request whose branch lived in a deleted fork - a closed PR whose source branch is gone cannot be reopened. This is the same work from a new fork (`gopinath87607/project-maya`), rebased onto current `main` (v1.1.16 renamed the settings to `MAYA_*`; that rename is resolved in `docs/SETTINGS.md` and the code still reads the `STRATA_*` spelling the alias sets). It replaces the closed #240, which was closed by the fork's deletion, not by a maintainer. --- ## What this changes `docs/SETTINGS.md`: the row for `STRATA_GLM_CKPTS` / `STRATA_GLM_CKPT_EVERY` now says what `_EVERY` also does to a fresh read. `_EVERY` was documented as what saves conversation checkpoints. It is equally the knob that cuts a fresh prompt into pieces, and every piece pays the prompt path's whole fill and drain: a piece costs about `14.6 s + 6.5 s a chunk` (fitted from every piece of all three arms below, within ~2%), so the number of pieces is straight wall time. `0` is not "no checkpoints": `ckpt_marks` always keeps the two turn marks (the end of the system prompt and the start of the prompt's last turn) and only skips the periodic loop, so another chat with the same system prompt and an edited or replaced last message still restores. What `0` gives up is a client that rewrote a turn before the last one, which then reads from the system-prompt mark instead of a nearer periodic one. `32768` is the middle: periodic marks stay, and the read becomes four pieces instead of five. ## What it leaves alone Documentation only. The default stays `16384`, and the knob's behavior is unchanged. ## Measurements Measured 2026-10-15 on the Maya-L split at 8,192-token chunks, on one 100,535-token fresh read (the same text regenerated byte-identically from the 2026-10-14 generator; token count matched to the token: 100,523 + the 12-token template). The engine was restarted between arms, and each arm read a 580-token warm prompt first so no arm paid first-touch kernels: | `_EVERY` | pieces | read | per token | |---|---|---|---| | 16384 (default) | 5 (49152 + 16384x3 + 2230) | 148,804 ms | 1.480 ms/token | | 32768 | 4 (32768x3 + 2230) | 134,922 ms | 1.342 ms/token (-9.3%) | | 0 | 1, 13 chunks of 7744 | 93,249 ms | 0.928 ms/token (-37.4%) | The chunk count is 13 in every arm: the same work, cut differently. Two caveats are in the row as well: the greedy 8-token answer moved from "I've read the log" (16384, 32768) to "I've read the machine" (0) - the different chunk arithmetic (7744 vs 8192) perturbs the last bits of the reduction, the same class of difference any chunk-size change makes, not a wrong read; and these are one machine's numbers, one text's routes. ## Checks - Docs only; no code changed. - The numbers are the checkout's runs on the hardware named; this branch was not re-run. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:25:31 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mw00/project-maya#447
No description provided.