Skip to content

Commit 0324696

Browse files
authored
fit : count nextn (MTP) blocks in n_gpu_layers so front layers stay on GPU (ggml-org#26177)
1 parent 8e8681e commit 0324696

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/fit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static std::vector<llama_device_memory_data> common_get_device_memory_data_impl(
136136
devs.push_back(llama_model_get_device(model, i));
137137
}
138138

139-
hp_ngl = llama_model_n_layer(model);
139+
hp_ngl = llama_model_n_layer(model) + llama_model_n_layer_nextn(model);
140140
hp_n_ctx_train = llama_model_n_ctx_train(model);
141141
hp_n_expert = llama_model_n_expert(model);
142142

0 commit comments

Comments
 (0)