Files
leleka/control-plane/Cargo.toml
T
Pavlo RatushnyiandClaude Sonnet 5.5 5ebd939b6f feat(memory): wire the governor into the runtime, the gRPC status and the control plane
- leleka-runtime: memory_governor glue (startup plan with refusal, KAR memfd lock/residency guard, VRAM check, load-ledger stages,
  inventory classes), prefix budget from the governor (auto/explicit clamped), shed directive applied per request and per prefill chunk,
  engine-side admission (503 memory_pressure text), page-cache release of the shards after the resident bank load, cgroup-aware
  available_memory.
- backend-api: Backend::memory_report (default None) and ScriptedEngine support; proto Snapshot.memory_json; desktop-core runtime_rpc and
  runtime-client carry it.
- control-plane: MemoryView, /v1/status `memory`, /metrics `memory`, 503 memory_pressure + Retry-After gate before queueing, engine-side
  refusal text mapped to the same 503; tests incl. a 600-request model-free soak (threads/fds/RSS flat).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 01:33:34 +02:00

49 lines
1.8 KiB
TOML

[package]
name = "strata-control"
version = "0.1.0"
edition = "2024"
rust-version = "1.99"
default-run = "strata-next"
[[bin]]
name = "strata-next"
path = "src/main.rs"
[dependencies]
axum = "0.8"
futures-core = "0.3"
hex = "0.4"
leleka-backend-api = { path = "../crates/backend-api" }
leleka-runtime-client = { path = "../crates/runtime-client" }
leleka-tokenizer = { path = "../crates/tokenizer" }
leleka-sampler-ref = { path = "../crates/sampler-ref" }
leleka-serving-policy = { path = "../crates/serving-policy" }
leleka-model-format = { path = "../crates/model-format" }
leleka-offline-tools = { path = "../crates/offline-tools" }
leleka-quant-core = { path = "../crates/quant-core" }
http-body = "1"
jsonschema = { version = "0.58.4", default-features = false }
libc = "0.2"
minijinja = { version = "=2.24.0", default-features = false, features = ["builtins", "macros", "multi_template", "adjacent_loop_items", "serde", "preserve_order", "loop_controls"] }
minijinja-contrib = { version = "=2.24.0", default-features = false, features = ["pycompat"] }
reqwest = { version = "0.13.5", default-features = false, features = ["rustls"] }
regex = "1.13.1"
regex-syntax = "0.8.11"
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["float_roundtrip"] }
sha2 = "0.11"
subtle = "2.6.1"
tokio = { version = "1", features = ["fs", "io-util", "macros", "net", "process", "rt-multi-thread", "signal", "sync", "time"] }
uuid = { version = "1", features = ["v4"] }
webpki-root-certs = "1.0"
[build-dependencies]
cc = "1"
sha2 = "0.11"
[dev-dependencies]
leleka-backend-api = { path = "../crates/backend-api", features = ["scripted"] }
leleka-memory = { path = "../crates/leleka-memory" }
leleka-tokenizer = { path = "../crates/tokenizer" }
http-body-util = "0.1"