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/benchmarks/serve.py
ADDED
|
@@ -0,0 +1,1531 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
3
|
+
r"""Benchmark online serving throughput.
|
|
4
|
+
|
|
5
|
+
On the server side, run one of the following commands
|
|
6
|
+
to launch the vLLM OpenAI API server:
|
|
7
|
+
vllm serve <your_model> <engine arguments>
|
|
8
|
+
|
|
9
|
+
On the client side, run:
|
|
10
|
+
vllm bench serve \
|
|
11
|
+
--backend <backend or endpoint type. Default 'openai'> \
|
|
12
|
+
--label <benchmark result label. Default using backend> \
|
|
13
|
+
--model <your_model> \
|
|
14
|
+
--dataset-name <dataset_name. Default 'random'> \
|
|
15
|
+
--request-rate <request_rate. Default inf> \
|
|
16
|
+
--num-prompts <num_prompts. Default 1000>
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
import argparse
|
|
20
|
+
import asyncio
|
|
21
|
+
import contextlib
|
|
22
|
+
import importlib.util
|
|
23
|
+
import json
|
|
24
|
+
import os
|
|
25
|
+
import random
|
|
26
|
+
import shutil
|
|
27
|
+
import time
|
|
28
|
+
import uuid
|
|
29
|
+
import warnings
|
|
30
|
+
from collections.abc import AsyncGenerator, Iterable
|
|
31
|
+
from dataclasses import dataclass
|
|
32
|
+
from datetime import datetime
|
|
33
|
+
from enum import Enum
|
|
34
|
+
from typing import Any, Literal
|
|
35
|
+
|
|
36
|
+
import aiohttp
|
|
37
|
+
import numpy as np
|
|
38
|
+
from tqdm.asyncio import tqdm
|
|
39
|
+
from transformers import PreTrainedTokenizerBase
|
|
40
|
+
|
|
41
|
+
from vllm.benchmarks.datasets import SampleRequest, add_dataset_parser, get_samples
|
|
42
|
+
from vllm.benchmarks.lib.endpoint_request_func import (
|
|
43
|
+
ASYNC_REQUEST_FUNCS,
|
|
44
|
+
OPENAI_COMPATIBLE_BACKENDS,
|
|
45
|
+
RequestFuncInput,
|
|
46
|
+
RequestFuncOutput,
|
|
47
|
+
)
|
|
48
|
+
from vllm.benchmarks.lib.ready_checker import wait_for_endpoint
|
|
49
|
+
from vllm.benchmarks.lib.utils import convert_to_pytorch_benchmark_format, write_to_json
|
|
50
|
+
from vllm.transformers_utils.tokenizer import get_tokenizer
|
|
51
|
+
from vllm.utils.gc_utils import freeze_gc_heap
|
|
52
|
+
from vllm.utils.network_utils import join_host_port
|
|
53
|
+
|
|
54
|
+
MILLISECONDS_TO_SECONDS_CONVERSION = 1000
|
|
55
|
+
|
|
56
|
+
TERM_PLOTLIB_AVAILABLE = (importlib.util.find_spec("termplotlib") is not None) and (
|
|
57
|
+
shutil.which("gnuplot") is not None
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class TaskType(Enum):
|
|
62
|
+
GENERATION = "generation"
|
|
63
|
+
POOLING = "pooling"
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
@dataclass
|
|
67
|
+
class BenchmarkMetrics:
|
|
68
|
+
completed: int
|
|
69
|
+
failed: int
|
|
70
|
+
total_input: int
|
|
71
|
+
total_output: int
|
|
72
|
+
request_throughput: float
|
|
73
|
+
request_goodput: float
|
|
74
|
+
output_throughput: float
|
|
75
|
+
total_token_throughput: float
|
|
76
|
+
mean_ttft_ms: float
|
|
77
|
+
median_ttft_ms: float
|
|
78
|
+
std_ttft_ms: float
|
|
79
|
+
percentiles_ttft_ms: list[tuple[float, float]]
|
|
80
|
+
mean_tpot_ms: float
|
|
81
|
+
median_tpot_ms: float
|
|
82
|
+
std_tpot_ms: float
|
|
83
|
+
percentiles_tpot_ms: list[tuple[float, float]]
|
|
84
|
+
mean_itl_ms: float
|
|
85
|
+
median_itl_ms: float
|
|
86
|
+
std_itl_ms: float
|
|
87
|
+
percentiles_itl_ms: list[tuple[float, float]]
|
|
88
|
+
# E2EL stands for end-to-end latency per request.
|
|
89
|
+
# It is the time taken on the client side from sending
|
|
90
|
+
# a request to receiving a complete response.
|
|
91
|
+
mean_e2el_ms: float
|
|
92
|
+
median_e2el_ms: float
|
|
93
|
+
std_e2el_ms: float
|
|
94
|
+
percentiles_e2el_ms: list[tuple[float, float]]
|
|
95
|
+
# Max output tokens per second and concurrent requests at that peak
|
|
96
|
+
max_output_tokens_per_s: float
|
|
97
|
+
max_concurrent_requests: int
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
@dataclass
|
|
101
|
+
class EmbedBenchmarkMetrics:
|
|
102
|
+
completed: int
|
|
103
|
+
failed: int
|
|
104
|
+
total_input: int
|
|
105
|
+
request_throughput: float
|
|
106
|
+
total_token_throughput: float
|
|
107
|
+
mean_e2el_ms: float
|
|
108
|
+
std_e2el_ms: float
|
|
109
|
+
median_e2el_ms: float
|
|
110
|
+
percentiles_e2el_ms: float
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
def _get_current_request_rate(
|
|
114
|
+
ramp_up_strategy: Literal["linear", "exponential"] | None,
|
|
115
|
+
ramp_up_start_rps: int | None,
|
|
116
|
+
ramp_up_end_rps: int | None,
|
|
117
|
+
request_index: int,
|
|
118
|
+
total_requests: int,
|
|
119
|
+
request_rate: float,
|
|
120
|
+
) -> float:
|
|
121
|
+
if (
|
|
122
|
+
ramp_up_strategy
|
|
123
|
+
and ramp_up_start_rps is not None
|
|
124
|
+
and ramp_up_end_rps is not None
|
|
125
|
+
):
|
|
126
|
+
progress = request_index / max(total_requests - 1, 1)
|
|
127
|
+
if ramp_up_strategy == "linear":
|
|
128
|
+
increase = (ramp_up_end_rps - ramp_up_start_rps) * progress
|
|
129
|
+
return ramp_up_start_rps + increase
|
|
130
|
+
elif ramp_up_strategy == "exponential":
|
|
131
|
+
ratio = ramp_up_end_rps / ramp_up_start_rps
|
|
132
|
+
return ramp_up_start_rps * (ratio**progress)
|
|
133
|
+
else:
|
|
134
|
+
raise ValueError(f"Unknown ramp-up strategy: {ramp_up_strategy}")
|
|
135
|
+
return request_rate
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
async def get_request(
|
|
139
|
+
input_requests: list[SampleRequest],
|
|
140
|
+
request_rate: float,
|
|
141
|
+
burstiness: float = 1.0,
|
|
142
|
+
ramp_up_strategy: Literal["linear", "exponential"] | None = None,
|
|
143
|
+
ramp_up_start_rps: int | None = None,
|
|
144
|
+
ramp_up_end_rps: int | None = None,
|
|
145
|
+
) -> AsyncGenerator[tuple[SampleRequest, float], None]:
|
|
146
|
+
"""
|
|
147
|
+
Asynchronously generates requests at a specified rate
|
|
148
|
+
with OPTIONAL burstiness and OPTIONAL ramp-up strategy.
|
|
149
|
+
|
|
150
|
+
Args:
|
|
151
|
+
input_requests:
|
|
152
|
+
A list of input requests, each represented as a SampleRequest.
|
|
153
|
+
request_rate:
|
|
154
|
+
The rate at which requests are generated (requests/s).
|
|
155
|
+
burstiness (optional):
|
|
156
|
+
The burstiness factor of the request generation.
|
|
157
|
+
Only takes effect when request_rate is not inf.
|
|
158
|
+
Default value is 1, which follows a Poisson process.
|
|
159
|
+
Otherwise, the request intervals follow a gamma distribution.
|
|
160
|
+
A lower burstiness value (0 < burstiness < 1) results
|
|
161
|
+
in more bursty requests, while a higher burstiness value
|
|
162
|
+
(burstiness > 1) results in a more uniform arrival of requests.
|
|
163
|
+
ramp_up_strategy (optional):
|
|
164
|
+
The ramp-up strategy. Can be "linear" or "exponential".
|
|
165
|
+
If None, uses constant request rate (specified by request_rate).
|
|
166
|
+
ramp_up_start_rps (optional):
|
|
167
|
+
The starting request rate for ramp-up.
|
|
168
|
+
ramp_up_end_rps (optional):
|
|
169
|
+
The ending request rate for ramp-up.
|
|
170
|
+
"""
|
|
171
|
+
assert burstiness > 0, (
|
|
172
|
+
f"A positive burstiness factor is expected, but given {burstiness}."
|
|
173
|
+
)
|
|
174
|
+
# Convert to list to get length for ramp-up calculations
|
|
175
|
+
if isinstance(input_requests, Iterable) and not isinstance(input_requests, list):
|
|
176
|
+
input_requests = list(input_requests)
|
|
177
|
+
|
|
178
|
+
total_requests = len(input_requests)
|
|
179
|
+
assert total_requests > 0, "No requests provided."
|
|
180
|
+
|
|
181
|
+
# Precompute delays among requests to minimize request send laggings
|
|
182
|
+
request_rates = []
|
|
183
|
+
delay_ts = []
|
|
184
|
+
for request_index, request in enumerate(input_requests):
|
|
185
|
+
current_request_rate = _get_current_request_rate(
|
|
186
|
+
ramp_up_strategy,
|
|
187
|
+
ramp_up_start_rps,
|
|
188
|
+
ramp_up_end_rps,
|
|
189
|
+
request_index,
|
|
190
|
+
total_requests,
|
|
191
|
+
request_rate,
|
|
192
|
+
)
|
|
193
|
+
assert current_request_rate > 0.0, (
|
|
194
|
+
f"Obtained non-positive request rate {current_request_rate}."
|
|
195
|
+
)
|
|
196
|
+
request_rates.append(current_request_rate)
|
|
197
|
+
if current_request_rate == float("inf"):
|
|
198
|
+
delay_ts.append(0)
|
|
199
|
+
elif burstiness == float("inf"):
|
|
200
|
+
# when burstiness tends to infinity, the delay time becomes constant
|
|
201
|
+
# and tends to the inverse of the request rate
|
|
202
|
+
delay_ts.append(1.0 / current_request_rate)
|
|
203
|
+
else:
|
|
204
|
+
theta = 1.0 / (current_request_rate * burstiness)
|
|
205
|
+
|
|
206
|
+
# Sample the request interval from the gamma distribution.
|
|
207
|
+
# If burstiness is 1, it follows exponential distribution.
|
|
208
|
+
delay_ts.append(np.random.gamma(shape=burstiness, scale=theta))
|
|
209
|
+
|
|
210
|
+
# Calculate the cumulative delay time from the first sent out requests.
|
|
211
|
+
for i in range(1, len(delay_ts)):
|
|
212
|
+
delay_ts[i] += delay_ts[i - 1]
|
|
213
|
+
if ramp_up_strategy is None and delay_ts[-1] != 0:
|
|
214
|
+
# When ramp_up_strategy is not set, we assume the request rate is fixed
|
|
215
|
+
# and all requests should be sent in target_total_delay_s, the following
|
|
216
|
+
# logic would re-scale delay time to ensure the final delay_ts
|
|
217
|
+
# align with target_total_delay_s.
|
|
218
|
+
#
|
|
219
|
+
# NOTE: If we simply accumulate the random delta values
|
|
220
|
+
# from the gamma distribution, their sum would have 1-2% gap
|
|
221
|
+
# from target_total_delay_s. The purpose of the following logic is to
|
|
222
|
+
# close the gap for stabilizing the throughput data
|
|
223
|
+
# from different random seeds.
|
|
224
|
+
target_total_delay_s = total_requests / request_rate
|
|
225
|
+
normalize_factor = target_total_delay_s / delay_ts[-1]
|
|
226
|
+
delay_ts = [delay * normalize_factor for delay in delay_ts]
|
|
227
|
+
|
|
228
|
+
start_ts = time.time()
|
|
229
|
+
for request_index, request in enumerate(input_requests):
|
|
230
|
+
if delay_ts[request_index] > 0:
|
|
231
|
+
current_ts = time.time()
|
|
232
|
+
sleep_interval_s = start_ts + delay_ts[request_index] - current_ts
|
|
233
|
+
if sleep_interval_s > 0:
|
|
234
|
+
await asyncio.sleep(sleep_interval_s)
|
|
235
|
+
yield request, request_rates[request_index]
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
def calculate_metrics_for_embeddings(
|
|
239
|
+
outputs: list[RequestFuncOutput], dur_s: float, selected_percentiles: list[float]
|
|
240
|
+
) -> EmbedBenchmarkMetrics:
|
|
241
|
+
"""Calculate the metrics for the embedding requests.
|
|
242
|
+
|
|
243
|
+
Args:
|
|
244
|
+
outputs: The outputs of the requests.
|
|
245
|
+
dur_s: The duration of the benchmark.
|
|
246
|
+
selected_percentiles: The percentiles to select.
|
|
247
|
+
|
|
248
|
+
Returns:
|
|
249
|
+
The calculated benchmark metrics.
|
|
250
|
+
"""
|
|
251
|
+
total_input = 0
|
|
252
|
+
completed = 0
|
|
253
|
+
failed = 0
|
|
254
|
+
e2els: list[float] = []
|
|
255
|
+
for i in range(len(outputs)):
|
|
256
|
+
if outputs[i].success:
|
|
257
|
+
e2els.append(outputs[i].latency)
|
|
258
|
+
completed += 1
|
|
259
|
+
total_input += outputs[i].prompt_len
|
|
260
|
+
else:
|
|
261
|
+
failed += 1
|
|
262
|
+
|
|
263
|
+
if completed == 0:
|
|
264
|
+
warnings.warn(
|
|
265
|
+
"All requests failed. This is likely due to a misconfiguration "
|
|
266
|
+
"on the benchmark arguments.",
|
|
267
|
+
stacklevel=2,
|
|
268
|
+
)
|
|
269
|
+
metrics = EmbedBenchmarkMetrics(
|
|
270
|
+
completed=completed,
|
|
271
|
+
failed=failed,
|
|
272
|
+
total_input=total_input,
|
|
273
|
+
request_throughput=completed / dur_s,
|
|
274
|
+
total_token_throughput=total_input / dur_s,
|
|
275
|
+
mean_e2el_ms=np.mean(e2els or 0) * 1000,
|
|
276
|
+
std_e2el_ms=np.std(e2els or 0) * 1000,
|
|
277
|
+
median_e2el_ms=np.median(e2els or 0) * 1000,
|
|
278
|
+
percentiles_e2el_ms=[
|
|
279
|
+
(p, np.percentile(e2els or 0, p) * 1000) for p in selected_percentiles
|
|
280
|
+
],
|
|
281
|
+
)
|
|
282
|
+
return metrics
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
def calculate_metrics(
|
|
286
|
+
input_requests: list[SampleRequest],
|
|
287
|
+
outputs: list[RequestFuncOutput],
|
|
288
|
+
dur_s: float,
|
|
289
|
+
tokenizer: PreTrainedTokenizerBase,
|
|
290
|
+
selected_percentiles: list[float],
|
|
291
|
+
goodput_config_dict: dict[str, float],
|
|
292
|
+
) -> tuple[BenchmarkMetrics, list[int]]:
|
|
293
|
+
"""Calculate the metrics for the benchmark.
|
|
294
|
+
|
|
295
|
+
Args:
|
|
296
|
+
input_requests: The input requests.
|
|
297
|
+
outputs: The outputs of the requests.
|
|
298
|
+
dur_s: The duration of the benchmark.
|
|
299
|
+
tokenizer: The tokenizer to use.
|
|
300
|
+
selected_percentiles: The percentiles to select.
|
|
301
|
+
goodput_config_dict: The goodput configuration.
|
|
302
|
+
|
|
303
|
+
Returns:
|
|
304
|
+
A tuple of the benchmark metrics and the actual output lengths.
|
|
305
|
+
"""
|
|
306
|
+
actual_output_lens: list[int] = []
|
|
307
|
+
total_input = 0
|
|
308
|
+
completed = 0
|
|
309
|
+
good_completed = 0
|
|
310
|
+
itls: list[float] = []
|
|
311
|
+
tpots: list[float] = []
|
|
312
|
+
all_tpots: list[float] = []
|
|
313
|
+
ttfts: list[float] = []
|
|
314
|
+
e2els: list[float] = []
|
|
315
|
+
for i in range(len(outputs)):
|
|
316
|
+
if outputs[i].success:
|
|
317
|
+
output_len = outputs[i].output_tokens
|
|
318
|
+
|
|
319
|
+
if not output_len:
|
|
320
|
+
# We use the tokenizer to count the number of output tokens
|
|
321
|
+
# for some serving backends instead of looking at
|
|
322
|
+
# len(outputs[i].itl) since multiple output tokens may be
|
|
323
|
+
# bundled together
|
|
324
|
+
# Note : this may inflate the output token count slightly
|
|
325
|
+
output_len = len(
|
|
326
|
+
tokenizer(
|
|
327
|
+
outputs[i].generated_text, add_special_tokens=False
|
|
328
|
+
).input_ids
|
|
329
|
+
)
|
|
330
|
+
actual_output_lens.append(output_len)
|
|
331
|
+
total_input += input_requests[i].prompt_len
|
|
332
|
+
tpot = 0
|
|
333
|
+
if output_len > 1:
|
|
334
|
+
latency_minus_ttft = outputs[i].latency - outputs[i].ttft
|
|
335
|
+
tpot = latency_minus_ttft / (output_len - 1)
|
|
336
|
+
tpots.append(tpot)
|
|
337
|
+
# Note: if output_len <= 1, we regard tpot as 0 for goodput
|
|
338
|
+
all_tpots.append(tpot)
|
|
339
|
+
itls += outputs[i].itl
|
|
340
|
+
ttfts.append(outputs[i].ttft)
|
|
341
|
+
e2els.append(outputs[i].latency)
|
|
342
|
+
completed += 1
|
|
343
|
+
else:
|
|
344
|
+
actual_output_lens.append(0)
|
|
345
|
+
|
|
346
|
+
if goodput_config_dict:
|
|
347
|
+
valid_metrics = []
|
|
348
|
+
slo_values = []
|
|
349
|
+
|
|
350
|
+
if "ttft" in goodput_config_dict:
|
|
351
|
+
valid_metrics.append(ttfts)
|
|
352
|
+
slo_values.append(
|
|
353
|
+
goodput_config_dict["ttft"] / MILLISECONDS_TO_SECONDS_CONVERSION
|
|
354
|
+
)
|
|
355
|
+
if "tpot" in goodput_config_dict:
|
|
356
|
+
valid_metrics.append(all_tpots)
|
|
357
|
+
slo_values.append(
|
|
358
|
+
goodput_config_dict["tpot"] / MILLISECONDS_TO_SECONDS_CONVERSION
|
|
359
|
+
)
|
|
360
|
+
if "e2el" in goodput_config_dict:
|
|
361
|
+
valid_metrics.append(e2els)
|
|
362
|
+
slo_values.append(
|
|
363
|
+
goodput_config_dict["e2el"] / MILLISECONDS_TO_SECONDS_CONVERSION
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
for req_metric in zip(*valid_metrics):
|
|
367
|
+
is_good_req = all([s >= r for s, r in zip(slo_values, req_metric)])
|
|
368
|
+
if is_good_req:
|
|
369
|
+
good_completed += 1
|
|
370
|
+
|
|
371
|
+
if completed == 0:
|
|
372
|
+
warnings.warn(
|
|
373
|
+
"All requests failed. This is likely due to a misconfiguration "
|
|
374
|
+
"on the benchmark arguments.",
|
|
375
|
+
stacklevel=2,
|
|
376
|
+
)
|
|
377
|
+
|
|
378
|
+
# Calculate max output tokens per second metric
|
|
379
|
+
max_output_tokens_per_s = 0.0
|
|
380
|
+
max_concurrent_requests = 0
|
|
381
|
+
|
|
382
|
+
# Find the time range across all successful requests
|
|
383
|
+
successful_outputs = [output for output in outputs if output.success]
|
|
384
|
+
failed_outputs = [output for output in outputs if not output.success]
|
|
385
|
+
if successful_outputs:
|
|
386
|
+
min_start_time = min(output.start_time for output in successful_outputs)
|
|
387
|
+
max_end_time = max(
|
|
388
|
+
output.start_time + output.latency for output in successful_outputs
|
|
389
|
+
)
|
|
390
|
+
|
|
391
|
+
# Create second buckets (ceiling to ensure we capture all time)
|
|
392
|
+
duration_seconds = int(np.ceil(max_end_time - min_start_time)) + 1
|
|
393
|
+
tokens_per_second = np.zeros(duration_seconds)
|
|
394
|
+
concurrent_requests_per_second = np.zeros(duration_seconds)
|
|
395
|
+
|
|
396
|
+
for i, output in enumerate(successful_outputs):
|
|
397
|
+
# Calculate token generation timestamp using
|
|
398
|
+
# start_time, ttft, and itl
|
|
399
|
+
token_times = [output.start_time + output.ttft]
|
|
400
|
+
current_time = token_times[0]
|
|
401
|
+
for itl_value in output.itl:
|
|
402
|
+
current_time += itl_value
|
|
403
|
+
token_times.append(current_time)
|
|
404
|
+
|
|
405
|
+
# Add tokens to second buckets
|
|
406
|
+
for token_time in token_times:
|
|
407
|
+
second_bucket = int(token_time - min_start_time)
|
|
408
|
+
if 0 <= second_bucket < duration_seconds:
|
|
409
|
+
tokens_per_second[second_bucket] += 1
|
|
410
|
+
|
|
411
|
+
# Track concurrent requests for each second this request was active
|
|
412
|
+
request_start_second = int(output.start_time - min_start_time)
|
|
413
|
+
request_end_second = int(
|
|
414
|
+
(output.start_time + output.latency) - min_start_time
|
|
415
|
+
)
|
|
416
|
+
|
|
417
|
+
for second in range(request_start_second, request_end_second + 1):
|
|
418
|
+
concurrent_requests_per_second[second] += 1
|
|
419
|
+
|
|
420
|
+
# Find the maximum tokens per second and corresponding
|
|
421
|
+
# concurrent requests
|
|
422
|
+
if len(tokens_per_second) > 0:
|
|
423
|
+
max_output_tokens_per_s = float(np.max(tokens_per_second))
|
|
424
|
+
max_concurrent_requests = int(np.max(concurrent_requests_per_second))
|
|
425
|
+
|
|
426
|
+
if TERM_PLOTLIB_AVAILABLE:
|
|
427
|
+
import termplotlib as tpl
|
|
428
|
+
|
|
429
|
+
fig = tpl.figure()
|
|
430
|
+
fig.plot(
|
|
431
|
+
np.arange(len(tokens_per_second)),
|
|
432
|
+
tokens_per_second,
|
|
433
|
+
title="Output tokens per second",
|
|
434
|
+
)
|
|
435
|
+
fig.plot(
|
|
436
|
+
np.arange(len(concurrent_requests_per_second)),
|
|
437
|
+
concurrent_requests_per_second,
|
|
438
|
+
title="Concurrent requests per second",
|
|
439
|
+
)
|
|
440
|
+
fig.show()
|
|
441
|
+
else:
|
|
442
|
+
print("tip: install termplotlib and gnuplot to plot the metrics")
|
|
443
|
+
|
|
444
|
+
metrics = BenchmarkMetrics(
|
|
445
|
+
completed=completed,
|
|
446
|
+
failed=len(failed_outputs),
|
|
447
|
+
total_input=total_input,
|
|
448
|
+
total_output=sum(actual_output_lens),
|
|
449
|
+
request_throughput=completed / dur_s,
|
|
450
|
+
request_goodput=good_completed / dur_s,
|
|
451
|
+
output_throughput=sum(actual_output_lens) / dur_s,
|
|
452
|
+
total_token_throughput=(total_input + sum(actual_output_lens)) / dur_s,
|
|
453
|
+
mean_ttft_ms=np.mean(ttfts or 0)
|
|
454
|
+
* 1000, # ttfts is empty if streaming is not supported by the endpoint
|
|
455
|
+
std_ttft_ms=np.std(ttfts or 0) * 1000,
|
|
456
|
+
median_ttft_ms=np.median(ttfts or 0) * 1000,
|
|
457
|
+
percentiles_ttft_ms=[
|
|
458
|
+
(p, np.percentile(ttfts or 0, p) * 1000) for p in selected_percentiles
|
|
459
|
+
],
|
|
460
|
+
mean_tpot_ms=np.mean(tpots or 0) * 1000,
|
|
461
|
+
std_tpot_ms=np.std(tpots or 0) * 1000,
|
|
462
|
+
median_tpot_ms=np.median(tpots or 0) * 1000,
|
|
463
|
+
percentiles_tpot_ms=[
|
|
464
|
+
(p, np.percentile(tpots or 0, p) * 1000) for p in selected_percentiles
|
|
465
|
+
],
|
|
466
|
+
mean_itl_ms=np.mean(itls or 0) * 1000,
|
|
467
|
+
std_itl_ms=np.std(itls or 0) * 1000,
|
|
468
|
+
median_itl_ms=np.median(itls or 0) * 1000,
|
|
469
|
+
percentiles_itl_ms=[
|
|
470
|
+
(p, np.percentile(itls or 0, p) * 1000) for p in selected_percentiles
|
|
471
|
+
],
|
|
472
|
+
mean_e2el_ms=np.mean(e2els or 0) * 1000,
|
|
473
|
+
std_e2el_ms=np.std(e2els or 0) * 1000,
|
|
474
|
+
median_e2el_ms=np.median(e2els or 0) * 1000,
|
|
475
|
+
percentiles_e2el_ms=[
|
|
476
|
+
(p, np.percentile(e2els or 0, p) * 1000) for p in selected_percentiles
|
|
477
|
+
],
|
|
478
|
+
max_output_tokens_per_s=max_output_tokens_per_s,
|
|
479
|
+
max_concurrent_requests=max_concurrent_requests,
|
|
480
|
+
)
|
|
481
|
+
|
|
482
|
+
return metrics, actual_output_lens
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
async def benchmark(
|
|
486
|
+
task_type: TaskType,
|
|
487
|
+
endpoint_type: str,
|
|
488
|
+
api_url: str,
|
|
489
|
+
base_url: str,
|
|
490
|
+
model_id: str,
|
|
491
|
+
model_name: str,
|
|
492
|
+
tokenizer: PreTrainedTokenizerBase,
|
|
493
|
+
input_requests: list[SampleRequest],
|
|
494
|
+
logprobs: int | None,
|
|
495
|
+
request_rate: float,
|
|
496
|
+
burstiness: float,
|
|
497
|
+
disable_tqdm: bool,
|
|
498
|
+
num_warmups: int,
|
|
499
|
+
profile: bool,
|
|
500
|
+
selected_percentile_metrics: list[str],
|
|
501
|
+
selected_percentiles: list[float],
|
|
502
|
+
ignore_eos: bool,
|
|
503
|
+
goodput_config_dict: dict[str, float],
|
|
504
|
+
max_concurrency: int | None,
|
|
505
|
+
lora_modules: Iterable[str] | None,
|
|
506
|
+
extra_headers: dict | None,
|
|
507
|
+
extra_body: dict | None,
|
|
508
|
+
ramp_up_strategy: Literal["linear", "exponential"] | None = None,
|
|
509
|
+
ramp_up_start_rps: int | None = None,
|
|
510
|
+
ramp_up_end_rps: int | None = None,
|
|
511
|
+
ready_check_timeout_sec: int = 600,
|
|
512
|
+
):
|
|
513
|
+
try:
|
|
514
|
+
request_func = ASYNC_REQUEST_FUNCS[endpoint_type]
|
|
515
|
+
except KeyError:
|
|
516
|
+
raise ValueError(f"Unknown backend: {endpoint_type}") from None
|
|
517
|
+
|
|
518
|
+
# Reuses connections across requests to reduce TLS handshake overhead.
|
|
519
|
+
connector = aiohttp.TCPConnector(
|
|
520
|
+
limit=max_concurrency or 0,
|
|
521
|
+
limit_per_host=max_concurrency or 0,
|
|
522
|
+
ttl_dns_cache=300,
|
|
523
|
+
use_dns_cache=True,
|
|
524
|
+
keepalive_timeout=60,
|
|
525
|
+
enable_cleanup_closed=True,
|
|
526
|
+
force_close=False,
|
|
527
|
+
ssl=("https://" in api_url),
|
|
528
|
+
)
|
|
529
|
+
|
|
530
|
+
session = aiohttp.ClientSession(
|
|
531
|
+
connector=connector,
|
|
532
|
+
trust_env=True,
|
|
533
|
+
timeout=aiohttp.ClientTimeout(total=6 * 60 * 60),
|
|
534
|
+
)
|
|
535
|
+
|
|
536
|
+
print("Starting initial single prompt test run...")
|
|
537
|
+
test_prompt, test_prompt_len, test_output_len, test_mm_content = (
|
|
538
|
+
input_requests[0].prompt,
|
|
539
|
+
input_requests[0].prompt_len,
|
|
540
|
+
input_requests[0].expected_output_len,
|
|
541
|
+
input_requests[0].multi_modal_data,
|
|
542
|
+
)
|
|
543
|
+
|
|
544
|
+
assert (
|
|
545
|
+
test_mm_content is None
|
|
546
|
+
or isinstance(test_mm_content, dict)
|
|
547
|
+
or (
|
|
548
|
+
isinstance(test_mm_content, list)
|
|
549
|
+
and all(isinstance(item, dict) for item in test_mm_content)
|
|
550
|
+
)
|
|
551
|
+
), "multi_modal_data must be a dict or list[dict]"
|
|
552
|
+
test_input = RequestFuncInput(
|
|
553
|
+
model=model_id,
|
|
554
|
+
model_name=model_name,
|
|
555
|
+
prompt=test_prompt,
|
|
556
|
+
api_url=api_url,
|
|
557
|
+
prompt_len=test_prompt_len,
|
|
558
|
+
output_len=test_output_len,
|
|
559
|
+
logprobs=logprobs,
|
|
560
|
+
multi_modal_content=test_mm_content,
|
|
561
|
+
ignore_eos=ignore_eos,
|
|
562
|
+
extra_headers=extra_headers,
|
|
563
|
+
extra_body=extra_body,
|
|
564
|
+
)
|
|
565
|
+
|
|
566
|
+
if ready_check_timeout_sec > 0:
|
|
567
|
+
test_output = await wait_for_endpoint(
|
|
568
|
+
request_func,
|
|
569
|
+
test_input,
|
|
570
|
+
session,
|
|
571
|
+
timeout_seconds=ready_check_timeout_sec,
|
|
572
|
+
)
|
|
573
|
+
if not test_output.success:
|
|
574
|
+
raise ValueError(
|
|
575
|
+
"Initial test run failed - Please make sure benchmark "
|
|
576
|
+
"arguments are correctly specified. "
|
|
577
|
+
f"Error: {test_output.error}"
|
|
578
|
+
)
|
|
579
|
+
else:
|
|
580
|
+
print("Initial test run completed.")
|
|
581
|
+
else:
|
|
582
|
+
print("Skipping endpoint ready check.")
|
|
583
|
+
|
|
584
|
+
if num_warmups > 0:
|
|
585
|
+
print(f"Warming up with {num_warmups} requests...")
|
|
586
|
+
warmup_pbar = None if disable_tqdm else tqdm(total=num_warmups)
|
|
587
|
+
warmup_semaphore = (
|
|
588
|
+
asyncio.Semaphore(max_concurrency)
|
|
589
|
+
if max_concurrency
|
|
590
|
+
else contextlib.nullcontext()
|
|
591
|
+
)
|
|
592
|
+
warmup_tasks = []
|
|
593
|
+
|
|
594
|
+
async def warmup_limited_request_func():
|
|
595
|
+
async with warmup_semaphore:
|
|
596
|
+
return await request_func(
|
|
597
|
+
request_func_input=test_input, session=session, pbar=warmup_pbar
|
|
598
|
+
)
|
|
599
|
+
|
|
600
|
+
for _ in range(num_warmups):
|
|
601
|
+
request_task = asyncio.create_task(warmup_limited_request_func())
|
|
602
|
+
warmup_tasks.append(request_task)
|
|
603
|
+
_ = await asyncio.gather(*warmup_tasks)
|
|
604
|
+
|
|
605
|
+
if warmup_pbar is not None:
|
|
606
|
+
warmup_pbar.close()
|
|
607
|
+
print("Warmup run completed.")
|
|
608
|
+
|
|
609
|
+
print("Starting main benchmark run...")
|
|
610
|
+
|
|
611
|
+
if lora_modules:
|
|
612
|
+
# For each input request, choose a LoRA module at random.
|
|
613
|
+
lora_modules = iter(
|
|
614
|
+
[random.choice(lora_modules) for _ in range(len(input_requests))]
|
|
615
|
+
)
|
|
616
|
+
|
|
617
|
+
if profile:
|
|
618
|
+
print("Starting profiler...")
|
|
619
|
+
profile_input = RequestFuncInput(
|
|
620
|
+
model=model_id,
|
|
621
|
+
model_name=model_name,
|
|
622
|
+
prompt=test_prompt,
|
|
623
|
+
api_url=base_url + "/start_profile",
|
|
624
|
+
prompt_len=test_prompt_len,
|
|
625
|
+
output_len=test_output_len,
|
|
626
|
+
logprobs=logprobs,
|
|
627
|
+
multi_modal_content=test_mm_content,
|
|
628
|
+
ignore_eos=ignore_eos,
|
|
629
|
+
extra_headers=extra_headers,
|
|
630
|
+
extra_body=extra_body,
|
|
631
|
+
)
|
|
632
|
+
profile_output = await request_func(
|
|
633
|
+
request_func_input=profile_input, session=session
|
|
634
|
+
)
|
|
635
|
+
if profile_output.success:
|
|
636
|
+
print("Profiler started")
|
|
637
|
+
|
|
638
|
+
distribution = "Poisson process" if burstiness == 1.0 else "Gamma distribution"
|
|
639
|
+
|
|
640
|
+
if ramp_up_strategy is not None:
|
|
641
|
+
print(f"Traffic ramp-up strategy: {ramp_up_strategy}.")
|
|
642
|
+
print(
|
|
643
|
+
f"Will increase RPS from {ramp_up_start_rps} to "
|
|
644
|
+
f"{ramp_up_end_rps} RPS over the duration of the benchmark."
|
|
645
|
+
)
|
|
646
|
+
else:
|
|
647
|
+
print(f"Traffic request rate: {request_rate}")
|
|
648
|
+
|
|
649
|
+
print(f"Burstiness factor: {burstiness} ({distribution})")
|
|
650
|
+
print(f"Maximum request concurrency: {max_concurrency}")
|
|
651
|
+
|
|
652
|
+
pbar = None if disable_tqdm else tqdm(total=len(input_requests))
|
|
653
|
+
|
|
654
|
+
semaphore = (
|
|
655
|
+
asyncio.Semaphore(max_concurrency)
|
|
656
|
+
if max_concurrency
|
|
657
|
+
else contextlib.nullcontext()
|
|
658
|
+
)
|
|
659
|
+
|
|
660
|
+
async def limited_request_func(request_func_input, session, pbar):
|
|
661
|
+
async with semaphore:
|
|
662
|
+
return await request_func(
|
|
663
|
+
request_func_input=request_func_input, session=session, pbar=pbar
|
|
664
|
+
)
|
|
665
|
+
|
|
666
|
+
benchmark_start_time = time.perf_counter()
|
|
667
|
+
tasks: list[asyncio.Task] = []
|
|
668
|
+
|
|
669
|
+
rps_change_events = []
|
|
670
|
+
last_int_rps = -1
|
|
671
|
+
if ramp_up_strategy is not None and ramp_up_start_rps is not None:
|
|
672
|
+
last_int_rps = ramp_up_start_rps
|
|
673
|
+
rps_change_events.append(
|
|
674
|
+
{
|
|
675
|
+
"rps": last_int_rps,
|
|
676
|
+
"timestamp": datetime.now().isoformat(),
|
|
677
|
+
}
|
|
678
|
+
)
|
|
679
|
+
|
|
680
|
+
async for request, current_request_rate in get_request(
|
|
681
|
+
input_requests,
|
|
682
|
+
request_rate,
|
|
683
|
+
burstiness,
|
|
684
|
+
ramp_up_strategy,
|
|
685
|
+
ramp_up_start_rps,
|
|
686
|
+
ramp_up_end_rps,
|
|
687
|
+
):
|
|
688
|
+
if ramp_up_strategy is not None:
|
|
689
|
+
current_int_rps = int(current_request_rate)
|
|
690
|
+
if current_int_rps > last_int_rps:
|
|
691
|
+
timestamp = datetime.now().isoformat()
|
|
692
|
+
for rps_val in range(last_int_rps + 1, current_int_rps + 1):
|
|
693
|
+
rps_change_events.append({"rps": rps_val, "timestamp": timestamp})
|
|
694
|
+
last_int_rps = current_int_rps
|
|
695
|
+
prompt, prompt_len, output_len, mm_content, request_id = (
|
|
696
|
+
request.prompt,
|
|
697
|
+
request.prompt_len,
|
|
698
|
+
request.expected_output_len,
|
|
699
|
+
request.multi_modal_data,
|
|
700
|
+
request.request_id,
|
|
701
|
+
)
|
|
702
|
+
req_model_id, req_model_name = model_id, model_name
|
|
703
|
+
if lora_modules:
|
|
704
|
+
req_lora_module = next(lora_modules)
|
|
705
|
+
req_model_id, req_model_name = req_lora_module, req_lora_module
|
|
706
|
+
|
|
707
|
+
request_func_input = RequestFuncInput(
|
|
708
|
+
model=req_model_id,
|
|
709
|
+
model_name=req_model_name,
|
|
710
|
+
prompt=prompt,
|
|
711
|
+
api_url=api_url,
|
|
712
|
+
prompt_len=prompt_len,
|
|
713
|
+
output_len=output_len,
|
|
714
|
+
logprobs=logprobs,
|
|
715
|
+
multi_modal_content=mm_content,
|
|
716
|
+
ignore_eos=ignore_eos,
|
|
717
|
+
extra_headers=extra_headers,
|
|
718
|
+
extra_body=extra_body,
|
|
719
|
+
request_id=request_id,
|
|
720
|
+
)
|
|
721
|
+
tasks.append(
|
|
722
|
+
asyncio.create_task(
|
|
723
|
+
limited_request_func(
|
|
724
|
+
request_func_input=request_func_input, session=session, pbar=pbar
|
|
725
|
+
)
|
|
726
|
+
)
|
|
727
|
+
)
|
|
728
|
+
outputs: list[RequestFuncOutput] = await asyncio.gather(*tasks)
|
|
729
|
+
|
|
730
|
+
if pbar is not None:
|
|
731
|
+
pbar.close()
|
|
732
|
+
|
|
733
|
+
benchmark_duration = time.perf_counter() - benchmark_start_time
|
|
734
|
+
|
|
735
|
+
if task_type == TaskType.GENERATION:
|
|
736
|
+
metrics, actual_output_lens = calculate_metrics(
|
|
737
|
+
input_requests=input_requests,
|
|
738
|
+
outputs=outputs,
|
|
739
|
+
dur_s=benchmark_duration,
|
|
740
|
+
tokenizer=tokenizer,
|
|
741
|
+
selected_percentiles=selected_percentiles,
|
|
742
|
+
goodput_config_dict=goodput_config_dict,
|
|
743
|
+
)
|
|
744
|
+
else:
|
|
745
|
+
metrics = calculate_metrics_for_embeddings(
|
|
746
|
+
outputs=outputs,
|
|
747
|
+
dur_s=benchmark_duration,
|
|
748
|
+
selected_percentiles=selected_percentiles,
|
|
749
|
+
)
|
|
750
|
+
actual_output_lens = 0
|
|
751
|
+
|
|
752
|
+
print("{s:{c}^{n}}".format(s=" Serving Benchmark Result ", n=50, c="="))
|
|
753
|
+
print("{:<40} {:<10}".format("Successful requests:", metrics.completed))
|
|
754
|
+
print("{:<40} {:<10}".format("Failed requests:", metrics.failed))
|
|
755
|
+
if max_concurrency is not None:
|
|
756
|
+
print("{:<40} {:<10}".format("Maximum request concurrency:", max_concurrency))
|
|
757
|
+
if request_rate != float("inf"):
|
|
758
|
+
print("{:<40} {:<10.2f}".format("Request rate configured (RPS):", request_rate))
|
|
759
|
+
print("{:<40} {:<10.2f}".format("Benchmark duration (s):", benchmark_duration))
|
|
760
|
+
print("{:<40} {:<10}".format("Total input tokens:", metrics.total_input))
|
|
761
|
+
if isinstance(metrics, BenchmarkMetrics):
|
|
762
|
+
print("{:<40} {:<10}".format("Total generated tokens:", metrics.total_output))
|
|
763
|
+
print(
|
|
764
|
+
"{:<40} {:<10.2f}".format(
|
|
765
|
+
"Request throughput (req/s):", metrics.request_throughput
|
|
766
|
+
)
|
|
767
|
+
)
|
|
768
|
+
if goodput_config_dict:
|
|
769
|
+
print(
|
|
770
|
+
"{:<40} {:<10.2f}".format(
|
|
771
|
+
"Request goodput (req/s):", metrics.request_goodput
|
|
772
|
+
)
|
|
773
|
+
)
|
|
774
|
+
if isinstance(metrics, BenchmarkMetrics):
|
|
775
|
+
print(
|
|
776
|
+
"{:<40} {:<10.2f}".format(
|
|
777
|
+
"Output token throughput (tok/s):", metrics.output_throughput
|
|
778
|
+
)
|
|
779
|
+
)
|
|
780
|
+
print(
|
|
781
|
+
"{:<40} {:<10.2f}".format(
|
|
782
|
+
"Peak output token throughput (tok/s):", metrics.max_output_tokens_per_s
|
|
783
|
+
)
|
|
784
|
+
)
|
|
785
|
+
print(
|
|
786
|
+
"{:<40} {:<10.2f}".format(
|
|
787
|
+
"Peak concurrent requests:", metrics.max_concurrent_requests
|
|
788
|
+
)
|
|
789
|
+
)
|
|
790
|
+
print(
|
|
791
|
+
"{:<40} {:<10.2f}".format(
|
|
792
|
+
"Total Token throughput (tok/s):", metrics.total_token_throughput
|
|
793
|
+
)
|
|
794
|
+
)
|
|
795
|
+
|
|
796
|
+
if isinstance(metrics, BenchmarkMetrics):
|
|
797
|
+
result = {
|
|
798
|
+
"duration": benchmark_duration,
|
|
799
|
+
"completed": metrics.completed,
|
|
800
|
+
"failed": metrics.failed,
|
|
801
|
+
"total_input_tokens": metrics.total_input,
|
|
802
|
+
"total_output_tokens": metrics.total_output,
|
|
803
|
+
"request_throughput": metrics.request_throughput,
|
|
804
|
+
"request_goodput": metrics.request_goodput if goodput_config_dict else None,
|
|
805
|
+
"output_throughput": metrics.output_throughput,
|
|
806
|
+
"total_token_throughput": metrics.total_token_throughput,
|
|
807
|
+
"input_lens": [output.prompt_len for output in outputs],
|
|
808
|
+
"output_lens": actual_output_lens,
|
|
809
|
+
"ttfts": [output.ttft for output in outputs],
|
|
810
|
+
"itls": [output.itl for output in outputs],
|
|
811
|
+
"generated_texts": [output.generated_text for output in outputs],
|
|
812
|
+
"errors": [output.error for output in outputs],
|
|
813
|
+
"max_output_tokens_per_s": metrics.max_output_tokens_per_s,
|
|
814
|
+
"max_concurrent_requests": metrics.max_concurrent_requests,
|
|
815
|
+
}
|
|
816
|
+
else:
|
|
817
|
+
result = {
|
|
818
|
+
"duration": benchmark_duration,
|
|
819
|
+
"completed": metrics.completed,
|
|
820
|
+
"total_input_tokens": metrics.total_input,
|
|
821
|
+
"request_throughput": metrics.request_throughput,
|
|
822
|
+
"total_token_throughput": metrics.total_token_throughput,
|
|
823
|
+
"input_lens": [output.prompt_len for output in outputs],
|
|
824
|
+
"errors": [output.error for output in outputs],
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
if rps_change_events:
|
|
828
|
+
result["rps_change_events"] = rps_change_events
|
|
829
|
+
|
|
830
|
+
def process_one_metric(
|
|
831
|
+
# E.g., "ttft"
|
|
832
|
+
metric_attribute_name: str,
|
|
833
|
+
# E.g., "TTFT"
|
|
834
|
+
metric_name: str,
|
|
835
|
+
# E.g., "Time to First Token"
|
|
836
|
+
metric_header: str,
|
|
837
|
+
):
|
|
838
|
+
# This function prints and adds statistics of the specified
|
|
839
|
+
# metric.
|
|
840
|
+
if metric_attribute_name not in selected_percentile_metrics:
|
|
841
|
+
return
|
|
842
|
+
print("{s:{c}^{n}}".format(s=metric_header, n=50, c="-"))
|
|
843
|
+
print(
|
|
844
|
+
"{:<40} {:<10.2f}".format(
|
|
845
|
+
f"Mean {metric_name} (ms):",
|
|
846
|
+
getattr(metrics, f"mean_{metric_attribute_name}_ms"),
|
|
847
|
+
)
|
|
848
|
+
)
|
|
849
|
+
print(
|
|
850
|
+
"{:<40} {:<10.2f}".format(
|
|
851
|
+
f"Median {metric_name} (ms):",
|
|
852
|
+
getattr(metrics, f"median_{metric_attribute_name}_ms"),
|
|
853
|
+
)
|
|
854
|
+
)
|
|
855
|
+
result[f"mean_{metric_attribute_name}_ms"] = getattr(
|
|
856
|
+
metrics, f"mean_{metric_attribute_name}_ms"
|
|
857
|
+
)
|
|
858
|
+
result[f"median_{metric_attribute_name}_ms"] = getattr(
|
|
859
|
+
metrics, f"median_{metric_attribute_name}_ms"
|
|
860
|
+
)
|
|
861
|
+
result[f"std_{metric_attribute_name}_ms"] = getattr(
|
|
862
|
+
metrics, f"std_{metric_attribute_name}_ms"
|
|
863
|
+
)
|
|
864
|
+
for p, value in getattr(metrics, f"percentiles_{metric_attribute_name}_ms"):
|
|
865
|
+
p_word = str(int(p)) if int(p) == p else str(p)
|
|
866
|
+
print("{:<40} {:<10.2f}".format(f"P{p_word} {metric_name} (ms):", value))
|
|
867
|
+
result[f"p{p_word}_{metric_attribute_name}_ms"] = value
|
|
868
|
+
|
|
869
|
+
if task_type == TaskType.GENERATION:
|
|
870
|
+
process_one_metric("ttft", "TTFT", "Time to First Token")
|
|
871
|
+
process_one_metric("tpot", "TPOT", "Time per Output Token (excl. 1st token)")
|
|
872
|
+
process_one_metric("itl", "ITL", "Inter-token Latency")
|
|
873
|
+
process_one_metric("e2el", "E2EL", "End-to-end Latency")
|
|
874
|
+
|
|
875
|
+
print("=" * 50)
|
|
876
|
+
|
|
877
|
+
if profile:
|
|
878
|
+
print("Stopping profiler...")
|
|
879
|
+
profile_input = RequestFuncInput(
|
|
880
|
+
model=model_id,
|
|
881
|
+
prompt=test_prompt,
|
|
882
|
+
api_url=base_url + "/stop_profile",
|
|
883
|
+
prompt_len=test_prompt_len,
|
|
884
|
+
output_len=test_output_len,
|
|
885
|
+
logprobs=logprobs,
|
|
886
|
+
)
|
|
887
|
+
profile_output = await request_func(
|
|
888
|
+
request_func_input=profile_input, session=session
|
|
889
|
+
)
|
|
890
|
+
if profile_output.success:
|
|
891
|
+
print("Profiler stopped")
|
|
892
|
+
|
|
893
|
+
await session.close()
|
|
894
|
+
return result
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
def check_goodput_args(args):
|
|
898
|
+
# Check and parse goodput arguments
|
|
899
|
+
goodput_config_dict = {}
|
|
900
|
+
VALID_NAMES = ["ttft", "tpot", "e2el"]
|
|
901
|
+
if args.goodput:
|
|
902
|
+
goodput_config_dict = parse_goodput(args.goodput)
|
|
903
|
+
for slo_name, slo_val in goodput_config_dict.items():
|
|
904
|
+
if slo_name not in VALID_NAMES:
|
|
905
|
+
raise ValueError(
|
|
906
|
+
f"Invalid metric name found, {slo_name}: {slo_val}. "
|
|
907
|
+
"The service level objective name should be one of "
|
|
908
|
+
f"{str(VALID_NAMES)}. "
|
|
909
|
+
)
|
|
910
|
+
if slo_val < 0:
|
|
911
|
+
raise ValueError(
|
|
912
|
+
f"Invalid value found, {slo_name}: {slo_val}. "
|
|
913
|
+
"The service level objective value should be "
|
|
914
|
+
"non-negative."
|
|
915
|
+
)
|
|
916
|
+
return goodput_config_dict
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
def parse_goodput(slo_pairs):
|
|
920
|
+
goodput_config_dict = {}
|
|
921
|
+
try:
|
|
922
|
+
for slo_pair in slo_pairs:
|
|
923
|
+
slo_name, slo_val = slo_pair.split(":")
|
|
924
|
+
goodput_config_dict[slo_name] = float(slo_val)
|
|
925
|
+
except ValueError as err:
|
|
926
|
+
raise argparse.ArgumentTypeError(
|
|
927
|
+
"Invalid format found for service level objectives. "
|
|
928
|
+
'Specify service level objectives for goodput as "KEY:VALUE" '
|
|
929
|
+
"pairs, where the key is a metric name, and the value is a "
|
|
930
|
+
"number in milliseconds."
|
|
931
|
+
) from err
|
|
932
|
+
return goodput_config_dict
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
def save_to_pytorch_benchmark_format(
|
|
936
|
+
args: argparse.Namespace, results: dict[str, Any], file_name: str
|
|
937
|
+
) -> None:
|
|
938
|
+
metrics = [
|
|
939
|
+
"median_ttft_ms",
|
|
940
|
+
"mean_ttft_ms",
|
|
941
|
+
"std_ttft_ms",
|
|
942
|
+
"p99_ttft_ms",
|
|
943
|
+
"mean_tpot_ms",
|
|
944
|
+
"median_tpot_ms",
|
|
945
|
+
"std_tpot_ms",
|
|
946
|
+
"p99_tpot_ms",
|
|
947
|
+
"median_itl_ms",
|
|
948
|
+
"mean_itl_ms",
|
|
949
|
+
"std_itl_ms",
|
|
950
|
+
"p99_itl_ms",
|
|
951
|
+
]
|
|
952
|
+
# These raw data might be useful, but they are rather big. They can be added
|
|
953
|
+
# later if needed
|
|
954
|
+
ignored_metrics = ["ttfts", "itls", "generated_texts", "errors"]
|
|
955
|
+
pt_records = convert_to_pytorch_benchmark_format(
|
|
956
|
+
args=args,
|
|
957
|
+
metrics={k: [results[k]] for k in metrics if k in results},
|
|
958
|
+
extra_info={
|
|
959
|
+
k: results[k]
|
|
960
|
+
for k in results
|
|
961
|
+
if k not in metrics and k not in ignored_metrics
|
|
962
|
+
},
|
|
963
|
+
)
|
|
964
|
+
if pt_records:
|
|
965
|
+
# Don't use json suffix here as we don't want CI to pick it up
|
|
966
|
+
pt_file = f"{os.path.splitext(file_name)[0]}.pytorch.json"
|
|
967
|
+
write_to_json(pt_file, pt_records)
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
def add_cli_args(parser: argparse.ArgumentParser):
|
|
971
|
+
add_dataset_parser(parser)
|
|
972
|
+
parser.add_argument(
|
|
973
|
+
"--label",
|
|
974
|
+
type=str,
|
|
975
|
+
default=None,
|
|
976
|
+
help="The label (prefix) of the benchmark results. If not specified, "
|
|
977
|
+
"the value of '--backend' will be used as the label.",
|
|
978
|
+
)
|
|
979
|
+
parser.add_argument(
|
|
980
|
+
"--backend",
|
|
981
|
+
type=str,
|
|
982
|
+
default="openai",
|
|
983
|
+
choices=list(ASYNC_REQUEST_FUNCS.keys()),
|
|
984
|
+
help="The type of backend or endpoint to use for the benchmark.",
|
|
985
|
+
)
|
|
986
|
+
parser.add_argument(
|
|
987
|
+
"--base-url",
|
|
988
|
+
type=str,
|
|
989
|
+
default=None,
|
|
990
|
+
help="Server or API base url if not using http host and port.",
|
|
991
|
+
)
|
|
992
|
+
# Use 127.0.0.1 here instead of localhost to force the use of ipv4
|
|
993
|
+
parser.add_argument("--host", type=str, default="127.0.0.1")
|
|
994
|
+
parser.add_argument("--port", type=int, default=8000)
|
|
995
|
+
parser.add_argument(
|
|
996
|
+
"--endpoint",
|
|
997
|
+
type=str,
|
|
998
|
+
default="/v1/completions",
|
|
999
|
+
help="API endpoint.",
|
|
1000
|
+
)
|
|
1001
|
+
parser.add_argument(
|
|
1002
|
+
"--header",
|
|
1003
|
+
metavar="KEY=VALUE",
|
|
1004
|
+
nargs="*",
|
|
1005
|
+
help="Key-value pairs (e.g, --header x-additional-info=0.3.3) "
|
|
1006
|
+
"for headers to be passed with each request. These headers override "
|
|
1007
|
+
"per backend constants and values set via environment variable, and "
|
|
1008
|
+
"will be overriden by other arguments (such as request ids).",
|
|
1009
|
+
)
|
|
1010
|
+
parser.add_argument(
|
|
1011
|
+
"--max-concurrency",
|
|
1012
|
+
type=int,
|
|
1013
|
+
default=None,
|
|
1014
|
+
help="Maximum number of concurrent requests. This can be used "
|
|
1015
|
+
"to help simulate an environment where a higher level component "
|
|
1016
|
+
"is enforcing a maximum number of concurrent requests. While the "
|
|
1017
|
+
"--request-rate argument controls the rate at which requests are "
|
|
1018
|
+
"initiated, this argument will control how many are actually allowed "
|
|
1019
|
+
"to execute at a time. This means that when used in combination, the "
|
|
1020
|
+
"actual request rate may be lower than specified with --request-rate, "
|
|
1021
|
+
"if the server is not processing requests fast enough to keep up.",
|
|
1022
|
+
)
|
|
1023
|
+
|
|
1024
|
+
parser.add_argument(
|
|
1025
|
+
"--model",
|
|
1026
|
+
type=str,
|
|
1027
|
+
required=True,
|
|
1028
|
+
help="Name of the model.",
|
|
1029
|
+
)
|
|
1030
|
+
parser.add_argument(
|
|
1031
|
+
"--tokenizer",
|
|
1032
|
+
type=str,
|
|
1033
|
+
help="Name or path of the tokenizer, if not using the default tokenizer.", # noqa: E501
|
|
1034
|
+
)
|
|
1035
|
+
parser.add_argument("--use-beam-search", action="store_true")
|
|
1036
|
+
parser.add_argument(
|
|
1037
|
+
"--logprobs",
|
|
1038
|
+
type=int,
|
|
1039
|
+
default=None,
|
|
1040
|
+
help=(
|
|
1041
|
+
"Number of logprobs-per-token to compute & return as part of "
|
|
1042
|
+
"the request. If unspecified, then either (1) if beam search "
|
|
1043
|
+
"is disabled, no logprobs are computed & a single dummy "
|
|
1044
|
+
"logprob is returned for each token; or (2) if beam search "
|
|
1045
|
+
"is enabled 1 logprob per token is computed"
|
|
1046
|
+
),
|
|
1047
|
+
)
|
|
1048
|
+
parser.add_argument(
|
|
1049
|
+
"--request-rate",
|
|
1050
|
+
type=float,
|
|
1051
|
+
default=float("inf"),
|
|
1052
|
+
help="Number of requests per second. If this is inf, "
|
|
1053
|
+
"then all the requests are sent at time 0. "
|
|
1054
|
+
"Otherwise, we use Poisson process or gamma distribution "
|
|
1055
|
+
"to synthesize the request arrival times.",
|
|
1056
|
+
)
|
|
1057
|
+
parser.add_argument(
|
|
1058
|
+
"--burstiness",
|
|
1059
|
+
type=float,
|
|
1060
|
+
default=1.0,
|
|
1061
|
+
help="Burstiness factor of the request generation. "
|
|
1062
|
+
"Only take effect when request_rate is not inf. "
|
|
1063
|
+
"Default value is 1, which follows Poisson process. "
|
|
1064
|
+
"Otherwise, the request intervals follow a gamma distribution. "
|
|
1065
|
+
"A lower burstiness value (0 < burstiness < 1) results in more "
|
|
1066
|
+
"bursty requests. A higher burstiness value (burstiness > 1) "
|
|
1067
|
+
"results in a more uniform arrival of requests.",
|
|
1068
|
+
)
|
|
1069
|
+
parser.add_argument(
|
|
1070
|
+
"--trust-remote-code",
|
|
1071
|
+
action="store_true",
|
|
1072
|
+
help="Trust remote code from huggingface",
|
|
1073
|
+
)
|
|
1074
|
+
parser.add_argument(
|
|
1075
|
+
"--disable-tqdm",
|
|
1076
|
+
action="store_true",
|
|
1077
|
+
help="Specify to disable tqdm progress bar.",
|
|
1078
|
+
)
|
|
1079
|
+
parser.add_argument(
|
|
1080
|
+
"--num-warmups",
|
|
1081
|
+
type=int,
|
|
1082
|
+
default=0,
|
|
1083
|
+
help="Number of warmup requests.",
|
|
1084
|
+
)
|
|
1085
|
+
parser.add_argument(
|
|
1086
|
+
"--profile",
|
|
1087
|
+
action="store_true",
|
|
1088
|
+
help="Use Torch Profiler. The endpoint must be launched with "
|
|
1089
|
+
"VLLM_TORCH_PROFILER_DIR to enable profiler.",
|
|
1090
|
+
)
|
|
1091
|
+
parser.add_argument(
|
|
1092
|
+
"--save-result",
|
|
1093
|
+
action="store_true",
|
|
1094
|
+
help="Specify to save benchmark results to a json file",
|
|
1095
|
+
)
|
|
1096
|
+
parser.add_argument(
|
|
1097
|
+
"--save-detailed",
|
|
1098
|
+
action="store_true",
|
|
1099
|
+
help="When saving the results, whether to include per request "
|
|
1100
|
+
"information such as response, error, ttfs, tpots, etc.",
|
|
1101
|
+
)
|
|
1102
|
+
parser.add_argument(
|
|
1103
|
+
"--append-result",
|
|
1104
|
+
action="store_true",
|
|
1105
|
+
help="Append the benchmark result to the existing json file.",
|
|
1106
|
+
)
|
|
1107
|
+
parser.add_argument(
|
|
1108
|
+
"--metadata",
|
|
1109
|
+
metavar="KEY=VALUE",
|
|
1110
|
+
nargs="*",
|
|
1111
|
+
help="Key-value pairs (e.g, --metadata version=0.3.3 tp=1) "
|
|
1112
|
+
"for metadata of this run to be saved in the result JSON file "
|
|
1113
|
+
"for record keeping purposes.",
|
|
1114
|
+
)
|
|
1115
|
+
parser.add_argument(
|
|
1116
|
+
"--result-dir",
|
|
1117
|
+
type=str,
|
|
1118
|
+
default=None,
|
|
1119
|
+
help="Specify directory to save benchmark json results."
|
|
1120
|
+
"If not specified, results are saved in the current directory.",
|
|
1121
|
+
)
|
|
1122
|
+
parser.add_argument(
|
|
1123
|
+
"--result-filename",
|
|
1124
|
+
type=str,
|
|
1125
|
+
default=None,
|
|
1126
|
+
help="Specify the filename to save benchmark json results."
|
|
1127
|
+
"If not specified, results will be saved in "
|
|
1128
|
+
"{label}-{args.request_rate}qps-{base_model_id}-{current_dt}.json" # noqa
|
|
1129
|
+
" format.",
|
|
1130
|
+
)
|
|
1131
|
+
parser.add_argument(
|
|
1132
|
+
"--ignore-eos",
|
|
1133
|
+
action="store_true",
|
|
1134
|
+
help="Set ignore_eos flag when sending the benchmark request."
|
|
1135
|
+
"Warning: ignore_eos is not supported in deepspeed_mii and tgi.",
|
|
1136
|
+
)
|
|
1137
|
+
parser.add_argument(
|
|
1138
|
+
"--percentile-metrics",
|
|
1139
|
+
type=str,
|
|
1140
|
+
default=None,
|
|
1141
|
+
help="Comma-separated list of selected metrics to report percentils. "
|
|
1142
|
+
"This argument specifies the metrics to report percentiles. "
|
|
1143
|
+
'Allowed metric names are "ttft", "tpot", "itl", "e2el". '
|
|
1144
|
+
'If not specified, defaults to "ttft,tpot,itl" for generative models '
|
|
1145
|
+
'and "e2el" for pooling models.',
|
|
1146
|
+
)
|
|
1147
|
+
parser.add_argument(
|
|
1148
|
+
"--metric-percentiles",
|
|
1149
|
+
type=str,
|
|
1150
|
+
default="99",
|
|
1151
|
+
help="Comma-separated list of percentiles for selected metrics. "
|
|
1152
|
+
'To report 25-th, 50-th, and 75-th percentiles, use "25,50,75". '
|
|
1153
|
+
'Default value is "99".'
|
|
1154
|
+
'Use "--percentile-metrics" to select metrics.',
|
|
1155
|
+
)
|
|
1156
|
+
parser.add_argument(
|
|
1157
|
+
"--goodput",
|
|
1158
|
+
nargs="+",
|
|
1159
|
+
required=False,
|
|
1160
|
+
help='Specify service level objectives for goodput as "KEY:VALUE" '
|
|
1161
|
+
"pairs, where the key is a metric name, and the value is in "
|
|
1162
|
+
'milliseconds. Multiple "KEY:VALUE" pairs can be provided, '
|
|
1163
|
+
"separated by spaces. Allowed request level metric names are "
|
|
1164
|
+
'"ttft", "tpot", "e2el". For more context on the definition of '
|
|
1165
|
+
"goodput, refer to DistServe paper: https://arxiv.org/pdf/2401.09670 "
|
|
1166
|
+
"and the blog: https://hao-ai-lab.github.io/blogs/distserve",
|
|
1167
|
+
)
|
|
1168
|
+
parser.add_argument(
|
|
1169
|
+
"--request-id-prefix",
|
|
1170
|
+
type=str,
|
|
1171
|
+
required=False,
|
|
1172
|
+
default=f"bench-{uuid.uuid4().hex[:8]}-",
|
|
1173
|
+
help="Specify the prefix of request id.",
|
|
1174
|
+
)
|
|
1175
|
+
|
|
1176
|
+
sampling_group = parser.add_argument_group("sampling parameters")
|
|
1177
|
+
sampling_group.add_argument(
|
|
1178
|
+
"--top-p",
|
|
1179
|
+
type=float,
|
|
1180
|
+
default=None,
|
|
1181
|
+
help="Top-p sampling parameter. Only has effect on openai-compatible backends.",
|
|
1182
|
+
)
|
|
1183
|
+
sampling_group.add_argument(
|
|
1184
|
+
"--top-k",
|
|
1185
|
+
type=int,
|
|
1186
|
+
default=None,
|
|
1187
|
+
help="Top-k sampling parameter. Only has effect on openai-compatible backends.",
|
|
1188
|
+
)
|
|
1189
|
+
sampling_group.add_argument(
|
|
1190
|
+
"--min-p",
|
|
1191
|
+
type=float,
|
|
1192
|
+
default=None,
|
|
1193
|
+
help="Min-p sampling parameter. Only has effect on openai-compatible backends.",
|
|
1194
|
+
)
|
|
1195
|
+
sampling_group.add_argument(
|
|
1196
|
+
"--temperature",
|
|
1197
|
+
type=float,
|
|
1198
|
+
default=None,
|
|
1199
|
+
help="Temperature sampling parameter. Only has effect on "
|
|
1200
|
+
"openai-compatible backends. If not specified, default to greedy "
|
|
1201
|
+
"decoding (i.e. temperature==0.0).",
|
|
1202
|
+
)
|
|
1203
|
+
sampling_group.add_argument(
|
|
1204
|
+
"--frequency-penalty",
|
|
1205
|
+
type=float,
|
|
1206
|
+
default=None,
|
|
1207
|
+
help="Frequency penalty sampling parameter. Only has effect on "
|
|
1208
|
+
"openai-compatible backends.",
|
|
1209
|
+
)
|
|
1210
|
+
sampling_group.add_argument(
|
|
1211
|
+
"--presence-penalty",
|
|
1212
|
+
type=float,
|
|
1213
|
+
default=None,
|
|
1214
|
+
help="Presence penalty sampling parameter. Only has effect on "
|
|
1215
|
+
"openai-compatible backends.",
|
|
1216
|
+
)
|
|
1217
|
+
sampling_group.add_argument(
|
|
1218
|
+
"--repetition-penalty",
|
|
1219
|
+
type=float,
|
|
1220
|
+
default=None,
|
|
1221
|
+
help="Repetition penalty sampling parameter. Only has effect on "
|
|
1222
|
+
"openai-compatible backends.",
|
|
1223
|
+
)
|
|
1224
|
+
|
|
1225
|
+
parser.add_argument(
|
|
1226
|
+
"--tokenizer-mode",
|
|
1227
|
+
type=str,
|
|
1228
|
+
default="auto",
|
|
1229
|
+
choices=["auto", "slow", "mistral", "custom"],
|
|
1230
|
+
help='The tokenizer mode.\n\n* "auto" will use the '
|
|
1231
|
+
'fast tokenizer if available.\n* "slow" will '
|
|
1232
|
+
"always use the slow tokenizer. \n* "
|
|
1233
|
+
'"mistral" will always use the `mistral_common` tokenizer. \n*'
|
|
1234
|
+
'"custom" will use --tokenizer to select the preregistered tokenizer.',
|
|
1235
|
+
)
|
|
1236
|
+
|
|
1237
|
+
parser.add_argument(
|
|
1238
|
+
"--served-model-name",
|
|
1239
|
+
type=str,
|
|
1240
|
+
default=None,
|
|
1241
|
+
help="The model name used in the API. "
|
|
1242
|
+
"If not specified, the model name will be the "
|
|
1243
|
+
"same as the `--model` argument. ",
|
|
1244
|
+
)
|
|
1245
|
+
|
|
1246
|
+
parser.add_argument(
|
|
1247
|
+
"--lora-modules",
|
|
1248
|
+
nargs="+",
|
|
1249
|
+
default=None,
|
|
1250
|
+
help="A subset of LoRA module names passed in when "
|
|
1251
|
+
"launching the server. For each request, the "
|
|
1252
|
+
"script chooses a LoRA module at random.",
|
|
1253
|
+
)
|
|
1254
|
+
|
|
1255
|
+
parser.add_argument(
|
|
1256
|
+
"--ramp-up-strategy",
|
|
1257
|
+
type=str,
|
|
1258
|
+
default=None,
|
|
1259
|
+
choices=["linear", "exponential"],
|
|
1260
|
+
help="The ramp-up strategy. This would be used to "
|
|
1261
|
+
"ramp up the request rate from initial RPS to final "
|
|
1262
|
+
"RPS rate (specified by --ramp-up-start-rps and "
|
|
1263
|
+
"--ramp-up-end-rps.) over the duration of the benchmark.",
|
|
1264
|
+
)
|
|
1265
|
+
parser.add_argument(
|
|
1266
|
+
"--ramp-up-start-rps",
|
|
1267
|
+
type=int,
|
|
1268
|
+
default=None,
|
|
1269
|
+
help="The starting request rate for ramp-up (RPS). "
|
|
1270
|
+
"Needs to be specified when --ramp-up-strategy is used.",
|
|
1271
|
+
)
|
|
1272
|
+
parser.add_argument(
|
|
1273
|
+
"--ramp-up-end-rps",
|
|
1274
|
+
type=int,
|
|
1275
|
+
default=None,
|
|
1276
|
+
help="The ending request rate for ramp-up (RPS). "
|
|
1277
|
+
"Needs to be specified when --ramp-up-strategy is used.",
|
|
1278
|
+
)
|
|
1279
|
+
parser.add_argument(
|
|
1280
|
+
"--ready-check-timeout-sec",
|
|
1281
|
+
type=int,
|
|
1282
|
+
default=600,
|
|
1283
|
+
help="Maximum time to wait for the endpoint to become ready "
|
|
1284
|
+
"in seconds (default: 600 seconds / 10 minutes). If set to 0, "
|
|
1285
|
+
"the ready check will be skipped.",
|
|
1286
|
+
)
|
|
1287
|
+
|
|
1288
|
+
parser.add_argument(
|
|
1289
|
+
"--extra-body",
|
|
1290
|
+
help="A JSON string representing extra body parameters to include "
|
|
1291
|
+
"in each request."
|
|
1292
|
+
'Example: \'{"chat_template_kwargs":{"enable_thinking":false}}\'',
|
|
1293
|
+
type=json.loads,
|
|
1294
|
+
default=None,
|
|
1295
|
+
)
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
def main(args: argparse.Namespace) -> dict[str, Any]:
|
|
1299
|
+
return asyncio.run(main_async(args))
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
async def main_async(args: argparse.Namespace) -> dict[str, Any]:
|
|
1303
|
+
print(args)
|
|
1304
|
+
random.seed(args.seed)
|
|
1305
|
+
np.random.seed(args.seed)
|
|
1306
|
+
|
|
1307
|
+
# Validate ramp-up arguments
|
|
1308
|
+
if args.ramp_up_strategy is not None:
|
|
1309
|
+
if args.request_rate != float("inf"):
|
|
1310
|
+
raise ValueError(
|
|
1311
|
+
"When using ramp-up, do not specify --request-rate. "
|
|
1312
|
+
"The request rate will be controlled by ramp-up parameters. "
|
|
1313
|
+
"Please remove the --request-rate argument."
|
|
1314
|
+
)
|
|
1315
|
+
if args.ramp_up_start_rps is None or args.ramp_up_end_rps is None:
|
|
1316
|
+
raise ValueError(
|
|
1317
|
+
"When using --ramp-up-strategy, both --ramp-up-start-rps and "
|
|
1318
|
+
"--ramp-up-end-rps must be specified"
|
|
1319
|
+
)
|
|
1320
|
+
if args.ramp_up_start_rps < 0 or args.ramp_up_end_rps < 0:
|
|
1321
|
+
raise ValueError("Ramp-up start and end RPS must be non-negative")
|
|
1322
|
+
if args.ramp_up_start_rps > args.ramp_up_end_rps:
|
|
1323
|
+
raise ValueError("Ramp-up start RPS must be less than end RPS")
|
|
1324
|
+
if args.ramp_up_strategy == "exponential" and args.ramp_up_start_rps == 0:
|
|
1325
|
+
raise ValueError("For exponential ramp-up, the start RPS cannot be 0.")
|
|
1326
|
+
|
|
1327
|
+
label = args.label
|
|
1328
|
+
model_id = args.model
|
|
1329
|
+
model_name = args.served_model_name
|
|
1330
|
+
tokenizer_id = args.tokenizer if args.tokenizer is not None else args.model
|
|
1331
|
+
tokenizer_mode = args.tokenizer_mode
|
|
1332
|
+
|
|
1333
|
+
if args.base_url is not None:
|
|
1334
|
+
api_url = f"{args.base_url}{args.endpoint}"
|
|
1335
|
+
base_url = f"{args.base_url}"
|
|
1336
|
+
else:
|
|
1337
|
+
host_port = join_host_port(args.host, args.port)
|
|
1338
|
+
api_url = f"http://{host_port}{args.endpoint}"
|
|
1339
|
+
base_url = f"http://{host_port}"
|
|
1340
|
+
|
|
1341
|
+
# Headers
|
|
1342
|
+
headers = None
|
|
1343
|
+
if args.header:
|
|
1344
|
+
headers = {}
|
|
1345
|
+
for item in args.header:
|
|
1346
|
+
if "=" in item:
|
|
1347
|
+
kvstring = item.split("=", 1)
|
|
1348
|
+
headers[kvstring[0].strip()] = kvstring[1].strip()
|
|
1349
|
+
else:
|
|
1350
|
+
raise ValueError("Invalid header format. Please use KEY=VALUE format.")
|
|
1351
|
+
|
|
1352
|
+
tokenizer = get_tokenizer(
|
|
1353
|
+
tokenizer_id,
|
|
1354
|
+
tokenizer_mode=tokenizer_mode,
|
|
1355
|
+
trust_remote_code=args.trust_remote_code,
|
|
1356
|
+
)
|
|
1357
|
+
|
|
1358
|
+
if args.dataset_name is None:
|
|
1359
|
+
raise ValueError(
|
|
1360
|
+
"Please specify '--dataset-name' and the corresponding "
|
|
1361
|
+
"'--dataset-path' if required."
|
|
1362
|
+
)
|
|
1363
|
+
|
|
1364
|
+
# when using random datasets, default to ignoring EOS
|
|
1365
|
+
# so generation runs to the requested length
|
|
1366
|
+
if (
|
|
1367
|
+
args.dataset_name in ("random", "random-mm")
|
|
1368
|
+
and args.backend in OPENAI_COMPATIBLE_BACKENDS
|
|
1369
|
+
):
|
|
1370
|
+
args.ignore_eos = True
|
|
1371
|
+
|
|
1372
|
+
# Load the dataset.
|
|
1373
|
+
input_requests = get_samples(args, tokenizer)
|
|
1374
|
+
goodput_config_dict = check_goodput_args(args)
|
|
1375
|
+
|
|
1376
|
+
backend = args.backend
|
|
1377
|
+
task_type = (
|
|
1378
|
+
TaskType.POOLING
|
|
1379
|
+
if "embeddings" in backend or "rerank" in backend
|
|
1380
|
+
else TaskType.GENERATION
|
|
1381
|
+
)
|
|
1382
|
+
|
|
1383
|
+
# Collect the sampling parameters.
|
|
1384
|
+
if task_type == TaskType.GENERATION:
|
|
1385
|
+
sampling_params = {
|
|
1386
|
+
k: v
|
|
1387
|
+
for k, v in {
|
|
1388
|
+
"top_p": args.top_p,
|
|
1389
|
+
"top_k": args.top_k,
|
|
1390
|
+
"min_p": args.min_p,
|
|
1391
|
+
"temperature": args.temperature,
|
|
1392
|
+
"frequency_penalty": args.frequency_penalty,
|
|
1393
|
+
"presence_penalty": args.presence_penalty,
|
|
1394
|
+
"repetition_penalty": args.repetition_penalty,
|
|
1395
|
+
}.items()
|
|
1396
|
+
if v is not None
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
# Sampling parameters are only supported by openai-compatible backend.
|
|
1400
|
+
if sampling_params and args.backend not in OPENAI_COMPATIBLE_BACKENDS:
|
|
1401
|
+
raise ValueError(
|
|
1402
|
+
"Sampling parameters are only supported by openai-compatible backends."
|
|
1403
|
+
)
|
|
1404
|
+
|
|
1405
|
+
if "temperature" not in sampling_params:
|
|
1406
|
+
sampling_params["temperature"] = 0.0 # Default to greedy decoding.
|
|
1407
|
+
|
|
1408
|
+
default_percentile_metrics = "ttft,tpot,itl"
|
|
1409
|
+
else:
|
|
1410
|
+
sampling_params = {}
|
|
1411
|
+
default_percentile_metrics = "e2el"
|
|
1412
|
+
|
|
1413
|
+
extra_body = args.extra_body or {}
|
|
1414
|
+
extra_body = {**sampling_params, **extra_body}
|
|
1415
|
+
|
|
1416
|
+
percentile_metrics: str = args.percentile_metrics or default_percentile_metrics
|
|
1417
|
+
|
|
1418
|
+
# Avoid GC processing "static" data - reduce pause times.
|
|
1419
|
+
freeze_gc_heap()
|
|
1420
|
+
|
|
1421
|
+
benchmark_result = await benchmark(
|
|
1422
|
+
task_type=task_type,
|
|
1423
|
+
endpoint_type=backend,
|
|
1424
|
+
api_url=api_url,
|
|
1425
|
+
base_url=base_url,
|
|
1426
|
+
model_id=model_id,
|
|
1427
|
+
model_name=model_name,
|
|
1428
|
+
tokenizer=tokenizer,
|
|
1429
|
+
input_requests=input_requests,
|
|
1430
|
+
logprobs=args.logprobs,
|
|
1431
|
+
request_rate=args.request_rate,
|
|
1432
|
+
burstiness=args.burstiness,
|
|
1433
|
+
disable_tqdm=args.disable_tqdm,
|
|
1434
|
+
num_warmups=args.num_warmups,
|
|
1435
|
+
profile=args.profile,
|
|
1436
|
+
selected_percentile_metrics=percentile_metrics.split(","),
|
|
1437
|
+
selected_percentiles=[float(p) for p in args.metric_percentiles.split(",")],
|
|
1438
|
+
ignore_eos=args.ignore_eos,
|
|
1439
|
+
goodput_config_dict=goodput_config_dict,
|
|
1440
|
+
max_concurrency=args.max_concurrency,
|
|
1441
|
+
lora_modules=args.lora_modules,
|
|
1442
|
+
extra_headers=headers,
|
|
1443
|
+
extra_body=extra_body,
|
|
1444
|
+
ramp_up_strategy=args.ramp_up_strategy,
|
|
1445
|
+
ramp_up_start_rps=args.ramp_up_start_rps,
|
|
1446
|
+
ramp_up_end_rps=args.ramp_up_end_rps,
|
|
1447
|
+
ready_check_timeout_sec=args.ready_check_timeout_sec,
|
|
1448
|
+
)
|
|
1449
|
+
|
|
1450
|
+
# Save config and results to json
|
|
1451
|
+
result_json: dict[str, Any] = {}
|
|
1452
|
+
|
|
1453
|
+
# Setup
|
|
1454
|
+
current_dt = datetime.now().strftime("%Y%m%d-%H%M%S")
|
|
1455
|
+
result_json["date"] = current_dt
|
|
1456
|
+
result_json["endpoint_type"] = args.backend # for backward compatibility
|
|
1457
|
+
result_json["backend"] = args.backend
|
|
1458
|
+
result_json["label"] = label
|
|
1459
|
+
result_json["model_id"] = model_id
|
|
1460
|
+
result_json["tokenizer_id"] = tokenizer_id
|
|
1461
|
+
result_json["num_prompts"] = args.num_prompts
|
|
1462
|
+
|
|
1463
|
+
# Metadata
|
|
1464
|
+
if args.metadata:
|
|
1465
|
+
for item in args.metadata:
|
|
1466
|
+
if "=" in item:
|
|
1467
|
+
kvstring = item.split("=", 1)
|
|
1468
|
+
result_json[kvstring[0].strip()] = kvstring[1].strip()
|
|
1469
|
+
else:
|
|
1470
|
+
raise ValueError(
|
|
1471
|
+
"Invalid metadata format. Please use KEY=VALUE format."
|
|
1472
|
+
)
|
|
1473
|
+
|
|
1474
|
+
# Traffic
|
|
1475
|
+
result_json["request_rate"] = (
|
|
1476
|
+
args.request_rate if args.request_rate < float("inf") else "inf"
|
|
1477
|
+
)
|
|
1478
|
+
result_json["burstiness"] = args.burstiness
|
|
1479
|
+
result_json["max_concurrency"] = args.max_concurrency
|
|
1480
|
+
|
|
1481
|
+
if args.ramp_up_strategy is not None:
|
|
1482
|
+
result_json["ramp_up_strategy"] = args.ramp_up_strategy
|
|
1483
|
+
result_json["ramp_up_start_rps"] = args.ramp_up_start_rps
|
|
1484
|
+
result_json["ramp_up_end_rps"] = args.ramp_up_end_rps
|
|
1485
|
+
|
|
1486
|
+
# Merge with benchmark result
|
|
1487
|
+
result_json = {**result_json, **benchmark_result}
|
|
1488
|
+
|
|
1489
|
+
if not args.save_detailed:
|
|
1490
|
+
# Remove fields with too many data points
|
|
1491
|
+
for field in [
|
|
1492
|
+
"input_lens",
|
|
1493
|
+
"output_lens",
|
|
1494
|
+
"ttfts",
|
|
1495
|
+
"itls",
|
|
1496
|
+
"generated_texts",
|
|
1497
|
+
"errors",
|
|
1498
|
+
]:
|
|
1499
|
+
if field in result_json:
|
|
1500
|
+
del result_json[field]
|
|
1501
|
+
if field in benchmark_result:
|
|
1502
|
+
del benchmark_result[field]
|
|
1503
|
+
|
|
1504
|
+
# Save to file
|
|
1505
|
+
if args.save_result or args.append_result:
|
|
1506
|
+
base_model_id = model_id.split("/")[-1]
|
|
1507
|
+
max_concurrency_str = (
|
|
1508
|
+
f"-concurrency{args.max_concurrency}"
|
|
1509
|
+
if args.max_concurrency is not None
|
|
1510
|
+
else ""
|
|
1511
|
+
)
|
|
1512
|
+
label = label or args.backend
|
|
1513
|
+
if args.ramp_up_strategy is not None:
|
|
1514
|
+
file_name = f"{label}-ramp-up-{args.ramp_up_strategy}-{args.ramp_up_start_rps}qps-{args.ramp_up_end_rps}qps{max_concurrency_str}-{base_model_id}-{current_dt}.json" # noqa
|
|
1515
|
+
else:
|
|
1516
|
+
file_name = f"{label}-{args.request_rate}qps{max_concurrency_str}-{base_model_id}-{current_dt}.json" # noqa
|
|
1517
|
+
if args.result_filename:
|
|
1518
|
+
file_name = args.result_filename
|
|
1519
|
+
if args.result_dir:
|
|
1520
|
+
os.makedirs(args.result_dir, exist_ok=True)
|
|
1521
|
+
file_name = os.path.join(args.result_dir, file_name)
|
|
1522
|
+
with open(
|
|
1523
|
+
file_name, mode="a+" if args.append_result else "w", encoding="utf-8"
|
|
1524
|
+
) as outfile:
|
|
1525
|
+
# Append a newline.
|
|
1526
|
+
if args.append_result and outfile.tell() != 0:
|
|
1527
|
+
outfile.write("\n")
|
|
1528
|
+
json.dump(result_json, outfile)
|
|
1529
|
+
save_to_pytorch_benchmark_format(args, result_json, file_name)
|
|
1530
|
+
|
|
1531
|
+
return result_json
|