-
Notifications
You must be signed in to change notification settings - Fork 249
vendor: grouped-expert MUL_MAT_ID for small MoE verify batches (lagunaxs2.1 porting) #501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+3,157
−326
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
63cbb59
vendor: grouped-expert MUL_MAT_ID for small MoE verify batches
davide221 c5e61b5
vendor+server: opt-in per-token adaptive expert count for MoE verify …
davide221 1fe86bd
vendor+server: drafter-confidence adaptive verify width for MoE spec …
davide221 1238629
server: make validated MoE verify optimizations the default, single f…
davide221 4a4d519
fix(draft): load and apply Laguna XS 2.1 drafter tensors (attn gates,…
davide221 61b6abd
perf(spec): device-resident domino head, persistent draft graph, draf…
746a81b
feat(spec): drafter context-KV ring cache (target-agnostic)
davide221 b645e48
feat(laguna): flat long-context serving under KVFlash
davide221 1b5a5fb
feat(qwen35): adopt the drafter context-KV ring cache
davide221 bf38461
fix(spec): address review findings on the drafter ring cache
davide221 0942a2d
fix(review): harden the mmid/adaptive-K/ring surfaces for merge
davide221 8c4f08a
refactor(env): consolidate profilers into DFLASH_PROF, document the e…
davide221 4b85903
polish(review): log-spam guard, honest comments, doc rendering
davide221 5469578
fix(deploy): no tq3_0 or finite fa-window in any default path
davide221 9bfd119
feat(laguna): tool calling end to end
davide221 b71c23c
refactor(tools): hoist the duplicated trim lambda into trim_ws
davide221 a0704e5
fix(harness): purge finite fa-window and tq3_0 defaults everywhere
davide221 871bbf6
fix(tools): laguna dialect review findings
davide221 b3ac286
fix(server): status report no longer claims the removed tq3_0 auto-de…
davide221 a96edf2
docs(laguna): drop stale reference to the removed tq3 auto policy
davide221 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -45,6 +45,14 @@ GGML_BACKEND_API void ggml_backend_cuda_unregister_host_buffer(void * buffer); | |||||
|
|
||||||
|
cubic-dev-ai[bot] marked this conversation as resolved.
|
||||||
| GGML_BACKEND_API ggml_backend_reg_t ggml_backend_cuda_reg(void); | ||||||
|
|
||||||
| // [TAG_TOPK_ROWS] top-k (k <= 8) entries + softmax probabilities per row of a | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: The Prompt for AI agents
Suggested change
|
||||||
| // device-resident contiguous F32 [ncols, nrows] tensor. probs_out and ids_out | ||||||
| // must each hold k * nrows elements (row-major: entry [r*k + j] = rank-j of | ||||||
| // row r). Not a graph op: call only after the SYNCHRONOUS | ||||||
| // ggml_backend_graph_compute() producing `logits` has returned. | ||||||
| GGML_BACKEND_API bool ggml_backend_cuda_topk_rows(const struct ggml_tensor * logits, int k, | ||||||
| float * probs_out, int32_t * ids_out); | ||||||
|
|
||||||
| #ifdef __cplusplus | ||||||
| } | ||||||
| #endif | ||||||
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3: When CACHE_TYPE_K/V are empty (new default), the server is intended to pick its own KV cache default. But if the parent shell already has DFLASH27B_KV_K exported (e.g. from a previous benchmark run or shell profile), that value leaks into the server's environment and silently overrides the server's default. Recommend unsetting the env var when the bash variable is empty.
Prompt for AI agents