allows the usage of 4-10 gpus for stepfun and laguna in tensor parallel (#24554)

This commit is contained in:
Christian Loehnert authored and GitHub committed 2026-10-23 19:56:38 +02:00
1 parent 5c31142682
commit 06230cb877
1 file changed
+7
+7
View File
@@ -853,6 +853,13 @@ struct ggml_backend_meta_split_state llama_meta_device_get_split_state(const str
return {blck_size_perf};
}
if (ud->model->arch == LLM_ARCH_STEP35 || ud->model->arch == LLM_ARCH_LAGUNA) {
GGML_ASSERT(segments.size() == 1);
if (std::regex_match(tensor_name, pattern_attn_gate_weight)) {
return {hparams.n_head(il) / hparams.n_head_kv(il)};
}
}
// everything else
GGML_ASSERT(segments.size() == 1);
return {1};