File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
examples/models/core/llama Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff 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) .
132132python convert_checkpoint.py --model_dir ./tmp/llama/7B/ \
133133 --output_dir ./tllm_checkpoint_1gpu_fp16 \
134134 --dtype float16
Original file line number Diff line number Diff line change @@ -149,6 +149,9 @@ def check_dtype(tensor):
149149
150150
151151def 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
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments