A simple safetensors file meta reader
To build the project using CMake, follow these steps:
-
Install CMake: Ensure that CMake is installed on your system. You can download it from cmake.org.
-
Create a Build Directory: It's a good practice to build the project in a separate directory to keep the source directory clean. Create a directory named
build
inside the project root:mkdir build cd build
-
Generate Build Files: Run CMake to generate the necessary build files. This will configure the project:
cmake ..
-
Compile the Project: Use the generated build files to compile the project:
cmake --build .
-
Run the Executable: After building the project, you can run the executable. For example:
./SafetensorsReader <path_to_safetensors_file>
Replace <path_to_safetensors_file>
with the actual path to the safetensors file you want to read.