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

[Tensor] add from_pretrained support and bert pretrained test #921

Merged
merged 6 commits into from
May 9, 2022

Conversation

Wesley-Jzy
Copy link
Contributor

No description provided.

@Wesley-Jzy Wesley-Jzy requested a review from feifeibear May 9, 2022 06:31
@@ -55,6 +55,15 @@ def shard_pattern(self):
def data(self):
return self._torch_tensor.data

@data.setter
def data(self, tensor: Union[torch.Tensor, "ColoTensor"]):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should consider the lazy inited cases.

That is to say a colossal tensor is built from init_from_torch_tensor(..., save_payload = False).

@Wesley-Jzy Wesley-Jzy merged commit c195d28 into hpcaitech:main May 9, 2022
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.

None yet

2 participants