vllm-cpu-avx512bf16 0.14.0__cp313-cp313-manylinux_2_28_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 +1511 -0
- vllm/_bc_linter.py +54 -0
- vllm/_custom_ops.py +3206 -0
- vllm/_ipex_ops.py +445 -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 +62 -0
- vllm/assets/video.py +149 -0
- vllm/attention/__init__.py +0 -0
- vllm/attention/layer.py +913 -0
- vllm/attention/utils/__init__.py +0 -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 +3277 -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/mm_processor.py +363 -0
- vllm/benchmarks/serve.py +1761 -0
- vllm/benchmarks/startup.py +321 -0
- vllm/benchmarks/sweep/__init__.py +0 -0
- vllm/benchmarks/sweep/cli.py +41 -0
- vllm/benchmarks/sweep/param_sweep.py +159 -0
- vllm/benchmarks/sweep/plot.py +675 -0
- vllm/benchmarks/sweep/plot_pareto.py +393 -0
- vllm/benchmarks/sweep/serve.py +450 -0
- vllm/benchmarks/sweep/serve_sla.py +459 -0
- vllm/benchmarks/sweep/server.py +114 -0
- vllm/benchmarks/sweep/sla_sweep.py +138 -0
- vllm/benchmarks/sweep/utils.py +4 -0
- vllm/benchmarks/throughput.py +946 -0
- vllm/collect_env.py +857 -0
- vllm/compilation/__init__.py +0 -0
- vllm/compilation/activation_quant_fusion.py +214 -0
- vllm/compilation/backends.py +840 -0
- vllm/compilation/base_static_graph.py +57 -0
- vllm/compilation/caching.py +196 -0
- vllm/compilation/collective_fusion.py +1224 -0
- vllm/compilation/compiler_interface.py +639 -0
- vllm/compilation/counter.py +50 -0
- vllm/compilation/cuda_graph.py +309 -0
- vllm/compilation/decorators.py +662 -0
- vllm/compilation/fix_functionalization.py +266 -0
- vllm/compilation/fusion.py +570 -0
- vllm/compilation/fusion_attn.py +363 -0
- vllm/compilation/fx_utils.py +92 -0
- vllm/compilation/inductor_pass.py +145 -0
- vllm/compilation/matcher_utils.py +454 -0
- vllm/compilation/monitor.py +62 -0
- vllm/compilation/noop_elimination.py +130 -0
- vllm/compilation/partition_rules.py +75 -0
- vllm/compilation/pass_manager.py +164 -0
- vllm/compilation/piecewise_backend.py +191 -0
- vllm/compilation/post_cleanup.py +21 -0
- vllm/compilation/qk_norm_rope_fusion.py +244 -0
- vllm/compilation/rocm_aiter_fusion.py +401 -0
- vllm/compilation/sequence_parallelism.py +368 -0
- vllm/compilation/torch25_custom_graph_pass.py +44 -0
- vllm/compilation/vllm_inductor_pass.py +180 -0
- vllm/compilation/wrapper.py +329 -0
- vllm/config/__init__.py +112 -0
- vllm/config/attention.py +114 -0
- vllm/config/cache.py +233 -0
- vllm/config/compilation.py +1149 -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 +119 -0
- vllm/config/load.py +124 -0
- vllm/config/lora.py +102 -0
- vllm/config/model.py +2026 -0
- vllm/config/model_arch.py +57 -0
- vllm/config/multimodal.py +247 -0
- vllm/config/observability.py +157 -0
- vllm/config/parallel.py +703 -0
- vllm/config/pooler.py +188 -0
- vllm/config/profiler.py +199 -0
- vllm/config/scheduler.py +298 -0
- vllm/config/speculative.py +656 -0
- vllm/config/speech_to_text.py +39 -0
- vllm/config/structured_outputs.py +78 -0
- vllm/config/utils.py +374 -0
- vllm/config/vllm.py +1487 -0
- vllm/connections.py +189 -0
- vllm/device_allocator/__init__.py +0 -0
- vllm/device_allocator/cumem.py +301 -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 +509 -0
- vllm/distributed/device_communicators/all_reduce_utils.py +344 -0
- vllm/distributed/device_communicators/base_device_communicator.py +303 -0
- vllm/distributed/device_communicators/cpu_communicator.py +209 -0
- vllm/distributed/device_communicators/cuda_communicator.py +346 -0
- vllm/distributed/device_communicators/cuda_wrapper.py +190 -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 +567 -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 +778 -0
- vllm/distributed/device_communicators/shm_object_storage.py +697 -0
- vllm/distributed/device_communicators/symm_mem.py +156 -0
- vllm/distributed/device_communicators/xpu_communicator.py +98 -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/example_connector.py +201 -0
- vllm/distributed/ec_transfer/ec_connector/factory.py +85 -0
- vllm/distributed/ec_transfer/ec_transfer_state.py +42 -0
- vllm/distributed/eplb/__init__.py +3 -0
- vllm/distributed/eplb/async_worker.py +115 -0
- vllm/distributed/eplb/eplb_state.py +1192 -0
- vllm/distributed/eplb/policy/__init__.py +19 -0
- vllm/distributed/eplb/policy/abstract.py +43 -0
- vllm/distributed/eplb/policy/default.py +376 -0
- vllm/distributed/eplb/rebalance_execute.py +699 -0
- vllm/distributed/kv_events.py +505 -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 +203 -0
- vllm/distributed/kv_transfer/kv_connector/utils.py +459 -0
- vllm/distributed/kv_transfer/kv_connector/v1/__init__.py +19 -0
- vllm/distributed/kv_transfer/kv_connector/v1/base.py +607 -0
- vllm/distributed/kv_transfer/kv_connector/v1/decode_bench_connector.py +419 -0
- vllm/distributed/kv_transfer/kv_connector/v1/example_connector.py +450 -0
- vllm/distributed/kv_transfer/kv_connector/v1/lmcache_connector.py +344 -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 +395 -0
- vllm/distributed/kv_transfer/kv_connector/v1/lmcache_integration/utils.py +211 -0
- vllm/distributed/kv_transfer/kv_connector/v1/lmcache_integration/vllm_v1_adapter.py +1431 -0
- vllm/distributed/kv_transfer/kv_connector/v1/lmcache_mp_connector.py +941 -0
- vllm/distributed/kv_transfer/kv_connector/v1/metrics.py +186 -0
- vllm/distributed/kv_transfer/kv_connector/v1/mooncake_connector.py +916 -0
- vllm/distributed/kv_transfer/kv_connector/v1/moriio/__init__.py +0 -0
- vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_common.py +321 -0
- vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_connector.py +1515 -0
- vllm/distributed/kv_transfer/kv_connector/v1/moriio/moriio_engine.py +609 -0
- vllm/distributed/kv_transfer/kv_connector/v1/multi_connector.py +477 -0
- vllm/distributed/kv_transfer/kv_connector/v1/nixl_connector.py +2688 -0
- vllm/distributed/kv_transfer/kv_connector/v1/offloading_connector.py +557 -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_transfer_state.py +78 -0
- vllm/distributed/parallel_state.py +1809 -0
- vllm/distributed/utils.py +545 -0
- vllm/engine/__init__.py +0 -0
- vllm/engine/arg_utils.py +2137 -0
- vllm/engine/async_llm_engine.py +6 -0
- vllm/engine/llm_engine.py +6 -0
- vllm/engine/protocol.py +194 -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 +468 -0
- vllm/entrypoints/api_server.py +186 -0
- vllm/entrypoints/chat_utils.py +1912 -0
- vllm/entrypoints/cli/__init__.py +19 -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 +57 -0
- vllm/entrypoints/cli/benchmark/mm_processor.py +21 -0
- vllm/entrypoints/cli/benchmark/serve.py +21 -0
- vllm/entrypoints/cli/benchmark/startup.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 +260 -0
- vllm/entrypoints/cli/run_batch.py +68 -0
- vllm/entrypoints/cli/serve.py +253 -0
- vllm/entrypoints/cli/types.py +29 -0
- vllm/entrypoints/constants.py +12 -0
- vllm/entrypoints/context.py +898 -0
- vllm/entrypoints/grpc_server.py +531 -0
- vllm/entrypoints/launcher.py +175 -0
- vllm/entrypoints/llm.py +1807 -0
- vllm/entrypoints/logger.py +86 -0
- vllm/entrypoints/openai/__init__.py +0 -0
- vllm/entrypoints/openai/api_server.py +1390 -0
- vllm/entrypoints/openai/cli_args.py +320 -0
- vllm/entrypoints/openai/orca_metrics.py +120 -0
- vllm/entrypoints/openai/parser/__init__.py +0 -0
- vllm/entrypoints/openai/parser/harmony_utils.py +820 -0
- vllm/entrypoints/openai/parser/responses_parser.py +176 -0
- vllm/entrypoints/openai/protocol.py +2566 -0
- vllm/entrypoints/openai/run_batch.py +635 -0
- vllm/entrypoints/openai/serving_chat.py +1897 -0
- vllm/entrypoints/openai/serving_chat_stream_harmony.py +101 -0
- vllm/entrypoints/openai/serving_completion.py +740 -0
- vllm/entrypoints/openai/serving_engine.py +1612 -0
- vllm/entrypoints/openai/serving_models.py +309 -0
- vllm/entrypoints/openai/serving_responses.py +2552 -0
- vllm/entrypoints/openai/serving_transcription.py +168 -0
- vllm/entrypoints/openai/speech_to_text.py +711 -0
- vllm/entrypoints/openai/utils.py +49 -0
- vllm/entrypoints/pooling/__init__.py +16 -0
- vllm/entrypoints/pooling/classify/__init__.py +0 -0
- vllm/entrypoints/pooling/classify/api_router.py +48 -0
- vllm/entrypoints/pooling/classify/protocol.py +181 -0
- vllm/entrypoints/pooling/classify/serving.py +233 -0
- vllm/entrypoints/pooling/embed/__init__.py +0 -0
- vllm/entrypoints/pooling/embed/api_router.py +65 -0
- vllm/entrypoints/pooling/embed/conftest.py +28 -0
- vllm/entrypoints/pooling/embed/protocol.py +217 -0
- vllm/entrypoints/pooling/embed/serving.py +684 -0
- vllm/entrypoints/pooling/pooling/__init__.py +0 -0
- vllm/entrypoints/pooling/pooling/api_router.py +62 -0
- vllm/entrypoints/pooling/pooling/protocol.py +146 -0
- vllm/entrypoints/pooling/pooling/serving.py +354 -0
- vllm/entrypoints/pooling/score/__init__.py +0 -0
- vllm/entrypoints/pooling/score/api_router.py +147 -0
- vllm/entrypoints/pooling/score/protocol.py +146 -0
- vllm/entrypoints/pooling/score/serving.py +511 -0
- vllm/entrypoints/renderer.py +411 -0
- vllm/entrypoints/responses_utils.py +218 -0
- vllm/entrypoints/sagemaker/__init__.py +4 -0
- vllm/entrypoints/sagemaker/routes.py +118 -0
- vllm/entrypoints/score_utils.py +271 -0
- vllm/entrypoints/serve/__init__.py +94 -0
- vllm/entrypoints/serve/cache/__init__.py +0 -0
- vllm/entrypoints/serve/cache/api_router.py +61 -0
- vllm/entrypoints/serve/disagg/__init__.py +0 -0
- vllm/entrypoints/serve/disagg/api_router.py +109 -0
- vllm/entrypoints/serve/disagg/protocol.py +90 -0
- vllm/entrypoints/serve/disagg/serving.py +285 -0
- vllm/entrypoints/serve/elastic_ep/__init__.py +0 -0
- vllm/entrypoints/serve/elastic_ep/api_router.py +96 -0
- vllm/entrypoints/serve/elastic_ep/middleware.py +49 -0
- vllm/entrypoints/serve/instrumentator/__init__.py +0 -0
- vllm/entrypoints/serve/instrumentator/health.py +33 -0
- vllm/entrypoints/serve/instrumentator/metrics.py +45 -0
- vllm/entrypoints/serve/instrumentator/offline_docs.py +50 -0
- vllm/entrypoints/serve/instrumentator/server_info.py +56 -0
- vllm/entrypoints/serve/instrumentator/static/swagger-ui-bundle.js +2 -0
- vllm/entrypoints/serve/instrumentator/static/swagger-ui.css +3 -0
- vllm/entrypoints/serve/lora/__init__.py +0 -0
- vllm/entrypoints/serve/lora/api_router.py +70 -0
- vllm/entrypoints/serve/profile/__init__.py +0 -0
- vllm/entrypoints/serve/profile/api_router.py +46 -0
- vllm/entrypoints/serve/rlhf/__init__.py +0 -0
- vllm/entrypoints/serve/rlhf/api_router.py +102 -0
- vllm/entrypoints/serve/rpc/__init__.py +0 -0
- vllm/entrypoints/serve/rpc/api_router.py +61 -0
- vllm/entrypoints/serve/sleep/__init__.py +0 -0
- vllm/entrypoints/serve/sleep/api_router.py +56 -0
- vllm/entrypoints/serve/tokenize/__init__.py +0 -0
- vllm/entrypoints/serve/tokenize/api_router.py +112 -0
- vllm/entrypoints/serve/tokenize/serving.py +204 -0
- vllm/entrypoints/ssl.py +78 -0
- vllm/entrypoints/tool.py +187 -0
- vllm/entrypoints/tool_server.py +234 -0
- vllm/entrypoints/utils.py +336 -0
- vllm/env_override.py +402 -0
- vllm/envs.py +1791 -0
- vllm/exceptions.py +36 -0
- vllm/forward_context.py +375 -0
- vllm/grpc/__init__.py +17 -0
- vllm/grpc/compile_protos.py +94 -0
- vllm/grpc/vllm_engine.proto +195 -0
- vllm/grpc/vllm_engine_pb2.py +77 -0
- vllm/grpc/vllm_engine_pb2.pyi +213 -0
- vllm/grpc/vllm_engine_pb2_grpc.py +330 -0
- vllm/inputs/__init__.py +44 -0
- vllm/inputs/data.py +359 -0
- vllm/inputs/parse.py +147 -0
- vllm/inputs/preprocess.py +716 -0
- vllm/logger.py +303 -0
- vllm/logging_utils/__init__.py +13 -0
- vllm/logging_utils/dump_input.py +83 -0
- vllm/logging_utils/formatter.py +127 -0
- vllm/logging_utils/lazy.py +20 -0
- vllm/logging_utils/log_time.py +34 -0
- vllm/logits_process.py +121 -0
- vllm/logprobs.py +206 -0
- vllm/lora/__init__.py +0 -0
- vllm/lora/layers/__init__.py +43 -0
- vllm/lora/layers/base.py +66 -0
- vllm/lora/layers/base_linear.py +172 -0
- vllm/lora/layers/column_parallel_linear.py +577 -0
- vllm/lora/layers/fused_moe.py +739 -0
- vllm/lora/layers/logits_processor.py +203 -0
- vllm/lora/layers/replicated_linear.py +70 -0
- vllm/lora/layers/row_parallel_linear.py +176 -0
- vllm/lora/layers/utils.py +115 -0
- vllm/lora/layers/vocal_parallel_embedding.py +140 -0
- vllm/lora/lora_model.py +221 -0
- vllm/lora/lora_weights.py +227 -0
- vllm/lora/model_manager.py +858 -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 +677 -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 +313 -0
- vllm/lora/peft_helper.py +128 -0
- vllm/lora/punica_wrapper/__init__.py +10 -0
- vllm/lora/punica_wrapper/punica_base.py +493 -0
- vllm/lora/punica_wrapper/punica_cpu.py +351 -0
- vllm/lora/punica_wrapper/punica_gpu.py +413 -0
- vllm/lora/punica_wrapper/punica_selector.py +21 -0
- vllm/lora/punica_wrapper/punica_xpu.py +276 -0
- vllm/lora/punica_wrapper/utils.py +150 -0
- vllm/lora/request.py +60 -0
- vllm/lora/resolver.py +88 -0
- vllm/lora/utils.py +281 -0
- vllm/lora/worker_manager.py +278 -0
- vllm/model_executor/__init__.py +9 -0
- vllm/model_executor/custom_op.py +203 -0
- vllm/model_executor/layers/__init__.py +0 -0
- vllm/model_executor/layers/activation.py +628 -0
- vllm/model_executor/layers/attention/__init__.py +0 -0
- vllm/model_executor/layers/attention/chunked_local_attention.py +130 -0
- vllm/model_executor/layers/attention/cross_attention.py +182 -0
- vllm/model_executor/layers/attention/encoder_only_attention.py +103 -0
- vllm/model_executor/layers/attention/mm_encoder_attention.py +234 -0
- vllm/model_executor/layers/attention/static_sink_attention.py +254 -0
- vllm/model_executor/layers/attention_layer_base.py +34 -0
- vllm/model_executor/layers/batch_invariant.py +1063 -0
- vllm/model_executor/layers/conv.py +262 -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 +120 -0
- vllm/model_executor/layers/fused_moe/all2all_utils.py +173 -0
- vllm/model_executor/layers/fused_moe/batched_deep_gemm_moe.py +411 -0
- vllm/model_executor/layers/fused_moe/config.py +1111 -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_B200,dtype=fp8_w8a8,block_shape=[128,128].json +147 -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=512,device_name=NVIDIA_H200,dtype=fp8_w8a8.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=704,device_name=NVIDIA_RTX_PRO_6000_Blackwell_Workstation_Edition,dtype=fp8_w8a8.json +146 -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_B200.json +147 -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=129,N=704,device_name=NVIDIA_RTX_PRO_6000_Blackwell_Workstation_Edition,dtype=fp8_w8a8.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_B300_SXM6_AC,dtype=fp8_w8a8.json +147 -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=192,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +147 -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=384,device_name=NVIDIA_B300_SXM6_AC,dtype=fp8_w8a8.json +147 -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=160,N=768,device_name=NVIDIA_B300_SXM6_AC,dtype=fp8_w8a8.json +147 -0
- vllm/model_executor/layers/fused_moe/configs/E=20,N=1536,device_name=NVIDIA_RTX_PRO_6000_Blackwell_Server_Edition,dtype=fp8_w8a8.json +147 -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_B200,dtype=fp8_w8a8,block_shape=[128,128].json +147 -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,dtype=fp8_w8a8,block_shape=[128,128].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,dtype=fp8_w8a8,block_shape=[128,128].json +147 -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,dtype=fp8_w8a8,block_shape=[128,128].json +147 -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=512,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +147 -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 +444 -0
- vllm/model_executor/layers/fused_moe/cutlass_moe.py +1086 -0
- vllm/model_executor/layers/fused_moe/deep_gemm_moe.py +364 -0
- vllm/model_executor/layers/fused_moe/deep_gemm_utils.py +427 -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 +436 -0
- vllm/model_executor/layers/fused_moe/fallback.py +127 -0
- vllm/model_executor/layers/fused_moe/flashinfer_cutedsl_moe.py +338 -0
- vllm/model_executor/layers/fused_moe/flashinfer_cutlass_moe.py +310 -0
- vllm/model_executor/layers/fused_moe/flashinfer_cutlass_prepare_finalize.py +371 -0
- vllm/model_executor/layers/fused_moe/flashinfer_trtllm_moe.py +192 -0
- vllm/model_executor/layers/fused_moe/fused_batched_moe.py +1018 -0
- vllm/model_executor/layers/fused_moe/fused_marlin_moe.py +824 -0
- vllm/model_executor/layers/fused_moe/fused_moe.py +2638 -0
- vllm/model_executor/layers/fused_moe/fused_moe_method_base.py +119 -0
- vllm/model_executor/layers/fused_moe/fused_moe_modular_method.py +117 -0
- vllm/model_executor/layers/fused_moe/fused_moe_router.py +40 -0
- vllm/model_executor/layers/fused_moe/gpt_oss_triton_kernels_moe.py +531 -0
- vllm/model_executor/layers/fused_moe/layer.py +2169 -0
- vllm/model_executor/layers/fused_moe/modular_kernel.py +1251 -0
- vllm/model_executor/layers/fused_moe/moe_align_block_size.py +192 -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/oracle/__init__.py +2 -0
- vllm/model_executor/layers/fused_moe/oracle/fp8.py +358 -0
- vllm/model_executor/layers/fused_moe/oracle/nvfp4.py +280 -0
- vllm/model_executor/layers/fused_moe/pplx_prepare_finalize.py +362 -0
- vllm/model_executor/layers/fused_moe/prepare_finalize.py +87 -0
- vllm/model_executor/layers/fused_moe/rocm_aiter_fused_moe.py +347 -0
- vllm/model_executor/layers/fused_moe/routed_experts_capturer.py +324 -0
- vllm/model_executor/layers/fused_moe/routing_simulator.py +310 -0
- vllm/model_executor/layers/fused_moe/shared_fused_moe.py +96 -0
- vllm/model_executor/layers/fused_moe/topk_weight_and_reduce.py +171 -0
- vllm/model_executor/layers/fused_moe/triton_cutlass_moe.py +78 -0
- vllm/model_executor/layers/fused_moe/triton_deep_gemm_moe.py +75 -0
- vllm/model_executor/layers/fused_moe/trtllm_moe.py +144 -0
- vllm/model_executor/layers/fused_moe/unquantized_fused_moe_method.py +403 -0
- vllm/model_executor/layers/fused_moe/utils.py +382 -0
- vllm/model_executor/layers/fused_moe/zero_expert_fused_moe.py +189 -0
- vllm/model_executor/layers/kda.py +442 -0
- vllm/model_executor/layers/layernorm.py +451 -0
- vllm/model_executor/layers/lightning_attn.py +735 -0
- vllm/model_executor/layers/linear.py +1478 -0
- vllm/model_executor/layers/logits_processor.py +109 -0
- vllm/model_executor/layers/mamba/__init__.py +0 -0
- vllm/model_executor/layers/mamba/abstract.py +68 -0
- vllm/model_executor/layers/mamba/linear_attn.py +410 -0
- vllm/model_executor/layers/mamba/mamba_mixer.py +541 -0
- vllm/model_executor/layers/mamba/mamba_mixer2.py +936 -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 +586 -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 +254 -0
- vllm/model_executor/layers/mla.py +179 -0
- vllm/model_executor/layers/pooler/__init__.py +5 -0
- vllm/model_executor/layers/pooler/abstract.py +39 -0
- vllm/model_executor/layers/pooler/activations.py +162 -0
- vllm/model_executor/layers/pooler/common.py +32 -0
- vllm/model_executor/layers/pooler/seqwise/__init__.py +45 -0
- vllm/model_executor/layers/pooler/seqwise/heads.py +151 -0
- vllm/model_executor/layers/pooler/seqwise/methods.py +93 -0
- vllm/model_executor/layers/pooler/seqwise/poolers.py +127 -0
- vllm/model_executor/layers/pooler/special.py +128 -0
- vllm/model_executor/layers/pooler/tokwise/__init__.py +39 -0
- vllm/model_executor/layers/pooler/tokwise/heads.py +133 -0
- vllm/model_executor/layers/pooler/tokwise/methods.py +122 -0
- vllm/model_executor/layers/pooler/tokwise/poolers.py +127 -0
- vllm/model_executor/layers/quantization/__init__.py +195 -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 +795 -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 +631 -0
- vllm/model_executor/layers/quantization/compressed_tensors/__init__.py +3 -0
- vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors.py +982 -0
- vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors_moe.py +2368 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/__init__.py +37 -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_mxfp4.py +106 -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 +176 -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 +203 -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 +230 -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/cpu_wna16.py +299 -0
- vllm/model_executor/layers/quantization/deepspeedfp.py +218 -0
- vllm/model_executor/layers/quantization/experts_int8.py +209 -0
- vllm/model_executor/layers/quantization/fbgemm_fp8.py +195 -0
- vllm/model_executor/layers/quantization/fp8.py +1224 -0
- vllm/model_executor/layers/quantization/fp_quant.py +420 -0
- vllm/model_executor/layers/quantization/gguf.py +682 -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 +934 -0
- vllm/model_executor/layers/quantization/gptq_marlin_24.py +320 -0
- vllm/model_executor/layers/quantization/hqq_marlin.py +372 -0
- vllm/model_executor/layers/quantization/inc.py +65 -0
- vllm/model_executor/layers/quantization/input_quant_fp8.py +212 -0
- vllm/model_executor/layers/quantization/ipex_quant.py +403 -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 +113 -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/cpu.py +126 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/cutlass.py +130 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/dynamic_4bit.py +111 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/exllama.py +168 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/machete.py +159 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/marlin.py +200 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/xpu.py +97 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/ScaledMMLinearKernel.py +76 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/__init__.py +77 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/aiter.py +128 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/cpu.py +220 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/cutlass.py +147 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/triton.py +88 -0
- vllm/model_executor/layers/quantization/kv_cache.py +153 -0
- vllm/model_executor/layers/quantization/modelopt.py +1665 -0
- vllm/model_executor/layers/quantization/moe_wna16.py +518 -0
- vllm/model_executor/layers/quantization/mxfp4.py +1145 -0
- vllm/model_executor/layers/quantization/petit.py +319 -0
- vllm/model_executor/layers/quantization/ptpc_fp8.py +140 -0
- vllm/model_executor/layers/quantization/quark/__init__.py +0 -0
- vllm/model_executor/layers/quantization/quark/quark.py +570 -0
- vllm/model_executor/layers/quantization/quark/quark_moe.py +797 -0
- vllm/model_executor/layers/quantization/quark/schemes/__init__.py +9 -0
- vllm/model_executor/layers/quantization/quark/schemes/quark_ocp_mx.py +343 -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 +626 -0
- vllm/model_executor/layers/quantization/schema.py +90 -0
- vllm/model_executor/layers/quantization/torchao.py +380 -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=10240,K=5120,device_name=NVIDIA_L40S,dtype=fp8_w8a8,block_shape=[128,128].json +146 -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=5120,K=25600,device_name=NVIDIA_L40S,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=5120,K=8192,device_name=NVIDIA_L40S,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=51200,K=5120,device_name=NVIDIA_L40S,dtype=fp8_w8a8,block_shape=[128,128].json +146 -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 +514 -0
- vllm/model_executor/layers/quantization/utils/flashinfer_utils.py +370 -0
- vllm/model_executor/layers/quantization/utils/fp8_utils.py +1658 -0
- vllm/model_executor/layers/quantization/utils/gptq_utils.py +158 -0
- vllm/model_executor/layers/quantization/utils/int8_utils.py +477 -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 +720 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils_fp4.py +565 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils_fp8.py +378 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils_test.py +219 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils_test_24.py +467 -0
- vllm/model_executor/layers/quantization/utils/mxfp4_utils.py +189 -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 +67 -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 +767 -0
- vllm/model_executor/layers/quantization/utils/w8a8_utils.py +519 -0
- vllm/model_executor/layers/resampler.py +283 -0
- vllm/model_executor/layers/rotary_embedding/__init__.py +291 -0
- vllm/model_executor/layers/rotary_embedding/base.py +282 -0
- vllm/model_executor/layers/rotary_embedding/common.py +289 -0
- vllm/model_executor/layers/rotary_embedding/deepseek_scaling_rope.py +184 -0
- vllm/model_executor/layers/rotary_embedding/dual_chunk_rope.py +218 -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 +82 -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 +83 -0
- vllm/model_executor/layers/rotary_embedding/mrope.py +412 -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/xdrope.py +160 -0
- vllm/model_executor/layers/rotary_embedding/yarn_scaling_rope.py +84 -0
- vllm/model_executor/layers/utils.py +251 -0
- vllm/model_executor/layers/vocab_parallel_embedding.py +564 -0
- vllm/model_executor/model_loader/__init__.py +150 -0
- vllm/model_executor/model_loader/base_loader.py +71 -0
- vllm/model_executor/model_loader/bitsandbytes_loader.py +821 -0
- vllm/model_executor/model_loader/default_loader.py +304 -0
- vllm/model_executor/model_loader/dummy_loader.py +28 -0
- vllm/model_executor/model_loader/gguf_loader.py +371 -0
- vllm/model_executor/model_loader/online_quantization.py +275 -0
- vllm/model_executor/model_loader/runai_streamer_loader.py +115 -0
- vllm/model_executor/model_loader/sharded_state_loader.py +214 -0
- vllm/model_executor/model_loader/tensorizer.py +793 -0
- vllm/model_executor/model_loader/tensorizer_loader.py +151 -0
- vllm/model_executor/model_loader/utils.py +299 -0
- vllm/model_executor/model_loader/weight_utils.py +1183 -0
- vllm/model_executor/models/__init__.py +44 -0
- vllm/model_executor/models/adapters.py +592 -0
- vllm/model_executor/models/afmoe.py +697 -0
- vllm/model_executor/models/aimv2.py +248 -0
- vllm/model_executor/models/apertus.py +567 -0
- vllm/model_executor/models/arcee.py +428 -0
- vllm/model_executor/models/arctic.py +633 -0
- vllm/model_executor/models/aria.py +663 -0
- vllm/model_executor/models/audioflamingo3.py +639 -0
- vllm/model_executor/models/aya_vision.py +448 -0
- vllm/model_executor/models/bagel.py +591 -0
- vllm/model_executor/models/baichuan.py +493 -0
- vllm/model_executor/models/bailing_moe.py +643 -0
- vllm/model_executor/models/bamba.py +511 -0
- vllm/model_executor/models/bee.py +157 -0
- vllm/model_executor/models/bert.py +911 -0
- vllm/model_executor/models/bert_with_rope.py +729 -0
- vllm/model_executor/models/blip.py +350 -0
- vllm/model_executor/models/blip2.py +736 -0
- vllm/model_executor/models/bloom.py +390 -0
- vllm/model_executor/models/chameleon.py +1095 -0
- vllm/model_executor/models/chatglm.py +502 -0
- vllm/model_executor/models/clip.py +1045 -0
- vllm/model_executor/models/cohere2_vision.py +470 -0
- vllm/model_executor/models/commandr.py +469 -0
- vllm/model_executor/models/config.py +571 -0
- vllm/model_executor/models/dbrx.py +484 -0
- vllm/model_executor/models/deepencoder.py +679 -0
- vllm/model_executor/models/deepseek_eagle.py +253 -0
- vllm/model_executor/models/deepseek_mtp.py +447 -0
- vllm/model_executor/models/deepseek_ocr.py +601 -0
- vllm/model_executor/models/deepseek_v2.py +1727 -0
- vllm/model_executor/models/deepseek_vl2.py +642 -0
- vllm/model_executor/models/dots1.py +566 -0
- vllm/model_executor/models/dots_ocr.py +830 -0
- vllm/model_executor/models/ernie45.py +53 -0
- vllm/model_executor/models/ernie45_moe.py +755 -0
- vllm/model_executor/models/ernie45_vl.py +1702 -0
- vllm/model_executor/models/ernie45_vl_moe.py +801 -0
- vllm/model_executor/models/ernie_mtp.py +278 -0
- vllm/model_executor/models/exaone.py +524 -0
- vllm/model_executor/models/exaone4.py +518 -0
- vllm/model_executor/models/exaone_moe.py +579 -0
- vllm/model_executor/models/exaone_moe_mtp.py +255 -0
- vllm/model_executor/models/fairseq2_llama.py +154 -0
- vllm/model_executor/models/falcon.py +543 -0
- vllm/model_executor/models/falcon_h1.py +675 -0
- vllm/model_executor/models/flex_olmo.py +155 -0
- vllm/model_executor/models/fuyu.py +371 -0
- vllm/model_executor/models/gemma.py +425 -0
- vllm/model_executor/models/gemma2.py +435 -0
- vllm/model_executor/models/gemma3.py +520 -0
- vllm/model_executor/models/gemma3_mm.py +664 -0
- vllm/model_executor/models/gemma3n.py +1166 -0
- vllm/model_executor/models/gemma3n_audio_utils.py +57 -0
- vllm/model_executor/models/gemma3n_mm.py +820 -0
- vllm/model_executor/models/glm.py +24 -0
- vllm/model_executor/models/glm4.py +295 -0
- vllm/model_executor/models/glm4_1v.py +1823 -0
- vllm/model_executor/models/glm4_moe.py +725 -0
- vllm/model_executor/models/glm4_moe_mtp.py +365 -0
- vllm/model_executor/models/glm4v.py +783 -0
- vllm/model_executor/models/glmasr.py +1154 -0
- vllm/model_executor/models/glmasr_utils.py +188 -0
- vllm/model_executor/models/gpt2.py +385 -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 +340 -0
- vllm/model_executor/models/gpt_oss.py +745 -0
- vllm/model_executor/models/granite.py +475 -0
- vllm/model_executor/models/granite_speech.py +919 -0
- vllm/model_executor/models/granitemoe.py +561 -0
- vllm/model_executor/models/granitemoehybrid.py +703 -0
- vllm/model_executor/models/granitemoeshared.py +328 -0
- vllm/model_executor/models/gritlm.py +242 -0
- vllm/model_executor/models/grok1.py +803 -0
- vllm/model_executor/models/h2ovl.py +554 -0
- vllm/model_executor/models/hunyuan_v1.py +1042 -0
- vllm/model_executor/models/hunyuan_vision.py +1034 -0
- vllm/model_executor/models/hyperclovax_vision.py +1163 -0
- vllm/model_executor/models/idefics2_vision_model.py +427 -0
- vllm/model_executor/models/idefics3.py +734 -0
- vllm/model_executor/models/interfaces.py +1180 -0
- vllm/model_executor/models/interfaces_base.py +252 -0
- vllm/model_executor/models/intern_vit.py +454 -0
- vllm/model_executor/models/internlm2.py +451 -0
- vllm/model_executor/models/internlm2_ve.py +139 -0
- vllm/model_executor/models/interns1.py +828 -0
- vllm/model_executor/models/interns1_vit.py +433 -0
- vllm/model_executor/models/internvl.py +1436 -0
- vllm/model_executor/models/iquest_loopcoder.py +595 -0
- vllm/model_executor/models/isaac.py +1503 -0
- vllm/model_executor/models/jais.py +397 -0
- vllm/model_executor/models/jais2.py +508 -0
- vllm/model_executor/models/jamba.py +599 -0
- vllm/model_executor/models/jina_vl.py +145 -0
- vllm/model_executor/models/kanana_v.py +756 -0
- vllm/model_executor/models/keye.py +1709 -0
- vllm/model_executor/models/keye_vl1_5.py +726 -0
- vllm/model_executor/models/kimi_linear.py +659 -0
- vllm/model_executor/models/kimi_vl.py +577 -0
- vllm/model_executor/models/lfm2.py +515 -0
- vllm/model_executor/models/lfm2_moe.py +746 -0
- vllm/model_executor/models/lfm2_vl.py +732 -0
- vllm/model_executor/models/lightonocr.py +197 -0
- vllm/model_executor/models/llama.py +724 -0
- vllm/model_executor/models/llama4.py +860 -0
- vllm/model_executor/models/llama4_eagle.py +225 -0
- vllm/model_executor/models/llama_eagle.py +213 -0
- vllm/model_executor/models/llama_eagle3.py +375 -0
- vllm/model_executor/models/llava.py +879 -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 +922 -0
- vllm/model_executor/models/longcat_flash.py +767 -0
- vllm/model_executor/models/longcat_flash_mtp.py +348 -0
- vllm/model_executor/models/mamba.py +276 -0
- vllm/model_executor/models/mamba2.py +288 -0
- vllm/model_executor/models/medusa.py +179 -0
- vllm/model_executor/models/midashenglm.py +826 -0
- vllm/model_executor/models/mimo.py +188 -0
- vllm/model_executor/models/mimo_mtp.py +294 -0
- vllm/model_executor/models/mimo_v2_flash.py +718 -0
- vllm/model_executor/models/minicpm.py +660 -0
- vllm/model_executor/models/minicpm3.py +233 -0
- vllm/model_executor/models/minicpm_eagle.py +386 -0
- vllm/model_executor/models/minicpmo.py +768 -0
- vllm/model_executor/models/minicpmv.py +1742 -0
- vllm/model_executor/models/minimax_m2.py +552 -0
- vllm/model_executor/models/minimax_text_01.py +1008 -0
- vllm/model_executor/models/minimax_vl_01.py +395 -0
- vllm/model_executor/models/mistral3.py +638 -0
- vllm/model_executor/models/mistral_large_3.py +63 -0
- vllm/model_executor/models/mistral_large_3_eagle.py +137 -0
- vllm/model_executor/models/mixtral.py +599 -0
- vllm/model_executor/models/mllama4.py +1170 -0
- vllm/model_executor/models/mlp_speculator.py +235 -0
- vllm/model_executor/models/modernbert.py +458 -0
- vllm/model_executor/models/module_mapping.py +74 -0
- vllm/model_executor/models/molmo.py +1592 -0
- vllm/model_executor/models/moonvit.py +601 -0
- vllm/model_executor/models/mpt.py +335 -0
- vllm/model_executor/models/nano_nemotron_vl.py +1725 -0
- vllm/model_executor/models/nemotron.py +499 -0
- vllm/model_executor/models/nemotron_h.py +902 -0
- vllm/model_executor/models/nemotron_nas.py +474 -0
- vllm/model_executor/models/nemotron_parse.py +958 -0
- vllm/model_executor/models/nemotron_vl.py +651 -0
- vllm/model_executor/models/nvlm_d.py +216 -0
- vllm/model_executor/models/olmo.py +412 -0
- vllm/model_executor/models/olmo2.py +454 -0
- vllm/model_executor/models/olmoe.py +498 -0
- vllm/model_executor/models/opencua.py +262 -0
- vllm/model_executor/models/openpangu.py +1378 -0
- vllm/model_executor/models/openpangu_mtp.py +265 -0
- vllm/model_executor/models/opt.py +426 -0
- vllm/model_executor/models/orion.py +365 -0
- vllm/model_executor/models/ouro.py +507 -0
- vllm/model_executor/models/ovis.py +557 -0
- vllm/model_executor/models/ovis2_5.py +661 -0
- vllm/model_executor/models/paddleocr_vl.py +1261 -0
- vllm/model_executor/models/paligemma.py +429 -0
- vllm/model_executor/models/persimmon.py +373 -0
- vllm/model_executor/models/phi.py +363 -0
- vllm/model_executor/models/phi3.py +18 -0
- vllm/model_executor/models/phi3v.py +729 -0
- vllm/model_executor/models/phi4mm.py +1250 -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 +671 -0
- vllm/model_executor/models/pixtral.py +1437 -0
- vllm/model_executor/models/plamo2.py +993 -0
- vllm/model_executor/models/plamo3.py +437 -0
- vllm/model_executor/models/qwen.py +377 -0
- vllm/model_executor/models/qwen2.py +600 -0
- vllm/model_executor/models/qwen2_5_omni_thinker.py +1200 -0
- vllm/model_executor/models/qwen2_5_vl.py +1598 -0
- vllm/model_executor/models/qwen2_audio.py +478 -0
- vllm/model_executor/models/qwen2_moe.py +604 -0
- vllm/model_executor/models/qwen2_rm.py +120 -0
- vllm/model_executor/models/qwen2_vl.py +1588 -0
- vllm/model_executor/models/qwen3.py +331 -0
- vllm/model_executor/models/qwen3_moe.py +752 -0
- vllm/model_executor/models/qwen3_next.py +1410 -0
- vllm/model_executor/models/qwen3_next_mtp.py +293 -0
- vllm/model_executor/models/qwen3_omni_moe_thinker.py +1814 -0
- vllm/model_executor/models/qwen3_vl.py +2120 -0
- vllm/model_executor/models/qwen3_vl_moe.py +474 -0
- vllm/model_executor/models/qwen_vl.py +821 -0
- vllm/model_executor/models/radio.py +573 -0
- vllm/model_executor/models/registry.py +1218 -0
- vllm/model_executor/models/roberta.py +239 -0
- vllm/model_executor/models/rvl.py +107 -0
- vllm/model_executor/models/seed_oss.py +492 -0
- vllm/model_executor/models/siglip.py +1259 -0
- vllm/model_executor/models/siglip2.py +495 -0
- vllm/model_executor/models/siglip2navit.py +660 -0
- vllm/model_executor/models/skyworkr1v.py +951 -0
- vllm/model_executor/models/smolvlm.py +38 -0
- vllm/model_executor/models/solar.py +484 -0
- vllm/model_executor/models/stablelm.py +354 -0
- vllm/model_executor/models/starcoder2.py +365 -0
- vllm/model_executor/models/step3_text.py +554 -0
- vllm/model_executor/models/step3_vl.py +1147 -0
- vllm/model_executor/models/swin.py +500 -0
- vllm/model_executor/models/tarsier.py +624 -0
- vllm/model_executor/models/telechat2.py +153 -0
- vllm/model_executor/models/teleflm.py +78 -0
- vllm/model_executor/models/terratorch.py +318 -0
- vllm/model_executor/models/transformers/__init__.py +127 -0
- vllm/model_executor/models/transformers/base.py +523 -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 +329 -0
- vllm/model_executor/models/transformers/multimodal.py +441 -0
- vllm/model_executor/models/transformers/pooling.py +102 -0
- vllm/model_executor/models/transformers/utils.py +253 -0
- vllm/model_executor/models/ultravox.py +786 -0
- vllm/model_executor/models/utils.py +832 -0
- vllm/model_executor/models/vision.py +546 -0
- vllm/model_executor/models/voxtral.py +867 -0
- vllm/model_executor/models/voxtral_streaming.py +304 -0
- vllm/model_executor/models/whisper.py +993 -0
- vllm/model_executor/models/whisper_utils.py +299 -0
- vllm/model_executor/models/zamba2.py +986 -0
- vllm/model_executor/parameter.py +642 -0
- vllm/model_executor/utils.py +113 -0
- vllm/model_executor/warmup/__init__.py +0 -0
- vllm/model_executor/warmup/deep_gemm_warmup.py +371 -0
- vllm/model_executor/warmup/kernel_warmup.py +97 -0
- vllm/model_inspection.py +136 -0
- vllm/multimodal/__init__.py +38 -0
- vllm/multimodal/audio.py +287 -0
- vllm/multimodal/base.py +60 -0
- vllm/multimodal/cache.py +829 -0
- vllm/multimodal/evs.py +294 -0
- vllm/multimodal/hasher.py +123 -0
- vllm/multimodal/image.py +155 -0
- vllm/multimodal/inputs.py +1027 -0
- vllm/multimodal/parse.py +674 -0
- vllm/multimodal/processing.py +2469 -0
- vllm/multimodal/profiling.py +351 -0
- vllm/multimodal/registry.py +375 -0
- vllm/multimodal/utils.py +550 -0
- vllm/multimodal/video.py +512 -0
- vllm/outputs.py +347 -0
- vllm/platforms/__init__.py +277 -0
- vllm/platforms/cpu.py +423 -0
- vllm/platforms/cuda.py +618 -0
- vllm/platforms/interface.py +707 -0
- vllm/platforms/rocm.py +586 -0
- vllm/platforms/tpu.py +20 -0
- vllm/platforms/xpu.py +262 -0
- vllm/plugins/__init__.py +81 -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 +229 -0
- vllm/profiler/__init__.py +0 -0
- vllm/profiler/layerwise_profile.py +392 -0
- vllm/profiler/utils.py +151 -0
- vllm/profiler/wrapper.py +241 -0
- vllm/py.typed +2 -0
- vllm/ray/__init__.py +0 -0
- vllm/ray/lazy_utils.py +30 -0
- vllm/ray/ray_env.py +79 -0
- vllm/reasoning/__init__.py +96 -0
- vllm/reasoning/abs_reasoning_parsers.py +318 -0
- vllm/reasoning/basic_parsers.py +175 -0
- vllm/reasoning/deepseek_r1_reasoning_parser.py +67 -0
- vllm/reasoning/deepseek_v3_reasoning_parser.py +69 -0
- vllm/reasoning/ernie45_reasoning_parser.py +165 -0
- vllm/reasoning/glm4_moe_reasoning_parser.py +13 -0
- vllm/reasoning/gptoss_reasoning_parser.py +173 -0
- vllm/reasoning/granite_reasoning_parser.py +363 -0
- vllm/reasoning/holo2_reasoning_parser.py +89 -0
- vllm/reasoning/hunyuan_a13b_reasoning_parser.py +237 -0
- vllm/reasoning/identity_reasoning_parser.py +63 -0
- vllm/reasoning/minimax_m2_reasoning_parser.py +110 -0
- vllm/reasoning/mistral_reasoning_parser.py +154 -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 +113 -0
- vllm/sampling_params.py +629 -0
- vllm/scalar_type.py +355 -0
- vllm/scripts.py +17 -0
- vllm/sequence.py +64 -0
- vllm/tasks.py +13 -0
- vllm/third_party/__init__.py +0 -0
- vllm/third_party/pynvml.py +6140 -0
- vllm/tokenizers/__init__.py +18 -0
- vllm/tokenizers/deepseek_v32.py +187 -0
- vllm/tokenizers/deepseek_v32_encoding.py +463 -0
- vllm/tokenizers/detokenizer_utils.py +198 -0
- vllm/tokenizers/grok2.py +443 -0
- vllm/tokenizers/hf.py +119 -0
- vllm/tokenizers/mistral.py +543 -0
- vllm/tokenizers/protocol.py +123 -0
- vllm/tokenizers/registry.py +238 -0
- vllm/tool_parsers/__init__.py +158 -0
- vllm/tool_parsers/abstract_tool_parser.py +274 -0
- vllm/tool_parsers/deepseekv31_tool_parser.py +388 -0
- vllm/tool_parsers/deepseekv32_tool_parser.py +591 -0
- vllm/tool_parsers/deepseekv3_tool_parser.py +390 -0
- vllm/tool_parsers/ernie45_tool_parser.py +210 -0
- vllm/tool_parsers/functiongemma_tool_parser.py +321 -0
- vllm/tool_parsers/gigachat3_tool_parser.py +190 -0
- vllm/tool_parsers/glm47_moe_tool_parser.py +23 -0
- vllm/tool_parsers/glm4_moe_tool_parser.py +215 -0
- vllm/tool_parsers/granite_20b_fc_tool_parser.py +273 -0
- vllm/tool_parsers/granite_tool_parser.py +253 -0
- vllm/tool_parsers/hermes_tool_parser.py +495 -0
- vllm/tool_parsers/hunyuan_a13b_tool_parser.py +420 -0
- vllm/tool_parsers/internlm2_tool_parser.py +227 -0
- vllm/tool_parsers/jamba_tool_parser.py +323 -0
- vllm/tool_parsers/kimi_k2_tool_parser.py +598 -0
- vllm/tool_parsers/llama4_pythonic_tool_parser.py +341 -0
- vllm/tool_parsers/llama_tool_parser.py +324 -0
- vllm/tool_parsers/longcat_tool_parser.py +37 -0
- vllm/tool_parsers/minimax_m2_tool_parser.py +776 -0
- vllm/tool_parsers/minimax_tool_parser.py +849 -0
- vllm/tool_parsers/mistral_tool_parser.py +612 -0
- vllm/tool_parsers/olmo3_tool_parser.py +366 -0
- vllm/tool_parsers/openai_tool_parser.py +111 -0
- vllm/tool_parsers/phi4mini_tool_parser.py +120 -0
- vllm/tool_parsers/pythonic_tool_parser.py +332 -0
- vllm/tool_parsers/qwen3coder_tool_parser.py +781 -0
- vllm/tool_parsers/qwen3xml_tool_parser.py +1316 -0
- vllm/tool_parsers/seed_oss_tool_parser.py +744 -0
- vllm/tool_parsers/step3_tool_parser.py +303 -0
- vllm/tool_parsers/utils.py +229 -0
- vllm/tool_parsers/xlam_tool_parser.py +556 -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 +1169 -0
- vllm/transformers_utils/config_parser_base.py +20 -0
- vllm/transformers_utils/configs/__init__.py +106 -0
- vllm/transformers_utils/configs/afmoe.py +87 -0
- vllm/transformers_utils/configs/arctic.py +216 -0
- vllm/transformers_utils/configs/bagel.py +53 -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 +90 -0
- vllm/transformers_utils/configs/falcon.py +89 -0
- vllm/transformers_utils/configs/flex_olmo.py +82 -0
- vllm/transformers_utils/configs/hunyuan_vl.py +322 -0
- vllm/transformers_utils/configs/isaac.py +100 -0
- vllm/transformers_utils/configs/jais.py +243 -0
- vllm/transformers_utils/configs/kimi_linear.py +148 -0
- vllm/transformers_utils/configs/kimi_vl.py +38 -0
- vllm/transformers_utils/configs/lfm2_moe.py +163 -0
- vllm/transformers_utils/configs/medusa.py +65 -0
- vllm/transformers_utils/configs/midashenglm.py +103 -0
- vllm/transformers_utils/configs/mistral.py +263 -0
- vllm/transformers_utils/configs/mlp_speculator.py +69 -0
- vllm/transformers_utils/configs/moonvit.py +33 -0
- vllm/transformers_utils/configs/nemotron.py +220 -0
- vllm/transformers_utils/configs/nemotron_h.py +284 -0
- vllm/transformers_utils/configs/olmo3.py +83 -0
- vllm/transformers_utils/configs/ovis.py +182 -0
- vllm/transformers_utils/configs/qwen3_next.py +277 -0
- vllm/transformers_utils/configs/radio.py +98 -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 +178 -0
- vllm/transformers_utils/configs/tarsier2.py +24 -0
- vllm/transformers_utils/configs/ultravox.py +120 -0
- vllm/transformers_utils/dynamic_module.py +70 -0
- vllm/transformers_utils/gguf_utils.py +280 -0
- vllm/transformers_utils/model_arch_config_convertor.py +402 -0
- vllm/transformers_utils/processor.py +424 -0
- vllm/transformers_utils/processors/__init__.py +25 -0
- vllm/transformers_utils/processors/bagel.py +78 -0
- vllm/transformers_utils/processors/deepseek_ocr.py +438 -0
- vllm/transformers_utils/processors/deepseek_vl2.py +406 -0
- vllm/transformers_utils/processors/hunyuan_vl.py +233 -0
- vllm/transformers_utils/processors/hunyuan_vl_image.py +477 -0
- vllm/transformers_utils/processors/ovis.py +453 -0
- vllm/transformers_utils/processors/ovis2_5.py +468 -0
- vllm/transformers_utils/repo_utils.py +287 -0
- vllm/transformers_utils/runai_utils.py +102 -0
- vllm/transformers_utils/s3_utils.py +95 -0
- vllm/transformers_utils/tokenizer.py +19 -0
- vllm/transformers_utils/utils.py +112 -0
- vllm/triton_utils/__init__.py +20 -0
- vllm/triton_utils/importing.py +103 -0
- vllm/usage/__init__.py +0 -0
- vllm/usage/usage_lib.py +278 -0
- vllm/utils/__init__.py +36 -0
- vllm/utils/argparse_utils.py +491 -0
- vllm/utils/async_utils.py +310 -0
- vllm/utils/cache.py +214 -0
- vllm/utils/collection_utils.py +112 -0
- vllm/utils/counter.py +45 -0
- vllm/utils/deep_gemm.py +424 -0
- vllm/utils/flashinfer.py +602 -0
- vllm/utils/func_utils.py +236 -0
- vllm/utils/gc_utils.py +151 -0
- vllm/utils/hashing.py +117 -0
- vllm/utils/import_utils.py +438 -0
- vllm/utils/jsontree.py +158 -0
- vllm/utils/math_utils.py +32 -0
- vllm/utils/mem_constants.py +13 -0
- vllm/utils/mem_utils.py +285 -0
- vllm/utils/nccl.py +64 -0
- vllm/utils/network_utils.py +331 -0
- vllm/utils/nvtx_pytorch_hooks.py +286 -0
- vllm/utils/platform_utils.py +59 -0
- vllm/utils/profiling.py +56 -0
- vllm/utils/registry.py +51 -0
- vllm/utils/serial_utils.py +214 -0
- vllm/utils/system_utils.py +296 -0
- vllm/utils/tensor_schema.py +255 -0
- vllm/utils/torch_utils.py +781 -0
- vllm/v1/__init__.py +0 -0
- vllm/v1/attention/__init__.py +0 -0
- vllm/v1/attention/backend.py +736 -0
- vllm/v1/attention/backends/__init__.py +0 -0
- vllm/v1/attention/backends/cpu_attn.py +501 -0
- vllm/v1/attention/backends/fa_utils.py +126 -0
- vllm/v1/attention/backends/flash_attn.py +1092 -0
- vllm/v1/attention/backends/flash_attn_diffkv.py +277 -0
- vllm/v1/attention/backends/flashinfer.py +1713 -0
- vllm/v1/attention/backends/flex_attention.py +1024 -0
- vllm/v1/attention/backends/gdn_attn.py +382 -0
- vllm/v1/attention/backends/linear_attn.py +77 -0
- vllm/v1/attention/backends/mamba1_attn.py +28 -0
- vllm/v1/attention/backends/mamba2_attn.py +256 -0
- vllm/v1/attention/backends/mamba_attn.py +313 -0
- vllm/v1/attention/backends/mla/__init__.py +0 -0
- vllm/v1/attention/backends/mla/aiter_triton_mla.py +66 -0
- vllm/v1/attention/backends/mla/common.py +2156 -0
- vllm/v1/attention/backends/mla/cutlass_mla.py +278 -0
- vllm/v1/attention/backends/mla/flashattn_mla.py +348 -0
- vllm/v1/attention/backends/mla/flashinfer_mla.py +175 -0
- vllm/v1/attention/backends/mla/flashmla.py +321 -0
- vllm/v1/attention/backends/mla/flashmla_sparse.py +1021 -0
- vllm/v1/attention/backends/mla/indexer.py +345 -0
- vllm/v1/attention/backends/mla/rocm_aiter_mla.py +284 -0
- vllm/v1/attention/backends/mla/rocm_aiter_mla_sparse.py +321 -0
- vllm/v1/attention/backends/mla/triton_mla.py +171 -0
- vllm/v1/attention/backends/registry.py +258 -0
- vllm/v1/attention/backends/rocm_aiter_fa.py +1000 -0
- vllm/v1/attention/backends/rocm_aiter_unified_attn.py +206 -0
- vllm/v1/attention/backends/rocm_attn.py +405 -0
- vllm/v1/attention/backends/short_conv_attn.py +26 -0
- vllm/v1/attention/backends/tree_attn.py +430 -0
- vllm/v1/attention/backends/triton_attn.py +578 -0
- vllm/v1/attention/backends/utils.py +978 -0
- vllm/v1/attention/ops/__init__.py +0 -0
- vllm/v1/attention/ops/chunked_prefill_paged_decode.py +459 -0
- vllm/v1/attention/ops/common.py +469 -0
- vllm/v1/attention/ops/flashmla.py +254 -0
- vllm/v1/attention/ops/merge_attn_states.py +47 -0
- vllm/v1/attention/ops/paged_attn.py +51 -0
- vllm/v1/attention/ops/pallas_kv_cache_update.py +130 -0
- vllm/v1/attention/ops/prefix_prefill.py +862 -0
- vllm/v1/attention/ops/rocm_aiter_mla_sparse.py +210 -0
- vllm/v1/attention/ops/triton_decode_attention.py +709 -0
- vllm/v1/attention/ops/triton_merge_attn_states.py +116 -0
- vllm/v1/attention/ops/triton_prefill_attention.py +272 -0
- vllm/v1/attention/ops/triton_reshape_and_cache_flash.py +395 -0
- vllm/v1/attention/ops/triton_unified_attention.py +1088 -0
- vllm/v1/attention/ops/vit_attn_wrappers.py +185 -0
- vllm/v1/attention/selector.py +145 -0
- vllm/v1/core/__init__.py +0 -0
- vllm/v1/core/block_pool.py +489 -0
- vllm/v1/core/encoder_cache_manager.py +402 -0
- vllm/v1/core/kv_cache_coordinator.py +560 -0
- vllm/v1/core/kv_cache_manager.py +485 -0
- vllm/v1/core/kv_cache_metrics.py +96 -0
- vllm/v1/core/kv_cache_utils.py +1642 -0
- vllm/v1/core/sched/__init__.py +0 -0
- vllm/v1/core/sched/async_scheduler.py +66 -0
- vllm/v1/core/sched/interface.py +205 -0
- vllm/v1/core/sched/output.py +261 -0
- vllm/v1/core/sched/request_queue.py +208 -0
- vllm/v1/core/sched/scheduler.py +1936 -0
- vllm/v1/core/sched/utils.py +64 -0
- vllm/v1/core/single_type_kv_cache_manager.py +926 -0
- vllm/v1/cudagraph_dispatcher.py +183 -0
- vllm/v1/engine/__init__.py +224 -0
- vllm/v1/engine/async_llm.py +874 -0
- vllm/v1/engine/coordinator.py +396 -0
- vllm/v1/engine/core.py +1614 -0
- vllm/v1/engine/core_client.py +1422 -0
- vllm/v1/engine/detokenizer.py +351 -0
- vllm/v1/engine/exceptions.py +18 -0
- vllm/v1/engine/input_processor.py +713 -0
- vllm/v1/engine/llm_engine.py +415 -0
- vllm/v1/engine/logprobs.py +245 -0
- vllm/v1/engine/output_processor.py +715 -0
- vllm/v1/engine/parallel_sampling.py +150 -0
- vllm/v1/engine/utils.py +1086 -0
- vllm/v1/executor/__init__.py +6 -0
- vllm/v1/executor/abstract.py +352 -0
- vllm/v1/executor/multiproc_executor.py +888 -0
- vllm/v1/executor/ray_distributed_executor.py +8 -0
- vllm/v1/executor/ray_executor.py +623 -0
- vllm/v1/executor/ray_utils.py +468 -0
- vllm/v1/executor/uniproc_executor.py +186 -0
- vllm/v1/kv_cache_interface.py +485 -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 +109 -0
- vllm/v1/kv_offload/factory.py +58 -0
- vllm/v1/kv_offload/lru_manager.py +139 -0
- vllm/v1/kv_offload/mediums.py +39 -0
- vllm/v1/kv_offload/spec.py +70 -0
- vllm/v1/kv_offload/worker/__init__.py +0 -0
- vllm/v1/kv_offload/worker/cpu_gpu.py +287 -0
- vllm/v1/kv_offload/worker/worker.py +163 -0
- vllm/v1/metrics/__init__.py +0 -0
- vllm/v1/metrics/loggers.py +1320 -0
- vllm/v1/metrics/perf.py +1244 -0
- vllm/v1/metrics/prometheus.py +82 -0
- vllm/v1/metrics/ray_wrappers.py +194 -0
- vllm/v1/metrics/reader.py +257 -0
- vllm/v1/metrics/stats.py +440 -0
- vllm/v1/outputs.py +242 -0
- vllm/v1/pool/__init__.py +0 -0
- vllm/v1/pool/metadata.py +124 -0
- vllm/v1/request.py +281 -0
- vllm/v1/sample/__init__.py +0 -0
- vllm/v1/sample/logits_processor/__init__.py +352 -0
- vllm/v1/sample/logits_processor/builtin.py +278 -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 +57 -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 +388 -0
- vllm/v1/sample/rejection_sampler.py +822 -0
- vllm/v1/sample/sampler.py +319 -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 +514 -0
- vllm/v1/spec_decode/__init__.py +0 -0
- vllm/v1/spec_decode/eagle.py +1346 -0
- vllm/v1/spec_decode/medusa.py +73 -0
- vllm/v1/spec_decode/metadata.py +66 -0
- vllm/v1/spec_decode/metrics.py +225 -0
- vllm/v1/spec_decode/ngram_proposer.py +281 -0
- vllm/v1/spec_decode/suffix_decoding.py +95 -0
- vllm/v1/spec_decode/utils.py +109 -0
- vllm/v1/structured_output/__init__.py +337 -0
- vllm/v1/structured_output/backend_guidance.py +291 -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 +378 -0
- vllm/v1/structured_output/request.py +91 -0
- vllm/v1/structured_output/utils.py +457 -0
- vllm/v1/utils.py +466 -0
- vllm/v1/worker/__init__.py +0 -0
- vllm/v1/worker/block_table.py +343 -0
- vllm/v1/worker/cp_utils.py +42 -0
- vllm/v1/worker/cpu_model_runner.py +122 -0
- vllm/v1/worker/cpu_worker.py +192 -0
- vllm/v1/worker/dp_utils.py +240 -0
- vllm/v1/worker/ec_connector_model_runner_mixin.py +85 -0
- vllm/v1/worker/gpu/README.md +4 -0
- vllm/v1/worker/gpu/__init__.py +0 -0
- vllm/v1/worker/gpu/async_utils.py +98 -0
- vllm/v1/worker/gpu/attn_utils.py +183 -0
- vllm/v1/worker/gpu/block_table.py +222 -0
- vllm/v1/worker/gpu/buffer_utils.py +224 -0
- vllm/v1/worker/gpu/cudagraph_utils.py +264 -0
- vllm/v1/worker/gpu/dp_utils.py +31 -0
- vllm/v1/worker/gpu/input_batch.py +526 -0
- vllm/v1/worker/gpu/metrics/__init__.py +0 -0
- vllm/v1/worker/gpu/metrics/logits.py +42 -0
- vllm/v1/worker/gpu/mm/__init__.py +0 -0
- vllm/v1/worker/gpu/mm/mrope_utils.py +127 -0
- vllm/v1/worker/gpu/model_runner.py +1005 -0
- vllm/v1/worker/gpu/sample/__init__.py +0 -0
- vllm/v1/worker/gpu/sample/gumbel.py +106 -0
- vllm/v1/worker/gpu/sample/logit_bias.py +270 -0
- vllm/v1/worker/gpu/sample/logprob.py +167 -0
- vllm/v1/worker/gpu/sample/metadata.py +79 -0
- vllm/v1/worker/gpu/sample/min_p.py +58 -0
- vllm/v1/worker/gpu/sample/output.py +14 -0
- vllm/v1/worker/gpu/sample/penalties.py +155 -0
- vllm/v1/worker/gpu/sample/sampler.py +88 -0
- vllm/v1/worker/gpu/spec_decode/__init__.py +18 -0
- vllm/v1/worker/gpu/spec_decode/eagle.py +566 -0
- vllm/v1/worker/gpu/spec_decode/eagle_cudagraph.py +115 -0
- vllm/v1/worker/gpu/spec_decode/rejection_sample.py +71 -0
- vllm/v1/worker/gpu/states.py +282 -0
- vllm/v1/worker/gpu/structured_outputs.py +100 -0
- vllm/v1/worker/gpu_input_batch.py +1030 -0
- vllm/v1/worker/gpu_model_runner.py +5761 -0
- vllm/v1/worker/gpu_ubatch_wrapper.py +475 -0
- vllm/v1/worker/gpu_worker.py +968 -0
- vllm/v1/worker/kv_connector_model_runner_mixin.py +300 -0
- vllm/v1/worker/lora_model_runner_mixin.py +225 -0
- vllm/v1/worker/tpu_input_batch.py +574 -0
- vllm/v1/worker/tpu_worker.py +18 -0
- vllm/v1/worker/ubatch_utils.py +112 -0
- vllm/v1/worker/ubatching.py +242 -0
- vllm/v1/worker/utils.py +400 -0
- vllm/v1/worker/worker_base.py +372 -0
- vllm/v1/worker/workspace.py +253 -0
- vllm/v1/worker/xpu_model_runner.py +48 -0
- vllm/v1/worker/xpu_worker.py +174 -0
- vllm/version.py +39 -0
- vllm/vllm_flash_attn/.gitkeep +0 -0
- vllm_cpu_avx512bf16-0.14.0.dist-info/METADATA +348 -0
- vllm_cpu_avx512bf16-0.14.0.dist-info/RECORD +1712 -0
- vllm_cpu_avx512bf16-0.14.0.dist-info/WHEEL +5 -0
- vllm_cpu_avx512bf16-0.14.0.dist-info/entry_points.txt +5 -0
- vllm_cpu_avx512bf16-0.14.0.dist-info/top_level.txt +1 -0
vllm/v1/metrics/perf.py
ADDED
|
@@ -0,0 +1,1244 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Analytic flops/memory estimation module for transformer components,
|
|
6
|
+
to help derive MFU (Model Flops Utilization) stats for a running model.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import json
|
|
10
|
+
import time
|
|
11
|
+
from abc import ABC, abstractmethod
|
|
12
|
+
from collections.abc import Iterable
|
|
13
|
+
from dataclasses import asdict, dataclass
|
|
14
|
+
from typing import Any, Protocol
|
|
15
|
+
|
|
16
|
+
import torch
|
|
17
|
+
from pydantic import BaseModel, Field, ValidationError, model_validator
|
|
18
|
+
from typing_extensions import Self
|
|
19
|
+
|
|
20
|
+
import vllm.envs as envs
|
|
21
|
+
from vllm.config import VllmConfig
|
|
22
|
+
from vllm.logger import init_logger
|
|
23
|
+
from vllm.utils.torch_utils import (
|
|
24
|
+
STR_DTYPE_TO_TORCH_DTYPE,
|
|
25
|
+
get_dtype_size,
|
|
26
|
+
get_kv_cache_torch_dtype,
|
|
27
|
+
)
|
|
28
|
+
from vllm.v1.core.sched.output import SchedulerOutput
|
|
29
|
+
|
|
30
|
+
logger = init_logger(__name__)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class InvalidComponent(Exception):
|
|
34
|
+
"""
|
|
35
|
+
Custom exception to indicate that a certain ComponentMetric is not
|
|
36
|
+
applicable to the given VllmConfig.
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
#### Basic Data Types ####
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
@dataclass
|
|
46
|
+
class DebugPerfStats:
|
|
47
|
+
## Stats for debugging the metrics calculation
|
|
48
|
+
calc_duration: float = 0.0 # time spent calculating these stats
|
|
49
|
+
num_prefill_requests: int = 0
|
|
50
|
+
num_decode_requests: int = 0
|
|
51
|
+
context_breakdown: dict[str, int] | None = None
|
|
52
|
+
num_flops_per_gpu_breakdown: dict[str, int] | None = None
|
|
53
|
+
num_read_bytes_per_gpu_breakdown: dict[str, int] | None = None
|
|
54
|
+
num_write_bytes_per_gpu_breakdown: dict[str, int] | None = None
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
@dataclass
|
|
58
|
+
class PerfStats:
|
|
59
|
+
num_flops_per_gpu: int = 0
|
|
60
|
+
num_read_bytes_per_gpu: int = 0
|
|
61
|
+
num_write_bytes_per_gpu: int = 0
|
|
62
|
+
debug_stats: DebugPerfStats | None = None
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@dataclass
|
|
66
|
+
class ExecutionContext:
|
|
67
|
+
"""
|
|
68
|
+
Represents an execution context for a batch of requests.
|
|
69
|
+
|
|
70
|
+
This class aggregates statistics across multiple requests in a batch,
|
|
71
|
+
separately tracking prefill and decode phases.
|
|
72
|
+
|
|
73
|
+
Example)
|
|
74
|
+
- Batch with one full prefill (2048 tokens) and one decode (1 token, 8192 context):
|
|
75
|
+
ctx = ExecutionContext()
|
|
76
|
+
ctx.add(2048, 2048, is_prefill=True)
|
|
77
|
+
ctx.add(1, 8192, is_prefill=False)
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
# Prefill phase statistics
|
|
81
|
+
num_prefill_requests: int = 0
|
|
82
|
+
prefill_num_tokens: int = 0 # sum of num_tokens for prefill requests
|
|
83
|
+
prefill_context_len: int = 0 # sum of context_len for prefill requests
|
|
84
|
+
prefill_token_context_product: int = 0 # sum of (num_tokens * context_len)
|
|
85
|
+
|
|
86
|
+
# Decode phase statistics
|
|
87
|
+
num_decode_requests: int = 0
|
|
88
|
+
decode_num_tokens: int = 0 # sum of num_tokens for decode requests
|
|
89
|
+
decode_context_len: int = 0 # sum of context_len for decode requests
|
|
90
|
+
decode_token_context_product: int = 0 # sum of (num_tokens * context_len)
|
|
91
|
+
|
|
92
|
+
def add(self, num_tokens: int, context_len: int, is_prefill: bool) -> None:
|
|
93
|
+
"""Add a single request's statistics to this batch context."""
|
|
94
|
+
if is_prefill:
|
|
95
|
+
self.num_prefill_requests += 1
|
|
96
|
+
self.prefill_num_tokens += num_tokens
|
|
97
|
+
self.prefill_context_len += context_len
|
|
98
|
+
self.prefill_token_context_product += num_tokens * context_len
|
|
99
|
+
else:
|
|
100
|
+
self.num_decode_requests += 1
|
|
101
|
+
self.decode_num_tokens += num_tokens
|
|
102
|
+
self.decode_context_len += context_len
|
|
103
|
+
self.decode_token_context_product += num_tokens * context_len
|
|
104
|
+
|
|
105
|
+
def total_num_tokens(self) -> int:
|
|
106
|
+
"""Total number of tokens across all requests in the batch."""
|
|
107
|
+
return self.prefill_num_tokens + self.decode_num_tokens
|
|
108
|
+
|
|
109
|
+
def total_token_context_product(self) -> int:
|
|
110
|
+
"""Total sum of (num_tokens * context_len) across all requests."""
|
|
111
|
+
return self.prefill_token_context_product + self.decode_token_context_product
|
|
112
|
+
|
|
113
|
+
@classmethod
|
|
114
|
+
def from_single_request(
|
|
115
|
+
cls, num_tokens: int, context_len: int, is_prefill: bool
|
|
116
|
+
) -> "ExecutionContext":
|
|
117
|
+
"""Create an ExecutionContext from a single request.
|
|
118
|
+
|
|
119
|
+
This is a convenience method primarily for testing.
|
|
120
|
+
"""
|
|
121
|
+
ctx = cls()
|
|
122
|
+
ctx.add(num_tokens, context_len, is_prefill)
|
|
123
|
+
return ctx
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
class ParsedArgs:
|
|
127
|
+
"""
|
|
128
|
+
Syntactic sugar so that Parsers can use dot notations
|
|
129
|
+
to access/update the parsed arguments.
|
|
130
|
+
|
|
131
|
+
e.g.)
|
|
132
|
+
args = ParsedArgs()
|
|
133
|
+
args.x = 3
|
|
134
|
+
args.y = args.x + 1
|
|
135
|
+
"""
|
|
136
|
+
|
|
137
|
+
def __getattr__(self, name: str) -> Any:
|
|
138
|
+
raise AttributeError(f"'{type(self).__name__}' has no attribute '{name}'")
|
|
139
|
+
|
|
140
|
+
def __setattr__(self, name: str, value: Any) -> None:
|
|
141
|
+
object.__setattr__(self, name, value)
|
|
142
|
+
|
|
143
|
+
def model_dump(self) -> dict[str, Any]:
|
|
144
|
+
return vars(self).copy()
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
#### Abstract ####
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
class Parser(Protocol):
|
|
151
|
+
def parse(self, args: ParsedArgs, vllm_config: VllmConfig) -> ParsedArgs:
|
|
152
|
+
"""
|
|
153
|
+
Parse the vllm config and update the current ParsedArgs and pass it on.
|
|
154
|
+
If the parser isn't applicable to the vllm_config, it will do nothing.
|
|
155
|
+
"""
|
|
156
|
+
...
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
class ParserChain:
|
|
160
|
+
"""
|
|
161
|
+
Applies chain of parser in a sequential order.
|
|
162
|
+
Later parsers might overwrite results from previous parsers,
|
|
163
|
+
so parsers should be chained in the appropriate order if they
|
|
164
|
+
are not mutually exclusive.
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
def __init__(self, *parsers: Parser) -> None:
|
|
168
|
+
self.parsers = list(parsers)
|
|
169
|
+
|
|
170
|
+
def add_parser(self, parser: Parser) -> None:
|
|
171
|
+
self.parsers.append(parser)
|
|
172
|
+
|
|
173
|
+
def parse(self, vllm_config: VllmConfig) -> ParsedArgs:
|
|
174
|
+
args = ParsedArgs()
|
|
175
|
+
for parser in self.parsers:
|
|
176
|
+
args = parser.parse(args, vllm_config)
|
|
177
|
+
return args
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
_COMPONENT_METRICS_REGISTRY: dict[str, type["ComponentMetrics"]] = {}
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
class ComponentMetrics(BaseModel, ABC):
|
|
184
|
+
"""
|
|
185
|
+
Each concrete ComponentMetrics class is associated with:
|
|
186
|
+
- fields that are required for metric derivation
|
|
187
|
+
(fields are specified/validated through pydantic model)
|
|
188
|
+
- parser to parse VllmConfig into fields
|
|
189
|
+
- metric methods that derive flops/bytes for a given execution context
|
|
190
|
+
"""
|
|
191
|
+
|
|
192
|
+
@classmethod
|
|
193
|
+
@abstractmethod
|
|
194
|
+
def component_type(cls) -> str: ...
|
|
195
|
+
|
|
196
|
+
@classmethod
|
|
197
|
+
@abstractmethod
|
|
198
|
+
def get_parser(cls) -> ParserChain:
|
|
199
|
+
"""
|
|
200
|
+
Return a ParserChain that provides values for all required fields.
|
|
201
|
+
The returned parser chain must populate ParsedArgs with values for every
|
|
202
|
+
field defined on this ComponentMetrics class. Missing fields will cause
|
|
203
|
+
a ValidationError when from_vllm_config() is called.
|
|
204
|
+
See individual Parser docstrings for which args they provide, and field
|
|
205
|
+
comments on ComponentMetrics subclasses for which parser provides each field.
|
|
206
|
+
"""
|
|
207
|
+
...
|
|
208
|
+
|
|
209
|
+
def __init_subclass__(cls):
|
|
210
|
+
_COMPONENT_METRICS_REGISTRY[cls.component_type()] = cls
|
|
211
|
+
|
|
212
|
+
@classmethod
|
|
213
|
+
def from_vllm_config(cls, vllm_config: VllmConfig) -> Self:
|
|
214
|
+
"""
|
|
215
|
+
Instantiate this class from VllmConfig.
|
|
216
|
+
Raises ValidationError if parsing fails.
|
|
217
|
+
"""
|
|
218
|
+
|
|
219
|
+
parser = cls.get_parser()
|
|
220
|
+
parsed_args = parser.parse(vllm_config)
|
|
221
|
+
try:
|
|
222
|
+
return cls.model_validate(parsed_args.model_dump())
|
|
223
|
+
except ValidationError as e:
|
|
224
|
+
raise InvalidComponent(f"Invalid {cls.component_type()} config: {e}") from e
|
|
225
|
+
|
|
226
|
+
@classmethod
|
|
227
|
+
def registered_metrics(cls) -> Iterable[type["ComponentMetrics"]]:
|
|
228
|
+
return iter(_COMPONENT_METRICS_REGISTRY.values())
|
|
229
|
+
|
|
230
|
+
@abstractmethod
|
|
231
|
+
def get_num_flops_breakdown(
|
|
232
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
233
|
+
) -> dict[str, int]: ...
|
|
234
|
+
|
|
235
|
+
@abstractmethod
|
|
236
|
+
def get_read_bytes_breakdown(
|
|
237
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
238
|
+
) -> dict[str, int]: ...
|
|
239
|
+
|
|
240
|
+
@abstractmethod
|
|
241
|
+
def get_write_bytes_breakdown(
|
|
242
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
243
|
+
) -> dict[str, int]: ...
|
|
244
|
+
|
|
245
|
+
def get_num_flops(self, ctx: ExecutionContext, per_gpu: bool = True) -> int:
|
|
246
|
+
return sum(self.get_num_flops_breakdown(ctx, per_gpu).values())
|
|
247
|
+
|
|
248
|
+
def get_read_bytes(self, ctx: ExecutionContext, per_gpu: bool = True) -> int:
|
|
249
|
+
return sum(self.get_read_bytes_breakdown(ctx, per_gpu).values())
|
|
250
|
+
|
|
251
|
+
def get_write_bytes(self, ctx: ExecutionContext, per_gpu: bool = True) -> int:
|
|
252
|
+
return sum(self.get_write_bytes_breakdown(ctx, per_gpu).values())
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
#### parsers ####
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
class BaseConfigParser(Parser):
|
|
259
|
+
"""
|
|
260
|
+
Parses base model configuration.
|
|
261
|
+
Provides: vocab_size, hidden_size, num_attention_heads, num_hidden_layers,
|
|
262
|
+
weight_byte_size, activation_byte_size, dp_size, tp_size, pp_size, enable_ep
|
|
263
|
+
"""
|
|
264
|
+
|
|
265
|
+
def parse(self, args: ParsedArgs, vllm_config: VllmConfig) -> ParsedArgs:
|
|
266
|
+
model_config = vllm_config.model_config
|
|
267
|
+
|
|
268
|
+
args.vocab_size = model_config.get_vocab_size()
|
|
269
|
+
args.hidden_size = model_config.get_hidden_size()
|
|
270
|
+
# NOTE: model_config.get_attention_heads() divide by TP
|
|
271
|
+
# so we access field manually here to get total num_heads
|
|
272
|
+
args.num_attention_heads = get_required(
|
|
273
|
+
model_config.hf_text_config, "num_attention_heads"
|
|
274
|
+
)
|
|
275
|
+
args.num_hidden_layers = get_required(
|
|
276
|
+
model_config.hf_text_config, "num_hidden_layers"
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
model_dtype = vllm_config.model_config.dtype
|
|
280
|
+
|
|
281
|
+
if isinstance(model_dtype, torch.dtype):
|
|
282
|
+
torch_dtype = model_dtype
|
|
283
|
+
elif isinstance(model_dtype, str) and model_dtype in STR_DTYPE_TO_TORCH_DTYPE:
|
|
284
|
+
torch_dtype = STR_DTYPE_TO_TORCH_DTYPE[model_dtype]
|
|
285
|
+
else:
|
|
286
|
+
# FIXME: handle this better
|
|
287
|
+
logger.warning(
|
|
288
|
+
"Unknown model_dtype %s, defaulting to bfloat16",
|
|
289
|
+
model_dtype,
|
|
290
|
+
)
|
|
291
|
+
torch_dtype = torch.bfloat16
|
|
292
|
+
|
|
293
|
+
args.weight_byte_size = get_dtype_size(torch_dtype)
|
|
294
|
+
|
|
295
|
+
# FIXME: handle this better by parsing whether activations use
|
|
296
|
+
# bf16, fp32, etc...
|
|
297
|
+
args.activation_byte_size = 2
|
|
298
|
+
|
|
299
|
+
args.dp_size = vllm_config.parallel_config.data_parallel_size
|
|
300
|
+
args.tp_size = vllm_config.parallel_config.tensor_parallel_size
|
|
301
|
+
args.pp_size = vllm_config.parallel_config.pipeline_parallel_size
|
|
302
|
+
args.enable_ep = vllm_config.parallel_config.enable_expert_parallel
|
|
303
|
+
|
|
304
|
+
return args
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
#### Attention ####
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
class BaseAttentionConfigParser(Parser):
|
|
311
|
+
"""
|
|
312
|
+
Parses attention-specific configuration.
|
|
313
|
+
Provides: num_key_value_heads, head_dim, cache_byte_size
|
|
314
|
+
"""
|
|
315
|
+
|
|
316
|
+
def parse(self, args: ParsedArgs, vllm_config: VllmConfig) -> ParsedArgs:
|
|
317
|
+
model_config = vllm_config.model_config
|
|
318
|
+
|
|
319
|
+
args.num_key_value_heads = model_config.get_total_num_kv_heads()
|
|
320
|
+
args.head_dim = model_config.get_head_size()
|
|
321
|
+
|
|
322
|
+
model_dtype = vllm_config.model_config.dtype
|
|
323
|
+
cache_dtype = vllm_config.cache_config.cache_dtype
|
|
324
|
+
|
|
325
|
+
kv_cache_torch_dtype = get_kv_cache_torch_dtype(cache_dtype, model_dtype)
|
|
326
|
+
args.cache_byte_size = get_dtype_size(kv_cache_torch_dtype)
|
|
327
|
+
|
|
328
|
+
return args
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
class AttentionQuantizationConfigParser(Parser):
|
|
332
|
+
"""
|
|
333
|
+
Parses quantization configuration for attention layers.
|
|
334
|
+
Overrides: weight_byte_size
|
|
335
|
+
"""
|
|
336
|
+
|
|
337
|
+
def parse(self, args: ParsedArgs, vllm_config: VllmConfig) -> ParsedArgs:
|
|
338
|
+
cfg = vllm_config.quant_config
|
|
339
|
+
|
|
340
|
+
if cfg is None:
|
|
341
|
+
return args
|
|
342
|
+
|
|
343
|
+
quant_method = cfg.get_name()
|
|
344
|
+
if quant_method in ["fp8", "fbgemm_fp8"]:
|
|
345
|
+
# FIXME: This is a hacky coarse-grained fp8 quantization detection.
|
|
346
|
+
# FIXME: These configs also have concept of "ignored layers" and we
|
|
347
|
+
# need to solve the same problem as above.
|
|
348
|
+
args.weight_byte_size = 1
|
|
349
|
+
elif quant_method == "mxfp4":
|
|
350
|
+
# FIXME: Also has "ignored layers" issue above
|
|
351
|
+
args.weight_byte_size = 0.5
|
|
352
|
+
else:
|
|
353
|
+
# FIXME: Add more parsing logic for different quant methods.
|
|
354
|
+
raise InvalidComponent
|
|
355
|
+
|
|
356
|
+
return args
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
class AttentionMetrics(ComponentMetrics):
|
|
360
|
+
# From BaseConfigParser
|
|
361
|
+
num_hidden_layers: int = Field(..., gt=0)
|
|
362
|
+
hidden_size: int = Field(..., gt=0)
|
|
363
|
+
num_attention_heads: int = Field(..., gt=0)
|
|
364
|
+
activation_byte_size: int = Field(..., gt=0)
|
|
365
|
+
tp_size: int = Field(..., gt=0)
|
|
366
|
+
pp_size: int = Field(..., gt=0)
|
|
367
|
+
|
|
368
|
+
# From BaseAttentionConfigParser
|
|
369
|
+
num_key_value_heads: int = Field(..., gt=0)
|
|
370
|
+
head_dim: int = Field(..., gt=0)
|
|
371
|
+
cache_byte_size: int = Field(..., gt=0)
|
|
372
|
+
|
|
373
|
+
# From BaseConfig Parser, overridden by AttentionQuantizationConfigParser
|
|
374
|
+
weight_byte_size: int | float = Field(..., gt=0)
|
|
375
|
+
|
|
376
|
+
# TODO: discern cases where we have mixture of different attention layer types
|
|
377
|
+
# such as SWA, MLA, etc.
|
|
378
|
+
|
|
379
|
+
@classmethod
|
|
380
|
+
def component_type(cls) -> str:
|
|
381
|
+
return "attn"
|
|
382
|
+
|
|
383
|
+
@classmethod
|
|
384
|
+
def get_parser(cls) -> ParserChain:
|
|
385
|
+
return ParserChain(
|
|
386
|
+
BaseConfigParser(),
|
|
387
|
+
BaseAttentionConfigParser(),
|
|
388
|
+
AttentionQuantizationConfigParser(),
|
|
389
|
+
)
|
|
390
|
+
|
|
391
|
+
def get_num_flops_breakdown(
|
|
392
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
393
|
+
) -> dict[str, int]:
|
|
394
|
+
L, D, q, kv, d = (
|
|
395
|
+
self.num_hidden_layers,
|
|
396
|
+
self.hidden_size,
|
|
397
|
+
self.num_attention_heads,
|
|
398
|
+
self.num_key_value_heads,
|
|
399
|
+
self.head_dim,
|
|
400
|
+
)
|
|
401
|
+
T = ctx.total_num_tokens()
|
|
402
|
+
TC = ctx.total_token_context_product()
|
|
403
|
+
|
|
404
|
+
if per_gpu:
|
|
405
|
+
L //= self.pp_size
|
|
406
|
+
# tensor parallel along heads
|
|
407
|
+
q = max(1, q // self.tp_size)
|
|
408
|
+
kv = max(1, kv // self.tp_size)
|
|
409
|
+
|
|
410
|
+
return {
|
|
411
|
+
"qkv_proj": 2 * T * D * (q + 2 * kv) * d * L,
|
|
412
|
+
"attn_qk": 2 * q * TC * d * L,
|
|
413
|
+
"attn_av": 2 * q * TC * d * L,
|
|
414
|
+
"out_proj": 2 * T * D * q * d * L,
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
def get_read_bytes_breakdown(
|
|
418
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
419
|
+
) -> dict[str, int]:
|
|
420
|
+
L, D, q, kv, d = (
|
|
421
|
+
self.num_hidden_layers,
|
|
422
|
+
self.hidden_size,
|
|
423
|
+
self.num_attention_heads,
|
|
424
|
+
self.num_key_value_heads,
|
|
425
|
+
self.head_dim,
|
|
426
|
+
)
|
|
427
|
+
T = ctx.total_num_tokens()
|
|
428
|
+
|
|
429
|
+
if per_gpu:
|
|
430
|
+
L //= self.pp_size
|
|
431
|
+
# tensor parallel along heads
|
|
432
|
+
q = max(1, q // self.tp_size)
|
|
433
|
+
kv = max(1, kv // self.tp_size)
|
|
434
|
+
|
|
435
|
+
read_bytes = {}
|
|
436
|
+
|
|
437
|
+
read_bytes["qkv_input"] = T * D * self.activation_byte_size * L
|
|
438
|
+
read_bytes["qkv_weight"] = int(D * (q + 2 * kv) * d * self.weight_byte_size * L)
|
|
439
|
+
|
|
440
|
+
# Attention input reads differ between prefill and decode
|
|
441
|
+
# Prefill: read Q, K, V activations (all in activation_byte_size)
|
|
442
|
+
if ctx.prefill_num_tokens > 0:
|
|
443
|
+
read_bytes["attn_input"] = (
|
|
444
|
+
(ctx.prefill_num_tokens * q + 2 * ctx.prefill_context_len * kv)
|
|
445
|
+
* d
|
|
446
|
+
* self.activation_byte_size
|
|
447
|
+
* L
|
|
448
|
+
)
|
|
449
|
+
|
|
450
|
+
# Decode: read Q activations + read K, V from cache (in cache_byte_size)
|
|
451
|
+
if ctx.decode_num_tokens > 0:
|
|
452
|
+
read_bytes["attn_input"] = read_bytes.get("attn_input", 0) + (
|
|
453
|
+
ctx.decode_num_tokens * q * d * self.activation_byte_size * L
|
|
454
|
+
+ 2 * ctx.decode_context_len * kv * d * self.cache_byte_size * L
|
|
455
|
+
)
|
|
456
|
+
|
|
457
|
+
read_bytes["out_input"] = T * q * d * self.activation_byte_size * L
|
|
458
|
+
read_bytes["out_weight"] = int(q * d * D * self.weight_byte_size * L)
|
|
459
|
+
|
|
460
|
+
return read_bytes
|
|
461
|
+
|
|
462
|
+
def get_write_bytes_breakdown(
|
|
463
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
464
|
+
) -> dict[str, int]:
|
|
465
|
+
"""Calculate write memory traffic for attention layers."""
|
|
466
|
+
L, D, q, kv, d = (
|
|
467
|
+
self.num_hidden_layers,
|
|
468
|
+
self.hidden_size,
|
|
469
|
+
self.num_attention_heads,
|
|
470
|
+
self.num_key_value_heads,
|
|
471
|
+
self.head_dim,
|
|
472
|
+
)
|
|
473
|
+
T = ctx.total_num_tokens()
|
|
474
|
+
|
|
475
|
+
if per_gpu:
|
|
476
|
+
L //= self.pp_size
|
|
477
|
+
# tensor parallel along heads
|
|
478
|
+
q = max(1, q // self.tp_size)
|
|
479
|
+
kv = max(1, kv // self.tp_size)
|
|
480
|
+
|
|
481
|
+
return {
|
|
482
|
+
"qkv_output": T * (q + 2 * kv) * d * self.activation_byte_size * L,
|
|
483
|
+
"kv_cache": 2 * T * kv * d * self.cache_byte_size * L,
|
|
484
|
+
"out_output": T * D * self.activation_byte_size * L,
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
#### Ffn ####
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
class BaseFfnConfigParser(Parser):
|
|
492
|
+
"""
|
|
493
|
+
Parses FFN and MoE configuration.
|
|
494
|
+
Provides: intermediate_size, num_experts, num_experts_per_tok,
|
|
495
|
+
moe_intermediate_size, num_shared_experts, num_moe_layers
|
|
496
|
+
"""
|
|
497
|
+
|
|
498
|
+
def parse(self, args: ParsedArgs, vllm_config: VllmConfig) -> ParsedArgs:
|
|
499
|
+
cfg = vllm_config.model_config.hf_config
|
|
500
|
+
if hasattr(cfg, "text_config") and cfg.text_config is not None:
|
|
501
|
+
cfg = cfg.text_config
|
|
502
|
+
|
|
503
|
+
args.intermediate_size = getattr(cfg, "intermediate_size", args.hidden_size * 4)
|
|
504
|
+
|
|
505
|
+
# Try different naming conventions.
|
|
506
|
+
args.num_experts = vllm_config.model_config.get_num_experts()
|
|
507
|
+
args.num_experts_per_tok = getattr_from_list(
|
|
508
|
+
cfg, ["num_experts_per_tok", "moe_topk"], 0
|
|
509
|
+
)
|
|
510
|
+
args.moe_intermediate_size = getattr_from_list(
|
|
511
|
+
cfg, ["moe_intermediate_size", "intermediate_size"], 0
|
|
512
|
+
)
|
|
513
|
+
args.num_shared_experts = getattr_from_list(
|
|
514
|
+
cfg, ["n_shared_experts", "num_shared_experts"], 0
|
|
515
|
+
)
|
|
516
|
+
|
|
517
|
+
is_moe = args.num_experts != 0
|
|
518
|
+
# Assume all MoE layers by default
|
|
519
|
+
args.num_moe_layers = args.num_hidden_layers if is_moe else 0
|
|
520
|
+
|
|
521
|
+
return args
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
class FfnParallelParser(Parser):
|
|
525
|
+
"""
|
|
526
|
+
Parses FFN parallelism configuration.
|
|
527
|
+
|
|
528
|
+
Provides: ffn_tp_size, ffn_ep_size
|
|
529
|
+
"""
|
|
530
|
+
|
|
531
|
+
def parse(self, args: ParsedArgs, vllm_config: VllmConfig) -> ParsedArgs:
|
|
532
|
+
# NOTE: ffn tp_size does not equal the tp_size parameter directly.
|
|
533
|
+
# e.g.) If we use DP2TP4, ffn will use TP8 (or EP8 if EP is enabled.)
|
|
534
|
+
if args.enable_ep:
|
|
535
|
+
ffn_tp_size, ffn_ep_size = 1, args.dp_size * args.tp_size
|
|
536
|
+
else:
|
|
537
|
+
ffn_tp_size, ffn_ep_size = args.dp_size * args.tp_size, 1
|
|
538
|
+
|
|
539
|
+
args.ffn_tp_size = ffn_tp_size
|
|
540
|
+
args.ffn_ep_size = ffn_ep_size
|
|
541
|
+
|
|
542
|
+
return args
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
class InterleaveMoeLayerStepParser(Parser):
|
|
546
|
+
"""
|
|
547
|
+
Parses interleave_moe_layer_step field for models like Llama4.
|
|
548
|
+
|
|
549
|
+
Overrides: num_moe_layers
|
|
550
|
+
"""
|
|
551
|
+
|
|
552
|
+
def parse(self, args: ParsedArgs, vllm_config: VllmConfig) -> ParsedArgs:
|
|
553
|
+
cfg = vllm_config.model_config.hf_config
|
|
554
|
+
if hasattr(cfg, "text_config") and cfg.text_config is not None:
|
|
555
|
+
cfg = cfg.text_config
|
|
556
|
+
|
|
557
|
+
if (
|
|
558
|
+
hasattr(cfg, "interleave_moe_layer_step")
|
|
559
|
+
and cfg.interleave_moe_layer_step > 0
|
|
560
|
+
):
|
|
561
|
+
args.num_moe_layers = len(
|
|
562
|
+
[
|
|
563
|
+
layer
|
|
564
|
+
for layer in range(args.num_hidden_layers)
|
|
565
|
+
if (layer + 1) % cfg.interleave_moe_layer_step == 0
|
|
566
|
+
]
|
|
567
|
+
)
|
|
568
|
+
|
|
569
|
+
return args
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
class MoeLayerFreqParser(Parser):
|
|
573
|
+
"""
|
|
574
|
+
Parses moe_layer_freq and first_k_dense_replace fields for models like Deepseek.
|
|
575
|
+
|
|
576
|
+
Overrides: num_moe_layers
|
|
577
|
+
"""
|
|
578
|
+
|
|
579
|
+
def parse(self, args: ParsedArgs, vllm_config: VllmConfig) -> ParsedArgs:
|
|
580
|
+
cfg = vllm_config.model_config.hf_config
|
|
581
|
+
if hasattr(cfg, "text_config") and cfg.text_config is not None:
|
|
582
|
+
cfg = cfg.text_config
|
|
583
|
+
|
|
584
|
+
if hasattr(cfg, "moe_layer_freq") and hasattr(cfg, "first_k_dense_replace"):
|
|
585
|
+
args.num_moe_layers = len(
|
|
586
|
+
[
|
|
587
|
+
layer
|
|
588
|
+
for layer in range(args.num_hidden_layers)
|
|
589
|
+
if layer >= cfg.first_k_dense_replace
|
|
590
|
+
and layer % cfg.moe_layer_freq == 0
|
|
591
|
+
]
|
|
592
|
+
)
|
|
593
|
+
|
|
594
|
+
return args
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
class FfnQuantizationConfigParser(Parser):
|
|
598
|
+
"""
|
|
599
|
+
Parses quantization configuration for FFN layers.
|
|
600
|
+
|
|
601
|
+
Overrides: weight_byte_size
|
|
602
|
+
"""
|
|
603
|
+
|
|
604
|
+
def parse(self, args: ParsedArgs, vllm_config: VllmConfig) -> ParsedArgs:
|
|
605
|
+
cfg = vllm_config.quant_config
|
|
606
|
+
|
|
607
|
+
if cfg is None:
|
|
608
|
+
return args
|
|
609
|
+
|
|
610
|
+
quant_method = cfg.get_name()
|
|
611
|
+
if quant_method in ["fp8", "fbgemm_fp8"]:
|
|
612
|
+
# FIXME: This is a hacky coarse-grained fp8 quantization detection.
|
|
613
|
+
# (there might be more quantization methods for fp8).
|
|
614
|
+
# FIXME: These configs also have concept of "ignored layers" and we
|
|
615
|
+
# need to solve the same problem as above.
|
|
616
|
+
args.weight_byte_size = 1
|
|
617
|
+
pass
|
|
618
|
+
elif quant_method == "mxfp4":
|
|
619
|
+
# FIXME: Also has "ignored layers" issue above
|
|
620
|
+
args.weight_byte_size = 0.5
|
|
621
|
+
else:
|
|
622
|
+
# FIXME: Add more parsing logic for different quant methods.
|
|
623
|
+
raise InvalidComponent
|
|
624
|
+
|
|
625
|
+
return args
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
class FfnMetrics(ComponentMetrics):
|
|
629
|
+
# From BaseConfigParser
|
|
630
|
+
num_hidden_layers: int = Field(..., gt=0)
|
|
631
|
+
hidden_size: int = Field(..., gt=0)
|
|
632
|
+
activation_byte_size: int = Field(..., gt=0)
|
|
633
|
+
pp_size: int = Field(..., gt=0)
|
|
634
|
+
|
|
635
|
+
# From FfnParallelParser
|
|
636
|
+
ffn_tp_size: int = Field(..., gt=0)
|
|
637
|
+
ffn_ep_size: int = Field(..., gt=0)
|
|
638
|
+
|
|
639
|
+
# From BaseFfnConfigParser
|
|
640
|
+
intermediate_size: int = Field(..., gt=0)
|
|
641
|
+
num_experts: int = Field(0)
|
|
642
|
+
num_experts_per_tok: int = Field(1)
|
|
643
|
+
moe_intermediate_size: int = Field(0)
|
|
644
|
+
num_shared_experts: int = Field(0)
|
|
645
|
+
|
|
646
|
+
# From BaseConfigParser, can be overridden InterleaveMoeLayerStep or MoeLayerFreq
|
|
647
|
+
num_moe_layers: int = Field(..., ge=0)
|
|
648
|
+
|
|
649
|
+
# FIXME: might have to make this more granular
|
|
650
|
+
# (i.e. dense_weight_byte_size, moe_routed_weight_byte_size,
|
|
651
|
+
# moe_shared_weight_byte_size)
|
|
652
|
+
# since it can differ from byte size of other components (e.g. attn)
|
|
653
|
+
# and can differ even from each other.
|
|
654
|
+
|
|
655
|
+
# From BaseConfigParser, can be overridden by FfnQuantizationConfigParser
|
|
656
|
+
weight_byte_size: int | float = Field(..., gt=0)
|
|
657
|
+
|
|
658
|
+
@model_validator(mode="after")
|
|
659
|
+
def validate_moe_fields(self) -> Self:
|
|
660
|
+
"""Validate that MoE-related fields are properly set when num_moe_layers > 0."""
|
|
661
|
+
if self.num_moe_layers > 0:
|
|
662
|
+
assert self.num_experts, f"{self.num_experts=}"
|
|
663
|
+
assert self.num_experts_per_tok, f"{self.num_experts_per_tok=}"
|
|
664
|
+
assert self.moe_intermediate_size, f"{self.moe_intermediate_size=}"
|
|
665
|
+
return self
|
|
666
|
+
|
|
667
|
+
@classmethod
|
|
668
|
+
def component_type(cls) -> str:
|
|
669
|
+
return "ffn"
|
|
670
|
+
|
|
671
|
+
@classmethod
|
|
672
|
+
def get_parser(cls) -> ParserChain:
|
|
673
|
+
return ParserChain(
|
|
674
|
+
BaseConfigParser(),
|
|
675
|
+
FfnParallelParser(),
|
|
676
|
+
BaseFfnConfigParser(),
|
|
677
|
+
InterleaveMoeLayerStepParser(),
|
|
678
|
+
MoeLayerFreqParser(),
|
|
679
|
+
FfnQuantizationConfigParser(),
|
|
680
|
+
)
|
|
681
|
+
|
|
682
|
+
def get_num_flops_breakdown(
|
|
683
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
684
|
+
) -> dict[str, int]:
|
|
685
|
+
"""Calculate flops breakdown for FFN layers."""
|
|
686
|
+
L, D, DI = self.num_hidden_layers, self.hidden_size, self.intermediate_size
|
|
687
|
+
Lm, E, MI, S = (
|
|
688
|
+
self.num_moe_layers,
|
|
689
|
+
self.num_experts_per_tok,
|
|
690
|
+
self.moe_intermediate_size,
|
|
691
|
+
self.num_shared_experts,
|
|
692
|
+
)
|
|
693
|
+
T = ctx.total_num_tokens()
|
|
694
|
+
|
|
695
|
+
Ld = L - Lm
|
|
696
|
+
|
|
697
|
+
num_activated_tokens = T * E if E else 0
|
|
698
|
+
|
|
699
|
+
if per_gpu:
|
|
700
|
+
Ld //= self.pp_size
|
|
701
|
+
Lm //= self.pp_size
|
|
702
|
+
|
|
703
|
+
DI //= self.ffn_tp_size
|
|
704
|
+
if MI is not None:
|
|
705
|
+
MI //= self.ffn_tp_size
|
|
706
|
+
if E:
|
|
707
|
+
num_activated_tokens //= self.ffn_ep_size
|
|
708
|
+
|
|
709
|
+
flops = {}
|
|
710
|
+
|
|
711
|
+
# Dense FFN layers (SwiGLU: 3 linear layers: up, gate, down)
|
|
712
|
+
if Ld:
|
|
713
|
+
flops["dense_ffn"] = 2 * D * 3 * DI * T * Ld
|
|
714
|
+
|
|
715
|
+
# MoE routed experts (each token activates E experts)
|
|
716
|
+
if Lm and E:
|
|
717
|
+
flops["routed_ffn"] = 2 * D * 3 * MI * num_activated_tokens * Lm
|
|
718
|
+
|
|
719
|
+
# MoE shared experts (all S shared experts run for every token)
|
|
720
|
+
if Lm and S:
|
|
721
|
+
flops["shared_ffn"] = 2 * D * 3 * MI * S * T * Lm
|
|
722
|
+
|
|
723
|
+
return flops
|
|
724
|
+
|
|
725
|
+
def get_read_bytes_breakdown(
|
|
726
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
727
|
+
) -> dict[str, int]:
|
|
728
|
+
"""Calculate read memory traffic for FFN layers."""
|
|
729
|
+
L, D, DI = self.num_hidden_layers, self.hidden_size, self.intermediate_size
|
|
730
|
+
Lm, E, MI, S = (
|
|
731
|
+
self.num_moe_layers,
|
|
732
|
+
self.num_experts_per_tok,
|
|
733
|
+
self.moe_intermediate_size,
|
|
734
|
+
self.num_shared_experts,
|
|
735
|
+
)
|
|
736
|
+
T = ctx.total_num_tokens()
|
|
737
|
+
num_experts = self.num_experts
|
|
738
|
+
|
|
739
|
+
Ld = L - Lm
|
|
740
|
+
|
|
741
|
+
num_activated_tokens = T * E if E else 0
|
|
742
|
+
|
|
743
|
+
if per_gpu:
|
|
744
|
+
Ld //= self.pp_size
|
|
745
|
+
Lm //= self.pp_size
|
|
746
|
+
|
|
747
|
+
DI //= self.ffn_tp_size
|
|
748
|
+
if MI is not None:
|
|
749
|
+
MI //= self.ffn_tp_size
|
|
750
|
+
if E:
|
|
751
|
+
num_activated_tokens //= self.ffn_ep_size
|
|
752
|
+
if num_experts is not None:
|
|
753
|
+
num_experts //= self.ffn_ep_size
|
|
754
|
+
|
|
755
|
+
read_bytes = {}
|
|
756
|
+
|
|
757
|
+
# Dense FFN layers (3 GEMMs: up, gate, down projections + SiLU activation)
|
|
758
|
+
if Ld:
|
|
759
|
+
read_bytes["dense_up_gate_input"] = int(
|
|
760
|
+
T * D * self.activation_byte_size * Ld
|
|
761
|
+
)
|
|
762
|
+
read_bytes["dense_up_gate_weights"] = int(
|
|
763
|
+
2 * D * DI * self.weight_byte_size * Ld
|
|
764
|
+
)
|
|
765
|
+
read_bytes["dense_silu_input"] = int(
|
|
766
|
+
2 * T * DI * self.activation_byte_size * Ld
|
|
767
|
+
)
|
|
768
|
+
read_bytes["dense_down_input"] = int(
|
|
769
|
+
T * DI * self.activation_byte_size * Ld
|
|
770
|
+
)
|
|
771
|
+
read_bytes["dense_down_weights"] = int(D * DI * self.weight_byte_size * Ld)
|
|
772
|
+
|
|
773
|
+
if Lm:
|
|
774
|
+
# MoE routed expert reads
|
|
775
|
+
if E:
|
|
776
|
+
# FIXME: Assume perfect load balancing for now.
|
|
777
|
+
num_activated_experts = min(num_activated_tokens, num_experts)
|
|
778
|
+
|
|
779
|
+
read_bytes["routed_up_gate_input"] = int(
|
|
780
|
+
num_activated_tokens * D * self.activation_byte_size * Lm
|
|
781
|
+
)
|
|
782
|
+
read_bytes["routed_up_gate_weights"] = int(
|
|
783
|
+
2 * D * MI * num_activated_experts * self.weight_byte_size * Lm
|
|
784
|
+
)
|
|
785
|
+
read_bytes["routed_silu_input"] = int(
|
|
786
|
+
2 * num_activated_tokens * MI * self.activation_byte_size * Lm
|
|
787
|
+
)
|
|
788
|
+
read_bytes["routed_down_input"] = int(
|
|
789
|
+
num_activated_tokens * MI * self.activation_byte_size * Lm
|
|
790
|
+
)
|
|
791
|
+
read_bytes["routed_down_weights"] = int(
|
|
792
|
+
D * MI * num_activated_experts * self.weight_byte_size * Lm
|
|
793
|
+
)
|
|
794
|
+
|
|
795
|
+
# MoE shared expert reads
|
|
796
|
+
if S:
|
|
797
|
+
read_bytes["shared_up_gate_input"] = int(
|
|
798
|
+
T * D * self.activation_byte_size * Lm
|
|
799
|
+
)
|
|
800
|
+
read_bytes["shared_up_gate_weights"] = int(
|
|
801
|
+
2 * D * MI * S * self.weight_byte_size * Lm
|
|
802
|
+
)
|
|
803
|
+
read_bytes["shared_silu_input"] = int(
|
|
804
|
+
2 * T * MI * S * self.activation_byte_size * Lm
|
|
805
|
+
)
|
|
806
|
+
read_bytes["shared_down_input"] = int(
|
|
807
|
+
T * MI * self.activation_byte_size * Lm
|
|
808
|
+
)
|
|
809
|
+
read_bytes["shared_down_weights"] = int(
|
|
810
|
+
D * MI * S * self.weight_byte_size * Lm
|
|
811
|
+
)
|
|
812
|
+
|
|
813
|
+
return read_bytes
|
|
814
|
+
|
|
815
|
+
def get_write_bytes_breakdown(
|
|
816
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
817
|
+
) -> dict[str, int]:
|
|
818
|
+
"""Calculate write memory traffic for FFN layers."""
|
|
819
|
+
L, D, DI = self.num_hidden_layers, self.hidden_size, self.intermediate_size
|
|
820
|
+
Lm, E, MI, S = (
|
|
821
|
+
self.num_moe_layers,
|
|
822
|
+
self.num_experts_per_tok,
|
|
823
|
+
self.moe_intermediate_size,
|
|
824
|
+
self.num_shared_experts,
|
|
825
|
+
)
|
|
826
|
+
T = ctx.total_num_tokens()
|
|
827
|
+
|
|
828
|
+
Ld = L - Lm
|
|
829
|
+
|
|
830
|
+
num_activated_tokens = T * E if E else 0
|
|
831
|
+
|
|
832
|
+
if per_gpu:
|
|
833
|
+
Ld //= self.pp_size
|
|
834
|
+
Lm //= self.pp_size
|
|
835
|
+
|
|
836
|
+
DI //= self.ffn_tp_size
|
|
837
|
+
if MI is not None:
|
|
838
|
+
MI //= self.ffn_tp_size
|
|
839
|
+
if E:
|
|
840
|
+
num_activated_tokens //= self.ffn_ep_size
|
|
841
|
+
|
|
842
|
+
write_bytes = {}
|
|
843
|
+
|
|
844
|
+
# Dense FFN layers
|
|
845
|
+
if Ld:
|
|
846
|
+
write_bytes["dense_up_gate_output"] = int(
|
|
847
|
+
2 * T * DI * self.activation_byte_size * Ld
|
|
848
|
+
)
|
|
849
|
+
write_bytes["dense_silu_output"] = int(
|
|
850
|
+
T * DI * self.activation_byte_size * Ld
|
|
851
|
+
)
|
|
852
|
+
write_bytes["dense_down_output"] = int(
|
|
853
|
+
T * D * self.activation_byte_size * Ld
|
|
854
|
+
)
|
|
855
|
+
|
|
856
|
+
# MoE outputs
|
|
857
|
+
if Lm:
|
|
858
|
+
if E:
|
|
859
|
+
write_bytes["routed_up_gate_output"] = int(
|
|
860
|
+
2 * num_activated_tokens * MI * self.activation_byte_size * Lm
|
|
861
|
+
)
|
|
862
|
+
write_bytes["routed_silu_output"] = int(
|
|
863
|
+
num_activated_tokens * MI * self.activation_byte_size * Lm
|
|
864
|
+
)
|
|
865
|
+
write_bytes["routed_down_output"] = int(
|
|
866
|
+
num_activated_tokens * D * self.activation_byte_size * Lm
|
|
867
|
+
)
|
|
868
|
+
if S:
|
|
869
|
+
write_bytes["shared_up_gate_output"] = int(
|
|
870
|
+
2 * T * S * MI * self.activation_byte_size * Lm
|
|
871
|
+
)
|
|
872
|
+
write_bytes["shared_silu_output"] = int(
|
|
873
|
+
T * S * MI * self.activation_byte_size * Lm
|
|
874
|
+
)
|
|
875
|
+
write_bytes["shared_down_output"] = int(
|
|
876
|
+
T * S * D * self.activation_byte_size * Lm
|
|
877
|
+
)
|
|
878
|
+
|
|
879
|
+
return write_bytes
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
#### Unembed ####
|
|
883
|
+
|
|
884
|
+
|
|
885
|
+
class UnembedMetrics(ComponentMetrics):
|
|
886
|
+
# From BaseConfigParser
|
|
887
|
+
hidden_size: int = Field(..., gt=0)
|
|
888
|
+
vocab_size: int = Field(..., gt=0)
|
|
889
|
+
weight_byte_size: int = Field(..., gt=0)
|
|
890
|
+
activation_byte_size: int = Field(..., gt=0)
|
|
891
|
+
|
|
892
|
+
tp_size: int
|
|
893
|
+
|
|
894
|
+
@classmethod
|
|
895
|
+
def component_type(cls) -> str:
|
|
896
|
+
return "unembed"
|
|
897
|
+
|
|
898
|
+
@classmethod
|
|
899
|
+
def get_parser(cls) -> ParserChain:
|
|
900
|
+
return ParserChain(
|
|
901
|
+
BaseConfigParser(),
|
|
902
|
+
)
|
|
903
|
+
|
|
904
|
+
def get_num_flops_breakdown(
|
|
905
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
906
|
+
) -> dict[str, int]:
|
|
907
|
+
"""Calculate flops breakdown for unembedding layer."""
|
|
908
|
+
D, V = self.hidden_size, self.vocab_size
|
|
909
|
+
T = ctx.total_num_tokens()
|
|
910
|
+
|
|
911
|
+
if per_gpu:
|
|
912
|
+
V //= self.tp_size
|
|
913
|
+
|
|
914
|
+
return {
|
|
915
|
+
"unembed": 2 * T * D * V,
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
def get_read_bytes_breakdown(
|
|
919
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
920
|
+
) -> dict[str, int]:
|
|
921
|
+
"""Calculate read memory traffic for unembedding layer."""
|
|
922
|
+
D, V = self.hidden_size, self.vocab_size
|
|
923
|
+
T = ctx.total_num_tokens()
|
|
924
|
+
|
|
925
|
+
if per_gpu:
|
|
926
|
+
V //= self.tp_size
|
|
927
|
+
|
|
928
|
+
return {
|
|
929
|
+
"input": T * D * self.activation_byte_size,
|
|
930
|
+
"weight": D * V * self.weight_byte_size,
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
def get_write_bytes_breakdown(
|
|
934
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
935
|
+
) -> dict[str, int]:
|
|
936
|
+
"""Calculate write memory traffic for unembedding layer."""
|
|
937
|
+
V = self.vocab_size
|
|
938
|
+
T = ctx.total_num_tokens()
|
|
939
|
+
|
|
940
|
+
if per_gpu:
|
|
941
|
+
V //= self.tp_size
|
|
942
|
+
|
|
943
|
+
return {
|
|
944
|
+
"output": T * V * self.activation_byte_size,
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
#### ModelMetrics ####
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
class ModelMetrics:
|
|
952
|
+
def __init__(self, vllm_config: VllmConfig) -> None:
|
|
953
|
+
"""
|
|
954
|
+
Parse vllm_config to instantiate metrics for each component.
|
|
955
|
+
is_enabled() will return False if no component metrics could be instantiated.
|
|
956
|
+
"""
|
|
957
|
+
|
|
958
|
+
self.vllm_config = vllm_config
|
|
959
|
+
|
|
960
|
+
self.metrics: list[ComponentMetrics] = []
|
|
961
|
+
for metric_cls in ComponentMetrics.registered_metrics():
|
|
962
|
+
try:
|
|
963
|
+
metric = metric_cls.from_vllm_config(vllm_config)
|
|
964
|
+
self.metrics.append(metric)
|
|
965
|
+
logger.info(
|
|
966
|
+
"Instantiated ComponentMetrics [%s] with (%s)",
|
|
967
|
+
metric.component_type(),
|
|
968
|
+
str(metric),
|
|
969
|
+
)
|
|
970
|
+
except InvalidComponent as e:
|
|
971
|
+
logger.debug(
|
|
972
|
+
"Failed to instantiate %s from %s",
|
|
973
|
+
metric_cls.component_type(),
|
|
974
|
+
str(e),
|
|
975
|
+
)
|
|
976
|
+
|
|
977
|
+
def is_enabled(self) -> bool:
|
|
978
|
+
return len(self.metrics) > 0
|
|
979
|
+
|
|
980
|
+
def get_num_flops(self, ctx: ExecutionContext, per_gpu: bool = True) -> int:
|
|
981
|
+
return sum(metric.get_num_flops(ctx, per_gpu) for metric in self.metrics)
|
|
982
|
+
|
|
983
|
+
def get_read_bytes(self, ctx: ExecutionContext, per_gpu: bool = True) -> int:
|
|
984
|
+
return sum(metric.get_read_bytes(ctx, per_gpu) for metric in self.metrics)
|
|
985
|
+
|
|
986
|
+
def get_write_bytes(self, ctx: ExecutionContext, per_gpu: bool = True) -> int:
|
|
987
|
+
return sum(metric.get_write_bytes(ctx, per_gpu) for metric in self.metrics)
|
|
988
|
+
|
|
989
|
+
def get_num_flops_breakdown(
|
|
990
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
991
|
+
) -> dict[str, int]:
|
|
992
|
+
total = {}
|
|
993
|
+
for metric in self.metrics:
|
|
994
|
+
breakdown = metric.get_num_flops_breakdown(ctx, per_gpu)
|
|
995
|
+
component = metric.component_type()
|
|
996
|
+
prefixed = {f"{component}.{key}": val for key, val in breakdown.items()}
|
|
997
|
+
total.update(prefixed)
|
|
998
|
+
return total
|
|
999
|
+
|
|
1000
|
+
def get_read_bytes_breakdown(
|
|
1001
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
1002
|
+
) -> dict[str, int]:
|
|
1003
|
+
total = {}
|
|
1004
|
+
for metric in self.metrics:
|
|
1005
|
+
breakdown = metric.get_read_bytes_breakdown(ctx, per_gpu)
|
|
1006
|
+
component = metric.component_type()
|
|
1007
|
+
prefixed = {f"{component}.{key}": val for key, val in breakdown.items()}
|
|
1008
|
+
total.update(prefixed)
|
|
1009
|
+
return total
|
|
1010
|
+
|
|
1011
|
+
def get_write_bytes_breakdown(
|
|
1012
|
+
self, ctx: ExecutionContext, per_gpu: bool = True
|
|
1013
|
+
) -> dict[str, int]:
|
|
1014
|
+
total = {}
|
|
1015
|
+
for metric in self.metrics:
|
|
1016
|
+
breakdown = metric.get_write_bytes_breakdown(ctx, per_gpu)
|
|
1017
|
+
component = metric.component_type()
|
|
1018
|
+
prefixed = {f"{component}.{key}": val for key, val in breakdown.items()}
|
|
1019
|
+
total.update(prefixed)
|
|
1020
|
+
return total
|
|
1021
|
+
|
|
1022
|
+
def get_step_perf_stats_per_gpu(
|
|
1023
|
+
self, scheduler_output: SchedulerOutput
|
|
1024
|
+
) -> PerfStats:
|
|
1025
|
+
"""
|
|
1026
|
+
Calculate perf stats for the current step based on scheduled tokens.
|
|
1027
|
+
"""
|
|
1028
|
+
|
|
1029
|
+
t0 = time.monotonic()
|
|
1030
|
+
|
|
1031
|
+
# Build a single batch context
|
|
1032
|
+
ctx = ExecutionContext()
|
|
1033
|
+
|
|
1034
|
+
# Process new requests (these are in prefill phase)
|
|
1035
|
+
for new_req in scheduler_output.scheduled_new_reqs:
|
|
1036
|
+
req_id = new_req.req_id
|
|
1037
|
+
num_tokens = scheduler_output.num_scheduled_tokens.get(req_id, 0)
|
|
1038
|
+
if num_tokens == 0:
|
|
1039
|
+
continue
|
|
1040
|
+
|
|
1041
|
+
# For new requests, context_len = num_computed_tokens + num_tokens
|
|
1042
|
+
# num_computed_tokens represents previously computed tokens in the sequence
|
|
1043
|
+
context_len = new_req.num_computed_tokens + num_tokens
|
|
1044
|
+
ctx.add(num_tokens, context_len, is_prefill=True)
|
|
1045
|
+
|
|
1046
|
+
# Process cached requests (continuing requests)
|
|
1047
|
+
cached_reqs = scheduler_output.scheduled_cached_reqs
|
|
1048
|
+
for i, req_id in enumerate(cached_reqs.req_ids):
|
|
1049
|
+
num_tokens = scheduler_output.num_scheduled_tokens.get(req_id, 0)
|
|
1050
|
+
if num_tokens == 0:
|
|
1051
|
+
continue
|
|
1052
|
+
|
|
1053
|
+
# For cached requests, we have the current num_computed_tokens
|
|
1054
|
+
num_computed_tokens = cached_reqs.num_computed_tokens[i]
|
|
1055
|
+
context_len = num_computed_tokens + num_tokens
|
|
1056
|
+
|
|
1057
|
+
# Cached requests are typically in decode phase (num_tokens == 1)
|
|
1058
|
+
# unless they're doing chunked prefill (num_tokens > 1)
|
|
1059
|
+
is_prefill = num_tokens > 1
|
|
1060
|
+
ctx.add(num_tokens, context_len, is_prefill)
|
|
1061
|
+
|
|
1062
|
+
num_flops_breakdown = self.get_num_flops_breakdown(ctx, True)
|
|
1063
|
+
read_bytes_breakdown = self.get_read_bytes_breakdown(ctx, True)
|
|
1064
|
+
write_bytes_breakdown = self.get_write_bytes_breakdown(ctx, True)
|
|
1065
|
+
perf_stats = PerfStats(
|
|
1066
|
+
sum(num_flops_breakdown.values()),
|
|
1067
|
+
sum(read_bytes_breakdown.values()),
|
|
1068
|
+
sum(write_bytes_breakdown.values()),
|
|
1069
|
+
)
|
|
1070
|
+
|
|
1071
|
+
if envs.VLLM_DEBUG_MFU_METRICS:
|
|
1072
|
+
perf_stats.debug_stats = DebugPerfStats(
|
|
1073
|
+
time.monotonic() - t0,
|
|
1074
|
+
ctx.num_prefill_requests,
|
|
1075
|
+
ctx.num_decode_requests,
|
|
1076
|
+
asdict(ctx),
|
|
1077
|
+
num_flops_breakdown,
|
|
1078
|
+
read_bytes_breakdown,
|
|
1079
|
+
write_bytes_breakdown,
|
|
1080
|
+
)
|
|
1081
|
+
|
|
1082
|
+
return perf_stats
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
#### Logging ####
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
class PerfMetricsDebugLogging:
|
|
1089
|
+
def __init__(self):
|
|
1090
|
+
self.reset()
|
|
1091
|
+
|
|
1092
|
+
def reset(self):
|
|
1093
|
+
self.total_calc_duration: float = 0.0
|
|
1094
|
+
self.total_num_prefill_requests: int = 0
|
|
1095
|
+
self.total_num_decode_requests: int = 0
|
|
1096
|
+
self.total_num_batches: int = 0
|
|
1097
|
+
self.total_context_breakdown: dict[str, int] = {}
|
|
1098
|
+
self.total_num_flops_per_gpu_breakdown: dict[str, int] = {}
|
|
1099
|
+
self.total_read_bytes_per_gpu_breakdown: dict[str, int] = {}
|
|
1100
|
+
self.total_write_bytes_per_gpu_breakdown: dict[str, int] = {}
|
|
1101
|
+
|
|
1102
|
+
def observe(self, debug_stats: DebugPerfStats) -> None:
|
|
1103
|
+
self.total_calc_duration += debug_stats.calc_duration
|
|
1104
|
+
self.total_num_prefill_requests += debug_stats.num_prefill_requests
|
|
1105
|
+
self.total_num_decode_requests += debug_stats.num_decode_requests
|
|
1106
|
+
self.total_num_batches += 1
|
|
1107
|
+
|
|
1108
|
+
for dst, src in zip(
|
|
1109
|
+
[
|
|
1110
|
+
self.total_context_breakdown,
|
|
1111
|
+
self.total_num_flops_per_gpu_breakdown,
|
|
1112
|
+
self.total_read_bytes_per_gpu_breakdown,
|
|
1113
|
+
self.total_write_bytes_per_gpu_breakdown,
|
|
1114
|
+
],
|
|
1115
|
+
[
|
|
1116
|
+
debug_stats.context_breakdown,
|
|
1117
|
+
debug_stats.num_flops_per_gpu_breakdown,
|
|
1118
|
+
debug_stats.num_read_bytes_per_gpu_breakdown,
|
|
1119
|
+
debug_stats.num_write_bytes_per_gpu_breakdown,
|
|
1120
|
+
],
|
|
1121
|
+
):
|
|
1122
|
+
assert isinstance(src, dict)
|
|
1123
|
+
for key, val in src.items():
|
|
1124
|
+
dst[key] = dst.get(key, 0) + val
|
|
1125
|
+
|
|
1126
|
+
def log(self, log_fn, log_prefix: str, delta_time: float):
|
|
1127
|
+
# pretty print breakdowns
|
|
1128
|
+
total_num_flops_per_gpu_breakdown = {
|
|
1129
|
+
k: f"{v / 1e12:.1f}TF"
|
|
1130
|
+
for k, v in self.total_num_flops_per_gpu_breakdown.items()
|
|
1131
|
+
}
|
|
1132
|
+
total_read_bytes_per_gpu_breakdown = {
|
|
1133
|
+
k: f"{v / 1e9:.1f}GB"
|
|
1134
|
+
for k, v in self.total_read_bytes_per_gpu_breakdown.items()
|
|
1135
|
+
}
|
|
1136
|
+
total_write_bytes_per_gpu_breakdown = {
|
|
1137
|
+
k: f"{v / 1e9:.1f}GB"
|
|
1138
|
+
for k, v in self.total_write_bytes_per_gpu_breakdown.items()
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
logger.debug(
|
|
1142
|
+
"%sMFU details: %s",
|
|
1143
|
+
log_prefix,
|
|
1144
|
+
json.dumps(
|
|
1145
|
+
{
|
|
1146
|
+
"prefill_reqs": self.total_num_prefill_requests,
|
|
1147
|
+
"decode_reqs": self.total_num_decode_requests,
|
|
1148
|
+
"num_batches": self.total_num_batches,
|
|
1149
|
+
"context_breakdown": self.total_context_breakdown,
|
|
1150
|
+
"flops_breakdown": total_num_flops_per_gpu_breakdown,
|
|
1151
|
+
"num_read_bytes_breakdown": total_read_bytes_per_gpu_breakdown,
|
|
1152
|
+
"num_write_bytes_breakdown": (total_write_bytes_per_gpu_breakdown),
|
|
1153
|
+
"duration": f"{delta_time:.1f}s",
|
|
1154
|
+
"mfu_calc_overhead": (
|
|
1155
|
+
f"{self.total_calc_duration / delta_time:.1%}"
|
|
1156
|
+
),
|
|
1157
|
+
},
|
|
1158
|
+
indent=2,
|
|
1159
|
+
),
|
|
1160
|
+
)
|
|
1161
|
+
|
|
1162
|
+
|
|
1163
|
+
class PerfMetricsLogging:
|
|
1164
|
+
def __init__(self, vllm_config: VllmConfig):
|
|
1165
|
+
self.vllm_config = vllm_config
|
|
1166
|
+
self.pp_size = vllm_config.parallel_config.pipeline_parallel_size
|
|
1167
|
+
|
|
1168
|
+
self.debug_logging: PerfMetricsDebugLogging | None = None
|
|
1169
|
+
if envs.VLLM_DEBUG_MFU_METRICS:
|
|
1170
|
+
self.debug_logging = PerfMetricsDebugLogging()
|
|
1171
|
+
|
|
1172
|
+
self.reset()
|
|
1173
|
+
|
|
1174
|
+
def reset(self):
|
|
1175
|
+
self.last_log_time = time.monotonic()
|
|
1176
|
+
|
|
1177
|
+
self.total_num_flops_per_gpu: int = 0
|
|
1178
|
+
self.total_read_bytes_per_gpu: int = 0
|
|
1179
|
+
self.total_write_bytes_per_gpu: int = 0
|
|
1180
|
+
|
|
1181
|
+
if self.debug_logging:
|
|
1182
|
+
self.debug_logging.reset()
|
|
1183
|
+
|
|
1184
|
+
def observe(self, perf_stats: PerfStats) -> None:
|
|
1185
|
+
self.total_num_flops_per_gpu += perf_stats.num_flops_per_gpu
|
|
1186
|
+
self.total_read_bytes_per_gpu += perf_stats.num_read_bytes_per_gpu
|
|
1187
|
+
self.total_write_bytes_per_gpu += perf_stats.num_write_bytes_per_gpu
|
|
1188
|
+
|
|
1189
|
+
if self.debug_logging:
|
|
1190
|
+
assert perf_stats.debug_stats is not None
|
|
1191
|
+
self.debug_logging.observe(perf_stats.debug_stats)
|
|
1192
|
+
|
|
1193
|
+
def log(self, log_fn=logger.info, log_prefix: str = "") -> None:
|
|
1194
|
+
if not (
|
|
1195
|
+
self.total_num_flops_per_gpu
|
|
1196
|
+
or self.total_read_bytes_per_gpu
|
|
1197
|
+
or self.total_write_bytes_per_gpu
|
|
1198
|
+
):
|
|
1199
|
+
return
|
|
1200
|
+
|
|
1201
|
+
now = time.monotonic()
|
|
1202
|
+
delta_time = now - self.last_log_time
|
|
1203
|
+
|
|
1204
|
+
if delta_time <= 0.0:
|
|
1205
|
+
avg_tflops_per_gpu = 0.0
|
|
1206
|
+
avg_gbps_per_gpu = 0.0
|
|
1207
|
+
else:
|
|
1208
|
+
avg_tflops_per_gpu = self.total_num_flops_per_gpu / delta_time / 1e12
|
|
1209
|
+
avg_gbps_per_gpu = (
|
|
1210
|
+
(self.total_read_bytes_per_gpu + self.total_write_bytes_per_gpu)
|
|
1211
|
+
/ delta_time
|
|
1212
|
+
/ 1e9
|
|
1213
|
+
)
|
|
1214
|
+
|
|
1215
|
+
log_fn(
|
|
1216
|
+
"%sMFU: %.1f TF/s/GPU %.1f GB/s/GPU",
|
|
1217
|
+
log_prefix,
|
|
1218
|
+
avg_tflops_per_gpu,
|
|
1219
|
+
avg_gbps_per_gpu,
|
|
1220
|
+
)
|
|
1221
|
+
|
|
1222
|
+
if self.debug_logging:
|
|
1223
|
+
self.debug_logging.log(log_fn, log_prefix, delta_time)
|
|
1224
|
+
|
|
1225
|
+
self.reset()
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
## util functions
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
def get_required(obj: object, attr: str):
|
|
1232
|
+
"""Get an attr from an object, or throw a InvalidComponentError if it's not set."""
|
|
1233
|
+
if not hasattr(obj, attr):
|
|
1234
|
+
raise InvalidComponent(f"Missing required attr {attr} in config")
|
|
1235
|
+
return getattr(obj, attr)
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
def getattr_from_list(obj: object, attrs: list[str], default: object = None):
|
|
1239
|
+
"""Try to get the first attr that exists in the object
|
|
1240
|
+
from a list of attrs. Otherwise return None."""
|
|
1241
|
+
for attr in attrs:
|
|
1242
|
+
if hasattr(obj, attr):
|
|
1243
|
+
return getattr(obj, attr)
|
|
1244
|
+
return default
|