Unverified Commit bb6d4304 authored by ihb2032's avatar ihb2032 Committed by GitHub
Browse files

[Fix] Improve CPU backend compatibility for RISC-V (#25816)


Signed-off-by: default avatarlyd1992 <liuyudong@iscas.ac.cn>
Signed-off-by: default avatarihb2032 <1355790728@qq.com>
parent bc546f76
......@@ -1160,11 +1160,12 @@ class EngineArgs:
# Set default arguments for V1 Engine.
self._set_default_args(usage_context, model_config)
# Disable chunked prefill for POWER (ppc64le)/ARM/s390x CPUs in V1
# Disable chunked prefill for POWER (ppc64le)/ARM/s390x/RISCV CPUs in V1
if current_platform.is_cpu() and current_platform.get_cpu_architecture(
) in (CpuArchEnum.POWERPC, CpuArchEnum.S390X, CpuArchEnum.ARM):
logger.info("Chunked prefill is not supported for ARM and POWER "
"and S390X CPUs; "
) in (CpuArchEnum.POWERPC, CpuArchEnum.S390X, CpuArchEnum.ARM,
CpuArchEnum.RISCV):
logger.info("Chunked prefill is not supported for ARM and POWER, "
"S390X and RISC-V CPUs; "
"disabling it for V1 backend.")
self.enable_chunked_prefill = False
assert self.enable_chunked_prefill is not None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment