Skip to main content

plan_qwen4exp_storage

Function plan_qwen4exp_storage 

pub fn plan_qwen4exp_storage<H>(
    index: &TensorIndex<H>,
    model_file_bytes: u64,
    gpu_budget_bytes: u64,
    host_budget_bytes: u64,
    gpu_kv_reserve_bytes: u64,
    host_ple_staging_bytes: u64,
    host_os_floor_bytes: u64,
) -> Result<Qwen4ExpStoragePlan, Qwen4ExpStorageError>
where H: HyperparamsSource,
Expand description

Create a storage placement receipt without probing hardware or allocating.

gpu_budget_bytes and host_budget_bytes are already-reserved budgets, not physical totals. host_ple_staging_bytes is the bounded caller-owned gather slab for the current micro-batch.