mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-10-28 17:56:13 +08:00
allows the usage of 4-10 gpus for stepfun and laguna in tensor parallel (#24554)
This commit is contained in:
1 parent
5c31142682
commit
06230cb877
1 file changed
+7
@@ -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};
|
||||
|
||||
Reference in new issue
Block a user