Making wrapper tensor subclass to work in serialization #2440
jerryzh168
changed the title Making wrapper tensor subclass to work in huggingface_hub serializati… Making wrapper tensor subclass to work in serialization 1 year ago
jerryzh168
force pushed
from
749345f7
to
40413f5b
1 year ago
jerryzh168
force pushed
from
40413f5b
to
d6c42560
1 year ago
Making wrapper tensor subclass to work in huggingface_hub serializati…
a9911b8d
jerryzh168
force pushed
from
d6c42560
to
40d9bdae
1 year ago
add tests
4ebe8aa9
jerryzh168
force pushed
from
40d9bdae
to
4ebe8aa9
1 year ago
update signature to include new changes for tensor subclass
0a1cc964
add torch version checks and move around import
8fd26b75
more fixes
b8890190
tested with torch 2.0.0 and 2.5.0
c91fe184
Merge branch 'main' into non-safetensor-ser
83f6884e
Merge branch 'main' into non-safetensor-ser
a02657d8
remove torch_version_at_least from _torch.py
94b38853
simplify code for checking if tensor subclass is available or not
1b25148e
minor fix
ca3c2280
addressing comments and run tests with torch 2.4.0
122a68a8
Merge branch 'main' into non-safetensor-ser
3c796075
some linting
7fb689bd
add test_split_torch_state_dict_into_shards for tensor subclass state…
45cb98ad
lint
1486253d
style
7850025e
quality
473c317d
Wauplin
approved these changes
on 2024-08-30
Wauplin
merged
f12ba861
into main 1 year ago
Assignees
No one assigned
Login to write a write a comment.
Login via GitHub