/** * import/foreign/apply.ts — write ported weights into a live model. * * Kept separate from the port itself so the mapping stays device-free and * testable: {@link portForeignMamba} produces plain `Float32Array`s, this is the * only piece that needs a `GPUDevice`. * * Matching is by parameter NAME, never by position, so a change to * `HybridMambaModel.parameters()` ordering can never silently mis-assign a * buffer — an unexpected or missing name throws instead. */ import type { HybridMambaModel } from "../../model/mamba_model.js"; import type { PortedTensors } from "./plan.js"; /** * Upload every ported tensor into `model`'s parameter buffers. * * Throws when the model expects a parameter the port did not produce, when an * element count disagrees, or when the port produced a name the model does not * have — all three mean the model was built from a different config than * {@link PortedCheckpoint.modelConfig}. */ export declare function applyPortedWeights(model: HybridMambaModel, ported: PortedTensors): void; //# sourceMappingURL=apply.d.ts.map