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

feat(ScalingTensor, ScalingMeta): pickle and unpickle #84

Closed
wants to merge 8 commits into from

Conversation

wkcn
Copy link
Contributor

@wkcn wkcn commented Jun 24, 2023

Description
In this PR, the pickle and unpickle of ScalingTensor and ScalingMeta are supported.
Being similar to torch.Tensor, the gradient of a ScalingTensor will be not pickled.

ProcessGroup could not be pickled, so we set group to None when unpickling ScalingMeta.

Major Revision

  • pickle and unpickle of ScalingMeta
  • pickle and unpickle of ScalingTensor
  • unit test

@wkcn wkcn changed the title feat(ScalingTensor, ScalingMeta) pickle and unpickle feat(ScalingTensor, ScalingMeta): pickle and unpickle Jun 24, 2023
@wkcn wkcn requested review from tocean, abuccts and guoshzhao and removed request for tocean July 5, 2023 08:46
@wkcn wkcn closed this Nov 30, 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.

1 participant