From e9107fe43ca6306d9c6ef8c614faa123e4aa9d2b Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Tue, 24 Nov 2026 02:01:08 +0100 Subject: [PATCH] comments: the serving context is no longer called process-wide (STRA-338) --- crates/cuda-model/src/lib.rs | 2 +- .../src/backend/original_serve_prefix_smoke.rs | 2 +- .../src/model_binding/weight_binding/binding_identity.rs | 2 +- .../src/qwen_forward/original_serve_config.rs | 2 +- .../engine-qwen35-cuda/src/qwen_forward/original_serve_stack.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/cuda-model/src/lib.rs b/crates/cuda-model/src/lib.rs index da5026b7..ae3d057b 100644 --- a/crates/cuda-model/src/lib.rs +++ b/crates/cuda-model/src/lib.rs @@ -1,7 +1,7 @@ //! Pure host-side models of the CUDA driver crate (`leleka-cuda-driver`), split out by STRA-338 S24. //! //! Nothing here touches the CUDA Driver API, a context, a device buffer, FFI or PTX: the error type, the closed -//! projection formats and geometries, the process-wide serving context, the planners and the pure halves of the +//! projection formats and geometries, the serving context value, the planners and the pure halves of the //! Original kernels. The driver re-exports every public item at its old path, so `leleka_cuda_driver::...` paths do //! not change. The `.cu`/`.ptx` sources and oracle fixtures that some tests check stay with the driver. #![forbid(unsafe_code)] diff --git a/crates/engine-qwen35-cuda/src/backend/original_serve_prefix_smoke.rs b/crates/engine-qwen35-cuda/src/backend/original_serve_prefix_smoke.rs index bd48d9d9..df0f055a 100644 --- a/crates/engine-qwen35-cuda/src/backend/original_serve_prefix_smoke.rs +++ b/crates/engine-qwen35-cuda/src/backend/original_serve_prefix_smoke.rs @@ -29,7 +29,7 @@ //! * `LELEKA_PFX_LAPTOP=yes` the laptop profile: the KAR archive as a read-only file //! (`LELEKA_LAPTOP_KAR_FILE`, else the sealed memfd), the routed experts mapped from the shard instead of copied into //! RAM, `LELEKA_LAPTOP_CPU_WORKERS` (7), the `auto` prefix budget of the laptop profile, `LELEKA_LAPTOP_CELLS` (a -//! smaller process geometry). +//! smaller serving context). //! //! Run: `cargo test -p leleka-engine-qwen35-cuda -- --ignored --exact //! backend::original_serve_prefix_smoke::original_serve_prefix_cache_smoke`. diff --git a/crates/engine-qwen35-cuda/src/model_binding/weight_binding/binding_identity.rs b/crates/engine-qwen35-cuda/src/model_binding/weight_binding/binding_identity.rs index 734f708c..e69f95c6 100644 --- a/crates/engine-qwen35-cuda/src/model_binding/weight_binding/binding_identity.rs +++ b/crates/engine-qwen35-cuda/src/model_binding/weight_binding/binding_identity.rs @@ -81,7 +81,7 @@ impl InputConstants { pub(crate) fn eos(&self) -> u32 { self.eos } - /// The serving context in cells (the bound of every `Position`): 262144 unless the process configured a + /// The serving context in cells (the bound of every `Position`): 262144 unless the backend served a /// larger one. NOT the artifact's metadata value; that is [`Self::trained_context`]. pub(crate) fn context_length(&self) -> u32 { self.serving_cells diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/original_serve_config.rs b/crates/engine-qwen35-cuda/src/qwen_forward/original_serve_config.rs index 6fe99157..05be4207 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/original_serve_config.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/original_serve_config.rs @@ -1,4 +1,4 @@ -//! Mode17 values of the Original serve path, derived once from the model binding and the process serving +//! Mode17 values of the Original serve path, derived once from the model binding and the serving //! context. Everything here is configuration, never a certificate: each value names the line of the //! Original it mirrors, so a hardware run can diff them against the CLI it is compared with. use super::contract::{Error, Result}; diff --git a/crates/engine-qwen35-cuda/src/qwen_forward/original_serve_stack.rs b/crates/engine-qwen35-cuda/src/qwen_forward/original_serve_stack.rs index a77910c7..39d53067 100644 --- a/crates/engine-qwen35-cuda/src/qwen_forward/original_serve_stack.rs +++ b/crates/engine-qwen35-cuda/src/qwen_forward/original_serve_stack.rs @@ -116,7 +116,7 @@ pub(crate) struct StackConfig { /// Empty (no governor) for a stack that is opened without a memory-governed start, as in the smokes. pub(crate) memory: leleka_memory::MemoryServices, pub(crate) capacity: usize, - /// The request ceiling (`--max-context`): at most the process serving cell count. + /// The request ceiling (`--max-context`): at most the serving cell count of the binding. pub(crate) max_context: i64, /// `--mtp DIR`: the Original-literal RT directory; `None` takes the digest-pinned pack of the binding. pub(crate) rt_directory: Option,