-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
torch.load
warnings
#4143
Comments
njzjz
added a commit
to njzjz/deepmd-kit
that referenced
this issue
Sep 19, 2024
Fix deepmodeling#4143. Signed-off-by: Jinzhe Zeng <[email protected]>
github-merge-queue bot
pushed a commit
that referenced
this issue
Sep 21, 2024
See #4147 and #4143. We can first make `state_dict` safe for `weights_only`, then make a breaking change when loading `state_dict` in the future. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced model saving functionality by ensuring learning rates are consistently stored as floats, improving type consistency. - **Bug Fixes** - Updated model loading behavior in tests to focus solely on model weights, which may resolve issues related to state dictionary loading. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
github-merge-queue bot
pushed a commit
that referenced
this issue
Oct 23, 2024
Fix #4143. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced model loading efficiency by only loading model weights, which reduces memory usage and improves performance. - **Bug Fixes** - Streamlined the loading process across various components, ensuring that only essential model parameters are loaded, thus optimizing the overall functionality. - **Tests** - Updated tests to reflect the new loading behavior, ensuring that only model weights are loaded in various test scenarios for improved clarity and performance. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
github-merge-queue bot
pushed a commit
that referenced
this issue
Oct 23, 2024
Enable [TorchFix](https://github.com/pytorch-labs/torchfix). Need to resolve the following issues before merging: - #4229 - #4143 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Integrated `flake8` for enhanced code quality checks. - Added `ruff-format` hook for improved linting. - Implemented consistent license header insertion for various file types. - **Bug Fixes** - Updated `check-added-large-files` hook to enforce a maximum file size of 1024 KB. - **Documentation** - Updated linting configuration with new rules under `[tool.flake8]`. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Jinzhe Zeng <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: