Skip to content
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

add _save_to_infer_model #170

Merged
merged 2 commits into from
Sep 27, 2023
Merged

add _save_to_infer_model #170

merged 2 commits into from
Sep 27, 2023

Conversation

zkh2016
Copy link
Collaborator

@zkh2016 zkh2016 commented Sep 25, 2023

Pull Request Template

Issue Reference

Please mention the issue number if applicable, or write "N/A" if it's a new feature.

Issue #...

Description

Please describe your changes in detail. If it resolves an issue, please state how it resolves it.

直接将gpu中的state_dict传给推理模型,减少save/load时间

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Checklist

  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Additional Information

Any additional information, configuration, or data that might be necessary for the review.

@zkh2016 zkh2016 force-pushed the transform_to_libcpm branch from 01d5be0 to 4d41af7 Compare September 25, 2023 11:51
bmtrain/layer.py Outdated Show resolved Hide resolved
bmtrain/store.py Show resolved Hide resolved
@zkh2016 zkh2016 force-pushed the transform_to_libcpm branch 2 times, most recently from e834efd to 5422fd7 Compare September 26, 2023 07:39
@zkh2016 zkh2016 merged commit 25e3671 into OpenBMB:dev Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants