Merge branch 'upstream' into concedo_experimental

This commit is contained in:
Concedo 2025-04-01 20:16:16 +08:00
commit 8a4a9b8c19
3 changed files with 5 additions and 2 deletions

View file

@ -977,6 +977,7 @@ static void gguf_check_reserved_keys(const std::string & key, const T val) {
if constexpr (std::is_same<T, uint32_t>::value) {
GGML_ASSERT(val > 0 && (val & (val - 1)) == 0 && GGUF_KEY_GENERAL_ALIGNMENT " must be power of 2");
} else {
GGML_UNUSED(val);
GGML_ABORT(GGUF_KEY_GENERAL_ALIGNMENT " must be type u32");
}
}