Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
8848064
[ATOM gRPC] atomesh: the Session link to an ATOM instance
Jasen2201 Nov 21, 2026
8cd72f5
Merge the Generate review fixes (#3673) into the atomesh Session link
Jasen2201 Nov 22, 2026
8703810
Merge Abort before submission (#3673) into the atomesh Session link
Jasen2201 Nov 22, 2026
fb9146a
Merge the chat-template and top_logprobs review fixes (#3673) into th…
Jasen2201 Nov 22, 2026
06d718a
Merge the stop-string review fixes (#3675) into the Session link
Jasen2201 Nov 22, 2026
50bd6c0
Merge the step-flush ordering fix (#3673) into the atomesh Session link
Jasen2201 Nov 22, 2026
d859d00
Merge discovery and P/D (#3676) into the Session link
Jasen2201 Nov 22, 2026
097eb0b
Merge discovery and P/D (#3676) into the Session link
Jasen2201 Nov 23, 2026
7eca3fd
Merge structured output and render (#3677) into the Session link
Jasen2201 Nov 23, 2026
ad9bf1e
Merge structured output and render (#3677) into the Session link
Jasen2201 Nov 23, 2026
58b7113
Merge structured output and render (#3677) into the Session link
Jasen2201 Nov 23, 2026
79a8497
Merge structured output and render (#3677) into the Session link
Jasen2201 Nov 23, 2026
3b7db0b
Merge structured output and render (#3677) into the Session link
Jasen2201 Nov 23, 2026
cbcc88e
atomesh Session: keep Abort and Submit in queue order; a stale stream…
Jasen2201 Nov 23, 2026
4a235e2
Merge main into the atomesh Session link
Jasen2201 Nov 23, 2026
2dc20db
Merge atomesh structured output and render into the atomesh Session link
Jasen2201 Nov 23, 2026
64950bc
atomesh: the Session's GenerateComplete defaults the new fields
Jasen2201 Nov 23, 2026
3472a87
Merge the D and E fixes into atomesh Session link
Jasen2201 Nov 23, 2026
2d32688
Merge the F fixes into atomesh's Session link
Jasen2201 Nov 23, 2026
6162329
Merge the F fixes into atomesh's Session link
Jasen2201 Nov 23, 2026
2118df8
Merge structured output and render's headers and fixes into the Sessi…
Jasen2201 Nov 23, 2026
6c8aa06
Give the Session link's new files the full source header
Jasen2201 Nov 23, 2026
beba50b
Merge structured output and render's import fix into the Session link
Jasen2201 Nov 23, 2026
441e37b
Merge structured output and render's fixes into the Session link
Jasen2201 Nov 23, 2026
6330a0f
atomesh: a Session completion reports its TTFT, TPOT and latency
Jasen2201 Nov 23, 2026
9cad33e
atomesh: name the Python constant the Session's seq_id window must equal
Jasen2201 Nov 23, 2026
bcede18
atomesh: bound the Session's opening and open it outside any lock
Jasen2201 Nov 23, 2026
45350a8
atomesh: bound each Session request's unread outputs
Jasen2201 Nov 23, 2026
7e2e4e8
atomesh: release a Session once its instance has no registered worker
Jasen2201 Nov 23, 2026
8850422
atomesh: read ATOM's messages of any size
Jasen2201 Nov 23, 2026
b8e12d5
Merge structured output and render's namespace, tokenizer and stream-…
Jasen2201 Nov 23, 2026
006ee2e
Merge structured output and render's namespace, metadata and merged E…
Jasen2201 Nov 24, 2026
48509db
Merge structured output and render's merged readiness and greedy-n fi…
Jasen2201 Nov 24, 2026
f6ea132
Merge structured output and render's test-fixture fix into the Sessio…
Jasen2201 Nov 24, 2026
ca992a7
Merge structured output and render's reasoning, kwargs, template and …
Jasen2201 Nov 24, 2026
35deac7
atomesh: bound a Session's unsent prompts and free a cancelled one's
Jasen2201 Nov 24, 2026
b5b6406
Merge structured output and render's merged E fixes into the Session …
Jasen2201 Nov 24, 2026
eb317cc
Merge structured output and render's thinking, cut-off call, long Com…
Jasen2201 Nov 24, 2026
56ee970
atomesh: a cancelled unsent Session request holds its bytes until dis…
Jasen2201 Nov 24, 2026
4c9b01f
Merge structured output and render's review fixes and merge of main i…
Jasen2201 Nov 24, 2026
f6f5046
Merge structured output and render's tool-call fixes and template bin…
Jasen2201 Nov 24, 2026
11eafea
atomesh: a request larger than the Session's unsent budget is refused
Jasen2201 Nov 24, 2026
0b895ef
Merge structured output and render's ATOM-only bare Qwen calls, per-t…
Jasen2201 Nov 24, 2026
e17f483
Merge structured output and render's quoted-wrapper, held-text and cu…
Jasen2201 Nov 24, 2026
0d38512
Merge structured output and render's MiniMax held text, declared bare…
Jasen2201 Nov 24, 2026
2b16e63
Merge structured output and render's merge of the one-step template a…
Jasen2201 Nov 24, 2026
8f22944
Merge structured output and render's per-call Qwen arguments and cons…
Jasen2201 Nov 24, 2026
f7cdfcf
Merge structured output and render's merge of the tokenizer handover …
Jasen2201 Nov 24, 2026
0cc0acb
atomesh: a Session's reader ends when its last handle drops
Jasen2201 Nov 24, 2026
65e78f9
atomesh: a dropped request that does not stream keeps no ids
Jasen2201 Nov 24, 2026
6885945
Merge structured output and render's bare-header, /generate decoding …
Jasen2201 Nov 24, 2026
e3e108b
Merge the engine's skip of a turned-off prefix chain store into the S…
Jasen2201 Nov 26, 2026
b9fe76d
Merge main into the Session link
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
23 changes: 19 additions & 4 deletions atom/mesh/src/routers/grpc/engine/atom/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,24 @@
// Copyright (C) 2026, Advanced Micro Devices, Inc. All rights reserved.
// Copyright (c) 2026 ATOM Project Contributors
//! ATOM workers over `atom.grpc.v1`: the client, a payload as a GenerateRequest,
//! a Generate stream as `TokenChunk`s, and ATOM's P/D flow for a pair.
//! a Generate stream as `TokenChunk`s, ATOM's P/D flow for a pair, and the Session.

pub(crate) mod pair;
pub(crate) mod request;
// No router sends requests over a Session yet; its tests do.
#[cfg_attr(not(test), allow(dead_code))]
pub(crate) mod session;
pub(crate) mod stream;

use std::time::Duration;

use futures::Stream;
use tonic::{transport::Channel, Status, Streaming};

use crate::atom_engine::grpc::{
atom_engine_client::AtomEngineClient, GenerateRequest, GenerateResponse, GetModelInfoRequest,
GetModelInfoResponse, GetServerInfoRequest, GetServerInfoResponse, HealthCheckRequest,
HealthCheckResponse,
atom_engine_client::AtomEngineClient, Frames, GenerateRequest, GenerateResponse,
GetModelInfoRequest, GetModelInfoResponse, GetServerInfoRequest, GetServerInfoResponse,
HealthCheckRequest, HealthCheckResponse,
};

/// One ATOM instance's `AtomEngine` service.
Expand Down Expand Up @@ -80,6 +84,17 @@ impl AtomClient {
let mut client = self.client.clone();
Ok(client.generate(request).await?.into_inner())
}

/// The Session call: ATOM reads `frames` as they come and answers on the
/// returned stream.
#[cfg_attr(not(test), allow(dead_code))]
pub async fn session(
&self,
frames: impl Stream<Item = Frames> + Send + 'static,
) -> Result<Streaming<Frames>, Status> {
let mut client = self.client.clone();
Ok(client.session(frames).await?.into_inner())
}
}

#[cfg(test)]
Expand Down
2 changes: 1 addition & 1 deletion atom/mesh/src/routers/grpc/engine/atom/pair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ fn is_atom(worker: &Arc<dyn Worker>) -> bool {
worker.metadata().runtime_type == RuntimeType::Atom
}

async fn atom_client(worker: &Arc<dyn Worker>) -> Option<AtomClient> {
pub(super) async fn atom_client(worker: &Arc<dyn Worker>) -> Option<AtomClient> {
match get_grpc_client_from_worker(worker).await {
Ok(GrpcClient::Atom(client)) => Some(client),
_ => None,
Expand Down
Loading
Loading