Repository navigation
model : inkling2_loop also loads the earlier looped inkling2 layout - #395
Open
danielhanchen wants to merge 2 commits into
Open
danielhanchen wants to merge 2 commits into
danielhanchen wants to merge 2 commits into
Conversation
An inkling2 file with inkling2.num_loops stores one block per visit, the
loop keys under inkling2.loop.core_start/core_end and inkling2.num_loops,
the controls as blk.N.loop_{attn,k,v,mlp}_{down,gain,forget}, and the
message queries of all core layers in loop_res_query and
loop_kv_res_query. Load it as inkling2_loop: fold the per-visit
parameters back to the physical layers, read the controls under their
old names, and build each core layer's message query in the graph from
the two global queries. Non-looped inkling2 files are unchanged.
test-llama-archs: add a looped inkling2 config.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
1 of 5 tasks
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This branch has not been deployed
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.
Loads the earlier looped Inkling 2 GGUF layout (
general.architecture = inkling2withinkling2.loop.core_start,core_end,num_loops,gate_rank, one block per layer visit) with theinkling2_loopmodel, so files in either layout run the same graph and no re-download is needed.llama_model_create: aninkling2file carrying the full loop signature is built asinkling2_loopin legacy mode. Non-loopedinkling2files are unchanged.inkling2_loopconverter uses.test-llama-archs: adds a legacy looped config.Tests (b12600 + ggml-org#32704 + ggml-org#32218 + this):
test-llama-archs: all configs pass on CPU and CUDA.inkling2_looplayout give identical logits: wikitext-2, 20 chunks of 512, mean KLD 0, top-1 100%.blk.24.attn_q.weightnot found).