Open JohannesGaessler opened 22 hours ago
The same applies to sizeof(bool)
. Additionally sizeof(float)
and sizeof(double)
may vary if __STDC_IEC_559__
is not defined. In practice it is not likely to cause issues in the supported platforms, but it would be good to fix it.
GGUF files store an
enum ggml_type
for eachggml_tensor
. The file reads and writes of this type are of sizesizeof(enum ggml_type)
bytes. To my knowledge the underlying datatype for enums is int so this is not portable if the size of int varies (though it should be 4 bytes on most platforms).