vllm-cpu-avx512vnni 0.10.2.post2__cp312-cp312-manylinux_2_17_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of vllm-cpu-avx512vnni might be problematic. Click here for more details.
- vllm/_C.abi3.so +0 -0
- vllm/__init__.py +220 -0
- vllm/_bc_linter.py +59 -0
- vllm/_custom_ops.py +2022 -0
- vllm/_ipex_ops.py +404 -0
- vllm/_version.py +34 -0
- vllm/adapter_commons/__init__.py +0 -0
- vllm/adapter_commons/layers.py +16 -0
- vllm/adapter_commons/models.py +106 -0
- vllm/adapter_commons/request.py +26 -0
- vllm/adapter_commons/utils.py +93 -0
- vllm/adapter_commons/worker_manager.py +39 -0
- vllm/assets/__init__.py +0 -0
- vllm/assets/audio.py +45 -0
- vllm/assets/base.py +41 -0
- vllm/assets/image.py +50 -0
- vllm/assets/video.py +138 -0
- vllm/attention/__init__.py +19 -0
- vllm/attention/backends/__init__.py +0 -0
- vllm/attention/backends/abstract.py +348 -0
- vllm/attention/backends/differential_flash_attn.py +935 -0
- vllm/attention/backends/dual_chunk_flash_attn.py +1499 -0
- vllm/attention/backends/flash_attn.py +933 -0
- vllm/attention/backends/flashmla.py +238 -0
- vllm/attention/backends/mla/__init__.py +0 -0
- vllm/attention/backends/mla/common.py +1310 -0
- vllm/attention/backends/placeholder_attn.py +340 -0
- vllm/attention/backends/rocm_aiter_mla.py +410 -0
- vllm/attention/backends/rocm_flash_attn.py +953 -0
- vllm/attention/backends/triton_mla.py +111 -0
- vllm/attention/backends/utils.py +610 -0
- vllm/attention/backends/xformers.py +805 -0
- vllm/attention/layer.py +552 -0
- vllm/attention/layers/__init__.py +0 -0
- vllm/attention/layers/chunked_local_attention.py +91 -0
- vllm/attention/layers/cross_attention.py +159 -0
- vllm/attention/layers/encoder_only_attention.py +86 -0
- vllm/attention/ops/__init__.py +0 -0
- vllm/attention/ops/chunked_prefill_paged_decode.py +405 -0
- vllm/attention/ops/common.py +139 -0
- vllm/attention/ops/flashmla.py +123 -0
- vllm/attention/ops/merge_attn_states.py +43 -0
- vllm/attention/ops/paged_attn.py +261 -0
- vllm/attention/ops/pallas_kv_cache_update.py +124 -0
- vllm/attention/ops/prefix_prefill.py +928 -0
- vllm/attention/ops/rocm_aiter_mla.py +104 -0
- vllm/attention/ops/rocm_aiter_paged_attn.py +102 -0
- vllm/attention/ops/triton_decode_attention.py +676 -0
- vllm/attention/ops/triton_flash_attention.py +984 -0
- vllm/attention/ops/triton_merge_attn_states.py +97 -0
- vllm/attention/ops/triton_unified_attention.py +854 -0
- vllm/attention/selector.py +243 -0
- vllm/attention/utils/__init__.py +0 -0
- vllm/attention/utils/fa_utils.py +85 -0
- vllm/attention/utils/kv_sharing_utils.py +33 -0
- vllm/beam_search.py +87 -0
- vllm/benchmarks/__init__.py +0 -0
- vllm/benchmarks/datasets.py +2651 -0
- vllm/benchmarks/latency.py +170 -0
- vllm/benchmarks/lib/__init__.py +3 -0
- vllm/benchmarks/lib/endpoint_request_func.py +510 -0
- vllm/benchmarks/lib/ready_checker.py +72 -0
- vllm/benchmarks/lib/utils.py +80 -0
- vllm/benchmarks/serve.py +1247 -0
- vllm/benchmarks/throughput.py +696 -0
- vllm/collect_env.py +823 -0
- vllm/compilation/__init__.py +0 -0
- vllm/compilation/activation_quant_fusion.py +193 -0
- vllm/compilation/backends.py +641 -0
- vllm/compilation/base_static_graph.py +51 -0
- vllm/compilation/collective_fusion.py +1190 -0
- vllm/compilation/compiler_interface.py +572 -0
- vllm/compilation/counter.py +47 -0
- vllm/compilation/cuda_graph.py +193 -0
- vllm/compilation/cuda_piecewise_backend.py +117 -0
- vllm/compilation/decorators.py +316 -0
- vllm/compilation/fix_functionalization.py +208 -0
- vllm/compilation/fusion.py +600 -0
- vllm/compilation/fusion_attn.py +303 -0
- vllm/compilation/fx_utils.py +84 -0
- vllm/compilation/inductor_pass.py +136 -0
- vllm/compilation/monitor.py +57 -0
- vllm/compilation/multi_output_match.py +109 -0
- vllm/compilation/noop_elimination.py +165 -0
- vllm/compilation/pass_manager.py +88 -0
- vllm/compilation/sequence_parallelism.py +484 -0
- vllm/compilation/torch25_custom_graph_pass.py +42 -0
- vllm/compilation/vllm_inductor_pass.py +50 -0
- vllm/compilation/wrapper.py +138 -0
- vllm/config/__init__.py +3921 -0
- vllm/config/cache.py +214 -0
- vllm/config/compilation.py +580 -0
- vllm/config/kv_events.py +50 -0
- vllm/config/kv_transfer.py +111 -0
- vllm/config/load.py +113 -0
- vllm/config/lora.py +132 -0
- vllm/config/parallel.py +446 -0
- vllm/config/scheduler.py +304 -0
- vllm/config/utils.py +29 -0
- vllm/connections.py +174 -0
- vllm/core/__init__.py +0 -0
- vllm/core/block/__init__.py +0 -0
- vllm/core/block/block_table.py +399 -0
- vllm/core/block/common.py +371 -0
- vllm/core/block/cpu_gpu_block_allocator.py +439 -0
- vllm/core/block/interfaces.py +319 -0
- vllm/core/block/naive_block.py +466 -0
- vllm/core/block/prefix_caching_block.py +1135 -0
- vllm/core/block/utils.py +28 -0
- vllm/core/block_manager.py +523 -0
- vllm/core/evictor.py +157 -0
- vllm/core/interfaces.py +139 -0
- vllm/core/placeholder_block_space_manager.py +103 -0
- vllm/core/scheduler.py +2028 -0
- vllm/device_allocator/__init__.py +0 -0
- vllm/device_allocator/cumem.py +286 -0
- vllm/distributed/__init__.py +6 -0
- vllm/distributed/communication_op.py +41 -0
- vllm/distributed/device_communicators/__init__.py +0 -0
- vllm/distributed/device_communicators/all2all.py +259 -0
- vllm/distributed/device_communicators/all_reduce_utils.py +292 -0
- vllm/distributed/device_communicators/base_device_communicator.py +277 -0
- vllm/distributed/device_communicators/cpu_communicator.py +201 -0
- vllm/distributed/device_communicators/cuda_communicator.py +294 -0
- vllm/distributed/device_communicators/cuda_wrapper.py +180 -0
- vllm/distributed/device_communicators/custom_all_reduce.py +311 -0
- vllm/distributed/device_communicators/pynccl.py +290 -0
- vllm/distributed/device_communicators/pynccl_wrapper.py +382 -0
- vllm/distributed/device_communicators/quick_all_reduce.py +278 -0
- vllm/distributed/device_communicators/ray_communicator.py +258 -0
- vllm/distributed/device_communicators/shm_broadcast.py +585 -0
- vllm/distributed/device_communicators/symm_mem.py +136 -0
- vllm/distributed/device_communicators/tpu_communicator.py +102 -0
- vllm/distributed/device_communicators/xpu_communicator.py +69 -0
- vllm/distributed/eplb/__init__.py +8 -0
- vllm/distributed/eplb/eplb_state.py +619 -0
- vllm/distributed/eplb/rebalance_algo.py +234 -0
- vllm/distributed/eplb/rebalance_execute.py +424 -0
- vllm/distributed/kv_events.py +362 -0
- vllm/distributed/kv_transfer/README.md +29 -0
- vllm/distributed/kv_transfer/__init__.py +13 -0
- vllm/distributed/kv_transfer/disagg_prefill_workflow.jpg +0 -0
- vllm/distributed/kv_transfer/kv_connector/__init__.py +0 -0
- vllm/distributed/kv_transfer/kv_connector/base.py +10 -0
- vllm/distributed/kv_transfer/kv_connector/factory.py +108 -0
- vllm/distributed/kv_transfer/kv_connector/utils.py +246 -0
- vllm/distributed/kv_transfer/kv_connector/v1/__init__.py +6 -0
- vllm/distributed/kv_transfer/kv_connector/v1/base.py +356 -0
- vllm/distributed/kv_transfer/kv_connector/v1/lmcache_connector.py +167 -0
- vllm/distributed/kv_transfer/kv_connector/v1/multi_connector.py +266 -0
- vllm/distributed/kv_transfer/kv_connector/v1/nixl_connector.py +1319 -0
- vllm/distributed/kv_transfer/kv_connector/v1/p2p/__init__.py +0 -0
- vllm/distributed/kv_transfer/kv_connector/v1/p2p/p2p_nccl_connector.py +484 -0
- vllm/distributed/kv_transfer/kv_connector/v1/p2p/p2p_nccl_engine.py +542 -0
- vllm/distributed/kv_transfer/kv_connector/v1/p2p/tensor_memory_pool.py +266 -0
- vllm/distributed/kv_transfer/kv_connector/v1/shared_storage_connector.py +414 -0
- vllm/distributed/kv_transfer/kv_lookup_buffer/__init__.py +0 -0
- vllm/distributed/kv_transfer/kv_lookup_buffer/base.py +175 -0
- vllm/distributed/kv_transfer/kv_lookup_buffer/mooncake_store.py +161 -0
- vllm/distributed/kv_transfer/kv_lookup_buffer/simple_buffer.py +237 -0
- vllm/distributed/kv_transfer/kv_pipe/__init__.py +0 -0
- vllm/distributed/kv_transfer/kv_pipe/base.py +67 -0
- vllm/distributed/kv_transfer/kv_pipe/mooncake_pipe.py +290 -0
- vllm/distributed/kv_transfer/kv_pipe/pynccl_pipe.py +280 -0
- vllm/distributed/kv_transfer/kv_transfer_state.py +73 -0
- vllm/distributed/parallel_state.py +1489 -0
- vllm/distributed/tpu_distributed_utils.py +178 -0
- vllm/distributed/utils.py +536 -0
- vllm/engine/__init__.py +0 -0
- vllm/engine/arg_utils.py +1857 -0
- vllm/engine/async_llm_engine.py +1044 -0
- vllm/engine/async_timeout.py +173 -0
- vllm/engine/llm_engine.py +1849 -0
- vllm/engine/metrics.py +577 -0
- vllm/engine/metrics_types.py +84 -0
- vllm/engine/multiprocessing/__init__.py +145 -0
- vllm/engine/multiprocessing/client.py +643 -0
- vllm/engine/multiprocessing/engine.py +470 -0
- vllm/engine/output_processor/__init__.py +0 -0
- vllm/engine/output_processor/interfaces.py +61 -0
- vllm/engine/output_processor/single_step.py +145 -0
- vllm/engine/output_processor/stop_checker.py +131 -0
- vllm/engine/output_processor/util.py +28 -0
- vllm/engine/protocol.py +343 -0
- vllm/entrypoints/__init__.py +0 -0
- vllm/entrypoints/api_server.py +178 -0
- vllm/entrypoints/chat_utils.py +1535 -0
- vllm/entrypoints/cli/__init__.py +12 -0
- vllm/entrypoints/cli/benchmark/__init__.py +0 -0
- vllm/entrypoints/cli/benchmark/base.py +25 -0
- vllm/entrypoints/cli/benchmark/latency.py +21 -0
- vllm/entrypoints/cli/benchmark/main.py +58 -0
- vllm/entrypoints/cli/benchmark/serve.py +21 -0
- vllm/entrypoints/cli/benchmark/throughput.py +21 -0
- vllm/entrypoints/cli/collect_env.py +36 -0
- vllm/entrypoints/cli/main.py +60 -0
- vllm/entrypoints/cli/openai.py +214 -0
- vllm/entrypoints/cli/run_batch.py +69 -0
- vllm/entrypoints/cli/serve.py +232 -0
- vllm/entrypoints/cli/types.py +29 -0
- vllm/entrypoints/constants.py +10 -0
- vllm/entrypoints/context.py +444 -0
- vllm/entrypoints/harmony_utils.py +431 -0
- vllm/entrypoints/launcher.py +168 -0
- vllm/entrypoints/llm.py +1579 -0
- vllm/entrypoints/logger.py +79 -0
- vllm/entrypoints/openai/__init__.py +0 -0
- vllm/entrypoints/openai/api_server.py +2011 -0
- vllm/entrypoints/openai/cli_args.py +281 -0
- vllm/entrypoints/openai/logits_processors.py +90 -0
- vllm/entrypoints/openai/protocol.py +2590 -0
- vllm/entrypoints/openai/run_batch.py +497 -0
- vllm/entrypoints/openai/serving_chat.py +1591 -0
- vllm/entrypoints/openai/serving_classification.py +176 -0
- vllm/entrypoints/openai/serving_completion.py +688 -0
- vllm/entrypoints/openai/serving_embedding.py +632 -0
- vllm/entrypoints/openai/serving_engine.py +996 -0
- vllm/entrypoints/openai/serving_models.py +288 -0
- vllm/entrypoints/openai/serving_pooling.py +277 -0
- vllm/entrypoints/openai/serving_responses.py +1690 -0
- vllm/entrypoints/openai/serving_score.py +479 -0
- vllm/entrypoints/openai/serving_tokenization.py +196 -0
- vllm/entrypoints/openai/serving_transcription.py +136 -0
- vllm/entrypoints/openai/speech_to_text.py +388 -0
- vllm/entrypoints/openai/tool_parsers/__init__.py +51 -0
- vllm/entrypoints/openai/tool_parsers/abstract_tool_parser.py +164 -0
- vllm/entrypoints/openai/tool_parsers/deepseekv31_tool_parser.py +367 -0
- vllm/entrypoints/openai/tool_parsers/deepseekv3_tool_parser.py +370 -0
- vllm/entrypoints/openai/tool_parsers/glm4_moe_tool_parser.py +185 -0
- vllm/entrypoints/openai/tool_parsers/granite_20b_fc_tool_parser.py +259 -0
- vllm/entrypoints/openai/tool_parsers/granite_tool_parser.py +237 -0
- vllm/entrypoints/openai/tool_parsers/hermes_tool_parser.py +418 -0
- vllm/entrypoints/openai/tool_parsers/hunyuan_a13b_tool_parser.py +372 -0
- vllm/entrypoints/openai/tool_parsers/internlm2_tool_parser.py +216 -0
- vllm/entrypoints/openai/tool_parsers/jamba_tool_parser.py +308 -0
- vllm/entrypoints/openai/tool_parsers/kimi_k2_tool_parser.py +377 -0
- vllm/entrypoints/openai/tool_parsers/llama4_pythonic_tool_parser.py +316 -0
- vllm/entrypoints/openai/tool_parsers/llama_tool_parser.py +269 -0
- vllm/entrypoints/openai/tool_parsers/minimax_tool_parser.py +816 -0
- vllm/entrypoints/openai/tool_parsers/mistral_tool_parser.py +369 -0
- vllm/entrypoints/openai/tool_parsers/openai_tool_parser.py +73 -0
- vllm/entrypoints/openai/tool_parsers/phi4mini_tool_parser.py +112 -0
- vllm/entrypoints/openai/tool_parsers/pythonic_tool_parser.py +308 -0
- vllm/entrypoints/openai/tool_parsers/qwen3coder_tool_parser.py +707 -0
- vllm/entrypoints/openai/tool_parsers/seed_oss_tool_parser.py +679 -0
- vllm/entrypoints/openai/tool_parsers/step3_tool_parser.py +296 -0
- vllm/entrypoints/openai/tool_parsers/utils.py +124 -0
- vllm/entrypoints/openai/tool_parsers/xlam_tool_parser.py +524 -0
- vllm/entrypoints/renderer.py +395 -0
- vllm/entrypoints/score_utils.py +232 -0
- vllm/entrypoints/ssl.py +75 -0
- vllm/entrypoints/tool.py +139 -0
- vllm/entrypoints/tool_server.py +195 -0
- vllm/entrypoints/utils.py +328 -0
- vllm/env_override.py +23 -0
- vllm/envs.py +1354 -0
- vllm/executor/__init__.py +0 -0
- vllm/executor/executor_base.py +378 -0
- vllm/executor/mp_distributed_executor.py +244 -0
- vllm/executor/msgspec_utils.py +35 -0
- vllm/executor/multiproc_worker_utils.py +279 -0
- vllm/executor/ray_distributed_executor.py +699 -0
- vllm/executor/ray_utils.py +410 -0
- vllm/executor/uniproc_executor.py +152 -0
- vllm/forward_context.py +273 -0
- vllm/inputs/__init__.py +44 -0
- vllm/inputs/data.py +356 -0
- vllm/inputs/parse.py +151 -0
- vllm/inputs/preprocess.py +973 -0
- vllm/inputs/registry.py +251 -0
- vllm/logger.py +229 -0
- vllm/logging_utils/__init__.py +8 -0
- vllm/logging_utils/dump_input.py +81 -0
- vllm/logging_utils/formatter.py +79 -0
- vllm/logits_process.py +119 -0
- vllm/logprobs.py +28 -0
- vllm/lora/__init__.py +0 -0
- vllm/lora/layers/__init__.py +34 -0
- vllm/lora/layers/base.py +69 -0
- vllm/lora/layers/base_linear.py +184 -0
- vllm/lora/layers/column_parallel_linear.py +622 -0
- vllm/lora/layers/logits_processor.py +247 -0
- vllm/lora/layers/qkv_x_parallel_linear.py +8 -0
- vllm/lora/layers/replicated_linear.py +61 -0
- vllm/lora/layers/row_parallel_linear.py +201 -0
- vllm/lora/layers/utils.py +60 -0
- vllm/lora/layers/vocal_parallel_embedding.py +172 -0
- vllm/lora/lora.py +199 -0
- vllm/lora/models.py +792 -0
- vllm/lora/ops/__init__.py +0 -0
- vllm/lora/ops/ipex_ops/__init__.py +7 -0
- vllm/lora/ops/ipex_ops/lora_ops.py +44 -0
- vllm/lora/ops/torch_ops/__init__.py +16 -0
- vllm/lora/ops/torch_ops/lora_ops.py +119 -0
- vllm/lora/ops/triton_ops/__init__.py +12 -0
- vllm/lora/ops/triton_ops/kernel_utils.py +243 -0
- vllm/lora/ops/triton_ops/lora_expand_op.py +291 -0
- vllm/lora/ops/triton_ops/lora_kernel_metadata.py +148 -0
- vllm/lora/ops/triton_ops/lora_shrink_op.py +245 -0
- vllm/lora/ops/triton_ops/utils.py +126 -0
- vllm/lora/ops/xla_ops/__init__.py +7 -0
- vllm/lora/ops/xla_ops/lora_ops.py +145 -0
- vllm/lora/peft_helper.py +127 -0
- vllm/lora/punica_wrapper/__init__.py +10 -0
- vllm/lora/punica_wrapper/punica_base.py +458 -0
- vllm/lora/punica_wrapper/punica_cpu.py +349 -0
- vllm/lora/punica_wrapper/punica_gpu.py +279 -0
- vllm/lora/punica_wrapper/punica_selector.py +20 -0
- vllm/lora/punica_wrapper/punica_tpu.py +391 -0
- vllm/lora/punica_wrapper/punica_xpu.py +276 -0
- vllm/lora/punica_wrapper/utils.py +136 -0
- vllm/lora/request.py +99 -0
- vllm/lora/resolver.py +85 -0
- vllm/lora/utils.py +246 -0
- vllm/lora/worker_manager.py +256 -0
- vllm/model_executor/__init__.py +16 -0
- vllm/model_executor/custom_op.py +194 -0
- vllm/model_executor/layers/__init__.py +0 -0
- vllm/model_executor/layers/activation.py +575 -0
- vllm/model_executor/layers/attention_layer_base.py +23 -0
- vllm/model_executor/layers/fla/__init__.py +8 -0
- vllm/model_executor/layers/fla/ops/__init__.py +17 -0
- vllm/model_executor/layers/fla/ops/chunk.py +225 -0
- vllm/model_executor/layers/fla/ops/chunk_delta_h.py +290 -0
- vllm/model_executor/layers/fla/ops/chunk_o.py +177 -0
- vllm/model_executor/layers/fla/ops/chunk_scaled_dot_kkt.py +140 -0
- vllm/model_executor/layers/fla/ops/cumsum.py +226 -0
- vllm/model_executor/layers/fla/ops/fused_recurrent.py +366 -0
- vllm/model_executor/layers/fla/ops/index.py +39 -0
- vllm/model_executor/layers/fla/ops/l2norm.py +143 -0
- vllm/model_executor/layers/fla/ops/layernorm_guard.py +337 -0
- vllm/model_executor/layers/fla/ops/op.py +39 -0
- vllm/model_executor/layers/fla/ops/solve_tril.py +365 -0
- vllm/model_executor/layers/fla/ops/utils.py +180 -0
- vllm/model_executor/layers/fla/ops/wy_fast.py +114 -0
- vllm/model_executor/layers/fused_moe/__init__.py +80 -0
- vllm/model_executor/layers/fused_moe/batched_deep_gemm_moe.py +304 -0
- vllm/model_executor/layers/fused_moe/batched_triton_or_deep_gemm_moe.py +164 -0
- vllm/model_executor/layers/fused_moe/config.py +497 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=14336,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=14336,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=1792,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=1792,device_name=NVIDIA_A100-SXM4-80GB.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=3072,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=3072,device_name=NVIDIA_H100_80GB_HBM3,dtype=int8_w8a16.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=3072,device_name=NVIDIA_H100_80GB_HBM3.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=3584,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=3584,device_name=NVIDIA_A100-SXM4-80GB.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=7168,device_name=NVIDIA_A100-SXM4-80GB.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=1024,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=1024,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=192,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=192,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=192,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=192,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=192,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=352,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +122 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_H20-3e,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=512,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=704,device_name=NVIDIA_B200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=704,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +114 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_H20-3e,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=96,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1024,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1024,device_name=NVIDIA_B200,dtype=fp8_w8a8.json +147 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1024,device_name=NVIDIA_B200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1024,device_name=NVIDIA_H100.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1344,device_name=NVIDIA_A100-SXM4-40GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1344,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1344,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=14336,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=14336,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1792,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1792,device_name=NVIDIA_A100-SXM4-80GB.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=2688,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=2688,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=3072,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=3072,device_name=NVIDIA_H100_80GB_HBM3,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=3200,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +130 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=3584,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=3584,device_name=NVIDIA_A100-SXM4-80GB.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=6400,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +130 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=7168,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=800,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +130 -0
- vllm/model_executor/layers/fused_moe/configs/E=160,N=192,device_name=NVIDIA_A800-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=160,N=192,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=160,N=320,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=160,N=640,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=160,N=640,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=160,N=640,device_name=NVIDIA_H100,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=20,N=2560,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=20,N=2560,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=20,N=2560,device_name=NVIDIA_H100,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=20,N=2560,device_name=NVIDIA_H20-3e,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=1024,device_name=AMD_Instinct_MI325X,block_shape=[128,128].json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=1024,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=NVIDIA_H20-3e,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=512,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=512,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=64,device_name=NVIDIA_A800-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=384,N=128,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=384,N=128,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=384,N=128,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=384,N=256,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=384,N=256,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=40,N=2560,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=40,N=2560,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=40,N=2560,device_name=NVIDIA_H100,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=128,device_name=NVIDIA_B200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=128,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=128,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=128,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=256,device_name=NVIDIA_B200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=256,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=256,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=256,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=512,device_name=NVIDIA_B200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=512,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=512,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=512,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=64,device_name=NVIDIA_B200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=64,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=64,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=60,N=1408,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=60,N=176,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=60,N=352,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=60,N=704,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=62,N=256,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=62,N=512,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1280,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1280,device_name=NVIDIA_A800-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1280,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1280,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1280,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1280,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1536,device_name=NVIDIA_H20,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=2560,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=2560,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=2560,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=3072,device_name=NVIDIA_H20,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=3072,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=320,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=320,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=320,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=320,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=384,device_name=NVIDIA_H20,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=384,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_A800-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_GeForce_RTX_4090,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=768,device_name=NVIDIA_H20,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=768,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=896,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=72,N=384,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=72,N=768,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +138 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=16384,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=16384,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=16384,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=16384,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=NVIDIA_A100-SXM4-40GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +154 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_A100-SXM4-40GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_GeForce_RTX_4090,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_L40S.json +173 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=8192,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=8192,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=8192,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=8192,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=8192,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=8192,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/README +12 -0
- vllm/model_executor/layers/fused_moe/cpu_fused_moe.py +297 -0
- vllm/model_executor/layers/fused_moe/cutlass_moe.py +996 -0
- vllm/model_executor/layers/fused_moe/deep_gemm_moe.py +370 -0
- vllm/model_executor/layers/fused_moe/deep_gemm_utils.py +413 -0
- vllm/model_executor/layers/fused_moe/deepep_ht_prepare_finalize.py +280 -0
- vllm/model_executor/layers/fused_moe/deepep_ll_prepare_finalize.py +229 -0
- vllm/model_executor/layers/fused_moe/flashinfer_cutlass_moe.py +243 -0
- vllm/model_executor/layers/fused_moe/flashinfer_cutlass_prepare_finalize.py +97 -0
- vllm/model_executor/layers/fused_moe/fused_batched_moe.py +1042 -0
- vllm/model_executor/layers/fused_moe/fused_marlin_moe.py +240 -0
- vllm/model_executor/layers/fused_moe/fused_moe.py +2081 -0
- vllm/model_executor/layers/fused_moe/gpt_oss_triton_kernels_moe.py +247 -0
- vllm/model_executor/layers/fused_moe/layer.py +1951 -0
- vllm/model_executor/layers/fused_moe/modular_kernel.py +892 -0
- vllm/model_executor/layers/fused_moe/moe_align_block_size.py +87 -0
- vllm/model_executor/layers/fused_moe/moe_pallas.py +80 -0
- vllm/model_executor/layers/fused_moe/moe_permute_unpermute.py +205 -0
- vllm/model_executor/layers/fused_moe/moe_torch_iterative.py +60 -0
- vllm/model_executor/layers/fused_moe/pplx_prepare_finalize.py +321 -0
- vllm/model_executor/layers/fused_moe/prepare_finalize.py +72 -0
- vllm/model_executor/layers/fused_moe/rocm_aiter_fused_moe.py +431 -0
- vllm/model_executor/layers/fused_moe/routing_simulator.py +291 -0
- vllm/model_executor/layers/fused_moe/topk_weight_and_reduce.py +146 -0
- vllm/model_executor/layers/fused_moe/triton_deep_gemm_moe.py +171 -0
- vllm/model_executor/layers/fused_moe/trtllm_moe.py +197 -0
- vllm/model_executor/layers/fused_moe/utils.py +270 -0
- vllm/model_executor/layers/layernorm.py +381 -0
- vllm/model_executor/layers/lightning_attn.py +661 -0
- vllm/model_executor/layers/linear.py +1567 -0
- vllm/model_executor/layers/logits_processor.py +199 -0
- vllm/model_executor/layers/mamba/__init__.py +0 -0
- vllm/model_executor/layers/mamba/abstract.py +45 -0
- vllm/model_executor/layers/mamba/linear_attn.py +432 -0
- vllm/model_executor/layers/mamba/mamba2_metadata.py +186 -0
- vllm/model_executor/layers/mamba/mamba_mixer.py +517 -0
- vllm/model_executor/layers/mamba/mamba_mixer2.py +803 -0
- vllm/model_executor/layers/mamba/mamba_utils.py +202 -0
- vllm/model_executor/layers/mamba/ops/__init__.py +0 -0
- vllm/model_executor/layers/mamba/ops/causal_conv1d.py +982 -0
- vllm/model_executor/layers/mamba/ops/layernorm_gated.py +168 -0
- vllm/model_executor/layers/mamba/ops/mamba_ssm.py +414 -0
- vllm/model_executor/layers/mamba/ops/ssd_bmm.py +262 -0
- vllm/model_executor/layers/mamba/ops/ssd_chunk_scan.py +574 -0
- vllm/model_executor/layers/mamba/ops/ssd_chunk_state.py +751 -0
- vllm/model_executor/layers/mamba/ops/ssd_combined.py +248 -0
- vllm/model_executor/layers/mamba/ops/ssd_state_passing.py +248 -0
- vllm/model_executor/layers/mamba/short_conv.py +270 -0
- vllm/model_executor/layers/mla.py +158 -0
- vllm/model_executor/layers/pooler.py +732 -0
- vllm/model_executor/layers/quantization/__init__.py +157 -0
- vllm/model_executor/layers/quantization/auto_round.py +388 -0
- vllm/model_executor/layers/quantization/awq.py +228 -0
- vllm/model_executor/layers/quantization/awq_marlin.py +548 -0
- vllm/model_executor/layers/quantization/awq_triton.py +320 -0
- vllm/model_executor/layers/quantization/base_config.py +164 -0
- vllm/model_executor/layers/quantization/bitblas.py +464 -0
- vllm/model_executor/layers/quantization/bitsandbytes.py +621 -0
- vllm/model_executor/layers/quantization/compressed_tensors/__init__.py +0 -0
- vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors.py +795 -0
- vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors_moe.py +1651 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/__init__.py +27 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_24.py +366 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_scheme.py +55 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a16_24.py +160 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a16_nvfp4.py +105 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a4_nvfp4.py +161 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a8_fp8.py +169 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a8_int.py +135 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w8a16_fp8.py +121 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w8a8_fp8.py +156 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w8a8_int8.py +111 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_wNa16.py +201 -0
- vllm/model_executor/layers/quantization/compressed_tensors/transform/linear.py +227 -0
- vllm/model_executor/layers/quantization/compressed_tensors/transform/module.py +135 -0
- vllm/model_executor/layers/quantization/compressed_tensors/transform/schemes/linear_qutlass_nvfp4.py +21 -0
- vllm/model_executor/layers/quantization/compressed_tensors/transform/utils.py +13 -0
- vllm/model_executor/layers/quantization/compressed_tensors/triton_scaled_mm.py +206 -0
- vllm/model_executor/layers/quantization/compressed_tensors/utils.py +216 -0
- vllm/model_executor/layers/quantization/deepgemm.py +81 -0
- vllm/model_executor/layers/quantization/deepspeedfp.py +196 -0
- vllm/model_executor/layers/quantization/experts_int8.py +215 -0
- vllm/model_executor/layers/quantization/fbgemm_fp8.py +172 -0
- vllm/model_executor/layers/quantization/fp8.py +1179 -0
- vllm/model_executor/layers/quantization/gguf.py +597 -0
- vllm/model_executor/layers/quantization/gptq.py +300 -0
- vllm/model_executor/layers/quantization/gptq_bitblas.py +448 -0
- vllm/model_executor/layers/quantization/gptq_marlin.py +700 -0
- vllm/model_executor/layers/quantization/gptq_marlin_24.py +297 -0
- vllm/model_executor/layers/quantization/hqq_marlin.py +333 -0
- vllm/model_executor/layers/quantization/inc.py +61 -0
- vllm/model_executor/layers/quantization/input_quant_fp8.py +103 -0
- vllm/model_executor/layers/quantization/ipex_quant.py +410 -0
- vllm/model_executor/layers/quantization/kernels/__init__.py +0 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/MPLinearKernel.py +91 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/__init__.py +93 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/allspark.py +116 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/bitblas.py +302 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/conch.py +92 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/cutlass.py +117 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/dynamic_4bit.py +92 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/exllama.py +143 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/machete.py +144 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/marlin.py +139 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/ScaledMMLinearKernel.py +67 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/__init__.py +89 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/aiter.py +163 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/cpu.py +206 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/cutlass.py +137 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/triton.py +41 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/xla.py +104 -0
- vllm/model_executor/layers/quantization/kv_cache.py +139 -0
- vllm/model_executor/layers/quantization/modelopt.py +1548 -0
- vllm/model_executor/layers/quantization/moe_wna16.py +473 -0
- vllm/model_executor/layers/quantization/mxfp4.py +951 -0
- vllm/model_executor/layers/quantization/petit.py +306 -0
- vllm/model_executor/layers/quantization/ptpc_fp8.py +129 -0
- vllm/model_executor/layers/quantization/quark/__init__.py +0 -0
- vllm/model_executor/layers/quantization/quark/quark.py +431 -0
- vllm/model_executor/layers/quantization/quark/quark_moe.py +434 -0
- vllm/model_executor/layers/quantization/quark/schemes/__init__.py +9 -0
- vllm/model_executor/layers/quantization/quark/schemes/quark_scheme.py +55 -0
- vllm/model_executor/layers/quantization/quark/schemes/quark_w4a4_mxfp4.py +112 -0
- vllm/model_executor/layers/quantization/quark/schemes/quark_w8a8_fp8.py +163 -0
- vllm/model_executor/layers/quantization/quark/schemes/quark_w8a8_int8.py +122 -0
- vllm/model_executor/layers/quantization/quark/utils.py +105 -0
- vllm/model_executor/layers/quantization/rtn.py +456 -0
- vllm/model_executor/layers/quantization/schema.py +86 -0
- vllm/model_executor/layers/quantization/torchao.py +214 -0
- vllm/model_executor/layers/quantization/tpu_int8.py +125 -0
- vllm/model_executor/layers/quantization/utils/__init__.py +6 -0
- vllm/model_executor/layers/quantization/utils/allspark_utils.py +52 -0
- vllm/model_executor/layers/quantization/utils/bitblas_utils.py +210 -0
- vllm/model_executor/layers/quantization/utils/configs/N=12288,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=12288,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2112,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2112,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=1536,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=1536,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=36864,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=36864,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=36864,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=36864,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=36864,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +18 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=8192,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=8192,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=8192,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=8192,K=1536,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=8192,K=1536,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=8192,K=1536,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/README.md +3 -0
- vllm/model_executor/layers/quantization/utils/flashinfer_fp4_moe.py +85 -0
- vllm/model_executor/layers/quantization/utils/flashinfer_utils.py +258 -0
- vllm/model_executor/layers/quantization/utils/fp8_utils.py +795 -0
- vllm/model_executor/layers/quantization/utils/gptq_utils.py +96 -0
- vllm/model_executor/layers/quantization/utils/int8_utils.py +492 -0
- vllm/model_executor/layers/quantization/utils/layer_utils.py +40 -0
- vllm/model_executor/layers/quantization/utils/machete_utils.py +50 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils.py +479 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils_fp4.py +396 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils_fp8.py +345 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils_test.py +165 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils_test_24.py +464 -0
- vllm/model_executor/layers/quantization/utils/mxfp4_utils.py +132 -0
- vllm/model_executor/layers/quantization/utils/mxfp8_utils.py +20 -0
- vllm/model_executor/layers/quantization/utils/nvfp4_emulation_utils.py +137 -0
- vllm/model_executor/layers/quantization/utils/nvfp4_moe_support.py +59 -0
- vllm/model_executor/layers/quantization/utils/petit_utils.py +122 -0
- vllm/model_executor/layers/quantization/utils/quant_utils.py +627 -0
- vllm/model_executor/layers/quantization/utils/w8a8_utils.py +458 -0
- vllm/model_executor/layers/resampler.py +270 -0
- vllm/model_executor/layers/rotary_embedding/__init__.py +190 -0
- vllm/model_executor/layers/rotary_embedding/base.py +156 -0
- vllm/model_executor/layers/rotary_embedding/common.py +105 -0
- vllm/model_executor/layers/rotary_embedding/deepseek_scaling_rope.py +140 -0
- vllm/model_executor/layers/rotary_embedding/dual_chunk_rope.py +197 -0
- vllm/model_executor/layers/rotary_embedding/dynamic_ntk_alpha_rope.py +41 -0
- vllm/model_executor/layers/rotary_embedding/dynamic_ntk_scaling_rope.py +67 -0
- vllm/model_executor/layers/rotary_embedding/ernie45_vl_rope.py +80 -0
- vllm/model_executor/layers/rotary_embedding/linear_scaling_rope.py +115 -0
- vllm/model_executor/layers/rotary_embedding/llama3_rope.py +54 -0
- vllm/model_executor/layers/rotary_embedding/llama4_vision_rope.py +81 -0
- vllm/model_executor/layers/rotary_embedding/mrope.py +1140 -0
- vllm/model_executor/layers/rotary_embedding/ntk_scaling_rope.py +42 -0
- vllm/model_executor/layers/rotary_embedding/phi3_long_rope_scaled_rope.py +129 -0
- vllm/model_executor/layers/rotary_embedding/yarn_scaling_rope.py +68 -0
- vllm/model_executor/layers/sampler.py +1198 -0
- vllm/model_executor/layers/shared_fused_moe/__init__.py +6 -0
- vllm/model_executor/layers/shared_fused_moe/shared_fused_moe.py +56 -0
- vllm/model_executor/layers/utils.py +196 -0
- vllm/model_executor/layers/vocab_parallel_embedding.py +487 -0
- vllm/model_executor/model_loader/__init__.py +138 -0
- vllm/model_executor/model_loader/base_loader.py +52 -0
- vllm/model_executor/model_loader/bitsandbytes_loader.py +787 -0
- vllm/model_executor/model_loader/default_loader.py +278 -0
- vllm/model_executor/model_loader/dummy_loader.py +28 -0
- vllm/model_executor/model_loader/gguf_loader.py +155 -0
- vllm/model_executor/model_loader/runai_streamer_loader.py +104 -0
- vllm/model_executor/model_loader/sharded_state_loader.py +199 -0
- vllm/model_executor/model_loader/tensorizer.py +743 -0
- vllm/model_executor/model_loader/tensorizer_loader.py +143 -0
- vllm/model_executor/model_loader/tpu.py +114 -0
- vllm/model_executor/model_loader/utils.py +271 -0
- vllm/model_executor/model_loader/weight_utils.py +946 -0
- vllm/model_executor/models/__init__.py +30 -0
- vllm/model_executor/models/adapters.py +542 -0
- vllm/model_executor/models/aimv2.py +246 -0
- vllm/model_executor/models/apertus.py +582 -0
- vllm/model_executor/models/arcee.py +423 -0
- vllm/model_executor/models/arctic.py +560 -0
- vllm/model_executor/models/aria.py +662 -0
- vllm/model_executor/models/aya_vision.py +470 -0
- vllm/model_executor/models/baichuan.py +475 -0
- vllm/model_executor/models/bailing_moe.py +529 -0
- vllm/model_executor/models/bamba.py +582 -0
- vllm/model_executor/models/bart.py +1343 -0
- vllm/model_executor/models/bert.py +613 -0
- vllm/model_executor/models/bert_with_rope.py +687 -0
- vllm/model_executor/models/blip.py +339 -0
- vllm/model_executor/models/blip2.py +716 -0
- vllm/model_executor/models/bloom.py +374 -0
- vllm/model_executor/models/chameleon.py +1141 -0
- vllm/model_executor/models/chatglm.py +479 -0
- vllm/model_executor/models/clip.py +407 -0
- vllm/model_executor/models/cohere2_vision.py +484 -0
- vllm/model_executor/models/commandr.py +467 -0
- vllm/model_executor/models/config.py +434 -0
- vllm/model_executor/models/constant_size_cache.py +137 -0
- vllm/model_executor/models/dbrx.py +473 -0
- vllm/model_executor/models/deepseek.py +491 -0
- vllm/model_executor/models/deepseek_eagle.py +241 -0
- vllm/model_executor/models/deepseek_mtp.py +282 -0
- vllm/model_executor/models/deepseek_v2.py +1058 -0
- vllm/model_executor/models/deepseek_vl2.py +661 -0
- vllm/model_executor/models/donut.py +387 -0
- vllm/model_executor/models/dots1.py +547 -0
- vllm/model_executor/models/ernie45.py +43 -0
- vllm/model_executor/models/ernie45_moe.py +608 -0
- vllm/model_executor/models/ernie45_vl.py +1510 -0
- vllm/model_executor/models/ernie45_vl_moe.py +728 -0
- vllm/model_executor/models/ernie_mtp.py +287 -0
- vllm/model_executor/models/exaone.py +552 -0
- vllm/model_executor/models/exaone4.py +535 -0
- vllm/model_executor/models/fairseq2_llama.py +154 -0
- vllm/model_executor/models/falcon.py +511 -0
- vllm/model_executor/models/falcon_h1.py +739 -0
- vllm/model_executor/models/florence2.py +1107 -0
- vllm/model_executor/models/fuyu.py +401 -0
- vllm/model_executor/models/gemma.py +428 -0
- vllm/model_executor/models/gemma2.py +425 -0
- vllm/model_executor/models/gemma3.py +542 -0
- vllm/model_executor/models/gemma3_mm.py +723 -0
- vllm/model_executor/models/gemma3n.py +830 -0
- vllm/model_executor/models/gemma3n_mm.py +767 -0
- vllm/model_executor/models/glm.py +23 -0
- vllm/model_executor/models/glm4.py +305 -0
- vllm/model_executor/models/glm4_1v.py +1669 -0
- vllm/model_executor/models/glm4_moe.py +703 -0
- vllm/model_executor/models/glm4_moe_mtp.py +306 -0
- vllm/model_executor/models/glm4v.py +654 -0
- vllm/model_executor/models/gpt2.py +383 -0
- vllm/model_executor/models/gpt_bigcode.py +346 -0
- vllm/model_executor/models/gpt_j.py +340 -0
- vllm/model_executor/models/gpt_neox.py +333 -0
- vllm/model_executor/models/gpt_oss.py +687 -0
- vllm/model_executor/models/granite.py +498 -0
- vllm/model_executor/models/granite_speech.py +799 -0
- vllm/model_executor/models/granitemoe.py +541 -0
- vllm/model_executor/models/granitemoehybrid.py +684 -0
- vllm/model_executor/models/granitemoeshared.py +342 -0
- vllm/model_executor/models/gritlm.py +262 -0
- vllm/model_executor/models/grok1.py +550 -0
- vllm/model_executor/models/h2ovl.py +536 -0
- vllm/model_executor/models/hunyuan_v1.py +937 -0
- vllm/model_executor/models/hyperclovax_vision.py +1206 -0
- vllm/model_executor/models/idefics2_vision_model.py +416 -0
- vllm/model_executor/models/idefics3.py +758 -0
- vllm/model_executor/models/interfaces.py +854 -0
- vllm/model_executor/models/interfaces_base.py +195 -0
- vllm/model_executor/models/intern_vit.py +481 -0
- vllm/model_executor/models/internlm2.py +453 -0
- vllm/model_executor/models/internlm2_ve.py +148 -0
- vllm/model_executor/models/interns1.py +832 -0
- vllm/model_executor/models/interns1_vit.py +418 -0
- vllm/model_executor/models/internvl.py +1423 -0
- vllm/model_executor/models/jais.py +374 -0
- vllm/model_executor/models/jamba.py +630 -0
- vllm/model_executor/models/jina_vl.py +144 -0
- vllm/model_executor/models/keye.py +1684 -0
- vllm/model_executor/models/keye_vl1_5.py +601 -0
- vllm/model_executor/models/kimi_vl.py +620 -0
- vllm/model_executor/models/lfm2.py +558 -0
- vllm/model_executor/models/llama.py +671 -0
- vllm/model_executor/models/llama4.py +732 -0
- vllm/model_executor/models/llama4_eagle.py +241 -0
- vllm/model_executor/models/llama_eagle.py +171 -0
- vllm/model_executor/models/llama_eagle3.py +292 -0
- vllm/model_executor/models/llava.py +872 -0
- vllm/model_executor/models/llava_next.py +572 -0
- vllm/model_executor/models/llava_next_video.py +479 -0
- vllm/model_executor/models/llava_onevision.py +945 -0
- vllm/model_executor/models/mamba.py +310 -0
- vllm/model_executor/models/mamba2.py +346 -0
- vllm/model_executor/models/mamba_cache.py +83 -0
- vllm/model_executor/models/medusa.py +219 -0
- vllm/model_executor/models/midashenglm.py +788 -0
- vllm/model_executor/models/mimo.py +191 -0
- vllm/model_executor/models/mimo_mtp.py +273 -0
- vllm/model_executor/models/minicpm.py +593 -0
- vllm/model_executor/models/minicpm3.py +230 -0
- vllm/model_executor/models/minicpm_eagle.py +391 -0
- vllm/model_executor/models/minicpmo.py +804 -0
- vllm/model_executor/models/minicpmv.py +1786 -0
- vllm/model_executor/models/minimax_cache.py +36 -0
- vllm/model_executor/models/minimax_text_01.py +1027 -0
- vllm/model_executor/models/minimax_vl_01.py +431 -0
- vllm/model_executor/models/mistral3.py +628 -0
- vllm/model_executor/models/mixtral.py +494 -0
- vllm/model_executor/models/mllama.py +1697 -0
- vllm/model_executor/models/mllama4.py +1079 -0
- vllm/model_executor/models/mlp_speculator.py +206 -0
- vllm/model_executor/models/modernbert.py +374 -0
- vllm/model_executor/models/module_mapping.py +72 -0
- vllm/model_executor/models/molmo.py +1569 -0
- vllm/model_executor/models/moonvit.py +663 -0
- vllm/model_executor/models/motif.py +345 -0
- vllm/model_executor/models/mpt.py +332 -0
- vllm/model_executor/models/nano_nemotron_vl.py +1395 -0
- vllm/model_executor/models/nemotron.py +509 -0
- vllm/model_executor/models/nemotron_h.py +633 -0
- vllm/model_executor/models/nemotron_nas.py +484 -0
- vllm/model_executor/models/nemotron_vl.py +655 -0
- vllm/model_executor/models/nvlm_d.py +203 -0
- vllm/model_executor/models/olmo.py +406 -0
- vllm/model_executor/models/olmo2.py +428 -0
- vllm/model_executor/models/olmoe.py +485 -0
- vllm/model_executor/models/opt.py +413 -0
- vllm/model_executor/models/orion.py +350 -0
- vllm/model_executor/models/ovis.py +572 -0
- vllm/model_executor/models/ovis2_5.py +644 -0
- vllm/model_executor/models/paligemma.py +414 -0
- vllm/model_executor/models/persimmon.py +345 -0
- vllm/model_executor/models/phi.py +357 -0
- vllm/model_executor/models/phi3.py +19 -0
- vllm/model_executor/models/phi3v.py +701 -0
- vllm/model_executor/models/phi4_multimodal.py +1478 -0
- vllm/model_executor/models/phi4flash.py +737 -0
- vllm/model_executor/models/phi4mm.py +1281 -0
- vllm/model_executor/models/phi4mm_audio.py +1254 -0
- vllm/model_executor/models/phi4mm_utils.py +1875 -0
- vllm/model_executor/models/phimoe.py +681 -0
- vllm/model_executor/models/pixtral.py +1348 -0
- vllm/model_executor/models/plamo2.py +1126 -0
- vllm/model_executor/models/qwen.py +363 -0
- vllm/model_executor/models/qwen2.py +526 -0
- vllm/model_executor/models/qwen2_5_omni_thinker.py +985 -0
- vllm/model_executor/models/qwen2_5_vl.py +1256 -0
- vllm/model_executor/models/qwen2_audio.py +492 -0
- vllm/model_executor/models/qwen2_moe.py +558 -0
- vllm/model_executor/models/qwen2_rm.py +122 -0
- vllm/model_executor/models/qwen2_vl.py +1512 -0
- vllm/model_executor/models/qwen3.py +344 -0
- vllm/model_executor/models/qwen3_moe.py +704 -0
- vllm/model_executor/models/qwen3_next.py +1298 -0
- vllm/model_executor/models/qwen3_next_mtp.py +285 -0
- vllm/model_executor/models/qwen_vl.py +795 -0
- vllm/model_executor/models/registry.py +891 -0
- vllm/model_executor/models/roberta.py +252 -0
- vllm/model_executor/models/rvl.py +103 -0
- vllm/model_executor/models/seed_oss.py +488 -0
- vllm/model_executor/models/siglip.py +524 -0
- vllm/model_executor/models/siglip2navit.py +688 -0
- vllm/model_executor/models/skyworkr1v.py +914 -0
- vllm/model_executor/models/smolvlm.py +44 -0
- vllm/model_executor/models/solar.py +506 -0
- vllm/model_executor/models/stablelm.py +344 -0
- vllm/model_executor/models/starcoder2.py +357 -0
- vllm/model_executor/models/step3_text.py +521 -0
- vllm/model_executor/models/step3_vl.py +1091 -0
- vllm/model_executor/models/swin.py +475 -0
- vllm/model_executor/models/tarsier.py +649 -0
- vllm/model_executor/models/telechat2.py +151 -0
- vllm/model_executor/models/teleflm.py +79 -0
- vllm/model_executor/models/terratorch.py +294 -0
- vllm/model_executor/models/transformers.py +883 -0
- vllm/model_executor/models/ultravox.py +667 -0
- vllm/model_executor/models/utils.py +770 -0
- vllm/model_executor/models/vision.py +125 -0
- vllm/model_executor/models/voxtral.py +789 -0
- vllm/model_executor/models/whisper.py +966 -0
- vllm/model_executor/models/zamba2.py +1056 -0
- vllm/model_executor/parameter.py +599 -0
- vllm/model_executor/sampling_metadata.py +597 -0
- vllm/model_executor/utils.py +97 -0
- vllm/model_executor/warmup/__init__.py +0 -0
- vllm/model_executor/warmup/deep_gemm_warmup.py +223 -0
- vllm/model_executor/warmup/kernel_warmup.py +83 -0
- vllm/multimodal/__init__.py +35 -0
- vllm/multimodal/audio.py +116 -0
- vllm/multimodal/base.py +219 -0
- vllm/multimodal/cache.py +507 -0
- vllm/multimodal/hasher.py +110 -0
- vllm/multimodal/image.py +130 -0
- vllm/multimodal/inputs.py +979 -0
- vllm/multimodal/parse.py +496 -0
- vllm/multimodal/processing.py +1921 -0
- vllm/multimodal/profiling.py +313 -0
- vllm/multimodal/registry.py +375 -0
- vllm/multimodal/utils.py +754 -0
- vllm/multimodal/video.py +312 -0
- vllm/outputs.py +517 -0
- vllm/platforms/__init__.py +263 -0
- vllm/platforms/cpu.py +353 -0
- vllm/platforms/cuda.py +731 -0
- vllm/platforms/interface.py +599 -0
- vllm/platforms/rocm.py +504 -0
- vllm/platforms/tpu.py +236 -0
- vllm/platforms/xpu.py +243 -0
- vllm/plugins/__init__.py +72 -0
- vllm/plugins/io_processors/__init__.py +68 -0
- vllm/plugins/io_processors/interface.py +67 -0
- vllm/plugins/lora_resolvers/README.md +16 -0
- vllm/plugins/lora_resolvers/__init__.py +0 -0
- vllm/plugins/lora_resolvers/filesystem_resolver.py +50 -0
- vllm/pooling_params.py +183 -0
- vllm/profiler/__init__.py +0 -0
- vllm/profiler/layerwise_profile.py +375 -0
- vllm/profiler/utils.py +148 -0
- vllm/py.typed +2 -0
- vllm/ray/__init__.py +0 -0
- vllm/ray/lazy_utils.py +22 -0
- vllm/ray/ray_env.py +72 -0
- vllm/reasoning/__init__.py +25 -0
- vllm/reasoning/abs_reasoning_parsers.py +202 -0
- vllm/reasoning/deepseek_r1_reasoning_parser.py +173 -0
- vllm/reasoning/glm4_moe_reasoning_parser.py +151 -0
- vllm/reasoning/gptoss_reasoning_parser.py +87 -0
- vllm/reasoning/granite_reasoning_parser.py +363 -0
- vllm/reasoning/hunyuan_a13b_reasoning_parser.py +245 -0
- vllm/reasoning/mistral_reasoning_parser.py +47 -0
- vllm/reasoning/qwen3_reasoning_parser.py +151 -0
- vllm/reasoning/step3_reasoning_parser.py +109 -0
- vllm/sampling_params.py +577 -0
- vllm/scalar_type.py +349 -0
- vllm/scripts.py +15 -0
- vllm/sequence.py +1465 -0
- vllm/tasks.py +11 -0
- vllm/test_utils.py +130 -0
- vllm/third_party/__init__.py +0 -0
- vllm/third_party/pynvml.py +6140 -0
- vllm/tracing.py +136 -0
- vllm/transformers_utils/__init__.py +24 -0
- vllm/transformers_utils/chat_templates/__init__.py +5 -0
- vllm/transformers_utils/chat_templates/registry.py +71 -0
- vllm/transformers_utils/chat_templates/template_basic.jinja +3 -0
- vllm/transformers_utils/chat_templates/template_blip2.jinja +11 -0
- vllm/transformers_utils/chat_templates/template_chatml.jinja +10 -0
- vllm/transformers_utils/chat_templates/template_deepseek_vl2.jinja +23 -0
- vllm/transformers_utils/chat_templates/template_fuyu.jinja +3 -0
- vllm/transformers_utils/chat_templates/template_minicpmv45.jinja +93 -0
- vllm/transformers_utils/config.py +1043 -0
- vllm/transformers_utils/config_parser_base.py +20 -0
- vllm/transformers_utils/configs/__init__.py +55 -0
- vllm/transformers_utils/configs/arctic.py +207 -0
- vllm/transformers_utils/configs/chatglm.py +72 -0
- vllm/transformers_utils/configs/deepseek_vl2.py +216 -0
- vllm/transformers_utils/configs/eagle.py +84 -0
- vllm/transformers_utils/configs/falcon.py +90 -0
- vllm/transformers_utils/configs/jais.py +238 -0
- vllm/transformers_utils/configs/kimi_vl.py +37 -0
- vllm/transformers_utils/configs/medusa.py +63 -0
- vllm/transformers_utils/configs/midashenglm.py +101 -0
- vllm/transformers_utils/configs/mistral.py +165 -0
- vllm/transformers_utils/configs/mlp_speculator.py +68 -0
- vllm/transformers_utils/configs/moonvit.py +33 -0
- vllm/transformers_utils/configs/nemotron.py +205 -0
- vllm/transformers_utils/configs/nemotron_h.py +259 -0
- vllm/transformers_utils/configs/nemotron_vl.py +56 -0
- vllm/transformers_utils/configs/ovis.py +176 -0
- vllm/transformers_utils/configs/qwen3_next.py +275 -0
- vllm/transformers_utils/configs/speculators/__init__.py +2 -0
- vllm/transformers_utils/configs/speculators/algos.py +32 -0
- vllm/transformers_utils/configs/speculators/base.py +91 -0
- vllm/transformers_utils/configs/step3_vl.py +123 -0
- vllm/transformers_utils/configs/ultravox.py +120 -0
- vllm/transformers_utils/detokenizer.py +169 -0
- vllm/transformers_utils/detokenizer_utils.py +199 -0
- vllm/transformers_utils/dynamic_module.py +60 -0
- vllm/transformers_utils/processor.py +245 -0
- vllm/transformers_utils/processors/__init__.py +16 -0
- vllm/transformers_utils/processors/deepseek_vl2.py +363 -0
- vllm/transformers_utils/processors/ovis.py +420 -0
- vllm/transformers_utils/processors/ovis2_5.py +458 -0
- vllm/transformers_utils/runai_utils.py +99 -0
- vllm/transformers_utils/s3_utils.py +90 -0
- vllm/transformers_utils/tokenizer.py +293 -0
- vllm/transformers_utils/tokenizer_base.py +149 -0
- vllm/transformers_utils/tokenizer_group.py +132 -0
- vllm/transformers_utils/tokenizers/__init__.py +10 -0
- vllm/transformers_utils/tokenizers/mistral.py +520 -0
- vllm/transformers_utils/utils.py +99 -0
- vllm/triton_utils/__init__.py +16 -0
- vllm/triton_utils/importing.py +95 -0
- vllm/usage/__init__.py +0 -0
- vllm/usage/usage_lib.py +259 -0
- vllm/utils/__init__.py +3438 -0
- vllm/utils/deep_gemm.py +212 -0
- vllm/utils/flashinfer.py +372 -0
- vllm/utils/jsontree.py +90 -0
- vllm/utils/tensor_schema.py +236 -0
- vllm/v1/__init__.py +0 -0
- vllm/v1/attention/__init__.py +0 -0
- vllm/v1/attention/backends/__init__.py +0 -0
- vllm/v1/attention/backends/cpu_attn.py +922 -0
- vllm/v1/attention/backends/flash_attn.py +800 -0
- vllm/v1/attention/backends/flashinfer.py +1128 -0
- vllm/v1/attention/backends/flex_attention.py +796 -0
- vllm/v1/attention/backends/gdn_attn.py +320 -0
- vllm/v1/attention/backends/linear_attn.py +68 -0
- vllm/v1/attention/backends/mamba1_attn.py +81 -0
- vllm/v1/attention/backends/mamba2_attn.py +224 -0
- vllm/v1/attention/backends/mamba_attn.py +52 -0
- vllm/v1/attention/backends/mla/__init__.py +0 -0
- vllm/v1/attention/backends/mla/common.py +1608 -0
- vllm/v1/attention/backends/mla/cutlass_mla.py +301 -0
- vllm/v1/attention/backends/mla/flashattn_mla.py +273 -0
- vllm/v1/attention/backends/mla/flashinfer_mla.py +110 -0
- vllm/v1/attention/backends/mla/flashmla.py +213 -0
- vllm/v1/attention/backends/mla/rocm_aiter_mla.py +255 -0
- vllm/v1/attention/backends/mla/triton_mla.py +175 -0
- vllm/v1/attention/backends/pallas.py +413 -0
- vllm/v1/attention/backends/rocm_aiter_fa.py +548 -0
- vllm/v1/attention/backends/short_conv_attn.py +82 -0
- vllm/v1/attention/backends/tree_attn.py +450 -0
- vllm/v1/attention/backends/triton_attn.py +430 -0
- vllm/v1/attention/backends/utils.py +834 -0
- vllm/v1/attention/backends/xformers.py +437 -0
- vllm/v1/core/__init__.py +0 -0
- vllm/v1/core/block_pool.py +330 -0
- vllm/v1/core/encoder_cache_manager.py +333 -0
- vllm/v1/core/kv_cache_coordinator.py +440 -0
- vllm/v1/core/kv_cache_manager.py +398 -0
- vllm/v1/core/kv_cache_utils.py +1169 -0
- vllm/v1/core/sched/__init__.py +0 -0
- vllm/v1/core/sched/async_scheduler.py +47 -0
- vllm/v1/core/sched/interface.py +158 -0
- vllm/v1/core/sched/output.py +162 -0
- vllm/v1/core/sched/request_queue.py +224 -0
- vllm/v1/core/sched/scheduler.py +1287 -0
- vllm/v1/core/sched/utils.py +69 -0
- vllm/v1/core/single_type_kv_cache_manager.py +670 -0
- vllm/v1/cudagraph_dispatcher.py +121 -0
- vllm/v1/engine/__init__.py +202 -0
- vllm/v1/engine/async_llm.py +757 -0
- vllm/v1/engine/coordinator.py +357 -0
- vllm/v1/engine/core.py +1245 -0
- vllm/v1/engine/core_client.py +1333 -0
- vllm/v1/engine/detokenizer.py +300 -0
- vllm/v1/engine/exceptions.py +17 -0
- vllm/v1/engine/llm_engine.py +332 -0
- vllm/v1/engine/logprobs.py +201 -0
- vllm/v1/engine/output_processor.py +558 -0
- vllm/v1/engine/parallel_sampling.py +133 -0
- vllm/v1/engine/processor.py +524 -0
- vllm/v1/engine/utils.py +857 -0
- vllm/v1/executor/__init__.py +0 -0
- vllm/v1/executor/abstract.py +126 -0
- vllm/v1/executor/multiproc_executor.py +683 -0
- vllm/v1/executor/ray_distributed_executor.py +109 -0
- vllm/v1/kv_cache_interface.py +275 -0
- vllm/v1/metrics/__init__.py +0 -0
- vllm/v1/metrics/loggers.py +717 -0
- vllm/v1/metrics/prometheus.py +82 -0
- vllm/v1/metrics/ray_wrappers.py +133 -0
- vllm/v1/metrics/reader.py +246 -0
- vllm/v1/metrics/stats.py +248 -0
- vllm/v1/outputs.py +147 -0
- vllm/v1/pool/__init__.py +0 -0
- vllm/v1/pool/metadata.py +77 -0
- vllm/v1/request.py +237 -0
- vllm/v1/sample/__init__.py +0 -0
- vllm/v1/sample/logits_processor/__init__.py +294 -0
- vllm/v1/sample/logits_processor/builtin.py +273 -0
- vllm/v1/sample/logits_processor/interface.py +97 -0
- vllm/v1/sample/logits_processor/state.py +161 -0
- vllm/v1/sample/metadata.py +43 -0
- vllm/v1/sample/ops/__init__.py +0 -0
- vllm/v1/sample/ops/bad_words.py +39 -0
- vllm/v1/sample/ops/logprobs.py +26 -0
- vllm/v1/sample/ops/penalties.py +43 -0
- vllm/v1/sample/ops/topk_topp_sampler.py +254 -0
- vllm/v1/sample/rejection_sampler.py +623 -0
- vllm/v1/sample/sampler.py +281 -0
- vllm/v1/sample/tpu/__init__.py +0 -0
- vllm/v1/sample/tpu/metadata.py +124 -0
- vllm/v1/sample/tpu/sampler.py +213 -0
- vllm/v1/serial_utils.py +395 -0
- vllm/v1/spec_decode/__init__.py +0 -0
- vllm/v1/spec_decode/eagle.py +740 -0
- vllm/v1/spec_decode/medusa.py +66 -0
- vllm/v1/spec_decode/metadata.py +62 -0
- vllm/v1/spec_decode/metrics.py +191 -0
- vllm/v1/spec_decode/ngram_proposer.py +157 -0
- vllm/v1/spec_decode/utils.py +14 -0
- vllm/v1/structured_output/__init__.py +297 -0
- vllm/v1/structured_output/backend_guidance.py +245 -0
- vllm/v1/structured_output/backend_lm_format_enforcer.py +167 -0
- vllm/v1/structured_output/backend_outlines.py +320 -0
- vllm/v1/structured_output/backend_types.py +134 -0
- vllm/v1/structured_output/backend_xgrammar.py +323 -0
- vllm/v1/structured_output/request.py +86 -0
- vllm/v1/structured_output/utils.py +373 -0
- vllm/v1/utils.py +382 -0
- vllm/v1/worker/__init__.py +0 -0
- vllm/v1/worker/block_table.py +221 -0
- vllm/v1/worker/cpu_model_runner.py +163 -0
- vllm/v1/worker/cpu_worker.py +183 -0
- vllm/v1/worker/gpu_input_batch.py +821 -0
- vllm/v1/worker/gpu_model_runner.py +3743 -0
- vllm/v1/worker/gpu_worker.py +697 -0
- vllm/v1/worker/kv_connector_model_runner_mixin.py +122 -0
- vllm/v1/worker/lora_model_runner_mixin.py +192 -0
- vllm/v1/worker/tpu_input_batch.py +585 -0
- vllm/v1/worker/tpu_model_runner.py +1947 -0
- vllm/v1/worker/tpu_worker.py +340 -0
- vllm/v1/worker/utils.py +290 -0
- vllm/v1/worker/worker_base.py +65 -0
- vllm/v1/worker/xpu_model_runner.py +53 -0
- vllm/v1/worker/xpu_worker.py +179 -0
- vllm/version.py +41 -0
- vllm/vllm_flash_attn/.gitkeep +0 -0
- vllm/worker/__init__.py +0 -0
- vllm/worker/cache_engine.py +145 -0
- vllm/worker/enc_dec_model_runner.py +553 -0
- vllm/worker/model_runner.py +2016 -0
- vllm/worker/model_runner_base.py +307 -0
- vllm/worker/utils.py +49 -0
- vllm/worker/worker.py +670 -0
- vllm/worker/worker_base.py +651 -0
- vllm_cpu_avx512vnni-0.10.2.post2.dist-info/METADATA +326 -0
- vllm_cpu_avx512vnni-0.10.2.post2.dist-info/RECORD +1395 -0
- vllm_cpu_avx512vnni-0.10.2.post2.dist-info/WHEEL +5 -0
- vllm_cpu_avx512vnni-0.10.2.post2.dist-info/entry_points.txt +5 -0
- vllm_cpu_avx512vnni-0.10.2.post2.dist-info/top_level.txt +1 -0
vllm/v1/engine/core.py
ADDED
|
@@ -0,0 +1,1245 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
3
|
+
import gc
|
|
4
|
+
import os
|
|
5
|
+
import queue
|
|
6
|
+
import signal
|
|
7
|
+
import threading
|
|
8
|
+
import time
|
|
9
|
+
from collections import deque
|
|
10
|
+
from collections.abc import Generator
|
|
11
|
+
from concurrent.futures import Future
|
|
12
|
+
from contextlib import ExitStack, contextmanager
|
|
13
|
+
from inspect import isclass, signature
|
|
14
|
+
from logging import DEBUG
|
|
15
|
+
from typing import Any, Callable, Optional, TypeVar, Union
|
|
16
|
+
|
|
17
|
+
import msgspec
|
|
18
|
+
import zmq
|
|
19
|
+
|
|
20
|
+
from vllm.config import ParallelConfig, VllmConfig
|
|
21
|
+
from vllm.distributed import stateless_destroy_torch_distributed_process_group
|
|
22
|
+
from vllm.logger import init_logger
|
|
23
|
+
from vllm.logging_utils.dump_input import dump_engine_exception
|
|
24
|
+
from vllm.lora.request import LoRARequest
|
|
25
|
+
from vllm.multimodal import MULTIMODAL_REGISTRY
|
|
26
|
+
from vllm.multimodal.cache import receiver_cache_from_config
|
|
27
|
+
from vllm.tasks import POOLING_TASKS, SupportedTask
|
|
28
|
+
from vllm.transformers_utils.config import (
|
|
29
|
+
maybe_register_config_serialize_by_value)
|
|
30
|
+
from vllm.utils import (decorate_logs, get_hash_fn_by_name, make_zmq_socket,
|
|
31
|
+
resolve_obj_by_qualname, set_process_title)
|
|
32
|
+
from vllm.v1.core.kv_cache_utils import (BlockHash, get_kv_cache_config,
|
|
33
|
+
get_request_block_hasher,
|
|
34
|
+
init_none_hash,
|
|
35
|
+
unify_kv_cache_configs)
|
|
36
|
+
from vllm.v1.core.sched.interface import SchedulerInterface
|
|
37
|
+
from vllm.v1.core.sched.output import SchedulerOutput
|
|
38
|
+
from vllm.v1.core.sched.scheduler import Scheduler as V1Scheduler
|
|
39
|
+
from vllm.v1.engine import (EngineCoreOutputs, EngineCoreRequest,
|
|
40
|
+
EngineCoreRequestType,
|
|
41
|
+
ReconfigureDistributedRequest, ReconfigureRankType,
|
|
42
|
+
UtilityOutput, UtilityResult)
|
|
43
|
+
from vllm.v1.engine.utils import (EngineHandshakeMetadata, EngineZmqAddresses,
|
|
44
|
+
get_device_indices)
|
|
45
|
+
from vllm.v1.executor.abstract import Executor
|
|
46
|
+
from vllm.v1.kv_cache_interface import KVCacheConfig
|
|
47
|
+
from vllm.v1.metrics.stats import SchedulerStats
|
|
48
|
+
from vllm.v1.outputs import ModelRunnerOutput
|
|
49
|
+
from vllm.v1.request import Request, RequestStatus
|
|
50
|
+
from vllm.v1.serial_utils import MsgpackDecoder, MsgpackEncoder
|
|
51
|
+
from vllm.v1.structured_output import StructuredOutputManager
|
|
52
|
+
from vllm.version import __version__ as VLLM_VERSION
|
|
53
|
+
|
|
54
|
+
logger = init_logger(__name__)
|
|
55
|
+
|
|
56
|
+
POLLING_TIMEOUT_S = 2.5
|
|
57
|
+
HANDSHAKE_TIMEOUT_MINS = 5
|
|
58
|
+
|
|
59
|
+
_R = TypeVar('_R') # Return type for collective_rpc
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class EngineCore:
|
|
63
|
+
"""Inner loop of vLLM's Engine."""
|
|
64
|
+
|
|
65
|
+
def __init__(self,
|
|
66
|
+
vllm_config: VllmConfig,
|
|
67
|
+
executor_class: type[Executor],
|
|
68
|
+
log_stats: bool,
|
|
69
|
+
executor_fail_callback: Optional[Callable] = None):
|
|
70
|
+
|
|
71
|
+
# plugins need to be loaded at the engine/scheduler level too
|
|
72
|
+
from vllm.plugins import load_general_plugins
|
|
73
|
+
load_general_plugins()
|
|
74
|
+
|
|
75
|
+
self.vllm_config = vllm_config
|
|
76
|
+
logger.info("Initializing a V1 LLM engine (v%s) with config: %s",
|
|
77
|
+
VLLM_VERSION, vllm_config)
|
|
78
|
+
|
|
79
|
+
self.log_stats = log_stats
|
|
80
|
+
|
|
81
|
+
# Setup Model.
|
|
82
|
+
self.model_executor = executor_class(vllm_config)
|
|
83
|
+
if executor_fail_callback is not None:
|
|
84
|
+
self.model_executor.register_failure_callback(
|
|
85
|
+
executor_fail_callback)
|
|
86
|
+
|
|
87
|
+
self.available_gpu_memory_for_kv_cache = -1
|
|
88
|
+
|
|
89
|
+
# Setup KV Caches and update CacheConfig after profiling.
|
|
90
|
+
num_gpu_blocks, num_cpu_blocks, kv_cache_config = \
|
|
91
|
+
self._initialize_kv_caches(vllm_config)
|
|
92
|
+
|
|
93
|
+
vllm_config.cache_config.num_gpu_blocks = num_gpu_blocks
|
|
94
|
+
vllm_config.cache_config.num_cpu_blocks = num_cpu_blocks
|
|
95
|
+
self.collective_rpc("initialize_cache",
|
|
96
|
+
args=(num_gpu_blocks, num_cpu_blocks))
|
|
97
|
+
|
|
98
|
+
self.structured_output_manager = StructuredOutputManager(vllm_config)
|
|
99
|
+
|
|
100
|
+
# Setup scheduler.
|
|
101
|
+
if isinstance(vllm_config.scheduler_config.scheduler_cls, str):
|
|
102
|
+
Scheduler = resolve_obj_by_qualname(
|
|
103
|
+
vllm_config.scheduler_config.scheduler_cls)
|
|
104
|
+
else:
|
|
105
|
+
Scheduler = vllm_config.scheduler_config.scheduler_cls
|
|
106
|
+
|
|
107
|
+
# This warning can be removed once the V1 Scheduler interface is
|
|
108
|
+
# finalized and we can maintain support for scheduler classes that
|
|
109
|
+
# implement it
|
|
110
|
+
if Scheduler is not V1Scheduler:
|
|
111
|
+
logger.warning(
|
|
112
|
+
"Using configured V1 scheduler class %s. "
|
|
113
|
+
"This scheduler interface is not public and "
|
|
114
|
+
"compatibility may not be maintained.",
|
|
115
|
+
vllm_config.scheduler_config.scheduler_cls)
|
|
116
|
+
|
|
117
|
+
if len(kv_cache_config.kv_cache_groups) == 0:
|
|
118
|
+
# Encoder models without KV cache don't support
|
|
119
|
+
# chunked prefill. But do SSM models?
|
|
120
|
+
logger.info("Disabling chunked prefill for model without KVCache")
|
|
121
|
+
vllm_config.scheduler_config.chunked_prefill_enabled = False
|
|
122
|
+
|
|
123
|
+
self.scheduler: SchedulerInterface = Scheduler(
|
|
124
|
+
vllm_config=vllm_config,
|
|
125
|
+
kv_cache_config=kv_cache_config,
|
|
126
|
+
structured_output_manager=self.structured_output_manager,
|
|
127
|
+
include_finished_set=vllm_config.parallel_config.data_parallel_size
|
|
128
|
+
> 1,
|
|
129
|
+
log_stats=self.log_stats,
|
|
130
|
+
)
|
|
131
|
+
self.use_spec_decode = vllm_config.speculative_config is not None
|
|
132
|
+
|
|
133
|
+
self.mm_registry = mm_registry = MULTIMODAL_REGISTRY
|
|
134
|
+
self.mm_receiver_cache = receiver_cache_from_config(
|
|
135
|
+
vllm_config, mm_registry)
|
|
136
|
+
|
|
137
|
+
# Setup batch queue for pipeline parallelism.
|
|
138
|
+
# Batch queue for scheduled batches. This enables us to asynchronously
|
|
139
|
+
# schedule and execute batches, and is required by pipeline parallelism
|
|
140
|
+
# to eliminate pipeline bubbles.
|
|
141
|
+
self.batch_queue_size = self.model_executor.max_concurrent_batches
|
|
142
|
+
self.batch_queue: Optional[deque[tuple[Future[ModelRunnerOutput],
|
|
143
|
+
SchedulerOutput]]] = None
|
|
144
|
+
if self.batch_queue_size > 1:
|
|
145
|
+
logger.info("Batch queue is enabled with size %d",
|
|
146
|
+
self.batch_queue_size)
|
|
147
|
+
self.batch_queue = deque(maxlen=self.batch_queue_size)
|
|
148
|
+
|
|
149
|
+
self.request_block_hasher: Optional[Callable[[Request],
|
|
150
|
+
list[BlockHash]]] = None
|
|
151
|
+
if (self.vllm_config.cache_config.enable_prefix_caching
|
|
152
|
+
or self.scheduler.get_kv_connector() is not None):
|
|
153
|
+
|
|
154
|
+
block_size = vllm_config.cache_config.block_size
|
|
155
|
+
caching_hash_fn = get_hash_fn_by_name(
|
|
156
|
+
vllm_config.cache_config.prefix_caching_hash_algo)
|
|
157
|
+
init_none_hash(caching_hash_fn)
|
|
158
|
+
|
|
159
|
+
self.request_block_hasher = get_request_block_hasher(
|
|
160
|
+
block_size, caching_hash_fn)
|
|
161
|
+
|
|
162
|
+
def _initialize_kv_caches(
|
|
163
|
+
self, vllm_config: VllmConfig) -> tuple[int, int, KVCacheConfig]:
|
|
164
|
+
start = time.time()
|
|
165
|
+
|
|
166
|
+
# Get all kv cache needed by the model
|
|
167
|
+
kv_cache_specs = self.model_executor.get_kv_cache_specs()
|
|
168
|
+
|
|
169
|
+
has_kv_cache = any(kv_cache_spec for kv_cache_spec in kv_cache_specs)
|
|
170
|
+
if has_kv_cache:
|
|
171
|
+
if os.environ.get("VLLM_ELASTIC_EP_SCALE_UP_LAUNCH") == "1":
|
|
172
|
+
dp_group = getattr(self, "dp_group", None)
|
|
173
|
+
assert dp_group is not None
|
|
174
|
+
self.available_gpu_memory_for_kv_cache = \
|
|
175
|
+
ParallelConfig.sync_kv_cache_memory_size(dp_group, -1)
|
|
176
|
+
available_gpu_memory = [
|
|
177
|
+
self.available_gpu_memory_for_kv_cache
|
|
178
|
+
] * len(kv_cache_specs)
|
|
179
|
+
else:
|
|
180
|
+
# Profiles the peak memory usage of the model to determine how
|
|
181
|
+
# much memory can be allocated for kv cache.
|
|
182
|
+
available_gpu_memory = (
|
|
183
|
+
self.model_executor.determine_available_memory())
|
|
184
|
+
self.available_gpu_memory_for_kv_cache = \
|
|
185
|
+
available_gpu_memory[0]
|
|
186
|
+
else:
|
|
187
|
+
# Attention free models don't need memory for kv cache
|
|
188
|
+
available_gpu_memory = [0] * len(kv_cache_specs)
|
|
189
|
+
|
|
190
|
+
assert len(kv_cache_specs) == len(available_gpu_memory)
|
|
191
|
+
# Get the kv cache tensor size
|
|
192
|
+
kv_cache_configs = [
|
|
193
|
+
get_kv_cache_config(vllm_config, kv_cache_spec_one_worker,
|
|
194
|
+
available_gpu_memory_one_worker)
|
|
195
|
+
for kv_cache_spec_one_worker, available_gpu_memory_one_worker in
|
|
196
|
+
zip(kv_cache_specs, available_gpu_memory)
|
|
197
|
+
]
|
|
198
|
+
|
|
199
|
+
# Since we use a shared centralized controller, we need the
|
|
200
|
+
# `kv_cache_config` to be consistent across all workers to make sure
|
|
201
|
+
# all the memory operators can be applied to all workers.
|
|
202
|
+
unify_kv_cache_configs(kv_cache_configs)
|
|
203
|
+
|
|
204
|
+
# All workers have the same kv_cache_config except layer names, so use
|
|
205
|
+
# an arbitrary one to initialize the scheduler.
|
|
206
|
+
assert all([
|
|
207
|
+
cfg.num_blocks == kv_cache_configs[0].num_blocks
|
|
208
|
+
for cfg in kv_cache_configs
|
|
209
|
+
])
|
|
210
|
+
num_gpu_blocks = kv_cache_configs[0].num_blocks
|
|
211
|
+
num_cpu_blocks = 0
|
|
212
|
+
scheduler_kv_cache_config = kv_cache_configs[0]
|
|
213
|
+
|
|
214
|
+
# Initialize kv cache and warmup the execution
|
|
215
|
+
self.model_executor.initialize_from_config(kv_cache_configs)
|
|
216
|
+
|
|
217
|
+
elapsed = time.time() - start
|
|
218
|
+
logger.info(("init engine (profile, create kv cache, "
|
|
219
|
+
"warmup model) took %.2f seconds"), elapsed)
|
|
220
|
+
return num_gpu_blocks, num_cpu_blocks, scheduler_kv_cache_config
|
|
221
|
+
|
|
222
|
+
def get_supported_tasks(self) -> tuple[SupportedTask, ...]:
|
|
223
|
+
return self.model_executor.supported_tasks
|
|
224
|
+
|
|
225
|
+
def add_request(self, request: Request, request_wave: int = 0):
|
|
226
|
+
"""Add request to the scheduler.
|
|
227
|
+
|
|
228
|
+
`request_wave`: indicate which wave of requests this is expected to
|
|
229
|
+
belong to in DP case
|
|
230
|
+
"""
|
|
231
|
+
# Validate the request_id type.
|
|
232
|
+
if not isinstance(request.request_id, str):
|
|
233
|
+
raise TypeError(
|
|
234
|
+
f"request_id must be a string, got {type(request.request_id)}")
|
|
235
|
+
|
|
236
|
+
if pooling_params := request.pooling_params:
|
|
237
|
+
supported_pooling_tasks = [
|
|
238
|
+
task for task in self.get_supported_tasks()
|
|
239
|
+
if task in POOLING_TASKS
|
|
240
|
+
]
|
|
241
|
+
|
|
242
|
+
if pooling_params.task not in supported_pooling_tasks:
|
|
243
|
+
raise ValueError(f"Unsupported task: {pooling_params.task!r} "
|
|
244
|
+
f"Supported tasks: {supported_pooling_tasks}")
|
|
245
|
+
|
|
246
|
+
if request.kv_transfer_params is not None and (
|
|
247
|
+
not self.scheduler.get_kv_connector()):
|
|
248
|
+
logger.warning("Got kv_transfer_params, but no KVConnector found. "
|
|
249
|
+
"Disabling KVTransfer for this request.")
|
|
250
|
+
|
|
251
|
+
self.scheduler.add_request(request)
|
|
252
|
+
|
|
253
|
+
def abort_requests(self, request_ids: list[str]):
|
|
254
|
+
"""Abort requests from the scheduler."""
|
|
255
|
+
|
|
256
|
+
# TODO: The scheduler doesn't really need to know the
|
|
257
|
+
# specific finish reason, TBD whether we propagate that
|
|
258
|
+
# (i.e. client-aborted vs stop criteria met).
|
|
259
|
+
self.scheduler.finish_requests(request_ids,
|
|
260
|
+
RequestStatus.FINISHED_ABORTED)
|
|
261
|
+
|
|
262
|
+
def execute_model_with_error_logging(
|
|
263
|
+
self,
|
|
264
|
+
model_fn: Callable[[SchedulerOutput], ModelRunnerOutput],
|
|
265
|
+
scheduler_output: SchedulerOutput,
|
|
266
|
+
) -> ModelRunnerOutput:
|
|
267
|
+
"""Execute the model and log detailed info on failure."""
|
|
268
|
+
try:
|
|
269
|
+
return model_fn(scheduler_output)
|
|
270
|
+
except Exception as err:
|
|
271
|
+
# We do not want to catch BaseException here since we're only
|
|
272
|
+
# interested in dumping info when the exception is due to an
|
|
273
|
+
# error from execute_model itself.
|
|
274
|
+
|
|
275
|
+
# NOTE: This method is exception-free
|
|
276
|
+
dump_engine_exception(self.vllm_config, scheduler_output,
|
|
277
|
+
self.scheduler.make_stats())
|
|
278
|
+
raise err
|
|
279
|
+
|
|
280
|
+
def step(self) -> tuple[dict[int, EngineCoreOutputs], bool]:
|
|
281
|
+
"""Schedule, execute, and make output.
|
|
282
|
+
|
|
283
|
+
Returns tuple of outputs and a flag indicating whether the model
|
|
284
|
+
was executed.
|
|
285
|
+
"""
|
|
286
|
+
|
|
287
|
+
# Check for any requests remaining in the scheduler - unfinished,
|
|
288
|
+
# or finished and not yet removed from the batch.
|
|
289
|
+
if not self.scheduler.has_requests():
|
|
290
|
+
return {}, False
|
|
291
|
+
scheduler_output = self.scheduler.schedule()
|
|
292
|
+
model_output = self.execute_model_with_error_logging(
|
|
293
|
+
self.model_executor.execute_model, # type: ignore
|
|
294
|
+
scheduler_output)
|
|
295
|
+
engine_core_outputs = self.scheduler.update_from_output(
|
|
296
|
+
scheduler_output, model_output) # type: ignore
|
|
297
|
+
|
|
298
|
+
return (engine_core_outputs,
|
|
299
|
+
scheduler_output.total_num_scheduled_tokens > 0)
|
|
300
|
+
|
|
301
|
+
def post_step(self, model_executed: bool) -> None:
|
|
302
|
+
if self.use_spec_decode and model_executed:
|
|
303
|
+
# Take the draft token ids.
|
|
304
|
+
draft_token_ids = self.model_executor.take_draft_token_ids()
|
|
305
|
+
if draft_token_ids is not None:
|
|
306
|
+
self.scheduler.update_draft_token_ids(draft_token_ids)
|
|
307
|
+
|
|
308
|
+
def step_with_batch_queue(
|
|
309
|
+
self) -> tuple[Optional[dict[int, EngineCoreOutputs]], bool]:
|
|
310
|
+
"""Schedule and execute batches with the batch queue.
|
|
311
|
+
Note that if nothing to output in this step, None is returned.
|
|
312
|
+
|
|
313
|
+
The execution flow is as follows:
|
|
314
|
+
1. Try to schedule a new batch if the batch queue is not full.
|
|
315
|
+
If a new batch is scheduled, directly return an empty engine core
|
|
316
|
+
output. In other words, fulfilling the batch queue has a higher priority
|
|
317
|
+
than getting model outputs.
|
|
318
|
+
2. If there is no new scheduled batch, meaning that the batch queue
|
|
319
|
+
is full or no other requests can be scheduled, we block until the first
|
|
320
|
+
batch in the job queue is finished.
|
|
321
|
+
3. Update the scheduler from the output.
|
|
322
|
+
"""
|
|
323
|
+
batch_queue = self.batch_queue
|
|
324
|
+
assert batch_queue is not None
|
|
325
|
+
|
|
326
|
+
# Try to schedule a new batch if the batch queue is not full, but
|
|
327
|
+
# the scheduler may return an empty batch if all requests are scheduled.
|
|
328
|
+
# Note that this is not blocking.
|
|
329
|
+
assert len(batch_queue) < self.batch_queue_size
|
|
330
|
+
|
|
331
|
+
model_executed = False
|
|
332
|
+
if self.scheduler.has_requests():
|
|
333
|
+
scheduler_output = self.scheduler.schedule()
|
|
334
|
+
future = self.model_executor.execute_model(scheduler_output)
|
|
335
|
+
batch_queue.appendleft(
|
|
336
|
+
(future, scheduler_output)) # type: ignore[arg-type]
|
|
337
|
+
|
|
338
|
+
model_executed = scheduler_output.total_num_scheduled_tokens > 0
|
|
339
|
+
if model_executed and len(batch_queue) < self.batch_queue_size \
|
|
340
|
+
and not batch_queue[-1][0].done():
|
|
341
|
+
# Don't block on next worker response unless the queue is full
|
|
342
|
+
# or there are no more requests to schedule.
|
|
343
|
+
return None, True
|
|
344
|
+
|
|
345
|
+
elif not batch_queue:
|
|
346
|
+
# Queue is empty. We should not reach here since this method should
|
|
347
|
+
# only be called when the scheduler contains requests or the queue
|
|
348
|
+
# is non-empty.
|
|
349
|
+
return None, False
|
|
350
|
+
|
|
351
|
+
# Block until the next result is available.
|
|
352
|
+
future, scheduler_output = batch_queue.pop()
|
|
353
|
+
model_output = self.execute_model_with_error_logging(
|
|
354
|
+
lambda _: future.result(), scheduler_output)
|
|
355
|
+
|
|
356
|
+
engine_core_outputs = self.scheduler.update_from_output(
|
|
357
|
+
scheduler_output, model_output)
|
|
358
|
+
|
|
359
|
+
return engine_core_outputs, model_executed
|
|
360
|
+
|
|
361
|
+
def shutdown(self):
|
|
362
|
+
self.structured_output_manager.clear_backend()
|
|
363
|
+
if self.model_executor:
|
|
364
|
+
self.model_executor.shutdown()
|
|
365
|
+
if self.scheduler:
|
|
366
|
+
self.scheduler.shutdown()
|
|
367
|
+
|
|
368
|
+
def profile(self, is_start: bool = True):
|
|
369
|
+
self.model_executor.profile(is_start)
|
|
370
|
+
|
|
371
|
+
def reset_mm_cache(self):
|
|
372
|
+
# NOTE: Since this is mainly for debugging, we don't attempt to
|
|
373
|
+
# re-sync the internal caches (P0 processor, P0 mirror, P1 mirror)
|
|
374
|
+
if self.scheduler.has_unfinished_requests():
|
|
375
|
+
logger.warning("Resetting the multi-modal cache when requests are "
|
|
376
|
+
"in progress may lead to desynced internal caches.")
|
|
377
|
+
|
|
378
|
+
if self.mm_receiver_cache is not None:
|
|
379
|
+
self.mm_receiver_cache.clear_cache()
|
|
380
|
+
|
|
381
|
+
def reset_prefix_cache(self):
|
|
382
|
+
self.scheduler.reset_prefix_cache()
|
|
383
|
+
|
|
384
|
+
def sleep(self, level: int = 1):
|
|
385
|
+
self.model_executor.sleep(level)
|
|
386
|
+
|
|
387
|
+
def wake_up(self, tags: Optional[list[str]] = None):
|
|
388
|
+
self.model_executor.wake_up(tags)
|
|
389
|
+
|
|
390
|
+
def is_sleeping(self) -> bool:
|
|
391
|
+
return self.model_executor.is_sleeping
|
|
392
|
+
|
|
393
|
+
def execute_dummy_batch(self):
|
|
394
|
+
self.model_executor.execute_dummy_batch()
|
|
395
|
+
|
|
396
|
+
def add_lora(self, lora_request: LoRARequest) -> bool:
|
|
397
|
+
return self.model_executor.add_lora(lora_request)
|
|
398
|
+
|
|
399
|
+
def remove_lora(self, lora_id: int) -> bool:
|
|
400
|
+
return self.model_executor.remove_lora(lora_id)
|
|
401
|
+
|
|
402
|
+
def list_loras(self) -> set[int]:
|
|
403
|
+
return self.model_executor.list_loras()
|
|
404
|
+
|
|
405
|
+
def pin_lora(self, lora_id: int) -> bool:
|
|
406
|
+
return self.model_executor.pin_lora(lora_id)
|
|
407
|
+
|
|
408
|
+
def save_sharded_state(
|
|
409
|
+
self,
|
|
410
|
+
path: str,
|
|
411
|
+
pattern: Optional[str] = None,
|
|
412
|
+
max_size: Optional[int] = None,
|
|
413
|
+
) -> None:
|
|
414
|
+
self.model_executor.save_sharded_state(path=path,
|
|
415
|
+
pattern=pattern,
|
|
416
|
+
max_size=max_size)
|
|
417
|
+
|
|
418
|
+
def collective_rpc(self,
|
|
419
|
+
method: Union[str, Callable[..., _R]],
|
|
420
|
+
timeout: Optional[float] = None,
|
|
421
|
+
args: tuple = (),
|
|
422
|
+
kwargs: Optional[dict[str, Any]] = None) -> list[_R]:
|
|
423
|
+
return self.model_executor.collective_rpc(method, timeout, args,
|
|
424
|
+
kwargs)
|
|
425
|
+
|
|
426
|
+
def save_tensorized_model(
|
|
427
|
+
self,
|
|
428
|
+
tensorizer_config,
|
|
429
|
+
) -> None:
|
|
430
|
+
self.model_executor.save_tensorized_model(
|
|
431
|
+
tensorizer_config=tensorizer_config, )
|
|
432
|
+
|
|
433
|
+
def preprocess_add_request(
|
|
434
|
+
self, request: EngineCoreRequest) -> tuple[Request, int]:
|
|
435
|
+
"""Preprocess the request.
|
|
436
|
+
|
|
437
|
+
This function could be directly used in input processing thread to allow
|
|
438
|
+
request initialization running in parallel with Model forward
|
|
439
|
+
"""
|
|
440
|
+
# Note on thread safety: no race condition.
|
|
441
|
+
# `mm_receiver_cache` is reset at the end of LLMEngine init,
|
|
442
|
+
# and will only be accessed in the input processing thread afterwards.
|
|
443
|
+
if self.mm_receiver_cache is not None and request.mm_features:
|
|
444
|
+
request.mm_features = (
|
|
445
|
+
self.mm_receiver_cache.get_and_update_features(
|
|
446
|
+
request.mm_features))
|
|
447
|
+
|
|
448
|
+
req = Request.from_engine_core_request(request,
|
|
449
|
+
self.request_block_hasher)
|
|
450
|
+
if req.use_structured_output:
|
|
451
|
+
# Note on thread safety: no race condition.
|
|
452
|
+
# `grammar_init` is only invoked in input processing thread. For
|
|
453
|
+
# `structured_output_manager`, each request is independent and
|
|
454
|
+
# grammar compilation is async. Scheduler always checks grammar
|
|
455
|
+
# compilation status before scheduling request.
|
|
456
|
+
self.structured_output_manager.grammar_init(req)
|
|
457
|
+
return req, request.current_wave
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
class EngineCoreProc(EngineCore):
|
|
461
|
+
"""ZMQ-wrapper for running EngineCore in background process."""
|
|
462
|
+
|
|
463
|
+
ENGINE_CORE_DEAD = b'ENGINE_CORE_DEAD'
|
|
464
|
+
|
|
465
|
+
def __init__(
|
|
466
|
+
self,
|
|
467
|
+
vllm_config: VllmConfig,
|
|
468
|
+
local_client: bool,
|
|
469
|
+
handshake_address: str,
|
|
470
|
+
executor_class: type[Executor],
|
|
471
|
+
log_stats: bool,
|
|
472
|
+
client_handshake_address: Optional[str] = None,
|
|
473
|
+
engine_index: int = 0,
|
|
474
|
+
):
|
|
475
|
+
self.input_queue = queue.Queue[tuple[EngineCoreRequestType, Any]]()
|
|
476
|
+
self.output_queue = queue.Queue[Union[tuple[int, EngineCoreOutputs],
|
|
477
|
+
bytes]]()
|
|
478
|
+
executor_fail_callback = lambda: self.input_queue.put_nowait(
|
|
479
|
+
(EngineCoreRequestType.EXECUTOR_FAILED, b''))
|
|
480
|
+
|
|
481
|
+
self.engine_index = engine_index
|
|
482
|
+
identity = self.engine_index.to_bytes(length=2, byteorder="little")
|
|
483
|
+
self.engines_running = False
|
|
484
|
+
|
|
485
|
+
with self._perform_handshakes(handshake_address, identity,
|
|
486
|
+
local_client, vllm_config,
|
|
487
|
+
client_handshake_address) as addresses:
|
|
488
|
+
self.client_count = len(addresses.outputs)
|
|
489
|
+
|
|
490
|
+
# Set up data parallel environment.
|
|
491
|
+
self.has_coordinator = addresses.coordinator_output is not None
|
|
492
|
+
self.frontend_stats_publish_address = (
|
|
493
|
+
addresses.frontend_stats_publish_address)
|
|
494
|
+
logger.debug("Has DP Coordinator: %s, stats publish address: %s",
|
|
495
|
+
self.has_coordinator,
|
|
496
|
+
self.frontend_stats_publish_address)
|
|
497
|
+
# Only publish request queue stats to coordinator for "internal"
|
|
498
|
+
# and "hybrid" LB modes .
|
|
499
|
+
self.publish_dp_lb_stats = (
|
|
500
|
+
self.has_coordinator
|
|
501
|
+
and not vllm_config.parallel_config.data_parallel_external_lb)
|
|
502
|
+
|
|
503
|
+
self._init_data_parallel(vllm_config)
|
|
504
|
+
|
|
505
|
+
super().__init__(vllm_config, executor_class, log_stats,
|
|
506
|
+
executor_fail_callback)
|
|
507
|
+
|
|
508
|
+
# Background Threads and Queues for IO. These enable us to
|
|
509
|
+
# overlap ZMQ socket IO with GPU since they release the GIL,
|
|
510
|
+
# and to overlap some serialization/deserialization with the
|
|
511
|
+
# model forward pass.
|
|
512
|
+
# Threads handle Socket <-> Queues and core_busy_loop uses Queue.
|
|
513
|
+
ready_event = threading.Event()
|
|
514
|
+
input_thread = threading.Thread(target=self.process_input_sockets,
|
|
515
|
+
args=(addresses.inputs,
|
|
516
|
+
addresses.coordinator_input,
|
|
517
|
+
identity, ready_event),
|
|
518
|
+
daemon=True)
|
|
519
|
+
input_thread.start()
|
|
520
|
+
|
|
521
|
+
self.output_thread = threading.Thread(
|
|
522
|
+
target=self.process_output_sockets,
|
|
523
|
+
args=(addresses.outputs, addresses.coordinator_output,
|
|
524
|
+
self.engine_index),
|
|
525
|
+
daemon=True)
|
|
526
|
+
self.output_thread.start()
|
|
527
|
+
|
|
528
|
+
# Don't complete handshake until DP coordinator ready message is
|
|
529
|
+
# received.
|
|
530
|
+
while not ready_event.wait(timeout=10):
|
|
531
|
+
if not input_thread.is_alive():
|
|
532
|
+
raise RuntimeError(
|
|
533
|
+
"Input socket thread died during startup")
|
|
534
|
+
assert addresses.coordinator_input is not None
|
|
535
|
+
logger.info("Waiting for READY message from DP Coordinator...")
|
|
536
|
+
|
|
537
|
+
self.step_fn = (self.step if self.batch_queue is None else
|
|
538
|
+
self.step_with_batch_queue)
|
|
539
|
+
|
|
540
|
+
# Mark the startup heap as static so that it's ignored by GC.
|
|
541
|
+
# Reduces pause times of oldest generation collections.
|
|
542
|
+
gc.collect()
|
|
543
|
+
gc.freeze()
|
|
544
|
+
|
|
545
|
+
@contextmanager
|
|
546
|
+
def _perform_handshakes(
|
|
547
|
+
self,
|
|
548
|
+
handshake_address: str,
|
|
549
|
+
identity: bytes,
|
|
550
|
+
local_client: bool,
|
|
551
|
+
vllm_config: VllmConfig,
|
|
552
|
+
client_handshake_address: Optional[str],
|
|
553
|
+
) -> Generator[EngineZmqAddresses, None, None]:
|
|
554
|
+
"""
|
|
555
|
+
Perform startup handshakes.
|
|
556
|
+
|
|
557
|
+
For DP=1 or offline mode, this is with the colocated front-end process.
|
|
558
|
+
|
|
559
|
+
For DP>1 with internal load-balancing this is with the shared front-end
|
|
560
|
+
process which may reside on a different node.
|
|
561
|
+
|
|
562
|
+
For DP>1 with external or hybrid load-balancing, two handshakes are
|
|
563
|
+
performed:
|
|
564
|
+
- With the rank 0 front-end process which retrieves the
|
|
565
|
+
DP Coordinator ZMQ addresses and DP process group address.
|
|
566
|
+
- With the colocated front-end process which retrieves the
|
|
567
|
+
client input/output socket addresses.
|
|
568
|
+
with the exception of the rank 0 and colocated engines themselves which
|
|
569
|
+
don't require the second handshake.
|
|
570
|
+
|
|
571
|
+
Here, "front-end" process can mean the process containing the engine
|
|
572
|
+
core client (which is the API server process in the case the API
|
|
573
|
+
server is not scaled out), OR the launcher process running the
|
|
574
|
+
run_multi_api_server() function in serve.py.
|
|
575
|
+
"""
|
|
576
|
+
input_ctx = zmq.Context()
|
|
577
|
+
is_local = local_client and client_handshake_address is None
|
|
578
|
+
headless = not local_client
|
|
579
|
+
handshake = self._perform_handshake(input_ctx, handshake_address,
|
|
580
|
+
identity, is_local, headless,
|
|
581
|
+
vllm_config,
|
|
582
|
+
vllm_config.parallel_config)
|
|
583
|
+
if client_handshake_address is None:
|
|
584
|
+
with handshake as addresses:
|
|
585
|
+
yield addresses
|
|
586
|
+
else:
|
|
587
|
+
assert local_client
|
|
588
|
+
local_handshake = self._perform_handshake(
|
|
589
|
+
input_ctx, client_handshake_address, identity, True, False,
|
|
590
|
+
vllm_config)
|
|
591
|
+
with handshake as addresses, local_handshake as client_addresses:
|
|
592
|
+
addresses.inputs = client_addresses.inputs
|
|
593
|
+
addresses.outputs = client_addresses.outputs
|
|
594
|
+
yield addresses
|
|
595
|
+
|
|
596
|
+
# Update config which may have changed from the handshake
|
|
597
|
+
vllm_config.__post_init__()
|
|
598
|
+
|
|
599
|
+
@contextmanager
|
|
600
|
+
def _perform_handshake(
|
|
601
|
+
self,
|
|
602
|
+
ctx: zmq.Context,
|
|
603
|
+
handshake_address: str,
|
|
604
|
+
identity: bytes,
|
|
605
|
+
local_client: bool,
|
|
606
|
+
headless: bool,
|
|
607
|
+
vllm_config: VllmConfig,
|
|
608
|
+
parallel_config_to_update: Optional[ParallelConfig] = None,
|
|
609
|
+
) -> Generator[EngineZmqAddresses, None, None]:
|
|
610
|
+
with make_zmq_socket(ctx,
|
|
611
|
+
handshake_address,
|
|
612
|
+
zmq.DEALER,
|
|
613
|
+
identity=identity,
|
|
614
|
+
linger=5000,
|
|
615
|
+
bind=False) as handshake_socket:
|
|
616
|
+
# Register engine with front-end.
|
|
617
|
+
addresses = self.startup_handshake(handshake_socket, local_client,
|
|
618
|
+
headless,
|
|
619
|
+
parallel_config_to_update)
|
|
620
|
+
yield addresses
|
|
621
|
+
|
|
622
|
+
# Send ready message.
|
|
623
|
+
num_gpu_blocks = vllm_config.cache_config.num_gpu_blocks
|
|
624
|
+
# We pass back the coordinator stats update address here for the
|
|
625
|
+
# external LB case for our colocated front-end to use (coordinator
|
|
626
|
+
# only runs with rank 0).
|
|
627
|
+
dp_stats_address = self.frontend_stats_publish_address
|
|
628
|
+
handshake_socket.send(
|
|
629
|
+
msgspec.msgpack.encode({
|
|
630
|
+
"status": "READY",
|
|
631
|
+
"local": local_client,
|
|
632
|
+
"headless": headless,
|
|
633
|
+
"num_gpu_blocks": num_gpu_blocks,
|
|
634
|
+
"dp_stats_address": dp_stats_address,
|
|
635
|
+
}))
|
|
636
|
+
|
|
637
|
+
@staticmethod
|
|
638
|
+
def startup_handshake(
|
|
639
|
+
handshake_socket: zmq.Socket,
|
|
640
|
+
local_client: bool,
|
|
641
|
+
headless: bool,
|
|
642
|
+
parallel_config: Optional[ParallelConfig] = None,
|
|
643
|
+
) -> EngineZmqAddresses:
|
|
644
|
+
|
|
645
|
+
# Send registration message.
|
|
646
|
+
handshake_socket.send(
|
|
647
|
+
msgspec.msgpack.encode({
|
|
648
|
+
"status": "HELLO",
|
|
649
|
+
"local": local_client,
|
|
650
|
+
"headless": headless,
|
|
651
|
+
}))
|
|
652
|
+
|
|
653
|
+
# Receive initialization message.
|
|
654
|
+
logger.info("Waiting for init message from front-end.")
|
|
655
|
+
if not handshake_socket.poll(timeout=HANDSHAKE_TIMEOUT_MINS * 60_000):
|
|
656
|
+
raise RuntimeError("Did not receive response from front-end "
|
|
657
|
+
f"process within {HANDSHAKE_TIMEOUT_MINS} "
|
|
658
|
+
f"minutes")
|
|
659
|
+
init_bytes = handshake_socket.recv()
|
|
660
|
+
init_message: EngineHandshakeMetadata = msgspec.msgpack.decode(
|
|
661
|
+
init_bytes, type=EngineHandshakeMetadata)
|
|
662
|
+
logger.debug("Received init message: %s", init_message)
|
|
663
|
+
|
|
664
|
+
if parallel_config is not None:
|
|
665
|
+
for key, value in init_message.parallel_config.items():
|
|
666
|
+
setattr(parallel_config, key, value)
|
|
667
|
+
|
|
668
|
+
return init_message.addresses
|
|
669
|
+
|
|
670
|
+
@staticmethod
|
|
671
|
+
def run_engine_core(*args,
|
|
672
|
+
dp_rank: int = 0,
|
|
673
|
+
local_dp_rank: int = 0,
|
|
674
|
+
**kwargs):
|
|
675
|
+
"""Launch EngineCore busy loop in background process."""
|
|
676
|
+
|
|
677
|
+
# Signal handler used for graceful termination.
|
|
678
|
+
# SystemExit exception is only raised once to allow this and worker
|
|
679
|
+
# processes to terminate without error
|
|
680
|
+
shutdown_requested = False
|
|
681
|
+
|
|
682
|
+
# Ensure we can serialize transformer config after spawning
|
|
683
|
+
maybe_register_config_serialize_by_value()
|
|
684
|
+
|
|
685
|
+
def signal_handler(signum, frame):
|
|
686
|
+
nonlocal shutdown_requested
|
|
687
|
+
if not shutdown_requested:
|
|
688
|
+
shutdown_requested = True
|
|
689
|
+
raise SystemExit()
|
|
690
|
+
|
|
691
|
+
# Either SIGTERM or SIGINT will terminate the engine_core
|
|
692
|
+
signal.signal(signal.SIGTERM, signal_handler)
|
|
693
|
+
signal.signal(signal.SIGINT, signal_handler)
|
|
694
|
+
|
|
695
|
+
engine_core: Optional[EngineCoreProc] = None
|
|
696
|
+
try:
|
|
697
|
+
parallel_config: ParallelConfig = kwargs[
|
|
698
|
+
"vllm_config"].parallel_config
|
|
699
|
+
if parallel_config.data_parallel_size > 1 or dp_rank > 0:
|
|
700
|
+
set_process_title("EngineCore", f"DP{dp_rank}")
|
|
701
|
+
decorate_logs()
|
|
702
|
+
# Set data parallel rank for this engine process.
|
|
703
|
+
parallel_config.data_parallel_rank = dp_rank
|
|
704
|
+
parallel_config.data_parallel_rank_local = local_dp_rank
|
|
705
|
+
engine_core = DPEngineCoreProc(*args, **kwargs)
|
|
706
|
+
else:
|
|
707
|
+
set_process_title("EngineCore")
|
|
708
|
+
decorate_logs()
|
|
709
|
+
engine_core = EngineCoreProc(*args, **kwargs)
|
|
710
|
+
|
|
711
|
+
engine_core.run_busy_loop()
|
|
712
|
+
|
|
713
|
+
except SystemExit:
|
|
714
|
+
logger.debug("EngineCore exiting.")
|
|
715
|
+
raise
|
|
716
|
+
except Exception as e:
|
|
717
|
+
if engine_core is None:
|
|
718
|
+
logger.exception("EngineCore failed to start.")
|
|
719
|
+
else:
|
|
720
|
+
logger.exception("EngineCore encountered a fatal error.")
|
|
721
|
+
engine_core._send_engine_dead()
|
|
722
|
+
raise e
|
|
723
|
+
finally:
|
|
724
|
+
if engine_core is not None:
|
|
725
|
+
engine_core.shutdown()
|
|
726
|
+
|
|
727
|
+
def _init_data_parallel(self, vllm_config: VllmConfig):
|
|
728
|
+
pass
|
|
729
|
+
|
|
730
|
+
def run_busy_loop(self):
|
|
731
|
+
"""Core busy loop of the EngineCore."""
|
|
732
|
+
|
|
733
|
+
# Loop until process is sent a SIGINT or SIGTERM
|
|
734
|
+
while True:
|
|
735
|
+
# 1) Poll the input queue until there is work to do.
|
|
736
|
+
self._process_input_queue()
|
|
737
|
+
# 2) Step the engine core and return the outputs.
|
|
738
|
+
self._process_engine_step()
|
|
739
|
+
|
|
740
|
+
def _process_input_queue(self):
|
|
741
|
+
"""Exits when an engine step needs to be performed."""
|
|
742
|
+
|
|
743
|
+
waited = False
|
|
744
|
+
while not self.engines_running and not self.scheduler.has_requests() \
|
|
745
|
+
and not self.batch_queue:
|
|
746
|
+
if logger.isEnabledFor(DEBUG) and self.input_queue.empty():
|
|
747
|
+
logger.debug("EngineCore waiting for work.")
|
|
748
|
+
waited = True
|
|
749
|
+
req = self.input_queue.get()
|
|
750
|
+
self._handle_client_request(*req)
|
|
751
|
+
|
|
752
|
+
if waited:
|
|
753
|
+
logger.debug("EngineCore loop active.")
|
|
754
|
+
|
|
755
|
+
# Handle any more client requests.
|
|
756
|
+
while not self.input_queue.empty():
|
|
757
|
+
req = self.input_queue.get_nowait()
|
|
758
|
+
self._handle_client_request(*req)
|
|
759
|
+
|
|
760
|
+
def _process_engine_step(self) -> bool:
|
|
761
|
+
"""Called only when there are unfinished local requests."""
|
|
762
|
+
|
|
763
|
+
# Step the engine core.
|
|
764
|
+
outputs, model_executed = self.step_fn()
|
|
765
|
+
# Put EngineCoreOutputs into the output queue.
|
|
766
|
+
for output in (outputs.items() if outputs else ()):
|
|
767
|
+
self.output_queue.put_nowait(output)
|
|
768
|
+
# Post-step hook.
|
|
769
|
+
self.post_step(model_executed)
|
|
770
|
+
|
|
771
|
+
return model_executed
|
|
772
|
+
|
|
773
|
+
def _handle_client_request(self, request_type: EngineCoreRequestType,
|
|
774
|
+
request: Any) -> None:
|
|
775
|
+
"""Dispatch request from client."""
|
|
776
|
+
|
|
777
|
+
if request_type == EngineCoreRequestType.ADD:
|
|
778
|
+
req, request_wave = request
|
|
779
|
+
self.add_request(req, request_wave)
|
|
780
|
+
elif request_type == EngineCoreRequestType.ABORT:
|
|
781
|
+
self.abort_requests(request)
|
|
782
|
+
elif request_type == EngineCoreRequestType.UTILITY:
|
|
783
|
+
client_idx, call_id, method_name, args = request
|
|
784
|
+
output = UtilityOutput(call_id)
|
|
785
|
+
try:
|
|
786
|
+
method = getattr(self, method_name)
|
|
787
|
+
result = method(*self._convert_msgspec_args(method, args))
|
|
788
|
+
output.result = UtilityResult(result)
|
|
789
|
+
except BaseException as e:
|
|
790
|
+
logger.exception("Invocation of %s method failed", method_name)
|
|
791
|
+
output.failure_message = (f"Call to {method_name} method"
|
|
792
|
+
f" failed: {str(e)}")
|
|
793
|
+
self.output_queue.put_nowait(
|
|
794
|
+
(client_idx, EngineCoreOutputs(utility_output=output)))
|
|
795
|
+
elif request_type == EngineCoreRequestType.EXECUTOR_FAILED:
|
|
796
|
+
raise RuntimeError("Executor failed.")
|
|
797
|
+
else:
|
|
798
|
+
logger.error("Unrecognized input request type encountered: %s",
|
|
799
|
+
request_type)
|
|
800
|
+
|
|
801
|
+
@staticmethod
|
|
802
|
+
def _convert_msgspec_args(method, args):
|
|
803
|
+
"""If a provided arg type doesn't match corresponding target method
|
|
804
|
+
arg type, try converting to msgspec object."""
|
|
805
|
+
if not args:
|
|
806
|
+
return args
|
|
807
|
+
arg_types = signature(method).parameters.values()
|
|
808
|
+
assert len(args) <= len(arg_types)
|
|
809
|
+
return tuple(
|
|
810
|
+
msgspec.convert(v, type=p.annotation) if isclass(p.annotation)
|
|
811
|
+
and issubclass(p.annotation, msgspec.Struct)
|
|
812
|
+
and not isinstance(v, p.annotation) else v
|
|
813
|
+
for v, p in zip(args, arg_types))
|
|
814
|
+
|
|
815
|
+
def _send_engine_dead(self):
|
|
816
|
+
"""Send EngineDead status to the EngineCoreClient."""
|
|
817
|
+
|
|
818
|
+
# Put ENGINE_CORE_DEAD in the queue.
|
|
819
|
+
self.output_queue.put_nowait(EngineCoreProc.ENGINE_CORE_DEAD)
|
|
820
|
+
|
|
821
|
+
# Wait until msg sent by the daemon before shutdown.
|
|
822
|
+
self.output_thread.join(timeout=5.0)
|
|
823
|
+
if self.output_thread.is_alive():
|
|
824
|
+
logger.fatal("vLLM shutdown signal from EngineCore failed "
|
|
825
|
+
"to send. Please report this issue.")
|
|
826
|
+
|
|
827
|
+
def process_input_sockets(self, input_addresses: list[str],
|
|
828
|
+
coord_input_address: Optional[str],
|
|
829
|
+
identity: bytes, ready_event: threading.Event):
|
|
830
|
+
"""Input socket IO thread."""
|
|
831
|
+
|
|
832
|
+
# Msgpack serialization decoding.
|
|
833
|
+
add_request_decoder = MsgpackDecoder(EngineCoreRequest)
|
|
834
|
+
generic_decoder = MsgpackDecoder()
|
|
835
|
+
|
|
836
|
+
with ExitStack() as stack, zmq.Context() as ctx:
|
|
837
|
+
input_sockets = [
|
|
838
|
+
stack.enter_context(
|
|
839
|
+
make_zmq_socket(ctx,
|
|
840
|
+
input_address,
|
|
841
|
+
zmq.DEALER,
|
|
842
|
+
identity=identity,
|
|
843
|
+
bind=False))
|
|
844
|
+
for input_address in input_addresses
|
|
845
|
+
]
|
|
846
|
+
if coord_input_address is None:
|
|
847
|
+
coord_socket = None
|
|
848
|
+
else:
|
|
849
|
+
coord_socket = stack.enter_context(
|
|
850
|
+
make_zmq_socket(ctx,
|
|
851
|
+
coord_input_address,
|
|
852
|
+
zmq.XSUB,
|
|
853
|
+
identity=identity,
|
|
854
|
+
bind=False))
|
|
855
|
+
# Send subscription message to coordinator.
|
|
856
|
+
coord_socket.send(b'\x01')
|
|
857
|
+
|
|
858
|
+
# Register sockets with poller.
|
|
859
|
+
poller = zmq.Poller()
|
|
860
|
+
for input_socket in input_sockets:
|
|
861
|
+
# Send initial message to each input socket - this is required
|
|
862
|
+
# before the front-end ROUTER socket can send input messages
|
|
863
|
+
# back to us.
|
|
864
|
+
input_socket.send(b'')
|
|
865
|
+
poller.register(input_socket, zmq.POLLIN)
|
|
866
|
+
|
|
867
|
+
if coord_socket is not None:
|
|
868
|
+
# Wait for ready message from coordinator.
|
|
869
|
+
assert coord_socket.recv() == b"READY"
|
|
870
|
+
poller.register(coord_socket, zmq.POLLIN)
|
|
871
|
+
|
|
872
|
+
ready_event.set()
|
|
873
|
+
del ready_event
|
|
874
|
+
while True:
|
|
875
|
+
for input_socket, _ in poller.poll():
|
|
876
|
+
# (RequestType, RequestData)
|
|
877
|
+
type_frame, *data_frames = input_socket.recv_multipart(
|
|
878
|
+
copy=False)
|
|
879
|
+
request_type = EngineCoreRequestType(
|
|
880
|
+
bytes(type_frame.buffer))
|
|
881
|
+
|
|
882
|
+
# Deserialize the request data.
|
|
883
|
+
if request_type == EngineCoreRequestType.ADD:
|
|
884
|
+
request = add_request_decoder.decode(data_frames)
|
|
885
|
+
request = self.preprocess_add_request(request)
|
|
886
|
+
else:
|
|
887
|
+
request = generic_decoder.decode(data_frames)
|
|
888
|
+
|
|
889
|
+
# Push to input queue for core busy loop.
|
|
890
|
+
self.input_queue.put_nowait((request_type, request))
|
|
891
|
+
|
|
892
|
+
def process_output_sockets(self, output_paths: list[str],
|
|
893
|
+
coord_output_path: Optional[str],
|
|
894
|
+
engine_index: int):
|
|
895
|
+
"""Output socket IO thread."""
|
|
896
|
+
|
|
897
|
+
# Msgpack serialization encoding.
|
|
898
|
+
encoder = MsgpackEncoder()
|
|
899
|
+
# Send buffers to reuse.
|
|
900
|
+
reuse_buffers: list[bytearray] = []
|
|
901
|
+
# Keep references to outputs and buffers until zmq is finished
|
|
902
|
+
# with them (outputs may contain tensors/np arrays whose
|
|
903
|
+
# backing buffers were extracted for zero-copy send).
|
|
904
|
+
pending = deque[tuple[zmq.MessageTracker, Any, bytearray]]()
|
|
905
|
+
|
|
906
|
+
# We must set linger to ensure the ENGINE_CORE_DEAD
|
|
907
|
+
# message is sent prior to closing the socket.
|
|
908
|
+
with ExitStack() as stack, zmq.Context() as ctx:
|
|
909
|
+
sockets = [
|
|
910
|
+
stack.enter_context(
|
|
911
|
+
make_zmq_socket(ctx, output_path, zmq.PUSH, linger=4000))
|
|
912
|
+
for output_path in output_paths
|
|
913
|
+
]
|
|
914
|
+
coord_socket = stack.enter_context(
|
|
915
|
+
make_zmq_socket(
|
|
916
|
+
ctx, coord_output_path, zmq.PUSH, bind=False,
|
|
917
|
+
linger=4000)) if coord_output_path is not None else None
|
|
918
|
+
max_reuse_bufs = len(sockets) + 1
|
|
919
|
+
|
|
920
|
+
while True:
|
|
921
|
+
output = self.output_queue.get()
|
|
922
|
+
if output == EngineCoreProc.ENGINE_CORE_DEAD:
|
|
923
|
+
for socket in sockets:
|
|
924
|
+
socket.send(output)
|
|
925
|
+
break
|
|
926
|
+
assert not isinstance(output, bytes)
|
|
927
|
+
client_index, outputs = output
|
|
928
|
+
outputs.engine_index = engine_index
|
|
929
|
+
|
|
930
|
+
if client_index == -1:
|
|
931
|
+
# Don't reuse buffer for coordinator message
|
|
932
|
+
# which will be very small.
|
|
933
|
+
assert coord_socket is not None
|
|
934
|
+
coord_socket.send_multipart(encoder.encode(outputs))
|
|
935
|
+
continue
|
|
936
|
+
|
|
937
|
+
# Reclaim buffers that zmq is finished with.
|
|
938
|
+
while pending and pending[-1][0].done:
|
|
939
|
+
reuse_buffers.append(pending.pop()[2])
|
|
940
|
+
|
|
941
|
+
buffer = reuse_buffers.pop() if reuse_buffers else bytearray()
|
|
942
|
+
buffers = encoder.encode_into(outputs, buffer)
|
|
943
|
+
tracker = sockets[client_index].send_multipart(buffers,
|
|
944
|
+
copy=False,
|
|
945
|
+
track=True)
|
|
946
|
+
if not tracker.done:
|
|
947
|
+
ref = outputs if len(buffers) > 1 else None
|
|
948
|
+
pending.appendleft((tracker, ref, buffer))
|
|
949
|
+
elif len(reuse_buffers) < max_reuse_bufs:
|
|
950
|
+
# Limit the number of buffers to reuse.
|
|
951
|
+
reuse_buffers.append(buffer)
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
class DPEngineCoreProc(EngineCoreProc):
|
|
955
|
+
"""ZMQ-wrapper for running EngineCore in background process
|
|
956
|
+
in a data parallel context."""
|
|
957
|
+
|
|
958
|
+
def __init__(
|
|
959
|
+
self,
|
|
960
|
+
vllm_config: VllmConfig,
|
|
961
|
+
local_client: bool,
|
|
962
|
+
handshake_address: str,
|
|
963
|
+
executor_class: type[Executor],
|
|
964
|
+
log_stats: bool,
|
|
965
|
+
client_handshake_address: Optional[str] = None,
|
|
966
|
+
):
|
|
967
|
+
# Counts forward-passes of the model so that we can synchronize
|
|
968
|
+
# finished with DP peers every N steps.
|
|
969
|
+
self.step_counter = 0
|
|
970
|
+
self.current_wave = 0
|
|
971
|
+
self.last_counts = (0, 0)
|
|
972
|
+
|
|
973
|
+
# Initialize the engine.
|
|
974
|
+
dp_rank = vllm_config.parallel_config.data_parallel_rank
|
|
975
|
+
super().__init__(vllm_config, local_client, handshake_address,
|
|
976
|
+
executor_class, log_stats, client_handshake_address,
|
|
977
|
+
dp_rank)
|
|
978
|
+
|
|
979
|
+
def _init_data_parallel(self, vllm_config: VllmConfig):
|
|
980
|
+
|
|
981
|
+
# Configure GPUs and stateless process group for data parallel.
|
|
982
|
+
dp_rank = vllm_config.parallel_config.data_parallel_rank
|
|
983
|
+
dp_size = vllm_config.parallel_config.data_parallel_size
|
|
984
|
+
local_dp_rank = vllm_config.parallel_config.data_parallel_rank_local
|
|
985
|
+
|
|
986
|
+
assert dp_size > 1
|
|
987
|
+
assert 0 <= local_dp_rank <= dp_rank < dp_size
|
|
988
|
+
|
|
989
|
+
if vllm_config.kv_transfer_config is not None:
|
|
990
|
+
# modify the engine_id and append the local_dp_rank to it to ensure
|
|
991
|
+
# that the kv_transfer_config is unique for each DP rank.
|
|
992
|
+
vllm_config.kv_transfer_config.engine_id = (
|
|
993
|
+
f"{vllm_config.kv_transfer_config.engine_id}_dp{local_dp_rank}"
|
|
994
|
+
)
|
|
995
|
+
logger.debug("Setting kv_transfer_config.engine_id to %s",
|
|
996
|
+
vllm_config.kv_transfer_config.engine_id)
|
|
997
|
+
|
|
998
|
+
self.dp_rank = dp_rank
|
|
999
|
+
self.dp_group = vllm_config.parallel_config.stateless_init_dp_group()
|
|
1000
|
+
|
|
1001
|
+
def shutdown(self):
|
|
1002
|
+
super().shutdown()
|
|
1003
|
+
if dp_group := getattr(self, "dp_group", None):
|
|
1004
|
+
stateless_destroy_torch_distributed_process_group(dp_group)
|
|
1005
|
+
|
|
1006
|
+
def add_request(self, request: Request, request_wave: int = 0):
|
|
1007
|
+
if self.has_coordinator and request_wave != self.current_wave:
|
|
1008
|
+
if request_wave > self.current_wave:
|
|
1009
|
+
self.current_wave = request_wave
|
|
1010
|
+
elif not self.engines_running:
|
|
1011
|
+
# Request received for an already-completed wave, notify
|
|
1012
|
+
# front-end that we need to start the next one.
|
|
1013
|
+
self.output_queue.put_nowait(
|
|
1014
|
+
(-1, EngineCoreOutputs(start_wave=self.current_wave)))
|
|
1015
|
+
|
|
1016
|
+
super().add_request(request, request_wave)
|
|
1017
|
+
|
|
1018
|
+
def _handle_client_request(self, request_type: EngineCoreRequestType,
|
|
1019
|
+
request: Any) -> None:
|
|
1020
|
+
if request_type == EngineCoreRequestType.START_DP_WAVE:
|
|
1021
|
+
new_wave, exclude_eng_index = request
|
|
1022
|
+
if exclude_eng_index != self.engine_index and (
|
|
1023
|
+
new_wave >= self.current_wave):
|
|
1024
|
+
self.current_wave = new_wave
|
|
1025
|
+
if not self.engines_running:
|
|
1026
|
+
logger.debug("EngineCore starting idle loop for wave %d.",
|
|
1027
|
+
new_wave)
|
|
1028
|
+
self.engines_running = True
|
|
1029
|
+
else:
|
|
1030
|
+
super()._handle_client_request(request_type, request)
|
|
1031
|
+
|
|
1032
|
+
def _maybe_publish_request_counts(self):
|
|
1033
|
+
if not self.publish_dp_lb_stats:
|
|
1034
|
+
return
|
|
1035
|
+
|
|
1036
|
+
# Publish our request counts (if they've changed).
|
|
1037
|
+
counts = self.scheduler.get_request_counts()
|
|
1038
|
+
if counts != self.last_counts:
|
|
1039
|
+
self.last_counts = counts
|
|
1040
|
+
stats = SchedulerStats(*counts,
|
|
1041
|
+
step_counter=self.step_counter,
|
|
1042
|
+
current_wave=self.current_wave)
|
|
1043
|
+
self.output_queue.put_nowait(
|
|
1044
|
+
(-1, EngineCoreOutputs(scheduler_stats=stats)))
|
|
1045
|
+
|
|
1046
|
+
def run_busy_loop(self):
|
|
1047
|
+
"""Core busy loop of the EngineCore for data parallel case."""
|
|
1048
|
+
|
|
1049
|
+
# Loop until process is sent a SIGINT or SIGTERM
|
|
1050
|
+
while True:
|
|
1051
|
+
# 1) Poll the input queue until there is work to do.
|
|
1052
|
+
self._process_input_queue()
|
|
1053
|
+
|
|
1054
|
+
# 2) Step the engine core.
|
|
1055
|
+
executed = self._process_engine_step()
|
|
1056
|
+
self._maybe_publish_request_counts()
|
|
1057
|
+
|
|
1058
|
+
local_unfinished_reqs = self.scheduler.has_unfinished_requests()
|
|
1059
|
+
if not executed:
|
|
1060
|
+
if not local_unfinished_reqs and not self.engines_running:
|
|
1061
|
+
# All engines are idle.
|
|
1062
|
+
continue
|
|
1063
|
+
|
|
1064
|
+
# We are in a running state and so must execute a dummy pass
|
|
1065
|
+
# if the model didn't execute any ready requests.
|
|
1066
|
+
self.execute_dummy_batch()
|
|
1067
|
+
|
|
1068
|
+
# 3) All-reduce operation to determine global unfinished reqs.
|
|
1069
|
+
self.engines_running = self._has_global_unfinished_reqs(
|
|
1070
|
+
local_unfinished_reqs)
|
|
1071
|
+
|
|
1072
|
+
if not self.engines_running:
|
|
1073
|
+
if self.dp_rank == 0 or not self.has_coordinator:
|
|
1074
|
+
# Notify client that we are pausing the loop.
|
|
1075
|
+
logger.debug("Wave %d finished, pausing engine loop.",
|
|
1076
|
+
self.current_wave)
|
|
1077
|
+
# In the coordinator case, dp rank 0 sends updates to the
|
|
1078
|
+
# coordinator. Otherwise (offline spmd case), each rank
|
|
1079
|
+
# sends the update to its colocated front-end process.
|
|
1080
|
+
client_index = -1 if self.has_coordinator else 0
|
|
1081
|
+
self.output_queue.put_nowait(
|
|
1082
|
+
(client_index,
|
|
1083
|
+
EngineCoreOutputs(wave_complete=self.current_wave)))
|
|
1084
|
+
# Increment wave count and reset step counter.
|
|
1085
|
+
self.current_wave += 1
|
|
1086
|
+
self.step_counter = 0
|
|
1087
|
+
|
|
1088
|
+
def _has_global_unfinished_reqs(self, local_unfinished: bool) -> bool:
|
|
1089
|
+
|
|
1090
|
+
# Optimization - only perform finish-sync all-reduce every 32 steps.
|
|
1091
|
+
self.step_counter += 1
|
|
1092
|
+
if self.step_counter % 32 != 0:
|
|
1093
|
+
return True
|
|
1094
|
+
|
|
1095
|
+
return ParallelConfig.has_unfinished_dp(self.dp_group,
|
|
1096
|
+
local_unfinished)
|
|
1097
|
+
|
|
1098
|
+
def reinitialize_distributed(
|
|
1099
|
+
self, reconfig_request: ReconfigureDistributedRequest) -> None:
|
|
1100
|
+
stateless_destroy_torch_distributed_process_group(self.dp_group)
|
|
1101
|
+
self.shutdown()
|
|
1102
|
+
|
|
1103
|
+
parallel_config = self.vllm_config.parallel_config
|
|
1104
|
+
old_dp_size = parallel_config.data_parallel_size
|
|
1105
|
+
parallel_config.data_parallel_size = \
|
|
1106
|
+
reconfig_request.new_data_parallel_size
|
|
1107
|
+
if reconfig_request.new_data_parallel_rank != -1:
|
|
1108
|
+
parallel_config.data_parallel_rank = \
|
|
1109
|
+
reconfig_request.new_data_parallel_rank
|
|
1110
|
+
# local rank specifies device visibility, it should not be changed
|
|
1111
|
+
assert reconfig_request.new_data_parallel_rank_local == \
|
|
1112
|
+
ReconfigureRankType.KEEP_CURRENT_RANK
|
|
1113
|
+
parallel_config.data_parallel_master_ip = \
|
|
1114
|
+
reconfig_request.new_data_parallel_master_ip
|
|
1115
|
+
parallel_config.data_parallel_master_port = \
|
|
1116
|
+
reconfig_request.new_data_parallel_master_port
|
|
1117
|
+
if reconfig_request.new_data_parallel_rank != -2:
|
|
1118
|
+
self.dp_rank = parallel_config.data_parallel_rank
|
|
1119
|
+
self.dp_group = parallel_config.stateless_init_dp_group()
|
|
1120
|
+
reconfig_request.new_data_parallel_master_port = \
|
|
1121
|
+
parallel_config.data_parallel_master_port
|
|
1122
|
+
|
|
1123
|
+
self.model_executor.reinitialize_distributed(reconfig_request)
|
|
1124
|
+
if reconfig_request.new_data_parallel_size > old_dp_size:
|
|
1125
|
+
assert self.available_gpu_memory_for_kv_cache > 0
|
|
1126
|
+
# pass available_gpu_memory_for_kv_cache from existing
|
|
1127
|
+
# engine-cores to new engine-cores so they can directly
|
|
1128
|
+
# use it in _initialize_kv_caches() rather than profiling.
|
|
1129
|
+
ParallelConfig.sync_kv_cache_memory_size(
|
|
1130
|
+
self.dp_group, self.available_gpu_memory_for_kv_cache)
|
|
1131
|
+
# NOTE(yongji): newly joined workers require dummy_run even
|
|
1132
|
+
# CUDA graph is not used
|
|
1133
|
+
self.model_executor.collective_rpc("compile_or_warm_up_model")
|
|
1134
|
+
if reconfig_request.new_data_parallel_rank == \
|
|
1135
|
+
ReconfigureRankType.SHUTDOWN_CURRENT_RANK:
|
|
1136
|
+
self.shutdown()
|
|
1137
|
+
logger.info("DPEngineCoreProc %s shutdown", self.dp_rank)
|
|
1138
|
+
else:
|
|
1139
|
+
logger.info("Distributed environment reinitialized for DP rank %s",
|
|
1140
|
+
self.dp_rank)
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
class DPEngineCoreActor(DPEngineCoreProc):
|
|
1144
|
+
"""
|
|
1145
|
+
Ray actor for running EngineCore in a data parallel context
|
|
1146
|
+
"""
|
|
1147
|
+
|
|
1148
|
+
def __init__(
|
|
1149
|
+
self,
|
|
1150
|
+
vllm_config: VllmConfig,
|
|
1151
|
+
local_client: bool,
|
|
1152
|
+
addresses: EngineZmqAddresses,
|
|
1153
|
+
executor_class: type[Executor],
|
|
1154
|
+
log_stats: bool,
|
|
1155
|
+
dp_rank: int = 0,
|
|
1156
|
+
local_dp_rank: int = 0,
|
|
1157
|
+
):
|
|
1158
|
+
self.addresses = addresses
|
|
1159
|
+
vllm_config.parallel_config.data_parallel_rank = dp_rank
|
|
1160
|
+
vllm_config.parallel_config.data_parallel_rank_local = \
|
|
1161
|
+
local_dp_rank
|
|
1162
|
+
|
|
1163
|
+
# Set CUDA_VISIBLE_DEVICES as early as possible in actor life cycle
|
|
1164
|
+
# NOTE: in MP we set CUDA_VISIBLE_DEVICES at process creation time,
|
|
1165
|
+
# and this cannot be done in the same way for Ray because:
|
|
1166
|
+
# 1) Ray manages life cycle of all ray workers (including
|
|
1167
|
+
# DPEngineCoreActor)
|
|
1168
|
+
# 2) Ray sets CUDA_VISIBLE_DEVICES based on num_gpus configuration
|
|
1169
|
+
# To bypass 2, we need to also set
|
|
1170
|
+
# RAY_EXPERIMENTAL_NOSET_CUDA_VISIBLE_DEVICES, but vLLM workers created
|
|
1171
|
+
# thereafter would have CUDA_VISIBLE_DEVICES set, which is sticky:
|
|
1172
|
+
# https://github.com/ray-project/ray/blob/e752fc319ddedd9779a0989b6d3613909bad75c9/python/ray/_private/worker.py#L456 # noqa: E501
|
|
1173
|
+
# This is problematic because when the vLLM worker (a Ray actor)
|
|
1174
|
+
# executes a task, it indexes into the sticky CUDA_VISIBLE_DEVICES
|
|
1175
|
+
# rather than directly using the GPU ID, potentially resulting in
|
|
1176
|
+
# index out of bounds error. See:
|
|
1177
|
+
# https://github.com/ray-project/ray/pull/40461/files#diff-31e8159767361e4bc259b6d9883d9c0d5e5db780fcea4a52ead4ee3ee4a59a78R1860 # noqa: E501
|
|
1178
|
+
# and get_accelerator_ids_for_accelerator_resource() in worker.py
|
|
1179
|
+
# of ray.
|
|
1180
|
+
self._set_visible_devices(vllm_config, local_dp_rank)
|
|
1181
|
+
|
|
1182
|
+
super().__init__(vllm_config, local_client, "", executor_class,
|
|
1183
|
+
log_stats)
|
|
1184
|
+
|
|
1185
|
+
def _set_visible_devices(self, vllm_config: VllmConfig,
|
|
1186
|
+
local_dp_rank: int):
|
|
1187
|
+
from vllm.platforms import current_platform
|
|
1188
|
+
if current_platform.is_xpu():
|
|
1189
|
+
pass
|
|
1190
|
+
else:
|
|
1191
|
+
device_control_env_var = current_platform.device_control_env_var
|
|
1192
|
+
self._set_cuda_visible_devices(vllm_config, local_dp_rank,
|
|
1193
|
+
device_control_env_var)
|
|
1194
|
+
|
|
1195
|
+
def _set_cuda_visible_devices(self, vllm_config: VllmConfig,
|
|
1196
|
+
local_dp_rank: int,
|
|
1197
|
+
device_control_env_var: str):
|
|
1198
|
+
world_size = vllm_config.parallel_config.world_size
|
|
1199
|
+
# Set CUDA_VISIBLE_DEVICES or equivalent.
|
|
1200
|
+
try:
|
|
1201
|
+
value = get_device_indices(device_control_env_var, local_dp_rank,
|
|
1202
|
+
world_size)
|
|
1203
|
+
os.environ[device_control_env_var] = value
|
|
1204
|
+
except IndexError as e:
|
|
1205
|
+
raise Exception(
|
|
1206
|
+
f"Error setting {device_control_env_var}: "
|
|
1207
|
+
f"local range: [{local_dp_rank * world_size}, "
|
|
1208
|
+
f"{(local_dp_rank + 1) * world_size}) "
|
|
1209
|
+
f"base value: \"{os.getenv(device_control_env_var)}\"") from e
|
|
1210
|
+
|
|
1211
|
+
@contextmanager
|
|
1212
|
+
def _perform_handshakes(self, handshake_address: str, identity: bytes,
|
|
1213
|
+
local_client: bool, vllm_config: VllmConfig,
|
|
1214
|
+
client_handshake_address: Optional[str]):
|
|
1215
|
+
"""
|
|
1216
|
+
For Ray, we don't need to actually perform handshake.
|
|
1217
|
+
All addresses information is known before the actor creation.
|
|
1218
|
+
Therefore, we simply yield these addresses.
|
|
1219
|
+
"""
|
|
1220
|
+
yield self.addresses
|
|
1221
|
+
|
|
1222
|
+
def wait_for_init(self):
|
|
1223
|
+
"""
|
|
1224
|
+
Wait until the engine core is initialized.
|
|
1225
|
+
|
|
1226
|
+
This is just an empty method. When ray.get() on this method
|
|
1227
|
+
(or any other method of the actor) returns, it is guaranteed
|
|
1228
|
+
that actor creation (i.e., __init__) is complete.
|
|
1229
|
+
"""
|
|
1230
|
+
pass
|
|
1231
|
+
|
|
1232
|
+
def run(self):
|
|
1233
|
+
"""
|
|
1234
|
+
Run the engine core busy loop.
|
|
1235
|
+
"""
|
|
1236
|
+
try:
|
|
1237
|
+
self.run_busy_loop()
|
|
1238
|
+
except SystemExit:
|
|
1239
|
+
logger.debug("EngineCore exiting.")
|
|
1240
|
+
raise
|
|
1241
|
+
except Exception:
|
|
1242
|
+
logger.exception("EngineCore encountered a fatal error.")
|
|
1243
|
+
raise
|
|
1244
|
+
finally:
|
|
1245
|
+
self.shutdown()
|