Nicolas Patry [Thu, 29 Sep 2022 07:34:13 +0000 (09:34 +0200)]
Big revamp: (#10)
* Adding slicing support on tensorview.
Clippy 1.64.
Improve the comment.
[WIP] Bad python slice API for now, still looking for a nice pythonesque
one
But at least this works !
Much better API.
Pros:
- handles a lot of boilerplate for caller.
- Feels more pythonesque
Cons:
- Unsure about soundness of keeping Mmap struct.
- Lots more boilerplate in the binding
Removing unused code.
Improved API names hopefully.
Adding .keys() support.
Big revamp:
- Remove `Tensor` to fuse with `TensorView` (the price to pay for shape
cloning should be small enough that it shouldn't make too much of a
difference
- Remove `deserialize_file`, now that we have `safe_open` facility.
- Tried to remove `torch` dependency on `numpy` (Still need the
`torch.Tensor` to bytes without copying facility.
- Revamped the speed tests to show metrics side by side. They need
to be taken with extreme caution, timings are never reproducible.
New possibility to save metadata.
Fixing the workflow.
Rename.
Black.
Installing other libs.
Make windows happy.
Non venv.
Install jax on windows is impossible ?
More private python functions + Windows(flax) shenanigans.
Nicolas Patry [Tue, 22 Feb 2022 16:45:50 +0000 (17:45 +0100)]
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.