vllm.transformers_utils.deepseek_v4_utils
¶
Functions:
-
get_compress_ratios–Per-layer compress ratios (0 = sliding window), MTP layers included.
get_compress_ratios(config)
¶
Per-layer compress ratios (0 = sliding window), MTP layers included.
Reads the legacy compress_ratios of DeepSeek-V4.1 configs, or derives it
from layer_types of the upstream DeepseekV4Config, which drops the MTP
layers. Returns an empty list for other configs.