vllm-cpu-avx512vnni 0.10.2.post2__cp312-cp312-manylinux_2_17_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of vllm-cpu-avx512vnni might be problematic. Click here for more details.
- vllm/_C.abi3.so +0 -0
- vllm/__init__.py +220 -0
- vllm/_bc_linter.py +59 -0
- vllm/_custom_ops.py +2022 -0
- vllm/_ipex_ops.py +404 -0
- vllm/_version.py +34 -0
- vllm/adapter_commons/__init__.py +0 -0
- vllm/adapter_commons/layers.py +16 -0
- vllm/adapter_commons/models.py +106 -0
- vllm/adapter_commons/request.py +26 -0
- vllm/adapter_commons/utils.py +93 -0
- vllm/adapter_commons/worker_manager.py +39 -0
- vllm/assets/__init__.py +0 -0
- vllm/assets/audio.py +45 -0
- vllm/assets/base.py +41 -0
- vllm/assets/image.py +50 -0
- vllm/assets/video.py +138 -0
- vllm/attention/__init__.py +19 -0
- vllm/attention/backends/__init__.py +0 -0
- vllm/attention/backends/abstract.py +348 -0
- vllm/attention/backends/differential_flash_attn.py +935 -0
- vllm/attention/backends/dual_chunk_flash_attn.py +1499 -0
- vllm/attention/backends/flash_attn.py +933 -0
- vllm/attention/backends/flashmla.py +238 -0
- vllm/attention/backends/mla/__init__.py +0 -0
- vllm/attention/backends/mla/common.py +1310 -0
- vllm/attention/backends/placeholder_attn.py +340 -0
- vllm/attention/backends/rocm_aiter_mla.py +410 -0
- vllm/attention/backends/rocm_flash_attn.py +953 -0
- vllm/attention/backends/triton_mla.py +111 -0
- vllm/attention/backends/utils.py +610 -0
- vllm/attention/backends/xformers.py +805 -0
- vllm/attention/layer.py +552 -0
- vllm/attention/layers/__init__.py +0 -0
- vllm/attention/layers/chunked_local_attention.py +91 -0
- vllm/attention/layers/cross_attention.py +159 -0
- vllm/attention/layers/encoder_only_attention.py +86 -0
- vllm/attention/ops/__init__.py +0 -0
- vllm/attention/ops/chunked_prefill_paged_decode.py +405 -0
- vllm/attention/ops/common.py +139 -0
- vllm/attention/ops/flashmla.py +123 -0
- vllm/attention/ops/merge_attn_states.py +43 -0
- vllm/attention/ops/paged_attn.py +261 -0
- vllm/attention/ops/pallas_kv_cache_update.py +124 -0
- vllm/attention/ops/prefix_prefill.py +928 -0
- vllm/attention/ops/rocm_aiter_mla.py +104 -0
- vllm/attention/ops/rocm_aiter_paged_attn.py +102 -0
- vllm/attention/ops/triton_decode_attention.py +676 -0
- vllm/attention/ops/triton_flash_attention.py +984 -0
- vllm/attention/ops/triton_merge_attn_states.py +97 -0
- vllm/attention/ops/triton_unified_attention.py +854 -0
- vllm/attention/selector.py +243 -0
- vllm/attention/utils/__init__.py +0 -0
- vllm/attention/utils/fa_utils.py +85 -0
- vllm/attention/utils/kv_sharing_utils.py +33 -0
- vllm/beam_search.py +87 -0
- vllm/benchmarks/__init__.py +0 -0
- vllm/benchmarks/datasets.py +2651 -0
- vllm/benchmarks/latency.py +170 -0
- vllm/benchmarks/lib/__init__.py +3 -0
- vllm/benchmarks/lib/endpoint_request_func.py +510 -0
- vllm/benchmarks/lib/ready_checker.py +72 -0
- vllm/benchmarks/lib/utils.py +80 -0
- vllm/benchmarks/serve.py +1247 -0
- vllm/benchmarks/throughput.py +696 -0
- vllm/collect_env.py +823 -0
- vllm/compilation/__init__.py +0 -0
- vllm/compilation/activation_quant_fusion.py +193 -0
- vllm/compilation/backends.py +641 -0
- vllm/compilation/base_static_graph.py +51 -0
- vllm/compilation/collective_fusion.py +1190 -0
- vllm/compilation/compiler_interface.py +572 -0
- vllm/compilation/counter.py +47 -0
- vllm/compilation/cuda_graph.py +193 -0
- vllm/compilation/cuda_piecewise_backend.py +117 -0
- vllm/compilation/decorators.py +316 -0
- vllm/compilation/fix_functionalization.py +208 -0
- vllm/compilation/fusion.py +600 -0
- vllm/compilation/fusion_attn.py +303 -0
- vllm/compilation/fx_utils.py +84 -0
- vllm/compilation/inductor_pass.py +136 -0
- vllm/compilation/monitor.py +57 -0
- vllm/compilation/multi_output_match.py +109 -0
- vllm/compilation/noop_elimination.py +165 -0
- vllm/compilation/pass_manager.py +88 -0
- vllm/compilation/sequence_parallelism.py +484 -0
- vllm/compilation/torch25_custom_graph_pass.py +42 -0
- vllm/compilation/vllm_inductor_pass.py +50 -0
- vllm/compilation/wrapper.py +138 -0
- vllm/config/__init__.py +3921 -0
- vllm/config/cache.py +214 -0
- vllm/config/compilation.py +580 -0
- vllm/config/kv_events.py +50 -0
- vllm/config/kv_transfer.py +111 -0
- vllm/config/load.py +113 -0
- vllm/config/lora.py +132 -0
- vllm/config/parallel.py +446 -0
- vllm/config/scheduler.py +304 -0
- vllm/config/utils.py +29 -0
- vllm/connections.py +174 -0
- vllm/core/__init__.py +0 -0
- vllm/core/block/__init__.py +0 -0
- vllm/core/block/block_table.py +399 -0
- vllm/core/block/common.py +371 -0
- vllm/core/block/cpu_gpu_block_allocator.py +439 -0
- vllm/core/block/interfaces.py +319 -0
- vllm/core/block/naive_block.py +466 -0
- vllm/core/block/prefix_caching_block.py +1135 -0
- vllm/core/block/utils.py +28 -0
- vllm/core/block_manager.py +523 -0
- vllm/core/evictor.py +157 -0
- vllm/core/interfaces.py +139 -0
- vllm/core/placeholder_block_space_manager.py +103 -0
- vllm/core/scheduler.py +2028 -0
- vllm/device_allocator/__init__.py +0 -0
- vllm/device_allocator/cumem.py +286 -0
- vllm/distributed/__init__.py +6 -0
- vllm/distributed/communication_op.py +41 -0
- vllm/distributed/device_communicators/__init__.py +0 -0
- vllm/distributed/device_communicators/all2all.py +259 -0
- vllm/distributed/device_communicators/all_reduce_utils.py +292 -0
- vllm/distributed/device_communicators/base_device_communicator.py +277 -0
- vllm/distributed/device_communicators/cpu_communicator.py +201 -0
- vllm/distributed/device_communicators/cuda_communicator.py +294 -0
- vllm/distributed/device_communicators/cuda_wrapper.py +180 -0
- vllm/distributed/device_communicators/custom_all_reduce.py +311 -0
- vllm/distributed/device_communicators/pynccl.py +290 -0
- vllm/distributed/device_communicators/pynccl_wrapper.py +382 -0
- vllm/distributed/device_communicators/quick_all_reduce.py +278 -0
- vllm/distributed/device_communicators/ray_communicator.py +258 -0
- vllm/distributed/device_communicators/shm_broadcast.py +585 -0
- vllm/distributed/device_communicators/symm_mem.py +136 -0
- vllm/distributed/device_communicators/tpu_communicator.py +102 -0
- vllm/distributed/device_communicators/xpu_communicator.py +69 -0
- vllm/distributed/eplb/__init__.py +8 -0
- vllm/distributed/eplb/eplb_state.py +619 -0
- vllm/distributed/eplb/rebalance_algo.py +234 -0
- vllm/distributed/eplb/rebalance_execute.py +424 -0
- vllm/distributed/kv_events.py +362 -0
- vllm/distributed/kv_transfer/README.md +29 -0
- vllm/distributed/kv_transfer/__init__.py +13 -0
- vllm/distributed/kv_transfer/disagg_prefill_workflow.jpg +0 -0
- vllm/distributed/kv_transfer/kv_connector/__init__.py +0 -0
- vllm/distributed/kv_transfer/kv_connector/base.py +10 -0
- vllm/distributed/kv_transfer/kv_connector/factory.py +108 -0
- vllm/distributed/kv_transfer/kv_connector/utils.py +246 -0
- vllm/distributed/kv_transfer/kv_connector/v1/__init__.py +6 -0
- vllm/distributed/kv_transfer/kv_connector/v1/base.py +356 -0
- vllm/distributed/kv_transfer/kv_connector/v1/lmcache_connector.py +167 -0
- vllm/distributed/kv_transfer/kv_connector/v1/multi_connector.py +266 -0
- vllm/distributed/kv_transfer/kv_connector/v1/nixl_connector.py +1319 -0
- vllm/distributed/kv_transfer/kv_connector/v1/p2p/__init__.py +0 -0
- vllm/distributed/kv_transfer/kv_connector/v1/p2p/p2p_nccl_connector.py +484 -0
- vllm/distributed/kv_transfer/kv_connector/v1/p2p/p2p_nccl_engine.py +542 -0
- vllm/distributed/kv_transfer/kv_connector/v1/p2p/tensor_memory_pool.py +266 -0
- vllm/distributed/kv_transfer/kv_connector/v1/shared_storage_connector.py +414 -0
- vllm/distributed/kv_transfer/kv_lookup_buffer/__init__.py +0 -0
- vllm/distributed/kv_transfer/kv_lookup_buffer/base.py +175 -0
- vllm/distributed/kv_transfer/kv_lookup_buffer/mooncake_store.py +161 -0
- vllm/distributed/kv_transfer/kv_lookup_buffer/simple_buffer.py +237 -0
- vllm/distributed/kv_transfer/kv_pipe/__init__.py +0 -0
- vllm/distributed/kv_transfer/kv_pipe/base.py +67 -0
- vllm/distributed/kv_transfer/kv_pipe/mooncake_pipe.py +290 -0
- vllm/distributed/kv_transfer/kv_pipe/pynccl_pipe.py +280 -0
- vllm/distributed/kv_transfer/kv_transfer_state.py +73 -0
- vllm/distributed/parallel_state.py +1489 -0
- vllm/distributed/tpu_distributed_utils.py +178 -0
- vllm/distributed/utils.py +536 -0
- vllm/engine/__init__.py +0 -0
- vllm/engine/arg_utils.py +1857 -0
- vllm/engine/async_llm_engine.py +1044 -0
- vllm/engine/async_timeout.py +173 -0
- vllm/engine/llm_engine.py +1849 -0
- vllm/engine/metrics.py +577 -0
- vllm/engine/metrics_types.py +84 -0
- vllm/engine/multiprocessing/__init__.py +145 -0
- vllm/engine/multiprocessing/client.py +643 -0
- vllm/engine/multiprocessing/engine.py +470 -0
- vllm/engine/output_processor/__init__.py +0 -0
- vllm/engine/output_processor/interfaces.py +61 -0
- vllm/engine/output_processor/single_step.py +145 -0
- vllm/engine/output_processor/stop_checker.py +131 -0
- vllm/engine/output_processor/util.py +28 -0
- vllm/engine/protocol.py +343 -0
- vllm/entrypoints/__init__.py +0 -0
- vllm/entrypoints/api_server.py +178 -0
- vllm/entrypoints/chat_utils.py +1535 -0
- vllm/entrypoints/cli/__init__.py +12 -0
- vllm/entrypoints/cli/benchmark/__init__.py +0 -0
- vllm/entrypoints/cli/benchmark/base.py +25 -0
- vllm/entrypoints/cli/benchmark/latency.py +21 -0
- vllm/entrypoints/cli/benchmark/main.py +58 -0
- vllm/entrypoints/cli/benchmark/serve.py +21 -0
- vllm/entrypoints/cli/benchmark/throughput.py +21 -0
- vllm/entrypoints/cli/collect_env.py +36 -0
- vllm/entrypoints/cli/main.py +60 -0
- vllm/entrypoints/cli/openai.py +214 -0
- vllm/entrypoints/cli/run_batch.py +69 -0
- vllm/entrypoints/cli/serve.py +232 -0
- vllm/entrypoints/cli/types.py +29 -0
- vllm/entrypoints/constants.py +10 -0
- vllm/entrypoints/context.py +444 -0
- vllm/entrypoints/harmony_utils.py +431 -0
- vllm/entrypoints/launcher.py +168 -0
- vllm/entrypoints/llm.py +1579 -0
- vllm/entrypoints/logger.py +79 -0
- vllm/entrypoints/openai/__init__.py +0 -0
- vllm/entrypoints/openai/api_server.py +2011 -0
- vllm/entrypoints/openai/cli_args.py +281 -0
- vllm/entrypoints/openai/logits_processors.py +90 -0
- vllm/entrypoints/openai/protocol.py +2590 -0
- vllm/entrypoints/openai/run_batch.py +497 -0
- vllm/entrypoints/openai/serving_chat.py +1591 -0
- vllm/entrypoints/openai/serving_classification.py +176 -0
- vllm/entrypoints/openai/serving_completion.py +688 -0
- vllm/entrypoints/openai/serving_embedding.py +632 -0
- vllm/entrypoints/openai/serving_engine.py +996 -0
- vllm/entrypoints/openai/serving_models.py +288 -0
- vllm/entrypoints/openai/serving_pooling.py +277 -0
- vllm/entrypoints/openai/serving_responses.py +1690 -0
- vllm/entrypoints/openai/serving_score.py +479 -0
- vllm/entrypoints/openai/serving_tokenization.py +196 -0
- vllm/entrypoints/openai/serving_transcription.py +136 -0
- vllm/entrypoints/openai/speech_to_text.py +388 -0
- vllm/entrypoints/openai/tool_parsers/__init__.py +51 -0
- vllm/entrypoints/openai/tool_parsers/abstract_tool_parser.py +164 -0
- vllm/entrypoints/openai/tool_parsers/deepseekv31_tool_parser.py +367 -0
- vllm/entrypoints/openai/tool_parsers/deepseekv3_tool_parser.py +370 -0
- vllm/entrypoints/openai/tool_parsers/glm4_moe_tool_parser.py +185 -0
- vllm/entrypoints/openai/tool_parsers/granite_20b_fc_tool_parser.py +259 -0
- vllm/entrypoints/openai/tool_parsers/granite_tool_parser.py +237 -0
- vllm/entrypoints/openai/tool_parsers/hermes_tool_parser.py +418 -0
- vllm/entrypoints/openai/tool_parsers/hunyuan_a13b_tool_parser.py +372 -0
- vllm/entrypoints/openai/tool_parsers/internlm2_tool_parser.py +216 -0
- vllm/entrypoints/openai/tool_parsers/jamba_tool_parser.py +308 -0
- vllm/entrypoints/openai/tool_parsers/kimi_k2_tool_parser.py +377 -0
- vllm/entrypoints/openai/tool_parsers/llama4_pythonic_tool_parser.py +316 -0
- vllm/entrypoints/openai/tool_parsers/llama_tool_parser.py +269 -0
- vllm/entrypoints/openai/tool_parsers/minimax_tool_parser.py +816 -0
- vllm/entrypoints/openai/tool_parsers/mistral_tool_parser.py +369 -0
- vllm/entrypoints/openai/tool_parsers/openai_tool_parser.py +73 -0
- vllm/entrypoints/openai/tool_parsers/phi4mini_tool_parser.py +112 -0
- vllm/entrypoints/openai/tool_parsers/pythonic_tool_parser.py +308 -0
- vllm/entrypoints/openai/tool_parsers/qwen3coder_tool_parser.py +707 -0
- vllm/entrypoints/openai/tool_parsers/seed_oss_tool_parser.py +679 -0
- vllm/entrypoints/openai/tool_parsers/step3_tool_parser.py +296 -0
- vllm/entrypoints/openai/tool_parsers/utils.py +124 -0
- vllm/entrypoints/openai/tool_parsers/xlam_tool_parser.py +524 -0
- vllm/entrypoints/renderer.py +395 -0
- vllm/entrypoints/score_utils.py +232 -0
- vllm/entrypoints/ssl.py +75 -0
- vllm/entrypoints/tool.py +139 -0
- vllm/entrypoints/tool_server.py +195 -0
- vllm/entrypoints/utils.py +328 -0
- vllm/env_override.py +23 -0
- vllm/envs.py +1354 -0
- vllm/executor/__init__.py +0 -0
- vllm/executor/executor_base.py +378 -0
- vllm/executor/mp_distributed_executor.py +244 -0
- vllm/executor/msgspec_utils.py +35 -0
- vllm/executor/multiproc_worker_utils.py +279 -0
- vllm/executor/ray_distributed_executor.py +699 -0
- vllm/executor/ray_utils.py +410 -0
- vllm/executor/uniproc_executor.py +152 -0
- vllm/forward_context.py +273 -0
- vllm/inputs/__init__.py +44 -0
- vllm/inputs/data.py +356 -0
- vllm/inputs/parse.py +151 -0
- vllm/inputs/preprocess.py +973 -0
- vllm/inputs/registry.py +251 -0
- vllm/logger.py +229 -0
- vllm/logging_utils/__init__.py +8 -0
- vllm/logging_utils/dump_input.py +81 -0
- vllm/logging_utils/formatter.py +79 -0
- vllm/logits_process.py +119 -0
- vllm/logprobs.py +28 -0
- vllm/lora/__init__.py +0 -0
- vllm/lora/layers/__init__.py +34 -0
- vllm/lora/layers/base.py +69 -0
- vllm/lora/layers/base_linear.py +184 -0
- vllm/lora/layers/column_parallel_linear.py +622 -0
- vllm/lora/layers/logits_processor.py +247 -0
- vllm/lora/layers/qkv_x_parallel_linear.py +8 -0
- vllm/lora/layers/replicated_linear.py +61 -0
- vllm/lora/layers/row_parallel_linear.py +201 -0
- vllm/lora/layers/utils.py +60 -0
- vllm/lora/layers/vocal_parallel_embedding.py +172 -0
- vllm/lora/lora.py +199 -0
- vllm/lora/models.py +792 -0
- vllm/lora/ops/__init__.py +0 -0
- vllm/lora/ops/ipex_ops/__init__.py +7 -0
- vllm/lora/ops/ipex_ops/lora_ops.py +44 -0
- vllm/lora/ops/torch_ops/__init__.py +16 -0
- vllm/lora/ops/torch_ops/lora_ops.py +119 -0
- vllm/lora/ops/triton_ops/__init__.py +12 -0
- vllm/lora/ops/triton_ops/kernel_utils.py +243 -0
- vllm/lora/ops/triton_ops/lora_expand_op.py +291 -0
- vllm/lora/ops/triton_ops/lora_kernel_metadata.py +148 -0
- vllm/lora/ops/triton_ops/lora_shrink_op.py +245 -0
- vllm/lora/ops/triton_ops/utils.py +126 -0
- vllm/lora/ops/xla_ops/__init__.py +7 -0
- vllm/lora/ops/xla_ops/lora_ops.py +145 -0
- vllm/lora/peft_helper.py +127 -0
- vllm/lora/punica_wrapper/__init__.py +10 -0
- vllm/lora/punica_wrapper/punica_base.py +458 -0
- vllm/lora/punica_wrapper/punica_cpu.py +349 -0
- vllm/lora/punica_wrapper/punica_gpu.py +279 -0
- vllm/lora/punica_wrapper/punica_selector.py +20 -0
- vllm/lora/punica_wrapper/punica_tpu.py +391 -0
- vllm/lora/punica_wrapper/punica_xpu.py +276 -0
- vllm/lora/punica_wrapper/utils.py +136 -0
- vllm/lora/request.py +99 -0
- vllm/lora/resolver.py +85 -0
- vllm/lora/utils.py +246 -0
- vllm/lora/worker_manager.py +256 -0
- vllm/model_executor/__init__.py +16 -0
- vllm/model_executor/custom_op.py +194 -0
- vllm/model_executor/layers/__init__.py +0 -0
- vllm/model_executor/layers/activation.py +575 -0
- vllm/model_executor/layers/attention_layer_base.py +23 -0
- vllm/model_executor/layers/fla/__init__.py +8 -0
- vllm/model_executor/layers/fla/ops/__init__.py +17 -0
- vllm/model_executor/layers/fla/ops/chunk.py +225 -0
- vllm/model_executor/layers/fla/ops/chunk_delta_h.py +290 -0
- vllm/model_executor/layers/fla/ops/chunk_o.py +177 -0
- vllm/model_executor/layers/fla/ops/chunk_scaled_dot_kkt.py +140 -0
- vllm/model_executor/layers/fla/ops/cumsum.py +226 -0
- vllm/model_executor/layers/fla/ops/fused_recurrent.py +366 -0
- vllm/model_executor/layers/fla/ops/index.py +39 -0
- vllm/model_executor/layers/fla/ops/l2norm.py +143 -0
- vllm/model_executor/layers/fla/ops/layernorm_guard.py +337 -0
- vllm/model_executor/layers/fla/ops/op.py +39 -0
- vllm/model_executor/layers/fla/ops/solve_tril.py +365 -0
- vllm/model_executor/layers/fla/ops/utils.py +180 -0
- vllm/model_executor/layers/fla/ops/wy_fast.py +114 -0
- vllm/model_executor/layers/fused_moe/__init__.py +80 -0
- vllm/model_executor/layers/fused_moe/batched_deep_gemm_moe.py +304 -0
- vllm/model_executor/layers/fused_moe/batched_triton_or_deep_gemm_moe.py +164 -0
- vllm/model_executor/layers/fused_moe/config.py +497 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=14336,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=14336,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=1792,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=1792,device_name=NVIDIA_A100-SXM4-80GB.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=3072,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=3072,device_name=NVIDIA_H100_80GB_HBM3,dtype=int8_w8a16.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=3072,device_name=NVIDIA_H100_80GB_HBM3.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=3584,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=3584,device_name=NVIDIA_A100-SXM4-80GB.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=1,N=7168,device_name=NVIDIA_A100-SXM4-80GB.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=1024,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=1024,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=192,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=192,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=192,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=192,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=192,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=352,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +122 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_H20-3e,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=384,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=512,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=704,device_name=NVIDIA_B200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=704,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +114 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_H20-3e,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=768,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=128,N=96,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1024,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1024,device_name=NVIDIA_B200,dtype=fp8_w8a8.json +147 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1024,device_name=NVIDIA_B200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1024,device_name=NVIDIA_H100.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1344,device_name=NVIDIA_A100-SXM4-40GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1344,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1344,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=14336,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=14336,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1792,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=1792,device_name=NVIDIA_A100-SXM4-80GB.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=2688,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=2688,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=3072,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=3072,device_name=NVIDIA_H100_80GB_HBM3,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=3200,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +130 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=3584,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=3584,device_name=NVIDIA_A100-SXM4-80GB.json +218 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=6400,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +130 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=7168,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=int8_w8a16.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=16,N=800,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +130 -0
- vllm/model_executor/layers/fused_moe/configs/E=160,N=192,device_name=NVIDIA_A800-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=160,N=192,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=160,N=320,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=160,N=640,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=160,N=640,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=160,N=640,device_name=NVIDIA_H100,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=20,N=2560,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=20,N=2560,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=20,N=2560,device_name=NVIDIA_H100,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=20,N=2560,device_name=NVIDIA_H20-3e,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=1024,device_name=AMD_Instinct_MI325X,block_shape=[128,128].json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=1024,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=128,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=NVIDIA_H20-3e,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=256,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=512,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=512,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=256,N=64,device_name=NVIDIA_A800-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=384,N=128,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=384,N=128,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=384,N=128,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=384,N=256,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=384,N=256,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=40,N=2560,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=40,N=2560,device_name=NVIDIA_GB200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=40,N=2560,device_name=NVIDIA_H100,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=128,device_name=NVIDIA_B200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=128,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=128,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=128,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=256,device_name=NVIDIA_B200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=256,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=256,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=256,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=512,device_name=NVIDIA_B200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=512,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=512,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=512,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=64,device_name=NVIDIA_B200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=64,device_name=NVIDIA_H20-3e.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=512,N=64,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=60,N=1408,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=60,N=176,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=60,N=352,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=60,N=704,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=62,N=256,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=62,N=512,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1280,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1280,device_name=NVIDIA_A800-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1280,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1280,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1280,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1280,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=1536,device_name=NVIDIA_H20,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=2560,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=2560,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=2560,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=3072,device_name=NVIDIA_H20,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=3072,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=320,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=320,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=320,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=320,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=384,device_name=NVIDIA_H20,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=384,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_A800-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_GeForce_RTX_4090,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=640,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=768,device_name=NVIDIA_H20,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=768,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=64,N=896,device_name=NVIDIA_H20.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=72,N=384,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=72,N=768,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +138 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=14336,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=16384,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=16384,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=16384,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=16384,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=NVIDIA_A100-SXM4-40GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=1792,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +154 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=2048,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_A100-SXM4-40GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_GeForce_RTX_4090,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=3584,device_name=NVIDIA_L40S.json +173 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=4096,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=NVIDIA_A100-SXM4-80GB.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=NVIDIA_H100_80GB_HBM3.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=7168,device_name=NVIDIA_H200.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=8192,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=8192,device_name=AMD_Instinct_MI300X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=8192,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8.json +164 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=8192,device_name=AMD_Instinct_MI325X.json +200 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=8192,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/E=8,N=8192,device_name=NVIDIA_H200,dtype=fp8_w8a8.json +146 -0
- vllm/model_executor/layers/fused_moe/configs/README +12 -0
- vllm/model_executor/layers/fused_moe/cpu_fused_moe.py +297 -0
- vllm/model_executor/layers/fused_moe/cutlass_moe.py +996 -0
- vllm/model_executor/layers/fused_moe/deep_gemm_moe.py +370 -0
- vllm/model_executor/layers/fused_moe/deep_gemm_utils.py +413 -0
- vllm/model_executor/layers/fused_moe/deepep_ht_prepare_finalize.py +280 -0
- vllm/model_executor/layers/fused_moe/deepep_ll_prepare_finalize.py +229 -0
- vllm/model_executor/layers/fused_moe/flashinfer_cutlass_moe.py +243 -0
- vllm/model_executor/layers/fused_moe/flashinfer_cutlass_prepare_finalize.py +97 -0
- vllm/model_executor/layers/fused_moe/fused_batched_moe.py +1042 -0
- vllm/model_executor/layers/fused_moe/fused_marlin_moe.py +240 -0
- vllm/model_executor/layers/fused_moe/fused_moe.py +2081 -0
- vllm/model_executor/layers/fused_moe/gpt_oss_triton_kernels_moe.py +247 -0
- vllm/model_executor/layers/fused_moe/layer.py +1951 -0
- vllm/model_executor/layers/fused_moe/modular_kernel.py +892 -0
- vllm/model_executor/layers/fused_moe/moe_align_block_size.py +87 -0
- vllm/model_executor/layers/fused_moe/moe_pallas.py +80 -0
- vllm/model_executor/layers/fused_moe/moe_permute_unpermute.py +205 -0
- vllm/model_executor/layers/fused_moe/moe_torch_iterative.py +60 -0
- vllm/model_executor/layers/fused_moe/pplx_prepare_finalize.py +321 -0
- vllm/model_executor/layers/fused_moe/prepare_finalize.py +72 -0
- vllm/model_executor/layers/fused_moe/rocm_aiter_fused_moe.py +431 -0
- vllm/model_executor/layers/fused_moe/routing_simulator.py +291 -0
- vllm/model_executor/layers/fused_moe/topk_weight_and_reduce.py +146 -0
- vllm/model_executor/layers/fused_moe/triton_deep_gemm_moe.py +171 -0
- vllm/model_executor/layers/fused_moe/trtllm_moe.py +197 -0
- vllm/model_executor/layers/fused_moe/utils.py +270 -0
- vllm/model_executor/layers/layernorm.py +381 -0
- vllm/model_executor/layers/lightning_attn.py +661 -0
- vllm/model_executor/layers/linear.py +1567 -0
- vllm/model_executor/layers/logits_processor.py +199 -0
- vllm/model_executor/layers/mamba/__init__.py +0 -0
- vllm/model_executor/layers/mamba/abstract.py +45 -0
- vllm/model_executor/layers/mamba/linear_attn.py +432 -0
- vllm/model_executor/layers/mamba/mamba2_metadata.py +186 -0
- vllm/model_executor/layers/mamba/mamba_mixer.py +517 -0
- vllm/model_executor/layers/mamba/mamba_mixer2.py +803 -0
- vllm/model_executor/layers/mamba/mamba_utils.py +202 -0
- vllm/model_executor/layers/mamba/ops/__init__.py +0 -0
- vllm/model_executor/layers/mamba/ops/causal_conv1d.py +982 -0
- vllm/model_executor/layers/mamba/ops/layernorm_gated.py +168 -0
- vllm/model_executor/layers/mamba/ops/mamba_ssm.py +414 -0
- vllm/model_executor/layers/mamba/ops/ssd_bmm.py +262 -0
- vllm/model_executor/layers/mamba/ops/ssd_chunk_scan.py +574 -0
- vllm/model_executor/layers/mamba/ops/ssd_chunk_state.py +751 -0
- vllm/model_executor/layers/mamba/ops/ssd_combined.py +248 -0
- vllm/model_executor/layers/mamba/ops/ssd_state_passing.py +248 -0
- vllm/model_executor/layers/mamba/short_conv.py +270 -0
- vllm/model_executor/layers/mla.py +158 -0
- vllm/model_executor/layers/pooler.py +732 -0
- vllm/model_executor/layers/quantization/__init__.py +157 -0
- vllm/model_executor/layers/quantization/auto_round.py +388 -0
- vllm/model_executor/layers/quantization/awq.py +228 -0
- vllm/model_executor/layers/quantization/awq_marlin.py +548 -0
- vllm/model_executor/layers/quantization/awq_triton.py +320 -0
- vllm/model_executor/layers/quantization/base_config.py +164 -0
- vllm/model_executor/layers/quantization/bitblas.py +464 -0
- vllm/model_executor/layers/quantization/bitsandbytes.py +621 -0
- vllm/model_executor/layers/quantization/compressed_tensors/__init__.py +0 -0
- vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors.py +795 -0
- vllm/model_executor/layers/quantization/compressed_tensors/compressed_tensors_moe.py +1651 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/__init__.py +27 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_24.py +366 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_scheme.py +55 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a16_24.py +160 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a16_nvfp4.py +105 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a4_nvfp4.py +161 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a8_fp8.py +169 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w4a8_int.py +135 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w8a16_fp8.py +121 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w8a8_fp8.py +156 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_w8a8_int8.py +111 -0
- vllm/model_executor/layers/quantization/compressed_tensors/schemes/compressed_tensors_wNa16.py +201 -0
- vllm/model_executor/layers/quantization/compressed_tensors/transform/linear.py +227 -0
- vllm/model_executor/layers/quantization/compressed_tensors/transform/module.py +135 -0
- vllm/model_executor/layers/quantization/compressed_tensors/transform/schemes/linear_qutlass_nvfp4.py +21 -0
- vllm/model_executor/layers/quantization/compressed_tensors/transform/utils.py +13 -0
- vllm/model_executor/layers/quantization/compressed_tensors/triton_scaled_mm.py +206 -0
- vllm/model_executor/layers/quantization/compressed_tensors/utils.py +216 -0
- vllm/model_executor/layers/quantization/deepgemm.py +81 -0
- vllm/model_executor/layers/quantization/deepspeedfp.py +196 -0
- vllm/model_executor/layers/quantization/experts_int8.py +215 -0
- vllm/model_executor/layers/quantization/fbgemm_fp8.py +172 -0
- vllm/model_executor/layers/quantization/fp8.py +1179 -0
- vllm/model_executor/layers/quantization/gguf.py +597 -0
- vllm/model_executor/layers/quantization/gptq.py +300 -0
- vllm/model_executor/layers/quantization/gptq_bitblas.py +448 -0
- vllm/model_executor/layers/quantization/gptq_marlin.py +700 -0
- vllm/model_executor/layers/quantization/gptq_marlin_24.py +297 -0
- vllm/model_executor/layers/quantization/hqq_marlin.py +333 -0
- vllm/model_executor/layers/quantization/inc.py +61 -0
- vllm/model_executor/layers/quantization/input_quant_fp8.py +103 -0
- vllm/model_executor/layers/quantization/ipex_quant.py +410 -0
- vllm/model_executor/layers/quantization/kernels/__init__.py +0 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/MPLinearKernel.py +91 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/__init__.py +93 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/allspark.py +116 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/bitblas.py +302 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/conch.py +92 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/cutlass.py +117 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/dynamic_4bit.py +92 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/exllama.py +143 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/machete.py +144 -0
- vllm/model_executor/layers/quantization/kernels/mixed_precision/marlin.py +139 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/ScaledMMLinearKernel.py +67 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/__init__.py +89 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/aiter.py +163 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/cpu.py +206 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/cutlass.py +137 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/triton.py +41 -0
- vllm/model_executor/layers/quantization/kernels/scaled_mm/xla.py +104 -0
- vllm/model_executor/layers/quantization/kv_cache.py +139 -0
- vllm/model_executor/layers/quantization/modelopt.py +1548 -0
- vllm/model_executor/layers/quantization/moe_wna16.py +473 -0
- vllm/model_executor/layers/quantization/mxfp4.py +951 -0
- vllm/model_executor/layers/quantization/petit.py +306 -0
- vllm/model_executor/layers/quantization/ptpc_fp8.py +129 -0
- vllm/model_executor/layers/quantization/quark/__init__.py +0 -0
- vllm/model_executor/layers/quantization/quark/quark.py +431 -0
- vllm/model_executor/layers/quantization/quark/quark_moe.py +434 -0
- vllm/model_executor/layers/quantization/quark/schemes/__init__.py +9 -0
- vllm/model_executor/layers/quantization/quark/schemes/quark_scheme.py +55 -0
- vllm/model_executor/layers/quantization/quark/schemes/quark_w4a4_mxfp4.py +112 -0
- vllm/model_executor/layers/quantization/quark/schemes/quark_w8a8_fp8.py +163 -0
- vllm/model_executor/layers/quantization/quark/schemes/quark_w8a8_int8.py +122 -0
- vllm/model_executor/layers/quantization/quark/utils.py +105 -0
- vllm/model_executor/layers/quantization/rtn.py +456 -0
- vllm/model_executor/layers/quantization/schema.py +86 -0
- vllm/model_executor/layers/quantization/torchao.py +214 -0
- vllm/model_executor/layers/quantization/tpu_int8.py +125 -0
- vllm/model_executor/layers/quantization/utils/__init__.py +6 -0
- vllm/model_executor/layers/quantization/utils/allspark_utils.py +52 -0
- vllm/model_executor/layers/quantization/utils/bitblas_utils.py +210 -0
- vllm/model_executor/layers/quantization/utils/configs/N=12288,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=12288,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=1536,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=1536,K=7168,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2048,K=512,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2112,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2112,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=2304,K=7168,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=1536,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=1536,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=24576,K=7168,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=256,K=7168,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=1536,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=3072,K=7168,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=32768,K=512,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=36864,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=36864,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=36864,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=36864,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=36864,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=512,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4096,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=4608,K=7168,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=512,K=7168,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +18 -0
- vllm/model_executor/layers/quantization/utils/configs/N=576,K=7168,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1024,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=1152,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=128,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=16384,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_A100-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_A800-SXM4-80GB,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_H20,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=18432,device_name=NVIDIA_L20Y,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2048,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=2304,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=NVIDIA_B200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=NVIDIA_H20,dtype=int8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=NVIDIA_H200,dtype=fp8_w8a8,block_shape=[128,128].json +146 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=256,device_name=NVIDIA_L20,dtype=fp8_w8a8,block_shape=[128,128].json +26 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=8192,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=8192,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=7168,K=8192,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=8192,K=1536,device_name=AMD_Instinct_MI300X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=8192,K=1536,device_name=AMD_Instinct_MI325X,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/N=8192,K=1536,device_name=AMD_Instinct_MI325_OAM,dtype=fp8_w8a8,block_shape=[128,128].json +164 -0
- vllm/model_executor/layers/quantization/utils/configs/README.md +3 -0
- vllm/model_executor/layers/quantization/utils/flashinfer_fp4_moe.py +85 -0
- vllm/model_executor/layers/quantization/utils/flashinfer_utils.py +258 -0
- vllm/model_executor/layers/quantization/utils/fp8_utils.py +795 -0
- vllm/model_executor/layers/quantization/utils/gptq_utils.py +96 -0
- vllm/model_executor/layers/quantization/utils/int8_utils.py +492 -0
- vllm/model_executor/layers/quantization/utils/layer_utils.py +40 -0
- vllm/model_executor/layers/quantization/utils/machete_utils.py +50 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils.py +479 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils_fp4.py +396 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils_fp8.py +345 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils_test.py +165 -0
- vllm/model_executor/layers/quantization/utils/marlin_utils_test_24.py +464 -0
- vllm/model_executor/layers/quantization/utils/mxfp4_utils.py +132 -0
- vllm/model_executor/layers/quantization/utils/mxfp8_utils.py +20 -0
- vllm/model_executor/layers/quantization/utils/nvfp4_emulation_utils.py +137 -0
- vllm/model_executor/layers/quantization/utils/nvfp4_moe_support.py +59 -0
- vllm/model_executor/layers/quantization/utils/petit_utils.py +122 -0
- vllm/model_executor/layers/quantization/utils/quant_utils.py +627 -0
- vllm/model_executor/layers/quantization/utils/w8a8_utils.py +458 -0
- vllm/model_executor/layers/resampler.py +270 -0
- vllm/model_executor/layers/rotary_embedding/__init__.py +190 -0
- vllm/model_executor/layers/rotary_embedding/base.py +156 -0
- vllm/model_executor/layers/rotary_embedding/common.py +105 -0
- vllm/model_executor/layers/rotary_embedding/deepseek_scaling_rope.py +140 -0
- vllm/model_executor/layers/rotary_embedding/dual_chunk_rope.py +197 -0
- vllm/model_executor/layers/rotary_embedding/dynamic_ntk_alpha_rope.py +41 -0
- vllm/model_executor/layers/rotary_embedding/dynamic_ntk_scaling_rope.py +67 -0
- vllm/model_executor/layers/rotary_embedding/ernie45_vl_rope.py +80 -0
- vllm/model_executor/layers/rotary_embedding/linear_scaling_rope.py +115 -0
- vllm/model_executor/layers/rotary_embedding/llama3_rope.py +54 -0
- vllm/model_executor/layers/rotary_embedding/llama4_vision_rope.py +81 -0
- vllm/model_executor/layers/rotary_embedding/mrope.py +1140 -0
- vllm/model_executor/layers/rotary_embedding/ntk_scaling_rope.py +42 -0
- vllm/model_executor/layers/rotary_embedding/phi3_long_rope_scaled_rope.py +129 -0
- vllm/model_executor/layers/rotary_embedding/yarn_scaling_rope.py +68 -0
- vllm/model_executor/layers/sampler.py +1198 -0
- vllm/model_executor/layers/shared_fused_moe/__init__.py +6 -0
- vllm/model_executor/layers/shared_fused_moe/shared_fused_moe.py +56 -0
- vllm/model_executor/layers/utils.py +196 -0
- vllm/model_executor/layers/vocab_parallel_embedding.py +487 -0
- vllm/model_executor/model_loader/__init__.py +138 -0
- vllm/model_executor/model_loader/base_loader.py +52 -0
- vllm/model_executor/model_loader/bitsandbytes_loader.py +787 -0
- vllm/model_executor/model_loader/default_loader.py +278 -0
- vllm/model_executor/model_loader/dummy_loader.py +28 -0
- vllm/model_executor/model_loader/gguf_loader.py +155 -0
- vllm/model_executor/model_loader/runai_streamer_loader.py +104 -0
- vllm/model_executor/model_loader/sharded_state_loader.py +199 -0
- vllm/model_executor/model_loader/tensorizer.py +743 -0
- vllm/model_executor/model_loader/tensorizer_loader.py +143 -0
- vllm/model_executor/model_loader/tpu.py +114 -0
- vllm/model_executor/model_loader/utils.py +271 -0
- vllm/model_executor/model_loader/weight_utils.py +946 -0
- vllm/model_executor/models/__init__.py +30 -0
- vllm/model_executor/models/adapters.py +542 -0
- vllm/model_executor/models/aimv2.py +246 -0
- vllm/model_executor/models/apertus.py +582 -0
- vllm/model_executor/models/arcee.py +423 -0
- vllm/model_executor/models/arctic.py +560 -0
- vllm/model_executor/models/aria.py +662 -0
- vllm/model_executor/models/aya_vision.py +470 -0
- vllm/model_executor/models/baichuan.py +475 -0
- vllm/model_executor/models/bailing_moe.py +529 -0
- vllm/model_executor/models/bamba.py +582 -0
- vllm/model_executor/models/bart.py +1343 -0
- vllm/model_executor/models/bert.py +613 -0
- vllm/model_executor/models/bert_with_rope.py +687 -0
- vllm/model_executor/models/blip.py +339 -0
- vllm/model_executor/models/blip2.py +716 -0
- vllm/model_executor/models/bloom.py +374 -0
- vllm/model_executor/models/chameleon.py +1141 -0
- vllm/model_executor/models/chatglm.py +479 -0
- vllm/model_executor/models/clip.py +407 -0
- vllm/model_executor/models/cohere2_vision.py +484 -0
- vllm/model_executor/models/commandr.py +467 -0
- vllm/model_executor/models/config.py +434 -0
- vllm/model_executor/models/constant_size_cache.py +137 -0
- vllm/model_executor/models/dbrx.py +473 -0
- vllm/model_executor/models/deepseek.py +491 -0
- vllm/model_executor/models/deepseek_eagle.py +241 -0
- vllm/model_executor/models/deepseek_mtp.py +282 -0
- vllm/model_executor/models/deepseek_v2.py +1058 -0
- vllm/model_executor/models/deepseek_vl2.py +661 -0
- vllm/model_executor/models/donut.py +387 -0
- vllm/model_executor/models/dots1.py +547 -0
- vllm/model_executor/models/ernie45.py +43 -0
- vllm/model_executor/models/ernie45_moe.py +608 -0
- vllm/model_executor/models/ernie45_vl.py +1510 -0
- vllm/model_executor/models/ernie45_vl_moe.py +728 -0
- vllm/model_executor/models/ernie_mtp.py +287 -0
- vllm/model_executor/models/exaone.py +552 -0
- vllm/model_executor/models/exaone4.py +535 -0
- vllm/model_executor/models/fairseq2_llama.py +154 -0
- vllm/model_executor/models/falcon.py +511 -0
- vllm/model_executor/models/falcon_h1.py +739 -0
- vllm/model_executor/models/florence2.py +1107 -0
- vllm/model_executor/models/fuyu.py +401 -0
- vllm/model_executor/models/gemma.py +428 -0
- vllm/model_executor/models/gemma2.py +425 -0
- vllm/model_executor/models/gemma3.py +542 -0
- vllm/model_executor/models/gemma3_mm.py +723 -0
- vllm/model_executor/models/gemma3n.py +830 -0
- vllm/model_executor/models/gemma3n_mm.py +767 -0
- vllm/model_executor/models/glm.py +23 -0
- vllm/model_executor/models/glm4.py +305 -0
- vllm/model_executor/models/glm4_1v.py +1669 -0
- vllm/model_executor/models/glm4_moe.py +703 -0
- vllm/model_executor/models/glm4_moe_mtp.py +306 -0
- vllm/model_executor/models/glm4v.py +654 -0
- vllm/model_executor/models/gpt2.py +383 -0
- vllm/model_executor/models/gpt_bigcode.py +346 -0
- vllm/model_executor/models/gpt_j.py +340 -0
- vllm/model_executor/models/gpt_neox.py +333 -0
- vllm/model_executor/models/gpt_oss.py +687 -0
- vllm/model_executor/models/granite.py +498 -0
- vllm/model_executor/models/granite_speech.py +799 -0
- vllm/model_executor/models/granitemoe.py +541 -0
- vllm/model_executor/models/granitemoehybrid.py +684 -0
- vllm/model_executor/models/granitemoeshared.py +342 -0
- vllm/model_executor/models/gritlm.py +262 -0
- vllm/model_executor/models/grok1.py +550 -0
- vllm/model_executor/models/h2ovl.py +536 -0
- vllm/model_executor/models/hunyuan_v1.py +937 -0
- vllm/model_executor/models/hyperclovax_vision.py +1206 -0
- vllm/model_executor/models/idefics2_vision_model.py +416 -0
- vllm/model_executor/models/idefics3.py +758 -0
- vllm/model_executor/models/interfaces.py +854 -0
- vllm/model_executor/models/interfaces_base.py +195 -0
- vllm/model_executor/models/intern_vit.py +481 -0
- vllm/model_executor/models/internlm2.py +453 -0
- vllm/model_executor/models/internlm2_ve.py +148 -0
- vllm/model_executor/models/interns1.py +832 -0
- vllm/model_executor/models/interns1_vit.py +418 -0
- vllm/model_executor/models/internvl.py +1423 -0
- vllm/model_executor/models/jais.py +374 -0
- vllm/model_executor/models/jamba.py +630 -0
- vllm/model_executor/models/jina_vl.py +144 -0
- vllm/model_executor/models/keye.py +1684 -0
- vllm/model_executor/models/keye_vl1_5.py +601 -0
- vllm/model_executor/models/kimi_vl.py +620 -0
- vllm/model_executor/models/lfm2.py +558 -0
- vllm/model_executor/models/llama.py +671 -0
- vllm/model_executor/models/llama4.py +732 -0
- vllm/model_executor/models/llama4_eagle.py +241 -0
- vllm/model_executor/models/llama_eagle.py +171 -0
- vllm/model_executor/models/llama_eagle3.py +292 -0
- vllm/model_executor/models/llava.py +872 -0
- vllm/model_executor/models/llava_next.py +572 -0
- vllm/model_executor/models/llava_next_video.py +479 -0
- vllm/model_executor/models/llava_onevision.py +945 -0
- vllm/model_executor/models/mamba.py +310 -0
- vllm/model_executor/models/mamba2.py +346 -0
- vllm/model_executor/models/mamba_cache.py +83 -0
- vllm/model_executor/models/medusa.py +219 -0
- vllm/model_executor/models/midashenglm.py +788 -0
- vllm/model_executor/models/mimo.py +191 -0
- vllm/model_executor/models/mimo_mtp.py +273 -0
- vllm/model_executor/models/minicpm.py +593 -0
- vllm/model_executor/models/minicpm3.py +230 -0
- vllm/model_executor/models/minicpm_eagle.py +391 -0
- vllm/model_executor/models/minicpmo.py +804 -0
- vllm/model_executor/models/minicpmv.py +1786 -0
- vllm/model_executor/models/minimax_cache.py +36 -0
- vllm/model_executor/models/minimax_text_01.py +1027 -0
- vllm/model_executor/models/minimax_vl_01.py +431 -0
- vllm/model_executor/models/mistral3.py +628 -0
- vllm/model_executor/models/mixtral.py +494 -0
- vllm/model_executor/models/mllama.py +1697 -0
- vllm/model_executor/models/mllama4.py +1079 -0
- vllm/model_executor/models/mlp_speculator.py +206 -0
- vllm/model_executor/models/modernbert.py +374 -0
- vllm/model_executor/models/module_mapping.py +72 -0
- vllm/model_executor/models/molmo.py +1569 -0
- vllm/model_executor/models/moonvit.py +663 -0
- vllm/model_executor/models/motif.py +345 -0
- vllm/model_executor/models/mpt.py +332 -0
- vllm/model_executor/models/nano_nemotron_vl.py +1395 -0
- vllm/model_executor/models/nemotron.py +509 -0
- vllm/model_executor/models/nemotron_h.py +633 -0
- vllm/model_executor/models/nemotron_nas.py +484 -0
- vllm/model_executor/models/nemotron_vl.py +655 -0
- vllm/model_executor/models/nvlm_d.py +203 -0
- vllm/model_executor/models/olmo.py +406 -0
- vllm/model_executor/models/olmo2.py +428 -0
- vllm/model_executor/models/olmoe.py +485 -0
- vllm/model_executor/models/opt.py +413 -0
- vllm/model_executor/models/orion.py +350 -0
- vllm/model_executor/models/ovis.py +572 -0
- vllm/model_executor/models/ovis2_5.py +644 -0
- vllm/model_executor/models/paligemma.py +414 -0
- vllm/model_executor/models/persimmon.py +345 -0
- vllm/model_executor/models/phi.py +357 -0
- vllm/model_executor/models/phi3.py +19 -0
- vllm/model_executor/models/phi3v.py +701 -0
- vllm/model_executor/models/phi4_multimodal.py +1478 -0
- vllm/model_executor/models/phi4flash.py +737 -0
- vllm/model_executor/models/phi4mm.py +1281 -0
- vllm/model_executor/models/phi4mm_audio.py +1254 -0
- vllm/model_executor/models/phi4mm_utils.py +1875 -0
- vllm/model_executor/models/phimoe.py +681 -0
- vllm/model_executor/models/pixtral.py +1348 -0
- vllm/model_executor/models/plamo2.py +1126 -0
- vllm/model_executor/models/qwen.py +363 -0
- vllm/model_executor/models/qwen2.py +526 -0
- vllm/model_executor/models/qwen2_5_omni_thinker.py +985 -0
- vllm/model_executor/models/qwen2_5_vl.py +1256 -0
- vllm/model_executor/models/qwen2_audio.py +492 -0
- vllm/model_executor/models/qwen2_moe.py +558 -0
- vllm/model_executor/models/qwen2_rm.py +122 -0
- vllm/model_executor/models/qwen2_vl.py +1512 -0
- vllm/model_executor/models/qwen3.py +344 -0
- vllm/model_executor/models/qwen3_moe.py +704 -0
- vllm/model_executor/models/qwen3_next.py +1298 -0
- vllm/model_executor/models/qwen3_next_mtp.py +285 -0
- vllm/model_executor/models/qwen_vl.py +795 -0
- vllm/model_executor/models/registry.py +891 -0
- vllm/model_executor/models/roberta.py +252 -0
- vllm/model_executor/models/rvl.py +103 -0
- vllm/model_executor/models/seed_oss.py +488 -0
- vllm/model_executor/models/siglip.py +524 -0
- vllm/model_executor/models/siglip2navit.py +688 -0
- vllm/model_executor/models/skyworkr1v.py +914 -0
- vllm/model_executor/models/smolvlm.py +44 -0
- vllm/model_executor/models/solar.py +506 -0
- vllm/model_executor/models/stablelm.py +344 -0
- vllm/model_executor/models/starcoder2.py +357 -0
- vllm/model_executor/models/step3_text.py +521 -0
- vllm/model_executor/models/step3_vl.py +1091 -0
- vllm/model_executor/models/swin.py +475 -0
- vllm/model_executor/models/tarsier.py +649 -0
- vllm/model_executor/models/telechat2.py +151 -0
- vllm/model_executor/models/teleflm.py +79 -0
- vllm/model_executor/models/terratorch.py +294 -0
- vllm/model_executor/models/transformers.py +883 -0
- vllm/model_executor/models/ultravox.py +667 -0
- vllm/model_executor/models/utils.py +770 -0
- vllm/model_executor/models/vision.py +125 -0
- vllm/model_executor/models/voxtral.py +789 -0
- vllm/model_executor/models/whisper.py +966 -0
- vllm/model_executor/models/zamba2.py +1056 -0
- vllm/model_executor/parameter.py +599 -0
- vllm/model_executor/sampling_metadata.py +597 -0
- vllm/model_executor/utils.py +97 -0
- vllm/model_executor/warmup/__init__.py +0 -0
- vllm/model_executor/warmup/deep_gemm_warmup.py +223 -0
- vllm/model_executor/warmup/kernel_warmup.py +83 -0
- vllm/multimodal/__init__.py +35 -0
- vllm/multimodal/audio.py +116 -0
- vllm/multimodal/base.py +219 -0
- vllm/multimodal/cache.py +507 -0
- vllm/multimodal/hasher.py +110 -0
- vllm/multimodal/image.py +130 -0
- vllm/multimodal/inputs.py +979 -0
- vllm/multimodal/parse.py +496 -0
- vllm/multimodal/processing.py +1921 -0
- vllm/multimodal/profiling.py +313 -0
- vllm/multimodal/registry.py +375 -0
- vllm/multimodal/utils.py +754 -0
- vllm/multimodal/video.py +312 -0
- vllm/outputs.py +517 -0
- vllm/platforms/__init__.py +263 -0
- vllm/platforms/cpu.py +353 -0
- vllm/platforms/cuda.py +731 -0
- vllm/platforms/interface.py +599 -0
- vllm/platforms/rocm.py +504 -0
- vllm/platforms/tpu.py +236 -0
- vllm/platforms/xpu.py +243 -0
- vllm/plugins/__init__.py +72 -0
- vllm/plugins/io_processors/__init__.py +68 -0
- vllm/plugins/io_processors/interface.py +67 -0
- vllm/plugins/lora_resolvers/README.md +16 -0
- vllm/plugins/lora_resolvers/__init__.py +0 -0
- vllm/plugins/lora_resolvers/filesystem_resolver.py +50 -0
- vllm/pooling_params.py +183 -0
- vllm/profiler/__init__.py +0 -0
- vllm/profiler/layerwise_profile.py +375 -0
- vllm/profiler/utils.py +148 -0
- vllm/py.typed +2 -0
- vllm/ray/__init__.py +0 -0
- vllm/ray/lazy_utils.py +22 -0
- vllm/ray/ray_env.py +72 -0
- vllm/reasoning/__init__.py +25 -0
- vllm/reasoning/abs_reasoning_parsers.py +202 -0
- vllm/reasoning/deepseek_r1_reasoning_parser.py +173 -0
- vllm/reasoning/glm4_moe_reasoning_parser.py +151 -0
- vllm/reasoning/gptoss_reasoning_parser.py +87 -0
- vllm/reasoning/granite_reasoning_parser.py +363 -0
- vllm/reasoning/hunyuan_a13b_reasoning_parser.py +245 -0
- vllm/reasoning/mistral_reasoning_parser.py +47 -0
- vllm/reasoning/qwen3_reasoning_parser.py +151 -0
- vllm/reasoning/step3_reasoning_parser.py +109 -0
- vllm/sampling_params.py +577 -0
- vllm/scalar_type.py +349 -0
- vllm/scripts.py +15 -0
- vllm/sequence.py +1465 -0
- vllm/tasks.py +11 -0
- vllm/test_utils.py +130 -0
- vllm/third_party/__init__.py +0 -0
- vllm/third_party/pynvml.py +6140 -0
- vllm/tracing.py +136 -0
- vllm/transformers_utils/__init__.py +24 -0
- vllm/transformers_utils/chat_templates/__init__.py +5 -0
- vllm/transformers_utils/chat_templates/registry.py +71 -0
- vllm/transformers_utils/chat_templates/template_basic.jinja +3 -0
- vllm/transformers_utils/chat_templates/template_blip2.jinja +11 -0
- vllm/transformers_utils/chat_templates/template_chatml.jinja +10 -0
- vllm/transformers_utils/chat_templates/template_deepseek_vl2.jinja +23 -0
- vllm/transformers_utils/chat_templates/template_fuyu.jinja +3 -0
- vllm/transformers_utils/chat_templates/template_minicpmv45.jinja +93 -0
- vllm/transformers_utils/config.py +1043 -0
- vllm/transformers_utils/config_parser_base.py +20 -0
- vllm/transformers_utils/configs/__init__.py +55 -0
- vllm/transformers_utils/configs/arctic.py +207 -0
- vllm/transformers_utils/configs/chatglm.py +72 -0
- vllm/transformers_utils/configs/deepseek_vl2.py +216 -0
- vllm/transformers_utils/configs/eagle.py +84 -0
- vllm/transformers_utils/configs/falcon.py +90 -0
- vllm/transformers_utils/configs/jais.py +238 -0
- vllm/transformers_utils/configs/kimi_vl.py +37 -0
- vllm/transformers_utils/configs/medusa.py +63 -0
- vllm/transformers_utils/configs/midashenglm.py +101 -0
- vllm/transformers_utils/configs/mistral.py +165 -0
- vllm/transformers_utils/configs/mlp_speculator.py +68 -0
- vllm/transformers_utils/configs/moonvit.py +33 -0
- vllm/transformers_utils/configs/nemotron.py +205 -0
- vllm/transformers_utils/configs/nemotron_h.py +259 -0
- vllm/transformers_utils/configs/nemotron_vl.py +56 -0
- vllm/transformers_utils/configs/ovis.py +176 -0
- vllm/transformers_utils/configs/qwen3_next.py +275 -0
- vllm/transformers_utils/configs/speculators/__init__.py +2 -0
- vllm/transformers_utils/configs/speculators/algos.py +32 -0
- vllm/transformers_utils/configs/speculators/base.py +91 -0
- vllm/transformers_utils/configs/step3_vl.py +123 -0
- vllm/transformers_utils/configs/ultravox.py +120 -0
- vllm/transformers_utils/detokenizer.py +169 -0
- vllm/transformers_utils/detokenizer_utils.py +199 -0
- vllm/transformers_utils/dynamic_module.py +60 -0
- vllm/transformers_utils/processor.py +245 -0
- vllm/transformers_utils/processors/__init__.py +16 -0
- vllm/transformers_utils/processors/deepseek_vl2.py +363 -0
- vllm/transformers_utils/processors/ovis.py +420 -0
- vllm/transformers_utils/processors/ovis2_5.py +458 -0
- vllm/transformers_utils/runai_utils.py +99 -0
- vllm/transformers_utils/s3_utils.py +90 -0
- vllm/transformers_utils/tokenizer.py +293 -0
- vllm/transformers_utils/tokenizer_base.py +149 -0
- vllm/transformers_utils/tokenizer_group.py +132 -0
- vllm/transformers_utils/tokenizers/__init__.py +10 -0
- vllm/transformers_utils/tokenizers/mistral.py +520 -0
- vllm/transformers_utils/utils.py +99 -0
- vllm/triton_utils/__init__.py +16 -0
- vllm/triton_utils/importing.py +95 -0
- vllm/usage/__init__.py +0 -0
- vllm/usage/usage_lib.py +259 -0
- vllm/utils/__init__.py +3438 -0
- vllm/utils/deep_gemm.py +212 -0
- vllm/utils/flashinfer.py +372 -0
- vllm/utils/jsontree.py +90 -0
- vllm/utils/tensor_schema.py +236 -0
- vllm/v1/__init__.py +0 -0
- vllm/v1/attention/__init__.py +0 -0
- vllm/v1/attention/backends/__init__.py +0 -0
- vllm/v1/attention/backends/cpu_attn.py +922 -0
- vllm/v1/attention/backends/flash_attn.py +800 -0
- vllm/v1/attention/backends/flashinfer.py +1128 -0
- vllm/v1/attention/backends/flex_attention.py +796 -0
- vllm/v1/attention/backends/gdn_attn.py +320 -0
- vllm/v1/attention/backends/linear_attn.py +68 -0
- vllm/v1/attention/backends/mamba1_attn.py +81 -0
- vllm/v1/attention/backends/mamba2_attn.py +224 -0
- vllm/v1/attention/backends/mamba_attn.py +52 -0
- vllm/v1/attention/backends/mla/__init__.py +0 -0
- vllm/v1/attention/backends/mla/common.py +1608 -0
- vllm/v1/attention/backends/mla/cutlass_mla.py +301 -0
- vllm/v1/attention/backends/mla/flashattn_mla.py +273 -0
- vllm/v1/attention/backends/mla/flashinfer_mla.py +110 -0
- vllm/v1/attention/backends/mla/flashmla.py +213 -0
- vllm/v1/attention/backends/mla/rocm_aiter_mla.py +255 -0
- vllm/v1/attention/backends/mla/triton_mla.py +175 -0
- vllm/v1/attention/backends/pallas.py +413 -0
- vllm/v1/attention/backends/rocm_aiter_fa.py +548 -0
- vllm/v1/attention/backends/short_conv_attn.py +82 -0
- vllm/v1/attention/backends/tree_attn.py +450 -0
- vllm/v1/attention/backends/triton_attn.py +430 -0
- vllm/v1/attention/backends/utils.py +834 -0
- vllm/v1/attention/backends/xformers.py +437 -0
- vllm/v1/core/__init__.py +0 -0
- vllm/v1/core/block_pool.py +330 -0
- vllm/v1/core/encoder_cache_manager.py +333 -0
- vllm/v1/core/kv_cache_coordinator.py +440 -0
- vllm/v1/core/kv_cache_manager.py +398 -0
- vllm/v1/core/kv_cache_utils.py +1169 -0
- vllm/v1/core/sched/__init__.py +0 -0
- vllm/v1/core/sched/async_scheduler.py +47 -0
- vllm/v1/core/sched/interface.py +158 -0
- vllm/v1/core/sched/output.py +162 -0
- vllm/v1/core/sched/request_queue.py +224 -0
- vllm/v1/core/sched/scheduler.py +1287 -0
- vllm/v1/core/sched/utils.py +69 -0
- vllm/v1/core/single_type_kv_cache_manager.py +670 -0
- vllm/v1/cudagraph_dispatcher.py +121 -0
- vllm/v1/engine/__init__.py +202 -0
- vllm/v1/engine/async_llm.py +757 -0
- vllm/v1/engine/coordinator.py +357 -0
- vllm/v1/engine/core.py +1245 -0
- vllm/v1/engine/core_client.py +1333 -0
- vllm/v1/engine/detokenizer.py +300 -0
- vllm/v1/engine/exceptions.py +17 -0
- vllm/v1/engine/llm_engine.py +332 -0
- vllm/v1/engine/logprobs.py +201 -0
- vllm/v1/engine/output_processor.py +558 -0
- vllm/v1/engine/parallel_sampling.py +133 -0
- vllm/v1/engine/processor.py +524 -0
- vllm/v1/engine/utils.py +857 -0
- vllm/v1/executor/__init__.py +0 -0
- vllm/v1/executor/abstract.py +126 -0
- vllm/v1/executor/multiproc_executor.py +683 -0
- vllm/v1/executor/ray_distributed_executor.py +109 -0
- vllm/v1/kv_cache_interface.py +275 -0
- vllm/v1/metrics/__init__.py +0 -0
- vllm/v1/metrics/loggers.py +717 -0
- vllm/v1/metrics/prometheus.py +82 -0
- vllm/v1/metrics/ray_wrappers.py +133 -0
- vllm/v1/metrics/reader.py +246 -0
- vllm/v1/metrics/stats.py +248 -0
- vllm/v1/outputs.py +147 -0
- vllm/v1/pool/__init__.py +0 -0
- vllm/v1/pool/metadata.py +77 -0
- vllm/v1/request.py +237 -0
- vllm/v1/sample/__init__.py +0 -0
- vllm/v1/sample/logits_processor/__init__.py +294 -0
- vllm/v1/sample/logits_processor/builtin.py +273 -0
- vllm/v1/sample/logits_processor/interface.py +97 -0
- vllm/v1/sample/logits_processor/state.py +161 -0
- vllm/v1/sample/metadata.py +43 -0
- vllm/v1/sample/ops/__init__.py +0 -0
- vllm/v1/sample/ops/bad_words.py +39 -0
- vllm/v1/sample/ops/logprobs.py +26 -0
- vllm/v1/sample/ops/penalties.py +43 -0
- vllm/v1/sample/ops/topk_topp_sampler.py +254 -0
- vllm/v1/sample/rejection_sampler.py +623 -0
- vllm/v1/sample/sampler.py +281 -0
- vllm/v1/sample/tpu/__init__.py +0 -0
- vllm/v1/sample/tpu/metadata.py +124 -0
- vllm/v1/sample/tpu/sampler.py +213 -0
- vllm/v1/serial_utils.py +395 -0
- vllm/v1/spec_decode/__init__.py +0 -0
- vllm/v1/spec_decode/eagle.py +740 -0
- vllm/v1/spec_decode/medusa.py +66 -0
- vllm/v1/spec_decode/metadata.py +62 -0
- vllm/v1/spec_decode/metrics.py +191 -0
- vllm/v1/spec_decode/ngram_proposer.py +157 -0
- vllm/v1/spec_decode/utils.py +14 -0
- vllm/v1/structured_output/__init__.py +297 -0
- vllm/v1/structured_output/backend_guidance.py +245 -0
- vllm/v1/structured_output/backend_lm_format_enforcer.py +167 -0
- vllm/v1/structured_output/backend_outlines.py +320 -0
- vllm/v1/structured_output/backend_types.py +134 -0
- vllm/v1/structured_output/backend_xgrammar.py +323 -0
- vllm/v1/structured_output/request.py +86 -0
- vllm/v1/structured_output/utils.py +373 -0
- vllm/v1/utils.py +382 -0
- vllm/v1/worker/__init__.py +0 -0
- vllm/v1/worker/block_table.py +221 -0
- vllm/v1/worker/cpu_model_runner.py +163 -0
- vllm/v1/worker/cpu_worker.py +183 -0
- vllm/v1/worker/gpu_input_batch.py +821 -0
- vllm/v1/worker/gpu_model_runner.py +3743 -0
- vllm/v1/worker/gpu_worker.py +697 -0
- vllm/v1/worker/kv_connector_model_runner_mixin.py +122 -0
- vllm/v1/worker/lora_model_runner_mixin.py +192 -0
- vllm/v1/worker/tpu_input_batch.py +585 -0
- vllm/v1/worker/tpu_model_runner.py +1947 -0
- vllm/v1/worker/tpu_worker.py +340 -0
- vllm/v1/worker/utils.py +290 -0
- vllm/v1/worker/worker_base.py +65 -0
- vllm/v1/worker/xpu_model_runner.py +53 -0
- vllm/v1/worker/xpu_worker.py +179 -0
- vllm/version.py +41 -0
- vllm/vllm_flash_attn/.gitkeep +0 -0
- vllm/worker/__init__.py +0 -0
- vllm/worker/cache_engine.py +145 -0
- vllm/worker/enc_dec_model_runner.py +553 -0
- vllm/worker/model_runner.py +2016 -0
- vllm/worker/model_runner_base.py +307 -0
- vllm/worker/utils.py +49 -0
- vllm/worker/worker.py +670 -0
- vllm/worker/worker_base.py +651 -0
- vllm_cpu_avx512vnni-0.10.2.post2.dist-info/METADATA +326 -0
- vllm_cpu_avx512vnni-0.10.2.post2.dist-info/RECORD +1395 -0
- vllm_cpu_avx512vnni-0.10.2.post2.dist-info/WHEEL +5 -0
- vllm_cpu_avx512vnni-0.10.2.post2.dist-info/entry_points.txt +5 -0
- vllm_cpu_avx512vnni-0.10.2.post2.dist-info/top_level.txt +1 -0
vllm/forward_context.py
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
3
|
+
|
|
4
|
+
import time
|
|
5
|
+
from collections import defaultdict
|
|
6
|
+
from contextlib import contextmanager
|
|
7
|
+
from dataclasses import dataclass
|
|
8
|
+
from typing import TYPE_CHECKING, Any, NamedTuple, Optional, Union
|
|
9
|
+
|
|
10
|
+
import torch
|
|
11
|
+
import torch.distributed as dist
|
|
12
|
+
|
|
13
|
+
import vllm.envs as envs
|
|
14
|
+
from vllm.config import CUDAGraphMode, ParallelConfig, VllmConfig
|
|
15
|
+
from vllm.logger import init_logger
|
|
16
|
+
|
|
17
|
+
if TYPE_CHECKING:
|
|
18
|
+
from vllm.attention.backends.abstract import AttentionMetadata
|
|
19
|
+
|
|
20
|
+
logger = init_logger(__name__)
|
|
21
|
+
|
|
22
|
+
track_batchsize: bool = envs.VLLM_LOG_BATCHSIZE_INTERVAL >= 0
|
|
23
|
+
last_logging_time: float = 0
|
|
24
|
+
forward_start_time: float = 0
|
|
25
|
+
batchsize_logging_interval: float = envs.VLLM_LOG_BATCHSIZE_INTERVAL
|
|
26
|
+
batchsize_forward_time: defaultdict = defaultdict(list)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class BatchDescriptor(NamedTuple):
|
|
30
|
+
"""
|
|
31
|
+
Batch descriptor for cudagraph dispatching. We should keep the num of
|
|
32
|
+
items as minimal as possible to properly and uniquely describe the padded
|
|
33
|
+
batch for cudagraph.
|
|
34
|
+
"""
|
|
35
|
+
num_tokens: int
|
|
36
|
+
uniform_decode: bool = False
|
|
37
|
+
"""
|
|
38
|
+
False can also be used for an uniform decode batch to dispatch to the
|
|
39
|
+
cudagraph supporting non-uniform batches.
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def non_uniform(self) -> "BatchDescriptor":
|
|
44
|
+
"""
|
|
45
|
+
Return a non-uniform version of current batch descriptor.
|
|
46
|
+
"""
|
|
47
|
+
return BatchDescriptor(self.num_tokens, uniform_decode=False)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def _compute_chunked_local_num_tokens(num_tokens_across_dp_cpu: list[int],
|
|
51
|
+
max_num_tokens: int,
|
|
52
|
+
chunk_idx: int) -> list[int]:
|
|
53
|
+
dp_size = len(num_tokens_across_dp_cpu)
|
|
54
|
+
|
|
55
|
+
local_size = [-1] * dp_size
|
|
56
|
+
for i in range(dp_size):
|
|
57
|
+
dp_tokens = num_tokens_across_dp_cpu[i]
|
|
58
|
+
local_size[i] = min(max_num_tokens,
|
|
59
|
+
dp_tokens - (max_num_tokens * chunk_idx))
|
|
60
|
+
if local_size[i] <= 0:
|
|
61
|
+
local_size[i] = 1 # ensure lockstep even if done
|
|
62
|
+
return local_size
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@dataclass
|
|
66
|
+
class DPMetadata:
|
|
67
|
+
max_tokens_across_dp_cpu: torch.Tensor
|
|
68
|
+
cu_tokens_across_dp_cpu: torch.Tensor
|
|
69
|
+
local_sizes: Optional[list[int]] = None
|
|
70
|
+
|
|
71
|
+
@staticmethod
|
|
72
|
+
def num_tokens_across_dp(num_tokens: int, dp_size: int,
|
|
73
|
+
dp_rank: int) -> torch.Tensor:
|
|
74
|
+
"""
|
|
75
|
+
Gather the num_tokens across all DP ranks and return results in a
|
|
76
|
+
CPU tensor of size dp_size.
|
|
77
|
+
"""
|
|
78
|
+
num_tokens_across_dp = [0] * dp_size
|
|
79
|
+
num_tokens_across_dp[dp_rank] = num_tokens
|
|
80
|
+
num_tokens_tensor = torch.tensor(num_tokens_across_dp,
|
|
81
|
+
device="cpu",
|
|
82
|
+
dtype=torch.int32)
|
|
83
|
+
from vllm.distributed.parallel_state import get_dp_group
|
|
84
|
+
dist.all_reduce(num_tokens_tensor, group=get_dp_group().cpu_group)
|
|
85
|
+
return num_tokens_tensor
|
|
86
|
+
|
|
87
|
+
@staticmethod
|
|
88
|
+
def make(
|
|
89
|
+
parallel_config: ParallelConfig,
|
|
90
|
+
attn_metadata: Any,
|
|
91
|
+
num_tokens: int,
|
|
92
|
+
num_tokens_across_dp: Optional[torch.Tensor] = None
|
|
93
|
+
) -> "DPMetadata":
|
|
94
|
+
|
|
95
|
+
assert parallel_config.data_parallel_size > 1
|
|
96
|
+
dp_size = parallel_config.data_parallel_size
|
|
97
|
+
dp_rank = parallel_config.data_parallel_rank
|
|
98
|
+
if attn_metadata is not None and hasattr(attn_metadata,
|
|
99
|
+
"num_prefill_tokens"):
|
|
100
|
+
# for v0 attention backends
|
|
101
|
+
batchsize = attn_metadata.num_prefill_tokens + \
|
|
102
|
+
attn_metadata.num_decode_tokens
|
|
103
|
+
else:
|
|
104
|
+
# for v1 attention backends or no attn_metadata
|
|
105
|
+
batchsize = num_tokens
|
|
106
|
+
|
|
107
|
+
# If num_tokens_across_dp is None, it will be computed by all_reduce
|
|
108
|
+
# Otherwise, num_tokens_across_dp[dp_rank] should be equal to batchsize
|
|
109
|
+
assert (num_tokens_across_dp is None
|
|
110
|
+
or num_tokens_across_dp[dp_rank] == batchsize)
|
|
111
|
+
if num_tokens_across_dp is None:
|
|
112
|
+
num_tokens_across_dp = DPMetadata.num_tokens_across_dp(
|
|
113
|
+
batchsize, dp_size, dp_rank)
|
|
114
|
+
max_tokens_across_dp_cpu = torch.max(num_tokens_across_dp)
|
|
115
|
+
cu_tokens_across_dp_cpu = torch.cumsum(num_tokens_across_dp, dim=0)
|
|
116
|
+
return DPMetadata(max_tokens_across_dp_cpu, cu_tokens_across_dp_cpu)
|
|
117
|
+
|
|
118
|
+
@contextmanager
|
|
119
|
+
def chunked_sizes(self, max_chunk_size_per_rank: int, chunk_idx: int):
|
|
120
|
+
"""
|
|
121
|
+
Context manager to compute and temporarily set the per-rank local token
|
|
122
|
+
sizes for a specific chunk during chunked forward execution.
|
|
123
|
+
|
|
124
|
+
This is necessary to ensure each DP (data parallel) rank processes its
|
|
125
|
+
designated portion of tokens in lockstep with others, even when the
|
|
126
|
+
token counts are uneven or some ranks have completed their input early.
|
|
127
|
+
|
|
128
|
+
For chunked execution, we break up the total tokens on each rank into
|
|
129
|
+
multiple chunks (of at most `max_chunk_size_per_rank`), and for a given
|
|
130
|
+
`chunk_idx`, this context manager sets `self.local_sizes` to the number
|
|
131
|
+
of tokens to process in that chunk on each rank.
|
|
132
|
+
|
|
133
|
+
It uses cumulative sizes (`cu_tokens_across_dp_cpu`) to derive the
|
|
134
|
+
number of tokens per rank, and calls `_compute_chunked_local_num_tokens`
|
|
135
|
+
to determine the chunk-wise split.
|
|
136
|
+
|
|
137
|
+
`self.local_sizes` is only valid inside the context.
|
|
138
|
+
|
|
139
|
+
Args:
|
|
140
|
+
max_chunk_size_per_rank: The max number of tokens each rank is
|
|
141
|
+
allowed to process in this chunk.
|
|
142
|
+
chunk_idx: The index of the chunk to compute sizes for.
|
|
143
|
+
"""
|
|
144
|
+
cu_sizes = self.cu_tokens_across_dp_cpu
|
|
145
|
+
num_tokens_across_dp_cpu = [
|
|
146
|
+
(cu_sizes[i] -
|
|
147
|
+
cu_sizes[i - 1]).item() if i > 0 else cu_sizes[0].item()
|
|
148
|
+
for i in range(len(cu_sizes))
|
|
149
|
+
]
|
|
150
|
+
self.local_sizes = _compute_chunked_local_num_tokens(
|
|
151
|
+
num_tokens_across_dp_cpu, max_chunk_size_per_rank, chunk_idx)
|
|
152
|
+
try:
|
|
153
|
+
yield self.local_sizes
|
|
154
|
+
finally:
|
|
155
|
+
self.local_sizes = None
|
|
156
|
+
|
|
157
|
+
def get_chunk_sizes_across_dp_rank(self) -> Optional[list[int]]:
|
|
158
|
+
return self.local_sizes
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
@dataclass
|
|
162
|
+
class ForwardContext:
|
|
163
|
+
# copy from vllm_config.compilation_config.static_forward_context
|
|
164
|
+
no_compile_layers: dict[str, Any]
|
|
165
|
+
"""
|
|
166
|
+
Type AttentionMetadata for v0,
|
|
167
|
+
Type Dict[str, AttentionMetadata] for v1, map from layer_name of each
|
|
168
|
+
attention layer to its attention metadata
|
|
169
|
+
set dynamically for each forward pass
|
|
170
|
+
"""
|
|
171
|
+
attn_metadata: Union["AttentionMetadata", dict[str, "AttentionMetadata"]]
|
|
172
|
+
# TODO: remove after making all virtual_engines share the same kv cache
|
|
173
|
+
virtual_engine: int # set dynamically for each forward pass
|
|
174
|
+
# set dynamically for each forward pass
|
|
175
|
+
dp_metadata: Optional[DPMetadata] = None
|
|
176
|
+
# determine the cudagraph style at runtime to be FULL, PIECEWISE, or NONE.
|
|
177
|
+
# by default NONE, no cudagraph is used.
|
|
178
|
+
cudagraph_runtime_mode: CUDAGraphMode = CUDAGraphMode.NONE
|
|
179
|
+
batch_descriptor: Optional[BatchDescriptor] = None
|
|
180
|
+
|
|
181
|
+
def __post_init__(self):
|
|
182
|
+
assert self.cudagraph_runtime_mode in [
|
|
183
|
+
CUDAGraphMode.NONE, CUDAGraphMode.PIECEWISE, CUDAGraphMode.FULL], \
|
|
184
|
+
f"Invalid cudagraph runtime mode: {self.cudagraph_runtime_mode}"
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
_forward_context: Optional[ForwardContext] = None
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
def get_forward_context() -> ForwardContext:
|
|
191
|
+
"""Get the current forward context."""
|
|
192
|
+
assert _forward_context is not None, (
|
|
193
|
+
"Forward context is not set. "
|
|
194
|
+
"Please use `set_forward_context` to set the forward context.")
|
|
195
|
+
return _forward_context
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
@contextmanager
|
|
199
|
+
def set_forward_context(
|
|
200
|
+
attn_metadata: Any,
|
|
201
|
+
vllm_config: VllmConfig,
|
|
202
|
+
virtual_engine: int = 0,
|
|
203
|
+
num_tokens: Optional[int] = None,
|
|
204
|
+
num_tokens_across_dp: Optional[torch.Tensor] = None,
|
|
205
|
+
cudagraph_runtime_mode: CUDAGraphMode = CUDAGraphMode.NONE,
|
|
206
|
+
batch_descriptor: Optional[BatchDescriptor] = None):
|
|
207
|
+
"""A context manager that stores the current forward context,
|
|
208
|
+
can be attention metadata, etc.
|
|
209
|
+
Here we can inject common logic for every model forward pass.
|
|
210
|
+
"""
|
|
211
|
+
global forward_start_time
|
|
212
|
+
need_to_track_batchsize = track_batchsize and attn_metadata is not None
|
|
213
|
+
if need_to_track_batchsize:
|
|
214
|
+
forward_start_time = time.perf_counter()
|
|
215
|
+
dp_metadata: Optional[DPMetadata] = None
|
|
216
|
+
if vllm_config.parallel_config.data_parallel_size > 1 and (
|
|
217
|
+
attn_metadata is not None or num_tokens is not None):
|
|
218
|
+
dp_metadata = DPMetadata.make(vllm_config.parallel_config,
|
|
219
|
+
attn_metadata, num_tokens or 0,
|
|
220
|
+
num_tokens_across_dp)
|
|
221
|
+
|
|
222
|
+
global _forward_context
|
|
223
|
+
prev_context = _forward_context
|
|
224
|
+
_forward_context = ForwardContext(
|
|
225
|
+
no_compile_layers=vllm_config.compilation_config.
|
|
226
|
+
static_forward_context,
|
|
227
|
+
virtual_engine=virtual_engine,
|
|
228
|
+
attn_metadata=attn_metadata,
|
|
229
|
+
dp_metadata=dp_metadata,
|
|
230
|
+
cudagraph_runtime_mode=cudagraph_runtime_mode,
|
|
231
|
+
batch_descriptor=batch_descriptor,
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
try:
|
|
235
|
+
yield
|
|
236
|
+
finally:
|
|
237
|
+
global last_logging_time, batchsize_logging_interval
|
|
238
|
+
if need_to_track_batchsize:
|
|
239
|
+
if hasattr(attn_metadata, "num_prefill_tokens"):
|
|
240
|
+
# for v0 attention backends
|
|
241
|
+
batchsize = attn_metadata.num_prefill_tokens + \
|
|
242
|
+
attn_metadata.num_decode_tokens
|
|
243
|
+
else:
|
|
244
|
+
# for v1 attention backends
|
|
245
|
+
batchsize = num_tokens
|
|
246
|
+
# we use synchronous scheduling right now,
|
|
247
|
+
# adding a sync point here should not affect
|
|
248
|
+
# scheduling of the next batch
|
|
249
|
+
from vllm.platforms import current_platform
|
|
250
|
+
synchronize = current_platform.synchronize
|
|
251
|
+
if synchronize is not None:
|
|
252
|
+
synchronize()
|
|
253
|
+
now = time.perf_counter()
|
|
254
|
+
# time measurement is in milliseconds
|
|
255
|
+
batchsize_forward_time[batchsize].append(
|
|
256
|
+
(now - forward_start_time) * 1000)
|
|
257
|
+
if now - last_logging_time > batchsize_logging_interval:
|
|
258
|
+
last_logging_time = now
|
|
259
|
+
forward_stats = []
|
|
260
|
+
for bs, times in batchsize_forward_time.items():
|
|
261
|
+
if len(times) <= 1:
|
|
262
|
+
# can be cudagraph / profiling run
|
|
263
|
+
continue
|
|
264
|
+
medium = torch.quantile(torch.tensor(times), q=0.5).item()
|
|
265
|
+
medium = round(medium, 2)
|
|
266
|
+
forward_stats.append((bs, len(times), medium))
|
|
267
|
+
forward_stats.sort(key=lambda x: x[1], reverse=True)
|
|
268
|
+
if forward_stats:
|
|
269
|
+
logger.info(("Batchsize forward time stats "
|
|
270
|
+
"(batchsize, count, median_time(ms)): %s"),
|
|
271
|
+
forward_stats)
|
|
272
|
+
|
|
273
|
+
_forward_context = prev_context
|
vllm/inputs/__init__.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
3
|
+
|
|
4
|
+
from .data import (DataPrompt, DecoderOnlyInputs, EmbedsInputs, EmbedsPrompt,
|
|
5
|
+
EncoderDecoderInputs, ExplicitEncoderDecoderPrompt,
|
|
6
|
+
ProcessorInputs, PromptType, SingletonInputs,
|
|
7
|
+
SingletonPrompt, TextPrompt, TokenInputs, TokensPrompt,
|
|
8
|
+
build_explicit_enc_dec_prompt, embeds_inputs,
|
|
9
|
+
to_enc_dec_tuple_list, token_inputs, zip_enc_dec_prompts)
|
|
10
|
+
from .registry import (DummyData, InputContext, InputProcessingContext,
|
|
11
|
+
InputRegistry)
|
|
12
|
+
|
|
13
|
+
INPUT_REGISTRY = InputRegistry()
|
|
14
|
+
"""
|
|
15
|
+
The global [`InputRegistry`][vllm.inputs.registry.InputRegistry] which is used
|
|
16
|
+
by [`LLMEngine`][vllm.LLMEngine] to dispatch data processing according to the
|
|
17
|
+
target model.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"DataPrompt",
|
|
22
|
+
"TextPrompt",
|
|
23
|
+
"TokensPrompt",
|
|
24
|
+
"PromptType",
|
|
25
|
+
"SingletonPrompt",
|
|
26
|
+
"ExplicitEncoderDecoderPrompt",
|
|
27
|
+
"TokenInputs",
|
|
28
|
+
"EmbedsInputs",
|
|
29
|
+
"EmbedsPrompt",
|
|
30
|
+
"token_inputs",
|
|
31
|
+
"embeds_inputs",
|
|
32
|
+
"DecoderOnlyInputs",
|
|
33
|
+
"EncoderDecoderInputs",
|
|
34
|
+
"ProcessorInputs",
|
|
35
|
+
"SingletonInputs",
|
|
36
|
+
"build_explicit_enc_dec_prompt",
|
|
37
|
+
"to_enc_dec_tuple_list",
|
|
38
|
+
"zip_enc_dec_prompts",
|
|
39
|
+
"INPUT_REGISTRY",
|
|
40
|
+
"DummyData",
|
|
41
|
+
"InputContext",
|
|
42
|
+
"InputProcessingContext",
|
|
43
|
+
"InputRegistry",
|
|
44
|
+
]
|
vllm/inputs/data.py
ADDED
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
3
|
+
from collections.abc import Iterable
|
|
4
|
+
from typing import TYPE_CHECKING, Any, Generic, Literal, Optional, Union, cast
|
|
5
|
+
|
|
6
|
+
import torch
|
|
7
|
+
from typing_extensions import NotRequired, TypedDict, TypeIs, TypeVar
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from vllm.multimodal.inputs import (MultiModalDataDict, MultiModalInputs,
|
|
11
|
+
MultiModalUUIDDict)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class TextPrompt(TypedDict):
|
|
15
|
+
"""Schema for a text prompt."""
|
|
16
|
+
|
|
17
|
+
prompt: str
|
|
18
|
+
"""The input text to be tokenized before passing to the model."""
|
|
19
|
+
|
|
20
|
+
multi_modal_data: NotRequired["MultiModalDataDict"]
|
|
21
|
+
"""
|
|
22
|
+
Optional multi-modal data to pass to the model,
|
|
23
|
+
if the model supports it.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
mm_processor_kwargs: NotRequired[dict[str, Any]]
|
|
27
|
+
"""
|
|
28
|
+
Optional multi-modal processor kwargs to be forwarded to the
|
|
29
|
+
multimodal input mapper & processor. Note that if multiple modalities
|
|
30
|
+
have registered mappers etc for the model being considered, we attempt
|
|
31
|
+
to pass the mm_processor_kwargs to each of them.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
multi_modal_uuids: NotRequired["MultiModalUUIDDict"]
|
|
35
|
+
"""
|
|
36
|
+
Optional user-specified UUIDs for multimodal items, mapped by modality.
|
|
37
|
+
Lists must match the number of items per modality and may contain `None`.
|
|
38
|
+
For `None` entries, the hasher will compute IDs automatically; non-None
|
|
39
|
+
entries override the default hashes for caching, and MUST be unique per
|
|
40
|
+
multimodal item.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
cache_salt: NotRequired[str]
|
|
44
|
+
"""
|
|
45
|
+
Optional cache salt to be used for prefix caching.
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class TokensPrompt(TypedDict):
|
|
50
|
+
"""Schema for a tokenized prompt."""
|
|
51
|
+
|
|
52
|
+
prompt_token_ids: list[int]
|
|
53
|
+
"""A list of token IDs to pass to the model."""
|
|
54
|
+
|
|
55
|
+
prompt: NotRequired[str]
|
|
56
|
+
"""The prompt text corresponding to the token IDs, if available."""
|
|
57
|
+
|
|
58
|
+
token_type_ids: NotRequired[list[int]]
|
|
59
|
+
"""A list of token type IDs to pass to the cross encoder model."""
|
|
60
|
+
|
|
61
|
+
multi_modal_data: NotRequired["MultiModalDataDict"]
|
|
62
|
+
"""
|
|
63
|
+
Optional multi-modal data to pass to the model,
|
|
64
|
+
if the model supports it.
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
mm_processor_kwargs: NotRequired[dict[str, Any]]
|
|
68
|
+
"""
|
|
69
|
+
Optional multi-modal processor kwargs to be forwarded to the
|
|
70
|
+
multimodal input mapper & processor. Note that if multiple modalities
|
|
71
|
+
have registered mappers etc for the model being considered, we attempt
|
|
72
|
+
to pass the mm_processor_kwargs to each of them.
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
multi_modal_uuids: NotRequired["MultiModalUUIDDict"]
|
|
76
|
+
"""
|
|
77
|
+
Optional user-specified UUIDs for multimodal items, mapped by modality.
|
|
78
|
+
Lists must match the number of items per modality and may contain `None`.
|
|
79
|
+
For `None` entries, the hasher will compute IDs automatically; non-None
|
|
80
|
+
entries override the default hashes for caching.
|
|
81
|
+
"""
|
|
82
|
+
|
|
83
|
+
cache_salt: NotRequired[str]
|
|
84
|
+
"""
|
|
85
|
+
Optional cache salt to be used for prefix caching.
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class EmbedsPrompt(TypedDict):
|
|
90
|
+
"""Schema for a prompt provided via token embeddings."""
|
|
91
|
+
|
|
92
|
+
prompt_embeds: torch.Tensor
|
|
93
|
+
"""The embeddings of the prompt."""
|
|
94
|
+
|
|
95
|
+
cache_salt: NotRequired[str]
|
|
96
|
+
"""
|
|
97
|
+
Optional cache salt to be used for prefix caching.
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class DataPrompt(TypedDict):
|
|
102
|
+
"""Represents generic inputs handled by IO processor plugins."""
|
|
103
|
+
|
|
104
|
+
data: Any
|
|
105
|
+
"""The input data"""
|
|
106
|
+
|
|
107
|
+
data_format: str
|
|
108
|
+
"""The input data format"""
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
SingletonPrompt = Union[str, TextPrompt, TokensPrompt, EmbedsPrompt]
|
|
112
|
+
"""
|
|
113
|
+
Set of possible schemas for a single prompt:
|
|
114
|
+
|
|
115
|
+
- A text prompt ([`str`][] or [`TextPrompt`][vllm.inputs.data.TextPrompt])
|
|
116
|
+
- A tokenized prompt ([`TokensPrompt`][vllm.inputs.data.TokensPrompt])
|
|
117
|
+
- An embeddings prompt ([`EmbedsPrompt`][vllm.inputs.data.EmbedsPrompt])
|
|
118
|
+
|
|
119
|
+
Note that "singleton" is as opposed to a data structure
|
|
120
|
+
which encapsulates multiple prompts, i.e. of the sort
|
|
121
|
+
which may be utilized for encoder/decoder models when
|
|
122
|
+
the user desires to express both the encoder & decoder
|
|
123
|
+
prompts explicitly, i.e.
|
|
124
|
+
[`ExplicitEncoderDecoderPrompt`][vllm.inputs.data.ExplicitEncoderDecoderPrompt]
|
|
125
|
+
|
|
126
|
+
A prompt of type [`SingletonPrompt`][vllm.inputs.data.SingletonPrompt] may be
|
|
127
|
+
employed as (1) input to a decoder-only model, (2) input to
|
|
128
|
+
the encoder of an encoder/decoder model, in the scenario
|
|
129
|
+
where the decoder-prompt is not specified explicitly, or
|
|
130
|
+
(3) as a member of a larger data structure encapsulating
|
|
131
|
+
more than one prompt, i.e.
|
|
132
|
+
[`ExplicitEncoderDecoderPrompt`][vllm.inputs.data.ExplicitEncoderDecoderPrompt]
|
|
133
|
+
"""
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
def is_tokens_prompt(prompt: SingletonPrompt) -> TypeIs[TokensPrompt]:
|
|
137
|
+
return (isinstance(prompt, dict) and "prompt_token_ids" in prompt
|
|
138
|
+
and "prompt_embeds" not in prompt)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
def is_embeds_prompt(prompt: SingletonPrompt) -> TypeIs[EmbedsPrompt]:
|
|
142
|
+
return (isinstance(prompt, dict) and "prompt_token_ids" not in prompt
|
|
143
|
+
and "prompt_embeds" in prompt)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
_T1_co = TypeVar("_T1_co",
|
|
147
|
+
bound=SingletonPrompt,
|
|
148
|
+
default=SingletonPrompt,
|
|
149
|
+
covariant=True)
|
|
150
|
+
_T2_co = TypeVar("_T2_co",
|
|
151
|
+
bound=SingletonPrompt,
|
|
152
|
+
default=SingletonPrompt,
|
|
153
|
+
covariant=True)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
# TODO: Make fields ReadOnly once mypy supports it
|
|
157
|
+
class ExplicitEncoderDecoderPrompt(TypedDict, Generic[_T1_co, _T2_co]):
|
|
158
|
+
"""
|
|
159
|
+
Represents an encoder/decoder model input prompt,
|
|
160
|
+
comprising an explicit encoder prompt and a decoder prompt.
|
|
161
|
+
|
|
162
|
+
The encoder and decoder prompts, respectively, may be formatted
|
|
163
|
+
according to any of the
|
|
164
|
+
[`SingletonPrompt`][vllm.inputs.data.SingletonPrompt] schemas,
|
|
165
|
+
and are not required to have the same schema.
|
|
166
|
+
|
|
167
|
+
Only the encoder prompt may have multi-modal data. mm_processor_kwargs
|
|
168
|
+
should be at the top-level, and should not be set in the encoder/decoder
|
|
169
|
+
prompts, since they are agnostic to the encoder/decoder.
|
|
170
|
+
|
|
171
|
+
Note that an
|
|
172
|
+
[`ExplicitEncoderDecoderPrompt`][vllm.inputs.data.ExplicitEncoderDecoderPrompt]
|
|
173
|
+
may not be used as an input to a decoder-only model,
|
|
174
|
+
and that the `encoder_prompt` and `decoder_prompt`
|
|
175
|
+
fields of this data structure themselves must be
|
|
176
|
+
[`SingletonPrompt`][vllm.inputs.data.SingletonPrompt] instances.
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
encoder_prompt: _T1_co
|
|
180
|
+
|
|
181
|
+
decoder_prompt: Optional[_T2_co]
|
|
182
|
+
|
|
183
|
+
mm_processor_kwargs: NotRequired[dict[str, Any]]
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
PromptType = Union[SingletonPrompt, ExplicitEncoderDecoderPrompt]
|
|
187
|
+
"""
|
|
188
|
+
Set of possible schemas for an LLM input, including
|
|
189
|
+
both decoder-only and encoder/decoder input types:
|
|
190
|
+
|
|
191
|
+
- A text prompt ([`str`][] or [`TextPrompt`][vllm.inputs.data.TextPrompt])
|
|
192
|
+
- A tokenized prompt ([`TokensPrompt`][vllm.inputs.data.TokensPrompt])
|
|
193
|
+
- An embeddings prompt ([`EmbedsPrompt`][vllm.inputs.data.EmbedsPrompt])
|
|
194
|
+
- A single data structure containing both an encoder and a decoder prompt
|
|
195
|
+
([`ExplicitEncoderDecoderPrompt`][vllm.inputs.data.ExplicitEncoderDecoderPrompt])
|
|
196
|
+
"""
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
class TokenInputs(TypedDict):
|
|
200
|
+
"""Represents token-based inputs."""
|
|
201
|
+
|
|
202
|
+
type: Literal["token"]
|
|
203
|
+
"""The type of inputs."""
|
|
204
|
+
|
|
205
|
+
prompt_token_ids: list[int]
|
|
206
|
+
"""The token IDs of the prompt."""
|
|
207
|
+
|
|
208
|
+
prompt: NotRequired[str]
|
|
209
|
+
"""
|
|
210
|
+
The original prompt text corresponding to the token IDs, if available.
|
|
211
|
+
"""
|
|
212
|
+
|
|
213
|
+
cache_salt: NotRequired[str]
|
|
214
|
+
"""
|
|
215
|
+
Optional cache salt to be used for prefix caching.
|
|
216
|
+
"""
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
def token_inputs(
|
|
220
|
+
prompt_token_ids: list[int],
|
|
221
|
+
prompt: Optional[str] = None,
|
|
222
|
+
cache_salt: Optional[str] = None,
|
|
223
|
+
) -> TokenInputs:
|
|
224
|
+
"""Construct [`TokenInputs`][vllm.inputs.data.TokenInputs] from optional
|
|
225
|
+
values."""
|
|
226
|
+
inputs = TokenInputs(type="token", prompt_token_ids=prompt_token_ids)
|
|
227
|
+
|
|
228
|
+
if prompt is not None:
|
|
229
|
+
inputs["prompt"] = prompt
|
|
230
|
+
if cache_salt is not None:
|
|
231
|
+
inputs["cache_salt"] = cache_salt
|
|
232
|
+
|
|
233
|
+
return inputs
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
class EmbedsInputs(TypedDict):
|
|
237
|
+
"""Represents embeddings-based inputs."""
|
|
238
|
+
|
|
239
|
+
type: Literal["embeds"]
|
|
240
|
+
"""The type of inputs."""
|
|
241
|
+
|
|
242
|
+
prompt_embeds: torch.Tensor
|
|
243
|
+
"""The embeddings of the prompt."""
|
|
244
|
+
|
|
245
|
+
cache_salt: NotRequired[str]
|
|
246
|
+
"""
|
|
247
|
+
Optional cache salt to be used for prefix caching.
|
|
248
|
+
"""
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
def embeds_inputs(
|
|
252
|
+
prompt_embeds: torch.Tensor,
|
|
253
|
+
cache_salt: Optional[str] = None,
|
|
254
|
+
) -> EmbedsInputs:
|
|
255
|
+
"""Construct [`EmbedsInputs`][vllm.inputs.data.EmbedsInputs] from optional
|
|
256
|
+
values."""
|
|
257
|
+
inputs = EmbedsInputs(type="embeds", prompt_embeds=prompt_embeds)
|
|
258
|
+
|
|
259
|
+
if cache_salt is not None:
|
|
260
|
+
inputs["cache_salt"] = cache_salt
|
|
261
|
+
|
|
262
|
+
return inputs
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
DecoderOnlyInputs = Union[TokenInputs, EmbedsInputs, "MultiModalInputs"]
|
|
266
|
+
"""
|
|
267
|
+
The inputs in [`LLMEngine`][vllm.engine.llm_engine.LLMEngine] before they are
|
|
268
|
+
passed to the model executor.
|
|
269
|
+
This specifies the data required for decoder-only models.
|
|
270
|
+
"""
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
class EncoderDecoderInputs(TypedDict):
|
|
274
|
+
"""
|
|
275
|
+
The inputs in [`LLMEngine`][vllm.engine.llm_engine.LLMEngine] before they
|
|
276
|
+
are passed to the model executor.
|
|
277
|
+
|
|
278
|
+
This specifies the required data for encoder-decoder models.
|
|
279
|
+
"""
|
|
280
|
+
|
|
281
|
+
encoder: Union[TokenInputs, "MultiModalInputs"]
|
|
282
|
+
"""The inputs for the encoder portion."""
|
|
283
|
+
|
|
284
|
+
decoder: Union[TokenInputs, "MultiModalInputs"]
|
|
285
|
+
"""The inputs for the decoder portion."""
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
SingletonInputs = Union[TokenInputs, EmbedsInputs, "MultiModalInputs"]
|
|
289
|
+
"""
|
|
290
|
+
A processed [`SingletonPrompt`][vllm.inputs.data.SingletonPrompt] which can be
|
|
291
|
+
passed to [`vllm.sequence.Sequence`][].
|
|
292
|
+
"""
|
|
293
|
+
|
|
294
|
+
ProcessorInputs = Union[DecoderOnlyInputs, EncoderDecoderInputs]
|
|
295
|
+
"""
|
|
296
|
+
The outputs from [`vllm.inputs.preprocess.InputPreprocessor`][].
|
|
297
|
+
"""
|
|
298
|
+
|
|
299
|
+
_T1 = TypeVar("_T1", bound=SingletonPrompt, default=SingletonPrompt)
|
|
300
|
+
_T2 = TypeVar("_T2", bound=SingletonPrompt, default=SingletonPrompt)
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
def build_explicit_enc_dec_prompt(
|
|
304
|
+
encoder_prompt: _T1,
|
|
305
|
+
decoder_prompt: Optional[_T2],
|
|
306
|
+
mm_processor_kwargs: Optional[dict[str, Any]] = None,
|
|
307
|
+
) -> ExplicitEncoderDecoderPrompt[_T1, _T2]:
|
|
308
|
+
if mm_processor_kwargs is None:
|
|
309
|
+
mm_processor_kwargs = {}
|
|
310
|
+
return ExplicitEncoderDecoderPrompt(
|
|
311
|
+
encoder_prompt=encoder_prompt,
|
|
312
|
+
decoder_prompt=decoder_prompt,
|
|
313
|
+
mm_processor_kwargs=mm_processor_kwargs,
|
|
314
|
+
)
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
def zip_enc_dec_prompts(
|
|
318
|
+
enc_prompts: Iterable[_T1],
|
|
319
|
+
dec_prompts: Iterable[Optional[_T2]],
|
|
320
|
+
mm_processor_kwargs: Optional[Union[Iterable[dict[str, Any]],
|
|
321
|
+
dict[str, Any]]] = None,
|
|
322
|
+
) -> list[ExplicitEncoderDecoderPrompt[_T1, _T2]]:
|
|
323
|
+
"""
|
|
324
|
+
Zip encoder and decoder prompts together into a list of
|
|
325
|
+
[`ExplicitEncoderDecoderPrompt`][vllm.inputs.data.ExplicitEncoderDecoderPrompt]
|
|
326
|
+
instances.
|
|
327
|
+
|
|
328
|
+
``mm_processor_kwargs`` may also be provided; if a dict is passed, the same
|
|
329
|
+
dictionary will be used for every encoder/decoder prompt. If an iterable is
|
|
330
|
+
provided, it will be zipped with the encoder/decoder prompts.
|
|
331
|
+
"""
|
|
332
|
+
if mm_processor_kwargs is None:
|
|
333
|
+
mm_processor_kwargs = cast(dict[str, Any], {})
|
|
334
|
+
if isinstance(mm_processor_kwargs, dict):
|
|
335
|
+
return [
|
|
336
|
+
build_explicit_enc_dec_prompt(
|
|
337
|
+
encoder_prompt,
|
|
338
|
+
decoder_prompt,
|
|
339
|
+
cast(dict[str, Any], mm_processor_kwargs),
|
|
340
|
+
) for (encoder_prompt,
|
|
341
|
+
decoder_prompt) in zip(enc_prompts, dec_prompts)
|
|
342
|
+
]
|
|
343
|
+
return [
|
|
344
|
+
build_explicit_enc_dec_prompt(encoder_prompt, decoder_prompt,
|
|
345
|
+
mm_proc_kwargs)
|
|
346
|
+
for (encoder_prompt, decoder_prompt, mm_proc_kwargs
|
|
347
|
+
) in zip(enc_prompts, dec_prompts, mm_processor_kwargs)
|
|
348
|
+
]
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
def to_enc_dec_tuple_list(
|
|
352
|
+
enc_dec_prompts: Iterable[ExplicitEncoderDecoderPrompt[_T1, _T2]],
|
|
353
|
+
) -> list[tuple[_T1, Optional[_T2]]]:
|
|
354
|
+
return [(enc_dec_prompt["encoder_prompt"],
|
|
355
|
+
enc_dec_prompt["decoder_prompt"])
|
|
356
|
+
for enc_dec_prompt in enc_dec_prompts]
|