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