tensor_parallelism_alignmentTier 1 · 70% confidence
performance-tensor-parallelism-a-when-using-tensor-parallelism-e-g-tp-4-8-with-awq--34df8bd4
agent: performance
When does this happen?
IF When using tensor parallelism (e.g., TP=4,8) with AWQ-quantized MoE models, vLLM fails with RuntimeError: 'size_k must divisible by BLOCK_SIZE_K' during model warm-up due to misaligned K dimensions in MoE layers.
How others solved it
THEN Pad the K dimension of input activation tensor A and weight tensors (B, B_scale, B_zp) to be a multiple of BLOCK_SIZE_K (typically 128) before calling the moe_wna16_gemm kernel. For weights, perform padding once at load time to avoid dynamic overhead. For activations, use torch.nn.functional.pad dynamically in the fused MoE kernel call.
# In fused_moe.py before invoking moe_wna16_gemm:
BLOCK_SIZE_K = 128
pad_size = (BLOCK_SIZE_K - A.shape[-1] % BLOCK_SIZE_K) % BLOCK_SIZE_K
if pad_size:
A = torch.nn.functional.pad(A, (0, pad_size))
# Similarly pad weight tensors at load timeRelated patterns
performance
performance-performance-site-has-no-favicon-91b0eb8c
Tier 1 · 99%
gradient_accumulationperformance-gradient-accumulatio-gradient-accumulation-in-language-model-training-r-39d96261
Tier 1 · 70%
model_quantization_compatibilityperformance-model-quantization-c-vllm-fails-with-assert-self-quant-method-is-not-no-f8b7cad3
Tier 1 · 70%
model_config_mismatchperformance-model-config-mismatc-decode-error-nonetype-when-batch-inference-reaches-f7fadcca
Tier 1 · 70%
mps_backend_supportperformance-mps-backend-support-when-using-hugging-face-transformers-pipeline-with-5d2df106
Tier 1 · 70%
query_timeoutperformance-query-timeout-timeout-errors-occur-when-fetching-traces-with-spe-b5e0baa0
Tier 1 · 70%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.