Skip to content

Commit ff0f37b

Browse files
authored
chore: Deprecate autopp. (#4471)
Signed-off-by: Yuxian Qiu <[email protected]>
1 parent 7ae6cd7 commit ff0f37b

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

examples/models/core/llama/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ trtllm-build --checkpoint_dir ./tllm_checkpoint_1gpu_fp16_wq \
128128
--output_dir ./tmp/llama/7B/trt_engines/weight_only/1-gpu/ \
129129
--gemm_plugin auto
130130

131-
# Build LLaMA 7B using 2-way auto parallelism.
131+
# Build LLaMA 7B using 2-way auto parallelism (deprecated).
132132
python convert_checkpoint.py --model_dir ./tmp/llama/7B/ \
133133
--output_dir ./tllm_checkpoint_1gpu_fp16 \
134134
--dtype float16

tensorrt_llm/auto_parallel/auto_parallel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ def check_dtype(tensor):
149149

150150

151151
def auto_parallel(network: Network, config: AutoParallelConfig):
152+
logger.warning(
153+
"auto_parallel is deprecated, "
154+
"please use explicit parallelism like tp_size/pp_size instead.")
152155
debug_mode = config.debug_mode
153156
memory_budget = config.get_cluster_info(
154157
).memory_budget_per_device * 1024 * 1024 * 1024

tensorrt_llm/llmapi/llm_args.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,11 +771,19 @@ class LlmArgs(BaseModel):
771771
cp_config: Optional[dict] = Field(default_factory=dict,
772772
description="Context parallel config.")
773773

774-
auto_parallel: bool = Field(default=False,
775-
description="Enable auto parallel mode.")
774+
auto_parallel: bool = Field(
775+
default=False,
776+
description="Enable auto parallel mode.",
777+
deprecated=
778+
"Use tensor_parallel_size/pipeline_parallel_size/xxx_parallel_size instead.",
779+
)
776780

777781
auto_parallel_world_size: Optional[int] = Field(
778-
default=None, description="The world size for auto parallel mode.")
782+
default=None,
783+
description="The world size for auto parallel mode.",
784+
deprecated=
785+
"Use tensor_parallel_size/pipeline_parallel_size/xxx_parallel_size instead.",
786+
)
779787

780788
load_format: Literal['auto', 'dummy'] = Field(
781789
default='auto',

0 commit comments

Comments
 (0)