You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GGUF files store an enum ggml_type for each ggml_tensor. The file reads and writes of this type are of size sizeof(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).
The text was updated successfully, but these errors were encountered:
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).The text was updated successfully, but these errors were encountered: