Skip to content
Open
Show file tree
Hide file tree
Changes from 84 commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
194848e
[ATOM gRPC] atomesh: discover ATOM gRPC workers and run ATOM P/D over…
Jasen2201 Nov 21, 2026
859cbaf
Merge the Generate review fixes (#3673) into atomesh discovery and P/D
Jasen2201 Nov 22, 2026
16f6e59
Merge Abort before submission (#3673) into atomesh discovery and P/D
Jasen2201 Nov 22, 2026
8aef5f5
Merge the chat-template and top_logprobs review fixes (#3673) into at…
Jasen2201 Nov 22, 2026
4ad791d
Merge the stop-string review fixes (#3675) into atomesh discovery and…
Jasen2201 Nov 22, 2026
591eaa1
Merge the step-flush ordering fix (#3673) into atomesh discovery and P/D
Jasen2201 Nov 22, 2026
4e11242
Merge the atomesh client (#3675) into discovery and P/D
Jasen2201 Nov 22, 2026
a51cd72
Merge the atomesh client (#3675) into discovery and P/D
Jasen2201 Nov 23, 2026
bd80828
Merge the atomesh client (#3675) into discovery and P/D
Jasen2201 Nov 23, 2026
954e536
Merge the atomesh client (#3675) into discovery and P/D
Jasen2201 Nov 23, 2026
244b4d9
atomesh: follow an ATOM gRPC worker's KV events from GetServerInfo
Jasen2201 Nov 23, 2026
eae01a9
Merge the atomesh client (#3675) into discovery and P/D
Jasen2201 Nov 23, 2026
d071e42
Merge the atomesh client (#3675) into discovery and P/D
Jasen2201 Nov 23, 2026
09f96bb
atomesh ATOM P/D: read a prefill registered after startup on its firs…
Jasen2201 Nov 23, 2026
056edf1
Merge main into atomesh discovery and P/D
Jasen2201 Nov 23, 2026
615a5df
Test that a fastokens model renders a worker's inline chat template
Jasen2201 Nov 23, 2026
6a35eda
Merge the atomesh client into atomesh discovery and P/D
Jasen2201 Nov 23, 2026
6adbb2f
atomesh: default GetModelInfo's parser fields in the discovery test stub
Jasen2201 Nov 23, 2026
2266555
Merge the D fixes into atomesh discovery and P/D
Jasen2201 Nov 23, 2026
c1d617e
atomesh: take an ATOM worker's parsers from GetModelInfo
Jasen2201 Nov 23, 2026
ac0a856
atomesh: answer chats for an ATOM model without a chat template with 501
Jasen2201 Nov 23, 2026
22cdb58
Merge the D fixes into atomesh discovery and P/D
Jasen2201 Nov 23, 2026
2d6e7d3
atomesh: bound an ATOM prefill's GetServerInfo read by its health tim…
Jasen2201 Nov 23, 2026
9f42706
atomesh: refuse a P/D pair of an ATOM and a non-ATOM worker
Jasen2201 Nov 23, 2026
763272c
atomesh: read a prefill's GetServerInfo again when it registers again
Jasen2201 Nov 23, 2026
f50312c
atomesh: measure an ATOM pair's TTFT from the start of the pair
Jasen2201 Nov 23, 2026
467782d
Merge the D fixes into atomesh discovery and P/D
Jasen2201 Nov 23, 2026
8036482
Merge the D fixes into atomesh discovery and P/D
Jasen2201 Nov 23, 2026
4b869b3
atomesh: refuse an ATOM model's chats its tokenizer renders with a bu…
Jasen2201 Nov 23, 2026
2dfa23c
atomesh: read a new prefill's GetServerInfo once for concurrent first…
Jasen2201 Nov 23, 2026
de94ac3
atomesh: keep the runtime a worker's gRPC health probe found
Jasen2201 Nov 23, 2026
d6b0761
Merge the D fixes into atomesh discovery and P/D
Jasen2201 Nov 23, 2026
460f020
Test that a registered ATOM worker carries its usage_on_finish label
Jasen2201 Nov 23, 2026
d555c4e
Merge the D fixes into atomesh discovery and P/D
Jasen2201 Nov 23, 2026
a5278ba
Merge the D fixes into atomesh discovery and P/D
Jasen2201 Nov 23, 2026
46ee282
atomesh: load a model's tokenizer again when a later worker advertise…
Jasen2201 Nov 23, 2026
3126b9f
Merge the D fixes into atomesh discovery and P/D
Jasen2201 Nov 23, 2026
35aebf9
atomesh: read a DP prefill's GetServerInfo once for all its ranks' fi…
Jasen2201 Nov 23, 2026
cb7251f
atomesh: load a replacement tokenizer before removing the loaded one
Jasen2201 Nov 23, 2026
71bd9b0
Merge the atomesh client's headers into discovery and P/D
Jasen2201 Nov 23, 2026
0bfb5f8
Give discovery and P/D's new files the full source header
Jasen2201 Nov 23, 2026
d6dc6ba
atomesh: a replaced DP rank reads its instance afresh, for every rank
Jasen2201 Nov 23, 2026
c2d7395
Merge the atomesh client's fixes into discovery and P/D
Jasen2201 Nov 23, 2026
0c5f166
atomesh: one registration of a tokenizer name at a time
Jasen2201 Nov 23, 2026
3510505
atomesh: forget a removed prefill's info at the next GetServerInfo read
Jasen2201 Nov 23, 2026
bd8460d
atomesh: a tokenizer lookup during a template swap waits for the new one
Jasen2201 Nov 23, 2026
1cf0a7c
atomesh: a template file registered for a model replaces a worker's t…
Jasen2201 Nov 23, 2026
cbf9011
atomesh: a streamed response dropped by its client drops its token st…
Jasen2201 Nov 23, 2026
23d1fe2
Merge the atomesh client's merged Session fix into discovery and P/D
Jasen2201 Nov 23, 2026
126b2a6
atomesh: a tokenizer swap keeps the replaced tokenizer visible, witho…
Jasen2201 Nov 23, 2026
6aa2c32
atomesh: a chat reads the built-in-encoder mark of the tokenizer it uses
Jasen2201 Nov 23, 2026
fadd79e
Merge the atomesh client's merged admission-cap fix into discovery an…
Jasen2201 Nov 23, 2026
74c8576
atomesh: drop a needless path qualification in a prepare test
Jasen2201 Nov 23, 2026
985b934
atomesh: a prefill's cached info is read with the check that it was read
Jasen2201 Nov 23, 2026
e492af8
atomesh: first pairs to a stalled prefill share one bounded read
Jasen2201 Nov 23, 2026
8886593
atomesh: a chat reads its tokenizer and that tokenizer's mark under o…
Jasen2201 Nov 23, 2026
417bfba
atomesh: refuse a model's chats until its tokenizer carries a live AT…
Jasen2201 Nov 23, 2026
81ba785
Merge the atomesh client's deterministic leg-refusal test into discov…
Jasen2201 Nov 23, 2026
25f303b
atomesh: drop the generic-arm leg-refusal test, which ATOM pairs no l…
Jasen2201 Nov 23, 2026
e8049da
Merge the atomesh client's merged seq_id-reuse fix into discovery and…
Jasen2201 Nov 24, 2026
45a50a0
atomesh: a tokenizer with no worker template recorded waits for the w…
Jasen2201 Nov 24, 2026
ed3bf5f
Merge the atomesh client's merged greedy-n fix into discovery and P/D
Jasen2201 Nov 24, 2026
0227d86
atomesh: a worker's inline template does not replace a template file
Jasen2201 Nov 24, 2026
a50cee7
atomesh: a strict tokenizer registration replaces no loaded tokenizer
Jasen2201 Nov 24, 2026
94c2125
atomesh: a template file serves an ATOM model's chats as --chat-templ…
Jasen2201 Nov 24, 2026
81d9867
Merge the atomesh client's merged seq_id-race fixes into discovery an…
Jasen2201 Nov 24, 2026
593c8f7
atomesh: a template file replaces any template but the same file
Jasen2201 Nov 24, 2026
e898e9f
atomesh: a removed rank's instance is read again when a rank returns
Jasen2201 Nov 24, 2026
ea1d316
atomesh: a gRPC worker reporting unhealthy is not registered
Jasen2201 Nov 24, 2026
68c9c72
atomesh: name read_for's value type
Jasen2201 Nov 24, 2026
96bf7a3
Merge the atomesh client's merged structured-stops refusal into disco…
Jasen2201 Nov 24, 2026
331ef0c
Merge the atomesh client's merged delivery-time stamping into discove…
Jasen2201 Nov 24, 2026
a31e439
Merge the atomesh client's arrival-on-read stamping and 4 MiB reply f…
Jasen2201 Nov 24, 2026
7a80500
atomesh: an ATOM chat's reasoning effort sets thinking_effort, as on …
Jasen2201 Nov 24, 2026
bae97a5
atomesh: /v1/tokenize and /v1/detokenize find a model's tokenizer mid…
Jasen2201 Nov 24, 2026
aa1b418
atomesh: a tokenizer's template is recorded before the tokenizer is v…
Jasen2201 Nov 24, 2026
9f34019
atomesh: a removed worker's tokenizer job replaces nothing
Jasen2201 Nov 24, 2026
46055b2
atomesh: a chat is sent only to workers that render its template
Jasen2201 Nov 24, 2026
c6f4a31
atomesh: only an ATOM worker's HealthCheck must say healthy to register
Jasen2201 Nov 24, 2026
731d59d
atomesh: a removed worker's template-file job replaces nothing either
Jasen2201 Nov 24, 2026
419d19f
atomesh: an ATOM chat's reasoning effort "none" switches its toggle o…
Jasen2201 Nov 24, 2026
8bfd388
Merge the atomesh client's merges of the Session teardown and main in…
Jasen2201 Nov 24, 2026
02e31a7
atomesh: one chat template per model across its live workers
Jasen2201 Nov 24, 2026
bd15289
Merge the atomesh client's merges of the Session fixes and main into …
Jasen2201 Nov 24, 2026
54cb196
atomesh: a removed worker's tokenizer job loads nothing
Jasen2201 Nov 24, 2026
16076b3
atomesh: a chat is placed only on the ATOM workers serving its template
Jasen2201 Nov 24, 2026
756be05
atomesh: a chat's tokenizer and what it was loaded with come from one…
Jasen2201 Nov 24, 2026
15077b6
atomesh: placement reads a tokenizer's template file as the fingerpri…
Jasen2201 Nov 24, 2026
7f44954
atomesh: a model's template is checked while its tokenizer still loads
Jasen2201 Nov 24, 2026
356436b
atomesh: a worker's template ranks the tokenizer's template file abov…
Jasen2201 Nov 24, 2026
c0780dd
atomesh: an ATOM worker's template is admitted and registered in one …
Jasen2201 Nov 24, 2026
2d4da70
atomesh: a model's last worker leaving keeps a tokenizer a worker was…
Jasen2201 Nov 24, 2026
7894a34
Merge the engine's skip of a turned-off prefix chain store into atome…
Jasen2201 Nov 26, 2026
678eb04
Merge main into atomesh discovery and P/D
Jasen2201 Nov 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion atom/mesh/src/app_context.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::{
collections::HashSet,
collections::{HashMap, HashSet},
sync::{Arc, OnceLock},
time::Duration,
};
Expand Down Expand Up @@ -55,6 +55,14 @@ pub struct AppContext {
/// their Jinja template, found as each registers. HTTP routing does not
/// tokenize those chats.
pub chats_without_template: Arc<RwLock<HashSet<String>>>,
/// Registry ids of the tokenizers loaded with a worker's inline chat template
/// (an ATOM worker's GetModelInfo), with that template.
pub tokenizer_inline_templates: Arc<RwLock<HashMap<String, String>>>,
/// Registry ids of the tokenizers a registration loaded with a template file, with
/// that file's path.
pub tokenizer_template_files: Arc<RwLock<HashMap<String, String>>>,
/// Per tokenizer name, held while a registration loads its tokenizer.
pub tokenizer_registering: Arc<dashmap::DashMap<String, Arc<tokio::sync::Mutex<()>>>>,
/// `router_config`'s tokenization byte limits.
pub(crate) tokenize_limits: TokenizeLimits,
pub reasoning_parser_factory: Option<ReasoningParserFactory>,
Expand Down Expand Up @@ -110,6 +118,13 @@ pub struct AppContextBuilder {
}

impl AppContext {
/// Drops what registration recorded about the tokenizer with registry id `id`.
pub fn forget_tokenizer(&self, id: &str) {
self.chats_without_template.write().remove(id);
self.tokenizer_inline_templates.write().remove(id);
self.tokenizer_template_files.write().remove(id);
}

pub fn builder() -> AppContextBuilder {
AppContextBuilder::new()
}
Expand Down Expand Up @@ -300,6 +315,9 @@ impl AppContextBuilder {
.tokenizer_registry
.ok_or(AppContextBuildError("tokenizer_registry"))?,
chats_without_template: Default::default(),
tokenizer_inline_templates: Default::default(),
tokenizer_template_files: Default::default(),
tokenizer_registering: Default::default(),
tokenize_limits,
reasoning_parser_factory: self.reasoning_parser_factory,
tool_parser_factory: self.tool_parser_factory,
Expand Down
2 changes: 1 addition & 1 deletion atom/mesh/src/core/job_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ impl JobQueue {
// Tokenizer removal is synchronous and fast
if let Some(entry) = context.tokenizer_registry.remove_by_id(&request.id) {
crate::routers::prepare::thread_tokenizer::release_copies(&entry.id);
context.chats_without_template.write().remove(&entry.id);
context.forget_tokenizer(&entry.id);
info!(
"Successfully removed tokenizer '{}' (id: {})",
entry.name, entry.id
Expand Down
2 changes: 1 addition & 1 deletion atom/mesh/src/core/placement/backend/atom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use super::{BackendAdapter, PairCtx};
use crate::config::types::AtomPdRankMappingPolicy;
use crate::core::{Worker, WorkerRegistry};

#[derive(Default)]
#[derive(Clone, Default)]
pub struct AtomPrefillInfo {
pub tp_sizes: HashMap<String, usize>,
pub chunked_transfer: HashMap<String, Value>,
Expand Down
Loading
Loading