You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature][AutoDeploy]: Support custom sharding config #8948
Enable specifying sharding config manually, similarly to factory's base_model_tp_plan. The feature should enable specifying priority order between custom sharding config, factory, and heuristics.
Alternatives
No response
Additional context
No response
Before submitting a new issue...
Make sure you already searched for relevant issues, and checked the documentation and examples for answers to frequently asked questions.
Implement custom sharding support by adding a CUSTOM option to ShardingConfigSource (tensorrt_llm/_torch/auto_deploy/models/factory.py), extending ShardingConfig with custom_config, sharding_priority, _validate_custom_config, get_active_config and refactored validation (tensorrt_llm/_torch/auto_deploy/utils/sharding_utils.py), adding custom_sharding_config and sharding_priority fields to ShardingTransformConfig (tensorrt_llm/_torch/auto_deploy/transform/library/sharding.py), updating Sharding._apply to accept and set custom_sharding_config into shared_config.sharding_config and use priority-based get_active_config logic, and renaming/updating detect_sharding_from_factory_config to detect_sharding_from_config to accept both HUGGINGFACE and CUSTOM — enabling user-provided sharding with configurable precedence while remaining backward compatible.
Update tensorrt_llm/_torch/auto_deploy/models/factory.py to document and add a CUSTOM ShardingConfigSource enum value, and modify tensorrt_llm/_torch/auto_deploy/utils/sharding_utils.py to introduce custom_config and sharding_priority fields, refactor validate_config to choose and validate configs by priority, add _validate_factory_config and _validate_custom_config helpers, and add get_active_config to return the active sharding plan (falling back to heuristics) — enabling user-provided sharding, prioritized selection, and clearer validation and logging.
Activity
coderabbitai commentedon Nov 5, 2025
A summary of the changes CodeRabbit can apply:
greg-kwasniewski1 commentedon Nov 13, 2025
PR #9143
[#8948][feat] Support custom sharding config (#9143)
[TRTLLM-7963][feat] Cold L2 cache when doing autotune benchmarking. (N…
[NVIDIA#8948][feat] Support custom sharding config (NVIDIA#9143)