-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pt): calculate stat during compression if
--skip-neighbor-stat
(…
…#4330) If `--skip-neighbor-stat` is set during training, when calling `dp compress`, first calculate the neighbor stat. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced `enable_compression` function to accept a `training_script` parameter for improved error handling and functionality. - Updated the `compress` command to allow specification of a training script during execution. - Introduced a new testing framework for models using the `--skip-neighbor-stat` flag, validating their functionality. - **Bug Fixes** - Improved error handling for cases where the model's minimum neighbor distance is not saved. - **Tests** - Added a new test class and methods to validate the functionality of models initialized with skip neighbor statistics. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <[email protected]>
- Loading branch information
Showing
3 changed files
with
212 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters