]> khamidou — GitHub mirrors - safetensors.git/commit
Adding `save_model` and `load_model` to help with shared tensors with PyTorch. (...
authorNicolas Patry <patry.nicolas@protonmail.com>
Mon, 24 Apr 2023 10:37:00 +0000 (12:37 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Apr 2023 10:37:00 +0000 (12:37 +0200)
commit11a0ddba9a80e4a50fd47957f1274c7e32baf667
tree6b86f5d98b7f6116880c8efdb9cdf281535e3cd4
parentc36f8dba40f052c1166119b0a34f9a5a1f53f485
Adding `save_model` and `load_model` to help with shared tensors with PyTorch. (#236)

* Adding `save_model` and `load_model` to help with shared tensors

and non contiguous tensors.

* Tmp.

* Adding more docs more tests on the edge cases.

* Adding support for different `keep_name` on disk.

* Torch 1.10 support + save_model failure test.

* Fixes 1.10

* Debugging on remote..

* 1.

* 2.

* 3.

* 4.

* Trying to fix documentation builder version.

* PR documentation + route from error message to new methods.

* ..

* Revert ".."

This reverts commit 564b6863fc11407e19982944733de999c17c95ba.

* Fixing `.[dev]` ?

* Adding contiguous support.

* ?

* Fix.
bindings/python/py_src/safetensors/torch.py
bindings/python/setup.py
bindings/python/tests/test_pt_model.py [new file with mode: 0644]
docs/source/_toctree.yml
docs/source/torch_shared_tensors.mdx [new file with mode: 0644]