[Model] Add DeepSeek-V4 CPU backend (#55355)

Signed-off-by: jiang1.li <jiang1.li@intel.com>
This commit is contained in:
Li, Jiang
2026-09-10 14:14:48 +08:00
committed by GitHub
parent 49632fb3ac
commit c3ccc0e957
47 changed files with 9564 additions and 627 deletions
@@ -92,6 +92,11 @@ _XPU_EXCLUDED_MODEL_IDS = {
"thinkingmachines/Inkling-NVFP4",
}
_CPU_EXCLUDED_MODEL_IDS = {
# DeepSeek-V4 vision variant is only supported on NVIDIA GPUs for now.
"deepseek-ai/DeepSeek-V4-Flash-Vision-Exp",
}
def _iter_model_ids_to_test(model_arch_list: AbstractSet[str]):
for model_arch in model_arch_list:
@@ -113,6 +118,11 @@ def _get_model_ids_to_test(model_arch_list: AbstractSet[str]):
while excluded_model_id in model_ids:
model_ids.remove(excluded_model_id)
if current_platform.is_cpu():
for excluded_model_id in _CPU_EXCLUDED_MODEL_IDS:
while excluded_model_id in model_ids:
model_ids.remove(excluded_model_id)
return model_ids