Skip to content

PyTorch serialization formats #31877

@lutzroeder

Description

@lutzroeder

@soumith, @ezyang, as PyTorch serialization formats keep changing and evolving, is there a scheme to name and version the different formats to avoid confusion?

Something along these lines:

Description Format
Tar file with sys_info, pickle, storages, tensors PyTorch v0.1.1
Multi-Pickle file with 8a0a6cfc9c... signature PyTorch v0.1.10
Zip file containing constants.pkl and model.json TorchScript v1.0
Zip file containing constants.pkl and data.pkl TorchScript v1.3
Zip file containing data.pkl but no code PyTorch v1.3

cc @ezyang @gchanan @zou3519 @suo

Metadata

Metadata

Assignees

Labels

high priorityoncall: jitAdd this issue/PR to JIT oncall triage queuetriage reviewtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions