[Bugfix][Metrics][MFU] Size activation traffic from the model dtype (#57070)

Signed-off-by: Thillai Chithambaram <thillaichithambaram.a@gmail.com>
This commit is contained in:
Thillai Chithambaram
2026-09-17 00:23:28 +00:00
committed by GitHub
parent c58ff535f4
commit a615f53364
2 changed files with 54 additions and 4 deletions
+4 -3
View File
@@ -369,9 +369,10 @@ class BaseConfigParser(Parser):
args.weight_byte_size = get_dtype_size(torch_dtype)
# FIXME: handle this better by parsing whether activations use
# bf16, fp32, etc...
args.activation_byte_size = 2
# Activations are produced in the model's compute dtype. Quantization
# overrides weight_byte_size below but leaves activations alone, so
# this stays keyed on the model dtype.
args.activation_byte_size = get_dtype_size(torch_dtype)
args.dp_size = vllm_config.parallel_config.data_parallel_size
args.tp_size = vllm_config.parallel_config.tensor_parallel_size