fix condition in load_train_state_gguf

This commit is contained in:
xaedes 2023-09-16 21:10:16 +02:00
parent 9139fec7ff
commit 1d33ec5b1c
No known key found for this signature in database
GPG key ID: 30030EDD817EA2B1

View file

@ -653,7 +653,7 @@ void save_opt_context_gguf(struct gguf_context * fctx, struct ggml_opt_context *
}
bool load_train_state_gguf(struct gguf_context * fctx, struct ggml_context * f_ggml_ctx, struct train_state * train) {
if (gguf_find_key(fctx, LLM_KV_TRAINING_FILE_VERSION) >= 0) {
if (gguf_find_key(fctx, LLM_KV_TRAINING_FILE_VERSION) < 0) {
return false;
}