Last updated: 2026-06-12
Hardware Detection
Diagnostics
Vulkan system diagnostics (`zinc --check`).
Probes the host environment, Vulkan driver, GPU capabilities, shader assets, and optional GGUF model fit to produce a human-readable preflight report on stdout.
5 exports shown
struct
Options
pub const Options = struct Configuration for a Vulkan diagnostics run.
struct
ManagedModelInfo
pub const ManagedModelInfo = struct Catalog metadata for a managed (downloadable) model.
struct
FitEstimate
pub const FitEstimate = struct Estimated VRAM breakdown for running a model on a discrete GPU.
function
run
pub fn run(opts: Options, allocator: std.mem.Allocator) !void Run the five-step preflight diagnostics sequence and print a human-readable report to stdout.
Probes host OS, Vulkan driver, compiled shader assets, GPU device capabilities, and (optionally) a GGUF model file. Returns `error.DiagnosticsFailed` if any check is marked FAIL.
function
estimateFit
pub fn estimateFit(inspection: ModelInspection, vram_budget_bytes: u64, requested_context_length: ?u32) FitEstimate Compute a `FitEstimate` that breaks down VRAM usage for a model at a given budget.
Derives weights, KV cache, SSM state, and runtime buffer sizes from the model config and returns per-category byte counts without evaluating fit status.