Repository navigation
glm load: read-ahead uses the checkpoint's model prefix (refs #5256) - #5264
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/glm-readahead-prefix
branch
from
November 27, 2026 01:33
398fe84 to
8469e22
Compare
ashhart
added a commit
that referenced
this pull request
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cuda_weights.zigalready picks the checkpoint's model prefix (model.language_model.for Flash,model.for full GLM/DSA) and passes it to the layer loader, but the read-ahead path dropped it:cuda_load_prefetch.zighardcodedmodel.language_model.layers.{d}..cuda_load_ahead.zigandcuda_load_prefetch.zig. Flash keeps its previous prefix, so its read spans are unchanged.Host coverage
zig/load_prefetch_host.zigadds a full GLM fixture beside the existing ones and checks exact per-layer byte counts, exact absolute spans for Flash and full GLM, exclusion of other layers, joined readers, failed-read propagation and allocation-failure cleanup.LoadPrefetchRead).test-load-prefetch-hostpasses, also after applying the mailbox to a fresh main.Not covered
No CUDA device run, real checkpoint, disk-traffic or load-time measurement. This does not implement the per-rank byte ranges proposed in #5256; it fixes a separate prefix bug found while studying it.
Refs #5256.