diff --git a/lora.hpp b/lora.hpp index 6b28a037..c44db769 100644 --- a/lora.hpp +++ b/lora.hpp @@ -82,6 +82,7 @@ struct LoraModel : public GGMLRunner { zero_index = ggml_new_tensor_1d(compute_ctx, GGML_TYPE_I32, 1); set_backend_tensor_data(zero_index, zero_index_vec.data()); + ggml_build_forward_expand(gf, zero_index); std::set applied_lora_tensors; for (auto it : model_tensors) {