Repository navigation
glm metal: price the rows-store staging permit from the family's whole image - #4216
Conversation
|
The six staging helper tests passed on M5 Max with Zig 0.17.0. At There is a smaller path on current main. The shared zig build test-rows-host test-glm-snapshots-host test-glm-request-starts-host \
-Dcpu=apple_m1 -j5 --summary allThe focused Igor Lessio - AIFLOW LABS |
355992b to
5b983fd
Compare
|
@devopsfortunato, thank you for this; it applies cleanly to today's main. One change to how the permit is priced, before it lands:
|
|
I tried Ash's suggested On M5 Max with Zig 0.17.0, all 185 tests and 81 steps passed. The existing longest-state fixture in zig build test-rows-host test-environment-host test-slide-metal-host native \
-Dcpu=apple_m1 -Doptimize=ReleaseSafe -j2 --summary allThe published head still has the explicit permit. These results cover the suggested replacement and the rows fixture, with a live GLM checkpoint outside this run. Igor Lessio - AIFLOW LABS |
5b983fd to
bf6e688
Compare
|
Thanks @ashhart and @AIFlowML — agreed on both points: the explicit permit priced only the payload (not the metadata, trailers and worker bookkeeping a cold write also charges) and clamped against Reduced as suggested and force-pushed ( Linux host checks on the reduced head: |
|
CI note: on head bf6e688 the only failing check was zig-windows, with 10635/10882 tests passed and a single test failure: |
2643e9f to
658992b
Compare
|
Thank you @devopsfortunato. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
…never added Twenty lines under Unreleased landed with a literal (#N); each now carries the PR that added it. #4216's line named TF_GLM_STAGING_GIB, which is not on main.
Size the GLM-5.3-Flash Metal host's rows-store staging permit the way #2388 sized the Qwen3.8-27B host's — fixing #4114.
Today the GLM Metal host attaches the rows store without
staging_bytes, so the permit stays at the store's 1 GiB default (zig/src/core/rows_store.zig). Once a conversation's pending save charge passes 1 GiB, every deep save is skipped withStagingFull, and after a restart the next turn is a full re-prefill.Change:
glm.snapshot.bytes(&eng.c, window, false)— the same figure a disk read allocates (blank_bytesinglm_disk.zig). Floored at the 1 GiB default, capped by the store budget (--learn-gib), at the single attach call site (zig/src/native/glm_host.zig).TF_GLM_STAGING_GIB: a GiB count that stands in for the priced figure, still clamped to the budget. A value that does not parse (or is 0) fails the open loudly, with the variable and offending value named in the log — never a silent fallback.zig/src/native/glm_staging.zig(stdonly) so the permit math is host-testable on Linux without Metal; wired astest-glm-staging-hostand into the aggregate host test step (zig/build/glm_family_host.zig).Behavior on an overflowing override (GiB count whose byte product leaves a u64): the priced figure stands rather than a wrapped 0 that would skip every save — pinned by a test.
Host verification (Linux, Zig 0.17.0 per
.zig-version):zig test zig/src/native/glm_staging.zig -lc— 6/6 tests passzig build test-glm-staging-host— 6/6 pass (also runs undertest-cuda-host)zig build test-cuda-host— pass on repeated runszig fmt --checkon all three touched files — cleanATC: issue #4114 claimed (comment 7038972091);
atc overlap --jsonrun before opening — the reported overlaps are repo-scale noise from open PRs sharingzig/src/native/glm_host.zigin its include graph; no scoped conflict with this change's three files' diff surface.