tensor/safe_tensor_exporter library
Classes
- SafetensorsExporter
- Utility class for serializing and exporting GPUTensor weights into the Hugging Face Safetensors binary format. Handles flattening nested lists, pulling buffers from VRAM to CPU, converting values to 32-bit floats, and writing the 8-byte length prefix, JSON metadata header, and raw data buffer.