[Model][Frontend] Add Ling 3.0 Flash BF16, MTP, and parser support (#51045)
Signed-off-by: zexplorerhj <zhjoneson@163.com>
This commit is contained in:
@@ -48,6 +48,7 @@ MTPModelTypes = Literal[
|
||||
"qwen3_next_mtp",
|
||||
"qwen3_5_mtp",
|
||||
"longcat_flash_mtp",
|
||||
"bailing_hybrid_v3_mtp",
|
||||
"minimax_m3_mtp",
|
||||
"bailing_hybrid_mtp",
|
||||
"mtp",
|
||||
@@ -489,7 +490,9 @@ class SpeculativeConfig:
|
||||
)
|
||||
|
||||
architectures = getattr(hf_config, "architectures", []) or []
|
||||
if (
|
||||
if initial_architecture == "BailingMoeV3ForCausalLM":
|
||||
hf_config.model_type = "bailing_hybrid_v3_mtp"
|
||||
elif (
|
||||
hf_config.model_type == "bailing_hybrid"
|
||||
or "BailingMoeV2_5ForCausalLM" in architectures
|
||||
):
|
||||
@@ -502,6 +505,14 @@ class SpeculativeConfig:
|
||||
"architectures": ["BailingMoeV25MTPModel"],
|
||||
}
|
||||
)
|
||||
if hf_config.model_type == "bailing_hybrid_v3_mtp":
|
||||
n_predict = getattr(hf_config, "num_nextn_predict_layers", None)
|
||||
hf_config.update(
|
||||
{
|
||||
"n_predict": n_predict,
|
||||
"architectures": ["BailingMoeV3MTPModel"],
|
||||
}
|
||||
)
|
||||
|
||||
if hf_config.model_type == "exaone_moe":
|
||||
hf_config.model_type = "exaone_moe_mtp"
|
||||
|
||||
Reference in New Issue
Block a user