Module progress

Module progress 

Source
Expand description

2026-09-26: Structured startup-progress events for the TUI.

Each function emits one debug! event under TARGET. The TUI’s progress layer accepts that target whatever RUST_LOG says (crates/server/src/tui/init.rs) and decodes the fields.

Discriminated by the ev field: phase — phase (0..=11), name preflight — disk_gb, free_gb shard_start — shard (1-based), total, name shard_done — shard, total, used_gb, free_gb layer — layer (layers loaded so far), total ready — port

Owner: telemetry. Invariants: every event here is emitted under TARGET.

Constants§

TARGET
2026-09-26: The target of every event here, which the TUI’s progress layer filters on. The debug! calls below repeat it as a literal.

Functions§

layer
2026-09-26: Layer-build progress, sampled by the weight loaders.
phase
2026-09-26: A named startup phase has begun; phase is its index.
preflight
2026-09-26: Weight-load preflight: estimated on-disk weight GB and free GPU GB.
ready
2026-09-26: The server is listening.
shard_done
2026-09-26: A shard finished, with GPU memory used and free in GB.
shard_start
2026-09-26: A safetensors shard load has started.