[Misc] Merge the logs of pp layers partitions (#16225)
Signed-off-by: Kebe <mail@kebe7jun.com>
This commit is contained in:
parent
8e5314a468
commit
b4ac449a83
@ -102,10 +102,11 @@ def get_pp_indices(num_hidden_layers: int, pp_rank: int,
|
|||||||
if remaining_layers := num_hidden_layers % pp_size:
|
if remaining_layers := num_hidden_layers % pp_size:
|
||||||
for i in range(2, remaining_layers + 2):
|
for i in range(2, remaining_layers + 2):
|
||||||
partitions[-i] += 1
|
partitions[-i] += 1
|
||||||
logger.info("Hidden layers were unevenly partitioned: %s",
|
logger.info(
|
||||||
",".join(str(p) for p in partitions))
|
"Hidden layers were unevenly partitioned: [%s]. "
|
||||||
logger.info("This can be manually overridden using the "
|
"This can be manually overridden using the "
|
||||||
"VLLM_PP_LAYER_PARTITION environment variable")
|
"VLLM_PP_LAYER_PARTITION environment variable",
|
||||||
|
",".join(str(p) for p in partitions))
|
||||||
|
|
||||||
start_layer = sum(partitions[:pp_rank])
|
start_layer = sum(partitions[:pp_rank])
|
||||||
end_layer = start_layer + partitions[pp_rank]
|
end_layer = start_layer + partitions[pp_rank]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user