Last updated: 2026-11-17

Inference Runtime

Upload Plan

All API Sections

Bound temporary model-upload memory without changing tensor bytes.

Plan exact byte windows for reusable staging, including large offsets and tails. The host-only contracts run on every backend without opening a GPU.

3 exports 0 methods src/gpu/upload_plan.zig

3 exports shown

constant

staging_limit_bytes

#
pub const staging_limit_bytes: u64 = 64 * 1024 * 1024

No public doc comment yet.

src/gpu/upload_plan.zig:8

function

stagingCapacity

#
pub fn stagingCapacity(largest_tensor_bytes: u64) u64

No public doc comment yet.

src/gpu/upload_plan.zig:10

struct

Chunk

#
pub const Chunk = struct offset: u64, size: u64 }

Memory Layout

Size: 16 bytes (alignment: 8)

Offset Size Align Field Type
0 8 8 offset u64
8 8 8 size u64

No public doc comment yet.

src/gpu/upload_plan.zig:14