You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9d09b38
Browse filesBrowse the repository at this point in the historyBrowse files
fix(mesh): agentic's text tree credits only healthy candidates
Like cache_aware, agentic's text fallback matches among the healthy
candidates (Tree::prefix_match_among), so under idx2idx a prefix another
rank's worker placed first is credited to the candidate sharing it.
Co-authored-by: Cursor <cursoragent@cursor.com>
Copy file name to clipboardExpand all lines: atom/mesh/docs/agentic_cost.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ with no extra bonus, as in the engine's `least_tokens` DP balancer.
16
16
| Input | Source |
17
17
| --- | --- |
18
18
|`prompt_tokens`| The request's tokens (`--model-path` or `--tokenizer-path`, prompts up to `--prepare-max-tokenize-bytes`); without them, its text bytes / 4. |
19
-
|`cached_tokens`| The KV event index (`--kv-events`): the leading prompt tokens each worker's GPU cache holds. A request the index cannot match (no tokens, media, or no candidate's events indexed) uses a text tree of past placements: the worker with the longest text match is credited its bytes / 4. The tree shares `--eviction-interval` and `--max-tree-size` (a per-worker cap) with `cache_aware`. |
19
+
|`cached_tokens`| The KV event index (`--kv-events`): the leading prompt tokens each worker's GPU cache holds. A request the index cannot match (no tokens, media, or no candidate's events indexed) uses a text tree of past placements: the healthy candidate with the longest text match is credited its bytes / 4. The tree shares `--eviction-interval` and `--max-tree-size` (a per-worker cap) with `cache_aware`. |
20
20
|`inflight_prefill_tokens`| Tokens charged to the worker whose prefill has not finished, `mesh_worker_prefill_tokens{worker}`. |
Copy file name to clipboardExpand all lines: atom/mesh/docs/metrics.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ Defaults are the CLI defaults.
112
112
|`agentic`|`hit`| The lowest [prefill cost](agentic_cost.md); the KV event index says it holds the longest prefix. | ratio, estimate |
113
113
||`relocate`| The lowest cost, though the index says another worker holds a longer prefix: that worker's queue outweighs the reuse. | ratio, estimate when the index knows the worker |
114
114
||`miss`| The lowest cost; by the index, no candidate holds any of the prompt. | ratio, estimate when the index knows the worker |
115
-
||`text_hit`| The request cannot match the index (no tokens, media, or no candidate's events indexed): the lowest cost, crediting the worker holding the longest match in the text tree. | ratio, estimate |
115
+
||`text_hit`| The request cannot match the index (no tokens, media, or no candidate's events indexed): the lowest cost, crediting the healthy candidate holding the longest match in the text tree. | ratio, estimate |
116
116
||`text_relocate`| The same, but another worker holds the longest text match. | ratio |
117
117
||`text_miss`| The same; nothing in the text tree matches. | ratio |
118
118
||`unmatched`| Neither tokens nor text: the lowest cost by load. ||
0 commit comments