support online FP8 quantization for FA on NPU #2236 (#2640)

Signed-off-by: lyj-jjj <liuyingjun5@huawei.com>
Signed-off-by: gcanlin <canlinguosdu@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: gcanlin <canlinguosdu@gmail.com>
This commit is contained in:
authored and GitHub committed 2026-05-13 11:46:00 +08:00
1 parent 83bbe39d39
commit 56ca7dd612
20 files changed
+823 -25

No files matched your search

+21
View File
@@ -472,6 +472,27 @@ class OmniServeCommand(CLISubcommand):
default=None,
help="Scheduler flow_shift for video models (e.g., 5.0 for 720p, 12.0 for 480p).",
)
# vLLM already registers --kv-cache-dtype for the serve parser. Keep
# this fallback only for older vLLM versions where the option is absent.
if "--kv-cache-dtype" not in serve_parser._option_string_actions:
omni_config_group.add_argument(
"--kv-cache-dtype",
type=str,
default=None,
help="Config-level KV cache dtype (e.g. fp8).",
)
omni_config_group.add_argument(
"--kv-cache-skip-steps",
type=str,
default=None,
help="Config-level KV-cache quantization skip-step selector, e.g. '0-9,20,25-30'.",
)
omni_config_group.add_argument(
"--kv-cache-skip-layers",
type=str,
default=None,
help="Config-level KV-cache quantization skip-layer selector, e.g. '0,1,4-8'.",
)
omni_config_group.add_argument(
"--cfg-parallel-size",
type=int,