Skip to content

A single header library to read .safetensors files from C. Compiles in C++

License

Notifications You must be signed in to change notification settings

hsnyder/safetensors.h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

safetensors.h

This is a public domain single-header C library for reading .safetensors files, which are sometimes used to store machine learning models. It is a single-header library in the style of Sean Barrett (https://github.com/nothings/): The file safetensors.h contains both the header and the library implementation. To use this library, copy safetensors.h into your project, and define SAFETENSORS_IMPLEMENTATION in exactly one .c file, before you include it.

About

A single header library to read .safetensors files from C. Compiles in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages