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.
-
Notifications
You must be signed in to change notification settings - Fork 2
A single header library to read .safetensors files from C. Compiles in C++
License
hsnyder/safetensors.h
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A single header library to read .safetensors files from C. Compiles in C++
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published