chore: Release 0.1.5 (Scheduler), Messwert ersetzt die Buchung sofort, Testbericht Maya und Ollama auf srv04, README und Roadmap

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 15:31:29 +01:00
parent 93b6450f33
commit 930c7401aa
9 changed files with 85 additions and 27 deletions

View File

@ -63,6 +63,9 @@ pub struct Need {
/// Gesamter VRAM-Bedarf in MB, gleichmäßig auf die GPUs verteilt.
/// `None`: unbekannt, das Modell füllt seine GPUs (exklusiv).
pub vram_mb: Option<u64>,
/// Belegt die GPUs immer ganz, auch nach einer Messung (Maya). Sonst
/// ersetzt der gemessene Wert die Buchung „füllt die GPU“.
pub exclusive: bool,
/// Leerlauf, nach dem entladen wird. `None`: nie.
pub idle: Option<Duration>,
}
@ -128,6 +131,7 @@ struct Inst {
model: String,
gpus: Vec<u32>,
claim: Claim,
exclusive: bool,
state: InstState,
active: u32,
last_used: Instant,
@ -158,7 +162,7 @@ pub struct WaitingView {
}
fn claim_of(need: &Need) -> Claim {
match need.vram_mb {
match need.vram_mb.filter(|_| !need.exclusive) {
Some(total) => Claim::Mb(total.div_ceil(need.gpus.len().max(1) as u64)),
None => Claim::All,
}
@ -242,7 +246,7 @@ impl Planner {
if let Some(i) = self.insts.get_mut(&inst) {
i.state = InstState::Ready;
i.last_used = now;
if let (Claim::Mb(_), Some(m)) = (i.claim, measured_mb.filter(|m| *m > 0)) {
if let Some(m) = measured_mb.filter(|m| *m > 0 && !i.exclusive) {
i.claim = Claim::Mb(m.div_ceil(i.gpus.len().max(1) as u64));
}
// Wer auf diesen Ladevorgang gewartet hat, wird zuerst bedient,
@ -473,6 +477,7 @@ impl Planner {
model: job.need.model.clone(),
gpus: gpus.clone(),
claim,
exclusive: job.need.exclusive,
state: InstState::Loading,
active: 0,
last_used: now,