]> khamidou — GitHub mirrors - safetensors.git/commit
Getting something decent.
authorNicolas Patry <patry.nicolas@protonmail.com>
Tue, 22 Feb 2022 16:45:50 +0000 (17:45 +0100)
committerNicolas Patry <patry.nicolas@protonmail.com>
Tue, 22 Feb 2022 16:45:50 +0000 (17:45 +0100)
commitb31b4cf4123e2f0c8218cc48dd2cd78fdeb771f2
treeef0e998b91a7cd1508d2b3f836dd7cafd87d50ea
parenta1e3fe5c6f3073575f6ebe6bd5af29cfe3c8406b
Getting something decent.

- Still a copy at the Rust/Python boundaries (ideally we need to
  std::mem::forget, and pass raw pointers to Python world to avoid the
  copy)
- Saving/Loading, use pure bytes array to avoid writing to disk, but
  that does incure more memory usage, maybe something to add later.
bindings/python/.gitignore [new file with mode: 0644]
bindings/python/Cargo.toml [new file with mode: 0644]
bindings/python/README.md [new file with mode: 0644]
bindings/python/bench.py [deleted file]
bindings/python/py_src/safetensors/__init__.py [new file with mode: 0644]
bindings/python/setup.py [new file with mode: 0644]
bindings/python/src/lib.rs [new file with mode: 0644]
bindings/python/tests/test_simple.py [new file with mode: 0644]
safetensors/src/lib.rs