comments: the serving context is no longer called process-wide (STRA-338)

This commit is contained in:
Pavlo Ratushnyi
2026-11-24 02:01:08 +01:00
parent c1fa88db87
commit e9107fe43c
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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)]
@@ -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`.
@@ -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
@@ -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};
@@ -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<PathBuf>,