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/_aiter_ops.py
ADDED
|
@@ -0,0 +1,1511 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
3
|
+
import functools
|
|
4
|
+
from collections.abc import Callable
|
|
5
|
+
|
|
6
|
+
import torch
|
|
7
|
+
from torch._ops import OpOverload
|
|
8
|
+
|
|
9
|
+
import vllm.envs as envs
|
|
10
|
+
from vllm.platforms import current_platform
|
|
11
|
+
from vllm.utils.torch_utils import direct_register_custom_op, is_torch_equal_or_newer
|
|
12
|
+
|
|
13
|
+
_FP8_DTYPE = current_platform.fp8_dtype()
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def is_aiter_found() -> bool:
|
|
17
|
+
from importlib.util import find_spec
|
|
18
|
+
|
|
19
|
+
return find_spec("aiter") is not None
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# `find_spec` is not torch.compile compatible.
|
|
23
|
+
# In cases where aiter availability might have
|
|
24
|
+
# been checked in forward passes that are torch compiled.
|
|
25
|
+
# we keep this global outside to not cause torch compile breaks.
|
|
26
|
+
IS_AITER_FOUND = is_aiter_found()
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def is_aiter_found_and_supported() -> bool:
|
|
30
|
+
if current_platform.is_rocm() and IS_AITER_FOUND:
|
|
31
|
+
from vllm.platforms.rocm import on_gfx9
|
|
32
|
+
|
|
33
|
+
return on_gfx9()
|
|
34
|
+
return False
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def if_aiter_supported(func: Callable) -> Callable:
|
|
38
|
+
"""Decorator that only executes the function if
|
|
39
|
+
ROCm AITER package is supported on gfx9 archs.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
@functools.wraps(func)
|
|
43
|
+
def wrapper(*args, **kwargs):
|
|
44
|
+
# checks the platform, device arch and aiter library existence.
|
|
45
|
+
|
|
46
|
+
if is_aiter_found_and_supported():
|
|
47
|
+
return func(*args, **kwargs)
|
|
48
|
+
|
|
49
|
+
return None
|
|
50
|
+
|
|
51
|
+
return wrapper
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# Can't use dtypes.fp8 directly inside an op
|
|
55
|
+
# because it returns wrong result on gfx942.
|
|
56
|
+
# This is a workaround to get the correct FP8 dtype.
|
|
57
|
+
# This might because that the get_gfx() is wrapped as a custom op.
|
|
58
|
+
if is_aiter_found_and_supported():
|
|
59
|
+
from aiter import dtypes
|
|
60
|
+
|
|
61
|
+
AITER_FP8_DTYPE = dtypes.fp8
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def _rocm_aiter_fused_moe_impl(
|
|
65
|
+
hidden_states: torch.Tensor,
|
|
66
|
+
w1: torch.Tensor,
|
|
67
|
+
w2: torch.Tensor,
|
|
68
|
+
topk_weight: torch.Tensor,
|
|
69
|
+
topk_ids: torch.Tensor,
|
|
70
|
+
expert_mask: torch.Tensor | None = None,
|
|
71
|
+
activation_method: int = 0,
|
|
72
|
+
quant_method: int = 0,
|
|
73
|
+
doweight_stage1: bool = False,
|
|
74
|
+
w1_scale: torch.Tensor | None = None,
|
|
75
|
+
w2_scale: torch.Tensor | None = None,
|
|
76
|
+
a1_scale: torch.Tensor | None = None,
|
|
77
|
+
a2_scale: torch.Tensor | None = None,
|
|
78
|
+
) -> torch.Tensor:
|
|
79
|
+
from aiter import ActivationType, QuantType
|
|
80
|
+
from aiter.fused_moe import fused_moe
|
|
81
|
+
|
|
82
|
+
activation = ActivationType(activation_method)
|
|
83
|
+
quant_type = QuantType(quant_method)
|
|
84
|
+
|
|
85
|
+
return fused_moe(
|
|
86
|
+
hidden_states,
|
|
87
|
+
w1,
|
|
88
|
+
w2,
|
|
89
|
+
topk_weight,
|
|
90
|
+
topk_ids,
|
|
91
|
+
expert_mask,
|
|
92
|
+
activation,
|
|
93
|
+
quant_type,
|
|
94
|
+
doweight_stage1,
|
|
95
|
+
w1_scale,
|
|
96
|
+
w2_scale,
|
|
97
|
+
a1_scale,
|
|
98
|
+
a2_scale,
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def _rocm_aiter_fused_moe_fake(
|
|
103
|
+
hidden_states: torch.Tensor,
|
|
104
|
+
w1: torch.Tensor,
|
|
105
|
+
w2: torch.Tensor,
|
|
106
|
+
topk_weight: torch.Tensor,
|
|
107
|
+
topk_ids: torch.Tensor,
|
|
108
|
+
expert_mask: torch.Tensor | None = None,
|
|
109
|
+
activation_method: int = 0,
|
|
110
|
+
quant_method: int = 0,
|
|
111
|
+
doweight_stage1: bool = False,
|
|
112
|
+
w1_scale: torch.Tensor | None = None,
|
|
113
|
+
w2_scale: torch.Tensor | None = None,
|
|
114
|
+
a1_scale: torch.Tensor | None = None,
|
|
115
|
+
a2_scale: torch.Tensor | None = None,
|
|
116
|
+
) -> torch.Tensor:
|
|
117
|
+
return torch.empty_like(hidden_states)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def _rocm_aiter_asm_moe_tkw1_impl(
|
|
121
|
+
hidden_states: torch.Tensor,
|
|
122
|
+
w1: torch.Tensor,
|
|
123
|
+
w2: torch.Tensor,
|
|
124
|
+
topk_weights: torch.Tensor,
|
|
125
|
+
topk_ids: torch.Tensor,
|
|
126
|
+
fc1_scale: torch.Tensor | None = None,
|
|
127
|
+
fc2_scale: torch.Tensor | None = None,
|
|
128
|
+
fc1_smooth_scale: torch.Tensor | None = None,
|
|
129
|
+
fc2_smooth_scale: torch.Tensor | None = None,
|
|
130
|
+
a16: bool = False,
|
|
131
|
+
per_tensor_quant_scale: torch.Tensor | None = None,
|
|
132
|
+
expert_mask: torch.Tensor | None = None,
|
|
133
|
+
activation_method: int = 0,
|
|
134
|
+
) -> torch.Tensor:
|
|
135
|
+
from aiter import ActivationType
|
|
136
|
+
from aiter.fused_moe_bf16_asm import asm_moe_tkw1
|
|
137
|
+
|
|
138
|
+
activation = ActivationType(activation_method)
|
|
139
|
+
|
|
140
|
+
return asm_moe_tkw1(
|
|
141
|
+
hidden_states,
|
|
142
|
+
w1,
|
|
143
|
+
w2,
|
|
144
|
+
topk_weights,
|
|
145
|
+
topk_ids,
|
|
146
|
+
fc1_scale=fc1_scale,
|
|
147
|
+
fc2_scale=fc2_scale,
|
|
148
|
+
fc1_smooth_scale=fc1_smooth_scale,
|
|
149
|
+
fc2_smooth_scale=fc2_smooth_scale,
|
|
150
|
+
a16=a16,
|
|
151
|
+
per_tensor_quant_scale=per_tensor_quant_scale,
|
|
152
|
+
expert_mask=expert_mask,
|
|
153
|
+
activation=activation,
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
def _rocm_aiter_asm_moe_tkw1_fake(
|
|
158
|
+
hidden_states: torch.Tensor,
|
|
159
|
+
w1: torch.Tensor,
|
|
160
|
+
w2: torch.Tensor,
|
|
161
|
+
topk_weights: torch.Tensor,
|
|
162
|
+
topk_ids: torch.Tensor,
|
|
163
|
+
fc1_scale: torch.Tensor | None = None,
|
|
164
|
+
fc2_scale: torch.Tensor | None = None,
|
|
165
|
+
fc1_smooth_scale: torch.Tensor | None = None,
|
|
166
|
+
fc2_smooth_scale: torch.Tensor | None = None,
|
|
167
|
+
a16: bool = False,
|
|
168
|
+
per_tensor_quant_scale: torch.Tensor | None = None,
|
|
169
|
+
expert_mask: torch.Tensor | None = None,
|
|
170
|
+
activation_method: int = 0,
|
|
171
|
+
) -> torch.Tensor:
|
|
172
|
+
return torch.empty_like(hidden_states)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def _rocm_aiter_topk_softmax_impl(
|
|
176
|
+
topk_weights: torch.Tensor,
|
|
177
|
+
topk_indices: torch.Tensor,
|
|
178
|
+
token_expert_indices: torch.Tensor,
|
|
179
|
+
gating_output: torch.Tensor,
|
|
180
|
+
renormalize: bool,
|
|
181
|
+
) -> None:
|
|
182
|
+
from aiter import topk_softmax
|
|
183
|
+
|
|
184
|
+
topk_softmax(
|
|
185
|
+
topk_weights, topk_indices, token_expert_indices, gating_output, renormalize
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def _rocm_aiter_topk_softmax_fake(
|
|
190
|
+
topk_weights: torch.Tensor,
|
|
191
|
+
topk_indices: torch.Tensor,
|
|
192
|
+
token_expert_indices: torch.Tensor,
|
|
193
|
+
gating_output: torch.Tensor,
|
|
194
|
+
renormalize: bool,
|
|
195
|
+
) -> None:
|
|
196
|
+
pass
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
def _rocm_aiter_biased_grouped_topk_impl(
|
|
200
|
+
gating_output: torch.Tensor,
|
|
201
|
+
correction_bias: torch.Tensor,
|
|
202
|
+
topk_weights: torch.Tensor,
|
|
203
|
+
topk_ids: torch.Tensor,
|
|
204
|
+
num_expert_group: int,
|
|
205
|
+
topk_group: int,
|
|
206
|
+
need_renorm: bool,
|
|
207
|
+
routed_scaling_factor: float = 1.0, # mul to topk_weights
|
|
208
|
+
) -> None:
|
|
209
|
+
from aiter import biased_grouped_topk
|
|
210
|
+
|
|
211
|
+
biased_grouped_topk(
|
|
212
|
+
gating_output,
|
|
213
|
+
correction_bias,
|
|
214
|
+
topk_weights,
|
|
215
|
+
topk_ids,
|
|
216
|
+
num_expert_group,
|
|
217
|
+
topk_group,
|
|
218
|
+
need_renorm,
|
|
219
|
+
routed_scaling_factor,
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
def _rocm_aiter_biased_grouped_topk_fake(
|
|
224
|
+
gating_output: torch.Tensor,
|
|
225
|
+
correction_bias: torch.Tensor,
|
|
226
|
+
topk_weights: torch.Tensor,
|
|
227
|
+
topk_ids: torch.Tensor,
|
|
228
|
+
num_expert_group: int,
|
|
229
|
+
topk_group: int,
|
|
230
|
+
need_renorm: bool,
|
|
231
|
+
routed_scaling_factor: float = 1.0, # mul to topk_weights
|
|
232
|
+
) -> None:
|
|
233
|
+
pass
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def _rocm_aiter_grouped_topk_impl(
|
|
237
|
+
gating_output: torch.Tensor,
|
|
238
|
+
topk_weights: torch.Tensor,
|
|
239
|
+
topk_ids: torch.Tensor,
|
|
240
|
+
num_expert_group: int,
|
|
241
|
+
topk_group: int,
|
|
242
|
+
need_renorm: bool,
|
|
243
|
+
scoring_func: str = "softmax",
|
|
244
|
+
routed_scaling_factor: float = 1.0, # mul to topk_weights
|
|
245
|
+
) -> None:
|
|
246
|
+
is_softmax = scoring_func == "softmax"
|
|
247
|
+
from aiter import grouped_topk
|
|
248
|
+
|
|
249
|
+
grouped_topk(
|
|
250
|
+
gating_output,
|
|
251
|
+
topk_weights,
|
|
252
|
+
topk_ids,
|
|
253
|
+
num_expert_group,
|
|
254
|
+
topk_group,
|
|
255
|
+
need_renorm,
|
|
256
|
+
is_softmax,
|
|
257
|
+
routed_scaling_factor,
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
def _rocm_aiter_grouped_topk_fake(
|
|
262
|
+
gating_output: torch.Tensor,
|
|
263
|
+
topk_weights: torch.Tensor,
|
|
264
|
+
topk_ids: torch.Tensor,
|
|
265
|
+
num_expert_group: int,
|
|
266
|
+
topk_group: int,
|
|
267
|
+
need_renorm: bool,
|
|
268
|
+
scoring_func: str = "softmax",
|
|
269
|
+
routed_scaling_factor: float = 1.0, # mul to topk_weights
|
|
270
|
+
) -> None:
|
|
271
|
+
pass
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
# Cache whether aiter supports FP8 MLA parameters
|
|
275
|
+
_AITER_MLA_SUPPORTS_FP8: bool | None = None
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
def _check_aiter_mla_fp8_support() -> bool:
|
|
279
|
+
"""Check if aiter.mla.mla_decode_fwd supports q_scale and kv_scale parameters."""
|
|
280
|
+
global _AITER_MLA_SUPPORTS_FP8
|
|
281
|
+
if _AITER_MLA_SUPPORTS_FP8 is None:
|
|
282
|
+
try:
|
|
283
|
+
import inspect
|
|
284
|
+
|
|
285
|
+
from aiter.mla import mla_decode_fwd
|
|
286
|
+
|
|
287
|
+
sig = inspect.signature(mla_decode_fwd)
|
|
288
|
+
_AITER_MLA_SUPPORTS_FP8 = (
|
|
289
|
+
"q_scale" in sig.parameters and "kv_scale" in sig.parameters
|
|
290
|
+
)
|
|
291
|
+
except (
|
|
292
|
+
ImportError,
|
|
293
|
+
ModuleNotFoundError,
|
|
294
|
+
AttributeError,
|
|
295
|
+
ValueError,
|
|
296
|
+
TypeError,
|
|
297
|
+
):
|
|
298
|
+
# ImportError/ModuleNotFoundError: aiter.mla module not available
|
|
299
|
+
# AttributeError: mla_decode_fwd doesn't exist
|
|
300
|
+
# ValueError: mla_decode_fwd has no signature (e.g., built-in)
|
|
301
|
+
# TypeError: mla_decode_fwd is not a callable
|
|
302
|
+
_AITER_MLA_SUPPORTS_FP8 = False
|
|
303
|
+
return _AITER_MLA_SUPPORTS_FP8
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
def _rocm_aiter_mla_decode_fwd_impl(
|
|
307
|
+
q: torch.Tensor,
|
|
308
|
+
kv_buffer: torch.Tensor,
|
|
309
|
+
o: torch.Tensor,
|
|
310
|
+
qo_indptr: torch.Tensor,
|
|
311
|
+
max_seqlen_qo: int,
|
|
312
|
+
kv_indptr: torch.Tensor | None = None,
|
|
313
|
+
kv_indices: torch.Tensor | None = None,
|
|
314
|
+
kv_last_page_lens: torch.Tensor | None = None,
|
|
315
|
+
sm_scale: float = 1.0,
|
|
316
|
+
logit_cap: float = 0.0,
|
|
317
|
+
q_scale: torch.Tensor | None = None,
|
|
318
|
+
kv_scale: torch.Tensor | None = None,
|
|
319
|
+
) -> None:
|
|
320
|
+
from aiter.mla import mla_decode_fwd
|
|
321
|
+
|
|
322
|
+
kwargs = {
|
|
323
|
+
"sm_scale": sm_scale,
|
|
324
|
+
"logit_cap": logit_cap,
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
# Only pass q_scale and kv_scale if the aiter library supports them
|
|
328
|
+
if _check_aiter_mla_fp8_support():
|
|
329
|
+
kwargs["q_scale"] = q_scale
|
|
330
|
+
kwargs["kv_scale"] = kv_scale
|
|
331
|
+
|
|
332
|
+
mla_decode_fwd(
|
|
333
|
+
q,
|
|
334
|
+
kv_buffer.view(-1, 1, 1, q.shape[-1]),
|
|
335
|
+
o,
|
|
336
|
+
qo_indptr,
|
|
337
|
+
kv_indptr,
|
|
338
|
+
kv_indices,
|
|
339
|
+
kv_last_page_lens,
|
|
340
|
+
max_seqlen_qo,
|
|
341
|
+
**kwargs,
|
|
342
|
+
)
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
def _rocm_aiter_mla_decode_fwd_fake(
|
|
346
|
+
q: torch.Tensor,
|
|
347
|
+
kv_buffer: torch.Tensor,
|
|
348
|
+
o: torch.Tensor,
|
|
349
|
+
qo_indptr: torch.Tensor,
|
|
350
|
+
max_seqlen_qo: int,
|
|
351
|
+
kv_indptr: torch.Tensor | None = None,
|
|
352
|
+
kv_indices: torch.Tensor | None = None,
|
|
353
|
+
kv_last_page_lens: torch.Tensor | None = None,
|
|
354
|
+
sm_scale: float = 1.0,
|
|
355
|
+
logit_cap: float = 0.0,
|
|
356
|
+
q_scale: torch.Tensor | None = None,
|
|
357
|
+
kv_scale: torch.Tensor | None = None,
|
|
358
|
+
) -> None:
|
|
359
|
+
pass
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
def _rocm_aiter_gemm_a8w8_impl(
|
|
363
|
+
A: torch.Tensor,
|
|
364
|
+
B: torch.Tensor,
|
|
365
|
+
As: torch.Tensor,
|
|
366
|
+
Bs: torch.Tensor,
|
|
367
|
+
bias: torch.Tensor | None = None,
|
|
368
|
+
output_dtype: torch.dtype = torch.float16,
|
|
369
|
+
) -> torch.Tensor:
|
|
370
|
+
from aiter import gemm_a8w8_CK
|
|
371
|
+
|
|
372
|
+
# gemm_a8w8_CK(a, b, scale_a, scale_b, bias) expects
|
|
373
|
+
# a to be [M, K]
|
|
374
|
+
# b to be [N, K]
|
|
375
|
+
# CutlassScaledMMLinearKernel prepare weight `w_q` in [K, N] format
|
|
376
|
+
return gemm_a8w8_CK(A, B, As, Bs, bias, output_dtype)
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
def _rocm_aiter_gemm_a8w8_fake(
|
|
380
|
+
A: torch.Tensor,
|
|
381
|
+
B: torch.Tensor,
|
|
382
|
+
As: torch.Tensor,
|
|
383
|
+
Bs: torch.Tensor,
|
|
384
|
+
bias: torch.Tensor | None = None,
|
|
385
|
+
output_dtype: torch.dtype = torch.float16,
|
|
386
|
+
) -> torch.Tensor:
|
|
387
|
+
m = A.shape[0]
|
|
388
|
+
n = B.shape[0]
|
|
389
|
+
Y = torch.empty(m, n, dtype=output_dtype, device=A.device)
|
|
390
|
+
return Y
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
def _rocm_aiter_triton_gemm_a8w8_blockscale_impl(
|
|
394
|
+
A: torch.Tensor,
|
|
395
|
+
B: torch.Tensor,
|
|
396
|
+
As: torch.Tensor,
|
|
397
|
+
Bs: torch.Tensor,
|
|
398
|
+
output_dtype: torch.dtype = torch.float16,
|
|
399
|
+
) -> torch.Tensor:
|
|
400
|
+
from aiter.ops.triton.gemm_a8w8_blockscale import gemm_a8w8_blockscale
|
|
401
|
+
|
|
402
|
+
return gemm_a8w8_blockscale(A, B, As, Bs, dtype=output_dtype)
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
def _rocm_aiter_triton_gemm_a8w8_blockscale_fake(
|
|
406
|
+
A: torch.Tensor,
|
|
407
|
+
B: torch.Tensor,
|
|
408
|
+
As: torch.Tensor,
|
|
409
|
+
Bs: torch.Tensor,
|
|
410
|
+
output_dtype: torch.dtype = torch.float16,
|
|
411
|
+
) -> torch.Tensor:
|
|
412
|
+
m = A.shape[0]
|
|
413
|
+
n = B.shape[0]
|
|
414
|
+
Y = torch.empty(m, n, dtype=output_dtype, device=A.device)
|
|
415
|
+
return Y
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
def _rocm_aiter_gemm_a8w8_blockscale_impl(
|
|
419
|
+
A: torch.Tensor,
|
|
420
|
+
B: torch.Tensor,
|
|
421
|
+
As: torch.Tensor,
|
|
422
|
+
Bs: torch.Tensor,
|
|
423
|
+
output_dtype: torch.dtype = torch.float16,
|
|
424
|
+
) -> torch.Tensor:
|
|
425
|
+
from aiter import gemm_a8w8_blockscale
|
|
426
|
+
|
|
427
|
+
return gemm_a8w8_blockscale(A, B, As, Bs, dtype=output_dtype)
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
def _rocm_aiter_gemm_a8w8_blockscale_fake(
|
|
431
|
+
A: torch.Tensor,
|
|
432
|
+
B: torch.Tensor,
|
|
433
|
+
As: torch.Tensor,
|
|
434
|
+
Bs: torch.Tensor,
|
|
435
|
+
output_dtype: torch.dtype = torch.float16,
|
|
436
|
+
) -> torch.Tensor:
|
|
437
|
+
m = A.shape[0]
|
|
438
|
+
n = B.shape[0]
|
|
439
|
+
Y = torch.empty(m, n, dtype=output_dtype, device=A.device)
|
|
440
|
+
return Y
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
def _rocm_aiter_rms_norm_impl(
|
|
444
|
+
x: torch.Tensor, weight: torch.Tensor, variance_epsilon: float
|
|
445
|
+
) -> torch.Tensor:
|
|
446
|
+
from aiter import rms_norm
|
|
447
|
+
|
|
448
|
+
if x.dim() > 2:
|
|
449
|
+
x_original_shape = x.shape
|
|
450
|
+
x = x.reshape(-1, x_original_shape[-1])
|
|
451
|
+
x = rms_norm(x, weight, variance_epsilon)
|
|
452
|
+
return x.reshape(x_original_shape)
|
|
453
|
+
|
|
454
|
+
return rms_norm(x, weight, variance_epsilon)
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
def _rocm_aiter_rms_norm_fake(
|
|
458
|
+
x: torch.Tensor, weight: torch.Tensor, variance_epsilon: float
|
|
459
|
+
) -> torch.Tensor:
|
|
460
|
+
return torch.empty_like(x)
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
def _rocm_aiter_rmsnorm2d_fwd_with_add_impl(
|
|
464
|
+
x: torch.Tensor,
|
|
465
|
+
residual: torch.Tensor,
|
|
466
|
+
weight: torch.Tensor,
|
|
467
|
+
variance_epsilon: float,
|
|
468
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
469
|
+
from aiter import rmsnorm2d_fwd_with_add
|
|
470
|
+
|
|
471
|
+
residual_out = torch.empty_like(residual)
|
|
472
|
+
out = torch.empty_like(x)
|
|
473
|
+
rmsnorm2d_fwd_with_add(
|
|
474
|
+
out, # output
|
|
475
|
+
x, # input
|
|
476
|
+
residual, # residual input
|
|
477
|
+
residual_out, # residual output
|
|
478
|
+
weight,
|
|
479
|
+
variance_epsilon,
|
|
480
|
+
)
|
|
481
|
+
return out, residual_out
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
def _rocm_aiter_rmsnorm2d_fwd_with_add_fake(
|
|
485
|
+
x: torch.Tensor,
|
|
486
|
+
residual: torch.Tensor,
|
|
487
|
+
weight: torch.Tensor,
|
|
488
|
+
variance_epsilon: float,
|
|
489
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
490
|
+
residual_out = torch.empty_like(residual)
|
|
491
|
+
out = torch.empty_like(x)
|
|
492
|
+
return out, residual_out
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
def _rocm_aiter_rmsnorm_fused_add_dynamic_quant_impl(
|
|
496
|
+
x: torch.Tensor,
|
|
497
|
+
residual: torch.Tensor,
|
|
498
|
+
weight: torch.Tensor,
|
|
499
|
+
epsilon: float,
|
|
500
|
+
quant_dtype: torch.dtype,
|
|
501
|
+
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
|
|
502
|
+
import aiter as rocm_aiter
|
|
503
|
+
|
|
504
|
+
assert quant_dtype in [torch.int8, _FP8_DTYPE]
|
|
505
|
+
|
|
506
|
+
y_scale = torch.empty(x.shape[0], 1, dtype=torch.float32, device=x.device)
|
|
507
|
+
out = torch.empty(x.shape, dtype=quant_dtype, device=x.device)
|
|
508
|
+
residual_out = torch.empty_like(x)
|
|
509
|
+
|
|
510
|
+
rocm_aiter.rmsnorm2d_fwd_with_add_dynamicquant(
|
|
511
|
+
out,
|
|
512
|
+
x,
|
|
513
|
+
residual,
|
|
514
|
+
residual_out,
|
|
515
|
+
y_scale,
|
|
516
|
+
weight,
|
|
517
|
+
epsilon,
|
|
518
|
+
use_model_sensitive_rmsnorm=0,
|
|
519
|
+
)
|
|
520
|
+
|
|
521
|
+
return out, residual_out, y_scale
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
def _rocm_aiter_rmsnorm_fused_add_dynamic_quant_fake(
|
|
525
|
+
x: torch.Tensor,
|
|
526
|
+
residual: torch.Tensor,
|
|
527
|
+
weight: torch.Tensor,
|
|
528
|
+
epsilon: float,
|
|
529
|
+
quant_dtype: torch.dtype,
|
|
530
|
+
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
|
|
531
|
+
y_scale = torch.empty(x.shape[0], 1, dtype=torch.float32, device=x.device)
|
|
532
|
+
out = torch.empty(x.shape, dtype=quant_dtype, device=x.device)
|
|
533
|
+
residual_out = torch.empty_like(x)
|
|
534
|
+
|
|
535
|
+
return out, residual_out, y_scale
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
def _rocm_aiter_rmsnorm_fused_dynamic_quant_impl(
|
|
539
|
+
x: torch.Tensor,
|
|
540
|
+
weight: torch.Tensor,
|
|
541
|
+
epsilon: float,
|
|
542
|
+
quant_dtype: torch.dtype,
|
|
543
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
544
|
+
import aiter as rocm_aiter
|
|
545
|
+
|
|
546
|
+
assert quant_dtype in [torch.int8, _FP8_DTYPE]
|
|
547
|
+
|
|
548
|
+
y_scale = torch.empty(x.shape[0], 1, dtype=torch.float32, device=x.device)
|
|
549
|
+
out = torch.empty(x.shape, dtype=quant_dtype, device=x.device)
|
|
550
|
+
|
|
551
|
+
rocm_aiter.rmsnorm2d_fwd_with_dynamicquant(
|
|
552
|
+
out, x, y_scale, weight, epsilon, use_model_sensitive_rmsnorm=0
|
|
553
|
+
)
|
|
554
|
+
|
|
555
|
+
return out, y_scale
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
def _rocm_aiter_rmsnorm_fused_dynamic_quant_fake(
|
|
559
|
+
x: torch.Tensor,
|
|
560
|
+
weight: torch.Tensor,
|
|
561
|
+
epsilon: float,
|
|
562
|
+
quant_dtype: torch.dtype,
|
|
563
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
564
|
+
y_scale = torch.empty(x.shape[0], 1, dtype=torch.float32, device=x.device)
|
|
565
|
+
out = torch.empty(x.shape, dtype=quant_dtype, device=x.device)
|
|
566
|
+
|
|
567
|
+
return out, y_scale
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
def _rocm_aiter_per_tensor_quant_impl(
|
|
571
|
+
x: torch.Tensor,
|
|
572
|
+
quant_dtype: torch.dtype,
|
|
573
|
+
scale: torch.Tensor | None = None,
|
|
574
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
575
|
+
from aiter.ops.quant import per_tensor_quant_hip
|
|
576
|
+
|
|
577
|
+
return per_tensor_quant_hip(x, scale, quant_dtype)
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
def _rocm_aiter_per_tensor_quant_fake(
|
|
581
|
+
x: torch.Tensor,
|
|
582
|
+
quant_dtype: torch.dtype,
|
|
583
|
+
scale: torch.Tensor | None = None,
|
|
584
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
585
|
+
return torch.empty_like(x, dtype=quant_dtype), torch.empty(
|
|
586
|
+
1, dtype=torch.float32, device=x.device
|
|
587
|
+
)
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
def _rocm_aiter_per_token_quant_impl(
|
|
591
|
+
x: torch.Tensor, quant_dtype: torch.dtype, scale: torch.Tensor | None = None
|
|
592
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
593
|
+
from aiter.ops.quant import dynamic_per_token_scaled_quant
|
|
594
|
+
|
|
595
|
+
assert quant_dtype in [torch.int8, _FP8_DTYPE]
|
|
596
|
+
|
|
597
|
+
out_shape = x.shape
|
|
598
|
+
out = torch.empty(x.shape, dtype=_FP8_DTYPE, device=x.device)
|
|
599
|
+
if scale is None:
|
|
600
|
+
scale = torch.empty((*out_shape[:-1], 1), dtype=torch.float32, device=x.device)
|
|
601
|
+
dynamic_per_token_scaled_quant(
|
|
602
|
+
out,
|
|
603
|
+
x,
|
|
604
|
+
scale,
|
|
605
|
+
scale_ub=None,
|
|
606
|
+
shuffle_scale=False,
|
|
607
|
+
num_rows=None,
|
|
608
|
+
num_rows_factor=1,
|
|
609
|
+
)
|
|
610
|
+
return out, scale
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
def _rocm_aiter_per_token_quant_fake(
|
|
614
|
+
x: torch.Tensor, quant_dtype: torch.dtype, scale: torch.Tensor | None = None
|
|
615
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
616
|
+
out_shape = x.shape
|
|
617
|
+
return (
|
|
618
|
+
torch.empty(x.shape, dtype=_FP8_DTYPE, device=x.device),
|
|
619
|
+
torch.empty((*out_shape[:-1], 1), dtype=torch.float32, device=x.device),
|
|
620
|
+
)
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
def _rocm_aiter_rmsnorm_with_add_fp8_group_quant_impl(
|
|
624
|
+
x: torch.Tensor,
|
|
625
|
+
residual: torch.Tensor,
|
|
626
|
+
weight: torch.Tensor,
|
|
627
|
+
variance_epsilon: float,
|
|
628
|
+
group_size: int,
|
|
629
|
+
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
|
|
630
|
+
from aiter.ops.triton.fused_fp8_quant import fused_rms_fp8_group_quant
|
|
631
|
+
|
|
632
|
+
(x_quant, x_quant_scales), _, _, res = fused_rms_fp8_group_quant(
|
|
633
|
+
x,
|
|
634
|
+
weight,
|
|
635
|
+
variance_epsilon,
|
|
636
|
+
None,
|
|
637
|
+
None,
|
|
638
|
+
None,
|
|
639
|
+
group_size=group_size,
|
|
640
|
+
dtype_quant=AITER_FP8_DTYPE,
|
|
641
|
+
res1=residual,
|
|
642
|
+
)
|
|
643
|
+
return (
|
|
644
|
+
x_quant,
|
|
645
|
+
res,
|
|
646
|
+
x_quant_scales,
|
|
647
|
+
)
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
def _rocm_aiter_rmsnorm_with_add_fp8_group_quant_fake(
|
|
651
|
+
x: torch.Tensor,
|
|
652
|
+
residual: torch.Tensor,
|
|
653
|
+
weight: torch.Tensor,
|
|
654
|
+
variance_epsilon: float,
|
|
655
|
+
group_size: int,
|
|
656
|
+
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
|
|
657
|
+
M, N = x.shape
|
|
658
|
+
scale_shape = (M, (N + group_size - 1) // group_size)
|
|
659
|
+
return (
|
|
660
|
+
torch.empty_like(x, dtype=AITER_FP8_DTYPE, device=x.device),
|
|
661
|
+
torch.empty_like(residual, device=residual.device),
|
|
662
|
+
torch.empty(scale_shape, dtype=torch.float32, device=x.device),
|
|
663
|
+
)
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
def _rocm_aiter_rmsnorm_fp8_group_quant_impl(
|
|
667
|
+
x: torch.Tensor,
|
|
668
|
+
weight: torch.Tensor,
|
|
669
|
+
variance_epsilon: float,
|
|
670
|
+
group_size: int,
|
|
671
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
672
|
+
from aiter.ops.triton.fused_fp8_quant import fused_rms_fp8_group_quant
|
|
673
|
+
|
|
674
|
+
(x_quant, x_quant_scales), _, _, res = fused_rms_fp8_group_quant(
|
|
675
|
+
x,
|
|
676
|
+
weight,
|
|
677
|
+
variance_epsilon,
|
|
678
|
+
None,
|
|
679
|
+
None,
|
|
680
|
+
None,
|
|
681
|
+
group_size=group_size,
|
|
682
|
+
dtype_quant=AITER_FP8_DTYPE,
|
|
683
|
+
res1=None,
|
|
684
|
+
)
|
|
685
|
+
return (x_quant, x_quant_scales)
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
def _rocm_aiter_rmsnorm_fp8_group_quant_fake(
|
|
689
|
+
x: torch.Tensor,
|
|
690
|
+
weight: torch.Tensor,
|
|
691
|
+
variance_epsilon: float,
|
|
692
|
+
group_size: int,
|
|
693
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
694
|
+
M, N = x.shape
|
|
695
|
+
scale_shape = (M, (N + group_size - 1) // group_size)
|
|
696
|
+
return (
|
|
697
|
+
torch.empty_like(x, dtype=AITER_FP8_DTYPE, device=x.device),
|
|
698
|
+
torch.empty(scale_shape, dtype=torch.float32, device=x.device),
|
|
699
|
+
)
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
def _rocm_aiter_group_fp8_quant_impl(
|
|
703
|
+
x: torch.Tensor,
|
|
704
|
+
group_size: int,
|
|
705
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
706
|
+
assert x.shape[-1] % group_size == 0, "Input shape must be divisible by group size"
|
|
707
|
+
from aiter import QuantType, get_hip_quant
|
|
708
|
+
|
|
709
|
+
aiter_per1x128_quant = get_hip_quant(QuantType.per_1x128)
|
|
710
|
+
return aiter_per1x128_quant(x.contiguous(), quant_dtype=AITER_FP8_DTYPE)
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
def _rocm_aiter_group_fp8_quant_fake(
|
|
714
|
+
x: torch.Tensor,
|
|
715
|
+
group_size: int,
|
|
716
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
717
|
+
M, N = x.shape
|
|
718
|
+
x_fp8 = torch.empty((M, N), dtype=AITER_FP8_DTYPE, device=x.device)
|
|
719
|
+
out_bs = torch.empty(
|
|
720
|
+
(
|
|
721
|
+
M,
|
|
722
|
+
(N + group_size - 1) // group_size,
|
|
723
|
+
),
|
|
724
|
+
dtype=torch.float32,
|
|
725
|
+
device=x.device,
|
|
726
|
+
)
|
|
727
|
+
return x_fp8, out_bs
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
def _rocm_aiter_act_mul_and_fp8_group_quant_impl(
|
|
731
|
+
x: torch.Tensor,
|
|
732
|
+
group_size: int,
|
|
733
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
734
|
+
from aiter.ops.triton.activation import act_mul_and_fp8_group_quant
|
|
735
|
+
|
|
736
|
+
return act_mul_and_fp8_group_quant(
|
|
737
|
+
x,
|
|
738
|
+
activation="silu",
|
|
739
|
+
group_size=group_size,
|
|
740
|
+
dtype_quant=AITER_FP8_DTYPE,
|
|
741
|
+
)
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
def _rocm_aiter_act_mul_and_fp8_group_quant_fake(
|
|
745
|
+
x: torch.Tensor,
|
|
746
|
+
group_size: int,
|
|
747
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
748
|
+
M, N = x.shape
|
|
749
|
+
assert N % 2 == 0
|
|
750
|
+
N_half = N // 2
|
|
751
|
+
x_fp8 = torch.empty((M, N_half), dtype=AITER_FP8_DTYPE, device=x.device)
|
|
752
|
+
out_bs = torch.empty(
|
|
753
|
+
(
|
|
754
|
+
M,
|
|
755
|
+
(N_half + group_size - 1) // group_size,
|
|
756
|
+
),
|
|
757
|
+
dtype=torch.float32,
|
|
758
|
+
device=x.device,
|
|
759
|
+
)
|
|
760
|
+
return x_fp8, out_bs
|
|
761
|
+
|
|
762
|
+
|
|
763
|
+
# Global flag to ensure ops are registered only once
|
|
764
|
+
_OPS_REGISTERED = False
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
class rocm_aiter_ops:
|
|
768
|
+
"""ROCm AITER operations wrapper for AMD GPU acceleration in vLLM.
|
|
769
|
+
|
|
770
|
+
This class centralizes the import and registration of AITER ops,
|
|
771
|
+
and provides a unified interface for checking if AITER is enabled.
|
|
772
|
+
Operations are only available on supported gfx9
|
|
773
|
+
architectures when aiter is installed.
|
|
774
|
+
|
|
775
|
+
The class uses environment variables to control which features are enabled,
|
|
776
|
+
allowing fine-grained control over which AITER optimizations are used.
|
|
777
|
+
|
|
778
|
+
Environment Variables:
|
|
779
|
+
VLLM_ROCM_USE_AITER: Main toggle for all AITER operations.
|
|
780
|
+
VLLM_ROCM_USE_AITER_LINEAR: Controls GEMM and quantization ops.
|
|
781
|
+
VLLM_ROCM_USE_AITER_RMSNORM: Controls RMSNorm operations.
|
|
782
|
+
VLLM_ROCM_USE_AITER_MOE: Controls MoE (Mixture of Experts) ops.
|
|
783
|
+
VLLM_ROCM_USE_AITER_MLA: Controls MLA (Multi-head Latent Attention) ops.
|
|
784
|
+
VLLM_ROCM_USE_AITER_MHA: Controls MHA ops including flash_attn_varlen.
|
|
785
|
+
VLLM_ROCM_USE_AITER_UNIFIED_ATTENTION: Controls Triton unified attention.
|
|
786
|
+
VLLM_ROCM_USE_AITER_FP8BMM: Controls FP8 batched matrix multiply.
|
|
787
|
+
VLLM_ROCM_USE_AITER_FP4_ASM_GEMM: Controls FP4 assembly GEMM.
|
|
788
|
+
VLLM_ROCM_USE_AITER_TRITON_ROPE: Controls Triton rotary embeddings.
|
|
789
|
+
VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS: Controls shared expert fusion.
|
|
790
|
+
VLLM_ROCM_USE_AITER_TRITON_GEMM: Controls Triton unquantized GEMM.
|
|
791
|
+
|
|
792
|
+
Note:
|
|
793
|
+
The environment variables are assigned when the module is imported,
|
|
794
|
+
so you can't change the environment variables after the module is imported.
|
|
795
|
+
This is done out of performance consideration. Accessing environment variables
|
|
796
|
+
is expensive as described in issue https://github.com/vllm-project/vllm/issues/17067
|
|
797
|
+
so we don't want to do it repeatedly, especially in the hot path (the forward pass).
|
|
798
|
+
You can call the refresh_env_variables() function to reload the env variables
|
|
799
|
+
after monkey patching the env variables in the unit test.
|
|
800
|
+
|
|
801
|
+
Check Functions:
|
|
802
|
+
All check functions (is_*_enabled) are decorated with @if_aiter_supported,
|
|
803
|
+
which verifies: (1) platform is ROCm, (2) device arch is gfx9, and
|
|
804
|
+
(3) aiter library is installed. The check function then also verifies
|
|
805
|
+
the corresponding environment variable is enabled.
|
|
806
|
+
i.e. ___
|
|
807
|
+
is_enabled() == current_platform.is_rocm() and | checked by
|
|
808
|
+
current_platform.is_on_gfx9() and | @if_aiter_supported
|
|
809
|
+
IS_AITER_FOUND and _______________|
|
|
810
|
+
cls._AITER_ENABLED -----> Check by the logic in `is_enabled()`
|
|
811
|
+
|
|
812
|
+
Example:
|
|
813
|
+
from vllm._aiter_ops import rocm_aiter_ops
|
|
814
|
+
|
|
815
|
+
# Check if aiter is enabled before using operations
|
|
816
|
+
if rocm_aiter_ops.is_enabled():
|
|
817
|
+
result = rocm_aiter_ops.rms_norm(x, weight, epsilon)
|
|
818
|
+
|
|
819
|
+
Operations:
|
|
820
|
+
- RMS normalization: rms_norm, rms_norm2d_with_add
|
|
821
|
+
- GEMM operations: gemm_a8w8, gemm_a8w8_blockscale
|
|
822
|
+
- Fused MoE: fused_moe, asm_moe_tkw1
|
|
823
|
+
- Routing: topk_softmax, biased_grouped_topk, grouped_topk
|
|
824
|
+
- MLA decode: mla_decode_fwd
|
|
825
|
+
- Quantization: per_tensor_quant, per_token_quant, group_fp8_quant
|
|
826
|
+
- Triton ops: triton_rotary_embed, triton_fp8_bmm, triton_gemm_a8w8_blockscale
|
|
827
|
+
"""
|
|
828
|
+
|
|
829
|
+
# Check if the env variable is set
|
|
830
|
+
_AITER_ENABLED = envs.VLLM_ROCM_USE_AITER
|
|
831
|
+
_LINEAR_ENABLED = envs.VLLM_ROCM_USE_AITER_LINEAR
|
|
832
|
+
_RMSNORM_ENABLED = envs.VLLM_ROCM_USE_AITER_RMSNORM
|
|
833
|
+
_FMOE_ENABLED = envs.VLLM_ROCM_USE_AITER_MOE
|
|
834
|
+
_MLA_ENABLED = envs.VLLM_ROCM_USE_AITER_MLA
|
|
835
|
+
_MHA_ENABLED = envs.VLLM_ROCM_USE_AITER_MHA
|
|
836
|
+
_TRITON_UNIFIED_ATTN_ENABLED = envs.VLLM_ROCM_USE_AITER_UNIFIED_ATTENTION
|
|
837
|
+
# TODO: Consolidate under _LINEAR_ENABLED
|
|
838
|
+
_FP8BMM_ENABLED = envs.VLLM_ROCM_USE_AITER_FP8BMM
|
|
839
|
+
# TODO: Consolidate under _LINEAR_ENABLED
|
|
840
|
+
_FP4_GEMM_DYNAMIC_QUANT_ASM = envs.VLLM_ROCM_USE_AITER_FP4_ASM_GEMM
|
|
841
|
+
# TODO: Consolidate under VLLM_ROCM_USE_AITER_ROPE
|
|
842
|
+
_TRITON_ROTARY_EMBED = envs.VLLM_ROCM_USE_AITER_TRITON_ROPE
|
|
843
|
+
_MOE_SHARED_EXPERTS_ENABLED = envs.VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS
|
|
844
|
+
# TODO: Consolidate under _LINEAR_ENABLED
|
|
845
|
+
_TRITON_UNQUANT_GEMM = envs.VLLM_ROCM_USE_AITER_TRITON_GEMM
|
|
846
|
+
|
|
847
|
+
@classmethod
|
|
848
|
+
def refresh_env_variables(cls):
|
|
849
|
+
"""
|
|
850
|
+
Since the environment variables are assigned when the module is imported,
|
|
851
|
+
This is a helper function to reload all the env variables from
|
|
852
|
+
the environment variables.
|
|
853
|
+
for example, after monkey patching the env variables in the unit test,
|
|
854
|
+
you can call this function to reload the env variables.
|
|
855
|
+
"""
|
|
856
|
+
cls._AITER_ENABLED = envs.VLLM_ROCM_USE_AITER
|
|
857
|
+
cls._LINEAR_ENABLED = envs.VLLM_ROCM_USE_AITER_LINEAR
|
|
858
|
+
cls._RMSNORM_ENABLED = envs.VLLM_ROCM_USE_AITER_RMSNORM
|
|
859
|
+
cls._FMOE_ENABLED = envs.VLLM_ROCM_USE_AITER_MOE
|
|
860
|
+
cls._MLA_ENABLED = envs.VLLM_ROCM_USE_AITER_MLA
|
|
861
|
+
cls._MHA_ENABLED = envs.VLLM_ROCM_USE_AITER_MHA
|
|
862
|
+
cls._TRITON_UNIFIED_ATTN_ENABLED = envs.VLLM_ROCM_USE_AITER_UNIFIED_ATTENTION
|
|
863
|
+
cls._FP8BMM_ENABLED = envs.VLLM_ROCM_USE_AITER_FP8BMM
|
|
864
|
+
cls._FP4_GEMM_DYNAMIC_QUANT_ASM = envs.VLLM_ROCM_USE_AITER_FP4_ASM_GEMM
|
|
865
|
+
cls._TRITON_ROTARY_EMBED = envs.VLLM_ROCM_USE_AITER_TRITON_ROPE
|
|
866
|
+
cls._MOE_SHARED_EXPERTS_ENABLED = envs.VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS
|
|
867
|
+
cls._TRITON_UNQUANT_GEMM = envs.VLLM_ROCM_USE_AITER_TRITON_GEMM
|
|
868
|
+
|
|
869
|
+
@classmethod
|
|
870
|
+
@if_aiter_supported
|
|
871
|
+
def is_enabled(cls) -> bool:
|
|
872
|
+
return cls._AITER_ENABLED
|
|
873
|
+
|
|
874
|
+
@classmethod
|
|
875
|
+
@if_aiter_supported
|
|
876
|
+
def is_linear_enabled(cls) -> bool:
|
|
877
|
+
return cls._AITER_ENABLED and cls._LINEAR_ENABLED
|
|
878
|
+
|
|
879
|
+
@classmethod
|
|
880
|
+
@if_aiter_supported
|
|
881
|
+
def is_linear_fp8_enabled(cls) -> bool:
|
|
882
|
+
return cls.is_linear_enabled()
|
|
883
|
+
|
|
884
|
+
@classmethod
|
|
885
|
+
@if_aiter_supported
|
|
886
|
+
def is_rmsnorm_enabled(cls) -> bool:
|
|
887
|
+
return cls._AITER_ENABLED and cls._RMSNORM_ENABLED
|
|
888
|
+
|
|
889
|
+
@classmethod
|
|
890
|
+
@if_aiter_supported
|
|
891
|
+
def is_fused_moe_enabled(cls) -> bool:
|
|
892
|
+
return cls._AITER_ENABLED and cls._FMOE_ENABLED
|
|
893
|
+
|
|
894
|
+
@classmethod
|
|
895
|
+
@if_aiter_supported
|
|
896
|
+
def is_fusion_moe_shared_experts_enabled(cls) -> bool:
|
|
897
|
+
return cls.is_fused_moe_enabled() and cls._MOE_SHARED_EXPERTS_ENABLED
|
|
898
|
+
|
|
899
|
+
@classmethod
|
|
900
|
+
@if_aiter_supported
|
|
901
|
+
def is_mla_enabled(cls) -> bool:
|
|
902
|
+
return cls._AITER_ENABLED and cls._MLA_ENABLED
|
|
903
|
+
|
|
904
|
+
@classmethod
|
|
905
|
+
@if_aiter_supported
|
|
906
|
+
def is_mha_enabled(cls) -> bool:
|
|
907
|
+
return cls._AITER_ENABLED and cls._MHA_ENABLED
|
|
908
|
+
|
|
909
|
+
@classmethod
|
|
910
|
+
@if_aiter_supported
|
|
911
|
+
def is_triton_unified_attn_enabled(cls) -> bool:
|
|
912
|
+
return cls._AITER_ENABLED and cls._TRITON_UNIFIED_ATTN_ENABLED
|
|
913
|
+
|
|
914
|
+
@classmethod
|
|
915
|
+
@if_aiter_supported
|
|
916
|
+
def is_fp8bmm_enabled(cls) -> bool:
|
|
917
|
+
return cls._AITER_ENABLED and cls._FP8BMM_ENABLED
|
|
918
|
+
|
|
919
|
+
@classmethod
|
|
920
|
+
@if_aiter_supported
|
|
921
|
+
def is_asm_fp4_gemm_dynamic_quant_enabled(cls) -> bool:
|
|
922
|
+
return cls._AITER_ENABLED and cls._FP4_GEMM_DYNAMIC_QUANT_ASM
|
|
923
|
+
|
|
924
|
+
@classmethod
|
|
925
|
+
@if_aiter_supported
|
|
926
|
+
def is_triton_rotary_embed_enabled(cls) -> bool:
|
|
927
|
+
return cls._AITER_ENABLED and cls._TRITON_ROTARY_EMBED
|
|
928
|
+
|
|
929
|
+
@classmethod
|
|
930
|
+
@if_aiter_supported
|
|
931
|
+
def is_triton_gemm_enabled(cls) -> bool:
|
|
932
|
+
return cls._AITER_ENABLED and cls._TRITON_UNQUANT_GEMM
|
|
933
|
+
|
|
934
|
+
@staticmethod
|
|
935
|
+
@if_aiter_supported
|
|
936
|
+
def register_ops_once() -> None:
|
|
937
|
+
global _OPS_REGISTERED
|
|
938
|
+
if not _OPS_REGISTERED:
|
|
939
|
+
tags = (
|
|
940
|
+
tuple()
|
|
941
|
+
if is_torch_equal_or_newer("2.7.0")
|
|
942
|
+
else (torch.Tag.needs_fixed_stride_order,)
|
|
943
|
+
)
|
|
944
|
+
|
|
945
|
+
# register all the custom ops here
|
|
946
|
+
direct_register_custom_op(
|
|
947
|
+
op_name="rocm_aiter_asm_moe_tkw1",
|
|
948
|
+
op_func=_rocm_aiter_asm_moe_tkw1_impl,
|
|
949
|
+
mutates_args=[],
|
|
950
|
+
fake_impl=_rocm_aiter_asm_moe_tkw1_fake,
|
|
951
|
+
dispatch_key=current_platform.dispatch_key,
|
|
952
|
+
)
|
|
953
|
+
|
|
954
|
+
direct_register_custom_op(
|
|
955
|
+
op_name="rocm_aiter_fused_moe",
|
|
956
|
+
op_func=_rocm_aiter_fused_moe_impl,
|
|
957
|
+
mutates_args=[],
|
|
958
|
+
fake_impl=_rocm_aiter_fused_moe_fake,
|
|
959
|
+
dispatch_key=current_platform.dispatch_key,
|
|
960
|
+
)
|
|
961
|
+
|
|
962
|
+
direct_register_custom_op(
|
|
963
|
+
op_name="rocm_aiter_topk_softmax",
|
|
964
|
+
op_func=_rocm_aiter_topk_softmax_impl,
|
|
965
|
+
mutates_args=["topk_weights", "topk_indices", "token_expert_indices"],
|
|
966
|
+
fake_impl=_rocm_aiter_topk_softmax_fake,
|
|
967
|
+
dispatch_key=current_platform.dispatch_key,
|
|
968
|
+
)
|
|
969
|
+
|
|
970
|
+
direct_register_custom_op(
|
|
971
|
+
op_name="rocm_aiter_biased_grouped_topk",
|
|
972
|
+
op_func=_rocm_aiter_biased_grouped_topk_impl,
|
|
973
|
+
mutates_args=["topk_weights", "topk_ids"],
|
|
974
|
+
fake_impl=_rocm_aiter_biased_grouped_topk_fake,
|
|
975
|
+
dispatch_key=current_platform.dispatch_key,
|
|
976
|
+
)
|
|
977
|
+
|
|
978
|
+
direct_register_custom_op(
|
|
979
|
+
op_name="rocm_aiter_grouped_topk",
|
|
980
|
+
op_func=_rocm_aiter_grouped_topk_impl,
|
|
981
|
+
mutates_args=["topk_weights", "topk_ids"],
|
|
982
|
+
fake_impl=_rocm_aiter_grouped_topk_fake,
|
|
983
|
+
dispatch_key=current_platform.dispatch_key,
|
|
984
|
+
)
|
|
985
|
+
|
|
986
|
+
direct_register_custom_op(
|
|
987
|
+
op_name="rocm_aiter_mla_decode_fwd",
|
|
988
|
+
op_func=_rocm_aiter_mla_decode_fwd_impl,
|
|
989
|
+
mutates_args=["o"],
|
|
990
|
+
fake_impl=_rocm_aiter_mla_decode_fwd_fake,
|
|
991
|
+
tags=tags,
|
|
992
|
+
)
|
|
993
|
+
|
|
994
|
+
direct_register_custom_op(
|
|
995
|
+
op_name="rocm_aiter_gemm_a8w8",
|
|
996
|
+
op_func=_rocm_aiter_gemm_a8w8_impl,
|
|
997
|
+
mutates_args=[],
|
|
998
|
+
fake_impl=_rocm_aiter_gemm_a8w8_fake,
|
|
999
|
+
dispatch_key=current_platform.dispatch_key,
|
|
1000
|
+
)
|
|
1001
|
+
|
|
1002
|
+
direct_register_custom_op(
|
|
1003
|
+
op_name="rocm_aiter_triton_gemm_a8w8_blockscale",
|
|
1004
|
+
op_func=_rocm_aiter_triton_gemm_a8w8_blockscale_impl,
|
|
1005
|
+
fake_impl=_rocm_aiter_triton_gemm_a8w8_blockscale_fake,
|
|
1006
|
+
)
|
|
1007
|
+
|
|
1008
|
+
direct_register_custom_op(
|
|
1009
|
+
op_name="rocm_aiter_gemm_a8w8_blockscale",
|
|
1010
|
+
op_func=_rocm_aiter_gemm_a8w8_blockscale_impl,
|
|
1011
|
+
fake_impl=_rocm_aiter_gemm_a8w8_blockscale_fake,
|
|
1012
|
+
)
|
|
1013
|
+
|
|
1014
|
+
direct_register_custom_op(
|
|
1015
|
+
op_name="rocm_aiter_rms_norm",
|
|
1016
|
+
op_func=_rocm_aiter_rms_norm_impl,
|
|
1017
|
+
fake_impl=_rocm_aiter_rms_norm_fake,
|
|
1018
|
+
)
|
|
1019
|
+
|
|
1020
|
+
direct_register_custom_op(
|
|
1021
|
+
op_name="rocm_aiter_rmsnorm2d_fwd_with_add",
|
|
1022
|
+
op_func=_rocm_aiter_rmsnorm2d_fwd_with_add_impl,
|
|
1023
|
+
fake_impl=_rocm_aiter_rmsnorm2d_fwd_with_add_fake,
|
|
1024
|
+
dispatch_key=current_platform.dispatch_key,
|
|
1025
|
+
)
|
|
1026
|
+
|
|
1027
|
+
direct_register_custom_op(
|
|
1028
|
+
op_name="rocm_aiter_rmsnorm_fused_dynamic_quant",
|
|
1029
|
+
op_func=_rocm_aiter_rmsnorm_fused_dynamic_quant_impl,
|
|
1030
|
+
fake_impl=_rocm_aiter_rmsnorm_fused_dynamic_quant_fake,
|
|
1031
|
+
dispatch_key=current_platform.dispatch_key,
|
|
1032
|
+
)
|
|
1033
|
+
|
|
1034
|
+
direct_register_custom_op(
|
|
1035
|
+
op_name="rocm_aiter_rmsnorm_fused_add_dynamic_quant",
|
|
1036
|
+
op_func=_rocm_aiter_rmsnorm_fused_add_dynamic_quant_impl,
|
|
1037
|
+
fake_impl=_rocm_aiter_rmsnorm_fused_add_dynamic_quant_fake,
|
|
1038
|
+
dispatch_key=current_platform.dispatch_key,
|
|
1039
|
+
)
|
|
1040
|
+
|
|
1041
|
+
direct_register_custom_op(
|
|
1042
|
+
op_name="rocm_aiter_rmsnorm_fp8_group_quant",
|
|
1043
|
+
op_func=_rocm_aiter_rmsnorm_fp8_group_quant_impl,
|
|
1044
|
+
fake_impl=_rocm_aiter_rmsnorm_fp8_group_quant_fake,
|
|
1045
|
+
)
|
|
1046
|
+
|
|
1047
|
+
direct_register_custom_op(
|
|
1048
|
+
op_name="rocm_aiter_rmsnorm_with_add_fp8_group_quant",
|
|
1049
|
+
op_func=_rocm_aiter_rmsnorm_with_add_fp8_group_quant_impl,
|
|
1050
|
+
fake_impl=_rocm_aiter_rmsnorm_with_add_fp8_group_quant_fake,
|
|
1051
|
+
)
|
|
1052
|
+
|
|
1053
|
+
direct_register_custom_op(
|
|
1054
|
+
op_name="rocm_aiter_act_mul_and_fp8_group_quant",
|
|
1055
|
+
op_func=_rocm_aiter_act_mul_and_fp8_group_quant_impl,
|
|
1056
|
+
fake_impl=_rocm_aiter_act_mul_and_fp8_group_quant_fake,
|
|
1057
|
+
)
|
|
1058
|
+
|
|
1059
|
+
direct_register_custom_op(
|
|
1060
|
+
op_name="rocm_aiter_group_fp8_quant",
|
|
1061
|
+
op_func=_rocm_aiter_group_fp8_quant_impl,
|
|
1062
|
+
fake_impl=_rocm_aiter_group_fp8_quant_fake,
|
|
1063
|
+
)
|
|
1064
|
+
|
|
1065
|
+
direct_register_custom_op(
|
|
1066
|
+
op_name="rocm_aiter_per_tensor_quant",
|
|
1067
|
+
op_func=_rocm_aiter_per_tensor_quant_impl,
|
|
1068
|
+
mutates_args=[],
|
|
1069
|
+
fake_impl=_rocm_aiter_per_tensor_quant_fake,
|
|
1070
|
+
dispatch_key=current_platform.dispatch_key,
|
|
1071
|
+
)
|
|
1072
|
+
|
|
1073
|
+
direct_register_custom_op(
|
|
1074
|
+
op_name="rocm_aiter_per_token_quant",
|
|
1075
|
+
op_func=_rocm_aiter_per_token_quant_impl,
|
|
1076
|
+
fake_impl=_rocm_aiter_per_token_quant_fake,
|
|
1077
|
+
dispatch_key=current_platform.dispatch_key,
|
|
1078
|
+
)
|
|
1079
|
+
|
|
1080
|
+
_OPS_REGISTERED = True
|
|
1081
|
+
|
|
1082
|
+
@staticmethod
|
|
1083
|
+
def get_rmsnorm_fused_add_op() -> OpOverload:
|
|
1084
|
+
return torch.ops.vllm.rocm_aiter_rmsnorm2d_fwd_with_add.default
|
|
1085
|
+
|
|
1086
|
+
@staticmethod
|
|
1087
|
+
def get_rmsnorm_op() -> OpOverload:
|
|
1088
|
+
return torch.ops.vllm.rocm_aiter_rms_norm.default
|
|
1089
|
+
|
|
1090
|
+
@staticmethod
|
|
1091
|
+
def get_rmsnorm_fused_add_dynamic_quant_op() -> OpOverload:
|
|
1092
|
+
return torch.ops.vllm.rocm_aiter_rmsnorm_fused_add_dynamic_quant.default
|
|
1093
|
+
|
|
1094
|
+
@staticmethod
|
|
1095
|
+
def get_rmsnorm_fused_dynamic_quant_op() -> OpOverload:
|
|
1096
|
+
return torch.ops.vllm.rocm_aiter_rmsnorm_fused_dynamic_quant.default
|
|
1097
|
+
|
|
1098
|
+
@staticmethod
|
|
1099
|
+
def get_rmsnorm_group_fused_quant_op() -> OpOverload:
|
|
1100
|
+
return torch.ops.vllm.rocm_aiter_rmsnorm_fp8_group_quant.default
|
|
1101
|
+
|
|
1102
|
+
@staticmethod
|
|
1103
|
+
def get_rmsnorm_group_add_fused_quant_op() -> OpOverload:
|
|
1104
|
+
return torch.ops.vllm.rocm_aiter_rmsnorm_with_add_fp8_group_quant.default
|
|
1105
|
+
|
|
1106
|
+
@staticmethod
|
|
1107
|
+
def get_per_token_quant_op() -> OpOverload:
|
|
1108
|
+
return torch.ops.vllm.rocm_aiter_per_token_quant.default
|
|
1109
|
+
|
|
1110
|
+
@staticmethod
|
|
1111
|
+
def get_group_quant_op() -> OpOverload:
|
|
1112
|
+
return torch.ops.vllm.rocm_aiter_group_fp8_quant.default
|
|
1113
|
+
|
|
1114
|
+
@staticmethod
|
|
1115
|
+
def get_act_mul_fused_fp8_group_quant_op() -> OpOverload:
|
|
1116
|
+
return torch.ops.vllm.rocm_aiter_act_mul_and_fp8_group_quant.default
|
|
1117
|
+
|
|
1118
|
+
@staticmethod
|
|
1119
|
+
def rms_norm(
|
|
1120
|
+
x: torch.Tensor, weight: torch.Tensor, variance_epsilon: float
|
|
1121
|
+
) -> torch.Tensor:
|
|
1122
|
+
return torch.ops.vllm.rocm_aiter_rms_norm(x, weight, variance_epsilon)
|
|
1123
|
+
|
|
1124
|
+
@staticmethod
|
|
1125
|
+
def rms_norm2d_with_add(
|
|
1126
|
+
x: torch.Tensor,
|
|
1127
|
+
residual: torch.Tensor,
|
|
1128
|
+
weight: torch.Tensor,
|
|
1129
|
+
variance_epsilon: float,
|
|
1130
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
1131
|
+
return torch.ops.vllm.rocm_aiter_rmsnorm2d_fwd_with_add(
|
|
1132
|
+
x, residual, weight, variance_epsilon
|
|
1133
|
+
)
|
|
1134
|
+
|
|
1135
|
+
@staticmethod
|
|
1136
|
+
def gemm_a8w8(
|
|
1137
|
+
A: torch.Tensor,
|
|
1138
|
+
B: torch.Tensor,
|
|
1139
|
+
As: torch.Tensor,
|
|
1140
|
+
Bs: torch.Tensor,
|
|
1141
|
+
bias: torch.Tensor | None = None,
|
|
1142
|
+
output_dtype: torch.dtype = torch.float16,
|
|
1143
|
+
) -> torch.Tensor:
|
|
1144
|
+
return torch.ops.vllm.rocm_aiter_gemm_a8w8(A, B, As, Bs, bias, output_dtype)
|
|
1145
|
+
|
|
1146
|
+
@staticmethod
|
|
1147
|
+
def triton_gemm_a8w8_blockscale(
|
|
1148
|
+
A: torch.Tensor,
|
|
1149
|
+
B: torch.Tensor,
|
|
1150
|
+
As: torch.Tensor,
|
|
1151
|
+
Bs: torch.Tensor,
|
|
1152
|
+
block_size: list[int],
|
|
1153
|
+
output_dtype: torch.dtype = torch.float16,
|
|
1154
|
+
) -> torch.Tensor:
|
|
1155
|
+
return torch.ops.vllm.rocm_aiter_triton_gemm_a8w8_blockscale(
|
|
1156
|
+
A, B, As, Bs, output_dtype
|
|
1157
|
+
)
|
|
1158
|
+
|
|
1159
|
+
@staticmethod
|
|
1160
|
+
def gemm_a8w8_blockscale(
|
|
1161
|
+
A: torch.Tensor,
|
|
1162
|
+
B: torch.Tensor,
|
|
1163
|
+
As: torch.Tensor,
|
|
1164
|
+
Bs: torch.Tensor,
|
|
1165
|
+
block_size: list[int],
|
|
1166
|
+
output_dtype: torch.dtype = torch.float16,
|
|
1167
|
+
) -> torch.Tensor:
|
|
1168
|
+
return torch.ops.vllm.rocm_aiter_gemm_a8w8_blockscale(
|
|
1169
|
+
A, B, As, Bs, output_dtype
|
|
1170
|
+
)
|
|
1171
|
+
|
|
1172
|
+
@staticmethod
|
|
1173
|
+
def fused_moe(
|
|
1174
|
+
hidden_states: torch.Tensor,
|
|
1175
|
+
w1: torch.Tensor,
|
|
1176
|
+
w2: torch.Tensor,
|
|
1177
|
+
topk_weight: torch.Tensor,
|
|
1178
|
+
topk_ids: torch.Tensor,
|
|
1179
|
+
expert_mask: torch.Tensor | None = None,
|
|
1180
|
+
activation_method: int = 0,
|
|
1181
|
+
quant_method: int = 0,
|
|
1182
|
+
doweight_stage1: bool = False,
|
|
1183
|
+
w1_scale: torch.Tensor | None = None,
|
|
1184
|
+
w2_scale: torch.Tensor | None = None,
|
|
1185
|
+
a1_scale: torch.Tensor | None = None,
|
|
1186
|
+
a2_scale: torch.Tensor | None = None,
|
|
1187
|
+
) -> torch.Tensor:
|
|
1188
|
+
return torch.ops.vllm.rocm_aiter_fused_moe(
|
|
1189
|
+
hidden_states,
|
|
1190
|
+
w1,
|
|
1191
|
+
w2,
|
|
1192
|
+
topk_weight,
|
|
1193
|
+
topk_ids,
|
|
1194
|
+
expert_mask,
|
|
1195
|
+
activation_method,
|
|
1196
|
+
quant_method,
|
|
1197
|
+
doweight_stage1,
|
|
1198
|
+
w1_scale,
|
|
1199
|
+
w2_scale,
|
|
1200
|
+
a1_scale,
|
|
1201
|
+
a2_scale,
|
|
1202
|
+
)
|
|
1203
|
+
|
|
1204
|
+
@staticmethod
|
|
1205
|
+
def asm_moe_tkw1(
|
|
1206
|
+
hidden_states: torch.Tensor,
|
|
1207
|
+
w1: torch.Tensor,
|
|
1208
|
+
w2: torch.Tensor,
|
|
1209
|
+
topk_weights: torch.Tensor,
|
|
1210
|
+
topk_ids: torch.Tensor,
|
|
1211
|
+
fc1_scale: torch.Tensor | None = None,
|
|
1212
|
+
fc2_scale: torch.Tensor | None = None,
|
|
1213
|
+
fc1_smooth_scale: torch.Tensor | None = None,
|
|
1214
|
+
fc2_smooth_scale: torch.Tensor | None = None,
|
|
1215
|
+
a16: bool = False,
|
|
1216
|
+
per_tensor_quant_scale: torch.Tensor | None = None,
|
|
1217
|
+
expert_mask: torch.Tensor | None = None,
|
|
1218
|
+
activation_method: int = 0,
|
|
1219
|
+
) -> torch.Tensor:
|
|
1220
|
+
return torch.ops.vllm.rocm_aiter_asm_moe_tkw1(
|
|
1221
|
+
hidden_states,
|
|
1222
|
+
w1,
|
|
1223
|
+
w2,
|
|
1224
|
+
topk_weights,
|
|
1225
|
+
topk_ids,
|
|
1226
|
+
fc1_scale,
|
|
1227
|
+
fc2_scale,
|
|
1228
|
+
fc1_smooth_scale,
|
|
1229
|
+
fc2_smooth_scale,
|
|
1230
|
+
a16,
|
|
1231
|
+
per_tensor_quant_scale,
|
|
1232
|
+
expert_mask,
|
|
1233
|
+
activation_method,
|
|
1234
|
+
)
|
|
1235
|
+
|
|
1236
|
+
@staticmethod
|
|
1237
|
+
def topk_softmax(
|
|
1238
|
+
topk_weights: torch.Tensor,
|
|
1239
|
+
topk_indices: torch.Tensor,
|
|
1240
|
+
token_expert_indices: torch.Tensor,
|
|
1241
|
+
gating_output: torch.Tensor,
|
|
1242
|
+
renormalize: bool,
|
|
1243
|
+
) -> tuple[torch.Tensor, ...]:
|
|
1244
|
+
torch.ops.vllm.rocm_aiter_topk_softmax(
|
|
1245
|
+
topk_weights, topk_indices, token_expert_indices, gating_output, renormalize
|
|
1246
|
+
)
|
|
1247
|
+
return topk_weights, topk_indices
|
|
1248
|
+
|
|
1249
|
+
@staticmethod
|
|
1250
|
+
def biased_grouped_topk(
|
|
1251
|
+
gating_output: torch.Tensor,
|
|
1252
|
+
correction_bias: torch.Tensor,
|
|
1253
|
+
topk_weights: torch.Tensor,
|
|
1254
|
+
topk_ids: torch.Tensor,
|
|
1255
|
+
num_expert_group: int,
|
|
1256
|
+
topk_group: int,
|
|
1257
|
+
need_renorm: bool,
|
|
1258
|
+
routed_scaling_factor: float = 1.0,
|
|
1259
|
+
) -> None:
|
|
1260
|
+
torch.ops.vllm.rocm_aiter_biased_grouped_topk(
|
|
1261
|
+
gating_output,
|
|
1262
|
+
correction_bias,
|
|
1263
|
+
topk_weights,
|
|
1264
|
+
topk_ids,
|
|
1265
|
+
num_expert_group,
|
|
1266
|
+
topk_group,
|
|
1267
|
+
need_renorm,
|
|
1268
|
+
routed_scaling_factor,
|
|
1269
|
+
)
|
|
1270
|
+
|
|
1271
|
+
@staticmethod
|
|
1272
|
+
def grouped_topk(
|
|
1273
|
+
gating_output: torch.Tensor,
|
|
1274
|
+
topk_weights: torch.Tensor,
|
|
1275
|
+
topk_ids: torch.Tensor,
|
|
1276
|
+
num_expert_group: int,
|
|
1277
|
+
topk_group: int,
|
|
1278
|
+
need_renorm: bool,
|
|
1279
|
+
scoring_func: str = "softmax",
|
|
1280
|
+
routed_scaling_factor: float = 1.0,
|
|
1281
|
+
) -> None:
|
|
1282
|
+
torch.ops.vllm.rocm_aiter_grouped_topk(
|
|
1283
|
+
gating_output,
|
|
1284
|
+
topk_weights,
|
|
1285
|
+
topk_ids,
|
|
1286
|
+
num_expert_group,
|
|
1287
|
+
topk_group,
|
|
1288
|
+
need_renorm,
|
|
1289
|
+
scoring_func,
|
|
1290
|
+
routed_scaling_factor,
|
|
1291
|
+
)
|
|
1292
|
+
|
|
1293
|
+
@staticmethod
|
|
1294
|
+
def mla_decode_fwd(
|
|
1295
|
+
q: torch.Tensor,
|
|
1296
|
+
kv_buffer: torch.Tensor,
|
|
1297
|
+
o: torch.Tensor,
|
|
1298
|
+
sm_scale: float,
|
|
1299
|
+
qo_indptr: torch.Tensor,
|
|
1300
|
+
max_seqlen_qo: int,
|
|
1301
|
+
kv_indptr: torch.Tensor | None = None,
|
|
1302
|
+
kv_indices: torch.Tensor | None = None,
|
|
1303
|
+
kv_last_page_lens: torch.Tensor | None = None,
|
|
1304
|
+
logit_cap: float = 0.0,
|
|
1305
|
+
q_scale: torch.Tensor | None = None,
|
|
1306
|
+
kv_scale: torch.Tensor | None = None,
|
|
1307
|
+
):
|
|
1308
|
+
torch.ops.vllm.rocm_aiter_mla_decode_fwd(
|
|
1309
|
+
q,
|
|
1310
|
+
kv_buffer.view(-1, 1, 1, q.shape[-1]),
|
|
1311
|
+
o,
|
|
1312
|
+
qo_indptr,
|
|
1313
|
+
max_seqlen_qo,
|
|
1314
|
+
kv_indptr,
|
|
1315
|
+
kv_indices,
|
|
1316
|
+
kv_last_page_lens,
|
|
1317
|
+
sm_scale=sm_scale,
|
|
1318
|
+
logit_cap=logit_cap,
|
|
1319
|
+
q_scale=q_scale,
|
|
1320
|
+
kv_scale=kv_scale,
|
|
1321
|
+
)
|
|
1322
|
+
|
|
1323
|
+
@staticmethod
|
|
1324
|
+
def per_tensor_quant(
|
|
1325
|
+
x: torch.Tensor,
|
|
1326
|
+
quant_dtype: torch.dtype,
|
|
1327
|
+
scale: torch.Tensor | None = None,
|
|
1328
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
1329
|
+
return torch.ops.vllm.rocm_aiter_per_tensor_quant(x, quant_dtype, scale)
|
|
1330
|
+
|
|
1331
|
+
@staticmethod
|
|
1332
|
+
def per_token_quant(
|
|
1333
|
+
x: torch.Tensor,
|
|
1334
|
+
quant_dtype: torch.dtype,
|
|
1335
|
+
scale: torch.Tensor | None = None,
|
|
1336
|
+
) -> tuple[torch.Tensor, torch.Tensor]:
|
|
1337
|
+
return torch.ops.vllm.rocm_aiter_per_token_quant(x, quant_dtype, scale)
|
|
1338
|
+
|
|
1339
|
+
@staticmethod
|
|
1340
|
+
def triton_fp4_gemm_dynamic_qaunt(
|
|
1341
|
+
x: torch.Tensor,
|
|
1342
|
+
weight: torch.Tensor,
|
|
1343
|
+
weight_scale: torch.Tensor,
|
|
1344
|
+
out_dtype: torch.dtype | None = torch.bfloat16,
|
|
1345
|
+
x_scales: torch.Tensor | None = None,
|
|
1346
|
+
) -> torch.Tensor:
|
|
1347
|
+
from aiter.ops.triton.gemm_afp4wfp4 import gemm_afp4wfp4
|
|
1348
|
+
from aiter.ops.triton.quant import dynamic_mxfp4_quant
|
|
1349
|
+
|
|
1350
|
+
if x_scales is None:
|
|
1351
|
+
x_q, x_s = dynamic_mxfp4_quant(x)
|
|
1352
|
+
else:
|
|
1353
|
+
x_q = x
|
|
1354
|
+
x_s = x_scales
|
|
1355
|
+
|
|
1356
|
+
y = torch.empty(
|
|
1357
|
+
x_q.shape[0], weight.shape[0], device=x_q.device, dtype=out_dtype
|
|
1358
|
+
)
|
|
1359
|
+
|
|
1360
|
+
gemm_afp4wfp4(x_q, weight, x_s, weight_scale.T, out_dtype, y)
|
|
1361
|
+
return y
|
|
1362
|
+
|
|
1363
|
+
@staticmethod
|
|
1364
|
+
def triton_rotary_embed(
|
|
1365
|
+
positions: torch.Tensor,
|
|
1366
|
+
query: torch.Tensor,
|
|
1367
|
+
key: torch.Tensor,
|
|
1368
|
+
cos_sin_cache: torch.Tensor,
|
|
1369
|
+
head_size: int,
|
|
1370
|
+
rotary_dim: int,
|
|
1371
|
+
is_neox_style: bool,
|
|
1372
|
+
):
|
|
1373
|
+
from aiter.ops.triton.rope import rope_cached_thd_positions_2c_fwd_inplace
|
|
1374
|
+
|
|
1375
|
+
num_tokens = positions.numel()
|
|
1376
|
+
cos, sin = cos_sin_cache.chunk(2, dim=-1)
|
|
1377
|
+
query_shape = query.shape
|
|
1378
|
+
key_shape = key.shape
|
|
1379
|
+
rotate_style = 0 if is_neox_style else 1
|
|
1380
|
+
|
|
1381
|
+
query = query.view(num_tokens, -1, head_size)
|
|
1382
|
+
key = key.view(num_tokens, -1, head_size)
|
|
1383
|
+
query_ = query[..., :rotary_dim]
|
|
1384
|
+
key_ = key[..., :rotary_dim]
|
|
1385
|
+
positions = positions.view(*query.shape[:1])
|
|
1386
|
+
rope_cached_thd_positions_2c_fwd_inplace(
|
|
1387
|
+
query_,
|
|
1388
|
+
key_,
|
|
1389
|
+
cos,
|
|
1390
|
+
sin,
|
|
1391
|
+
positions,
|
|
1392
|
+
rotate_style,
|
|
1393
|
+
reuse_freqs_front_part=True,
|
|
1394
|
+
nope_first=False,
|
|
1395
|
+
)
|
|
1396
|
+
query = query.view(query_shape)
|
|
1397
|
+
key = key.view(key_shape)
|
|
1398
|
+
|
|
1399
|
+
@staticmethod
|
|
1400
|
+
def triton_fp8_bmm(
|
|
1401
|
+
X: torch.Tensor,
|
|
1402
|
+
WQ: torch.Tensor,
|
|
1403
|
+
w_scale: torch.Tensor,
|
|
1404
|
+
group_size: int = 128,
|
|
1405
|
+
bias: torch.Tensor | None = None,
|
|
1406
|
+
dtype: torch.dtype | None = torch.bfloat16,
|
|
1407
|
+
splitK: int | None = None,
|
|
1408
|
+
YQ: torch.Tensor | None = None,
|
|
1409
|
+
transpose_bm: bool | None = False,
|
|
1410
|
+
config: dict | None = None,
|
|
1411
|
+
) -> torch.Tensor:
|
|
1412
|
+
# ruff: noqa: E501 # isort: skip
|
|
1413
|
+
from aiter.ops.triton.batched_gemm_a8w8_a_per_token_group_prequant_w_per_batched_tensor_quant import (
|
|
1414
|
+
batched_gemm_a8w8_a_per_token_group_prequant_w_per_batched_tensor_quant as aiter_triton_fp8_bmm,
|
|
1415
|
+
)
|
|
1416
|
+
|
|
1417
|
+
return aiter_triton_fp8_bmm(
|
|
1418
|
+
X,
|
|
1419
|
+
WQ,
|
|
1420
|
+
w_scale,
|
|
1421
|
+
group_size=group_size,
|
|
1422
|
+
bias=bias,
|
|
1423
|
+
dtype=dtype,
|
|
1424
|
+
splitK=splitK,
|
|
1425
|
+
YQ=YQ,
|
|
1426
|
+
transpose_bm=transpose_bm,
|
|
1427
|
+
config=config,
|
|
1428
|
+
)
|
|
1429
|
+
|
|
1430
|
+
@staticmethod
|
|
1431
|
+
def group_fp8_quant(
|
|
1432
|
+
input_2d: torch.Tensor,
|
|
1433
|
+
group_size: int = 128,
|
|
1434
|
+
) -> tuple[torch.Tensor, ...]:
|
|
1435
|
+
assert group_size == 128, "Group size must be 128"
|
|
1436
|
+
return torch.ops.vllm.rocm_aiter_group_fp8_quant(input_2d, group_size)
|
|
1437
|
+
|
|
1438
|
+
@staticmethod
|
|
1439
|
+
def is_triton_gemm_w8a8_tuned(n: int, k: int) -> bool:
|
|
1440
|
+
return (n, k) in [
|
|
1441
|
+
(1024, 8192),
|
|
1442
|
+
(2112, 7168),
|
|
1443
|
+
(3072, 1536),
|
|
1444
|
+
(32768, 8192),
|
|
1445
|
+
(4096, 7168),
|
|
1446
|
+
(4608, 7168),
|
|
1447
|
+
(512, 7168),
|
|
1448
|
+
(7168, 2048),
|
|
1449
|
+
(7168, 256),
|
|
1450
|
+
(8192, 1024),
|
|
1451
|
+
(8192, 32768),
|
|
1452
|
+
]
|
|
1453
|
+
|
|
1454
|
+
@staticmethod
|
|
1455
|
+
def is_triton_gemm_afp4wfp4_presh_ws_tuned(n: int, k: int) -> bool:
|
|
1456
|
+
return (n, k) in [
|
|
1457
|
+
(8192, 4096),
|
|
1458
|
+
(1280, 8192),
|
|
1459
|
+
(16384, 53248),
|
|
1460
|
+
(106496, 16384),
|
|
1461
|
+
(57344, 8192),
|
|
1462
|
+
(8192, 2048),
|
|
1463
|
+
(2560, 8192),
|
|
1464
|
+
(10240, 8192),
|
|
1465
|
+
(16384, 16384),
|
|
1466
|
+
(8192, 28672),
|
|
1467
|
+
(28672, 8192),
|
|
1468
|
+
(18432, 16384),
|
|
1469
|
+
(8192, 1024),
|
|
1470
|
+
(7168, 8192),
|
|
1471
|
+
(5120, 8192),
|
|
1472
|
+
(8192, 8192),
|
|
1473
|
+
(8192, 7168),
|
|
1474
|
+
(14336, 8192),
|
|
1475
|
+
(8192, 14336),
|
|
1476
|
+
(8192, 3584),
|
|
1477
|
+
]
|
|
1478
|
+
|
|
1479
|
+
@staticmethod
|
|
1480
|
+
def shuffle_weight(
|
|
1481
|
+
self, tensor: torch.Tensor, layout: tuple[int, int] = (16, 16)
|
|
1482
|
+
) -> torch.Tensor:
|
|
1483
|
+
from aiter.ops.shuffle import shuffle_weight
|
|
1484
|
+
|
|
1485
|
+
return shuffle_weight(tensor, layout=layout)
|
|
1486
|
+
|
|
1487
|
+
@staticmethod
|
|
1488
|
+
def shuffle_weights(
|
|
1489
|
+
*tensors: torch.Tensor, layout: tuple[int, int] = (16, 16)
|
|
1490
|
+
) -> tuple[torch.Tensor, ...]:
|
|
1491
|
+
"""
|
|
1492
|
+
Applies shuffle_weight function from AITER to each
|
|
1493
|
+
input tensor and returns them.
|
|
1494
|
+
|
|
1495
|
+
Rearranges (shuffles) the input tensor/s
|
|
1496
|
+
into a specified block layout for optimized computation.
|
|
1497
|
+
|
|
1498
|
+
Args:
|
|
1499
|
+
*tensors: Variable number of torch.Tensor objects.
|
|
1500
|
+
layout: A pair of integers specifying the block sizes used to divide
|
|
1501
|
+
the tensors during shuffling. Default is (16, 16).
|
|
1502
|
+
|
|
1503
|
+
Returns:
|
|
1504
|
+
A Tuple of shuffled tensors.
|
|
1505
|
+
"""
|
|
1506
|
+
from aiter.ops.shuffle import shuffle_weight
|
|
1507
|
+
|
|
1508
|
+
return tuple(shuffle_weight(tensor, layout=layout) for tensor in tensors)
|
|
1509
|
+
|
|
1510
|
+
|
|
1511
|
+
rocm_aiter_ops.register_ops_once()
|