/** * import/safetensors.ts — read weights FROM the HF-native `.safetensors` format. * * The exact inverse of {@link ../export/safetensors.ts}: parse the 8-byte * little-endian u64 header length, the JSON header (name → {dtype, shape, * data_offsets}), then decode each tensor's raw bytes into a Float32Array. * F32 and F16 are supported (F16 is widened to f32 on read). This is the reader * half of the warm-start / weight-port path — export was one-directional before. */ import type { NamedTensor } from "../export/tensors.js"; /** Decode a `.safetensors` byte buffer into named F32 tensors (header order). */ export declare function safetensorsToTensors(bytes: Uint8Array): NamedTensor[]; //# sourceMappingURL=safetensors.d.ts.map