]> khamidou — GitHub mirrors - safetensors.git/log
safetensors.git
4 years agoIgnore unsound criterion. (#100)
Nicolas Patry [Tue, 22 Nov 2022 12:12:42 +0000 (13:12 +0100)]
Ignore unsound criterion. (#100)

4 years ago[docs] we want markdnwo headings to show (#94)
Mishig [Fri, 18 Nov 2022 14:47:04 +0000 (15:47 +0100)]
[docs] we want markdnwo headings to show (#94)

4 years agoAccepting `pathlib.Path` in `save_file/load_file/safe_open`. (#86)
Nicolas Patry [Fri, 18 Nov 2022 14:24:35 +0000 (15:24 +0100)]
Accepting `pathlib.Path` in `save_file/load_file/safe_open`. (#86)

* Accepting `pathlib.Path` in `save_file/load_file/safe_open`.

* as_path.

* Update docstrings.

- Removed unused `:obj:`
- Put `os.PathLike` everywhere it's needed
- python stub.py

4 years agoTorch fixes (#90)
Nicolas Patry [Fri, 18 Nov 2022 13:40:12 +0000 (14:40 +0100)]
Torch fixes (#90)

* Fix `KeyError: torch.float64` when serializing tensors of doubles and `KeyError: BF16` when parsing.

* Fix non-working `_view2torch` because of the forgotten returns.
Added some tests.

* Test in the same style.

* Like previous style.

Co-authored-by: KOLANICH <kolan_n@mail.ru>
4 years ago[docs] fix notebook automatic creation (#92)
Mishig [Fri, 18 Nov 2022 13:39:31 +0000 (14:39 +0100)]
[docs] fix notebook automatic creation (#92)

4 years ago[docs] Fixes the colab btn on speed page (#91)
Mishig [Fri, 18 Nov 2022 13:15:53 +0000 (14:15 +0100)]
[docs] Fixes the colab btn on speed page (#91)

4 years agoAdd missing doc build token (#89)
Mishig [Fri, 18 Nov 2022 12:47:01 +0000 (13:47 +0100)]
Add missing doc build token (#89)

4 years ago[docs] Loading speed benchmark (#80)
Mishig [Fri, 18 Nov 2022 12:18:05 +0000 (13:18 +0100)]
[docs] Loading speed benchmark (#80)

* [docs] Loading speed benchmark

* Add speed reference in index

* chore

* make print statement clearer

* remove repetition

* add notebooks folder

* fuse `device` lines

* add specs

* rm unneded lines

* Update docs/source/speed.mdx

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
4 years agodelete_doc_comment.yml should only run on pull request closed (#88)
Mishig [Fri, 18 Nov 2022 11:04:01 +0000 (12:04 +0100)]
delete_doc_comment.yml should only run on pull request closed (#88)

4 years agoTrigger doc build on specific changes (#87)
Mishig [Fri, 18 Nov 2022 10:40:30 +0000 (11:40 +0100)]
Trigger doc build on specific changes (#87)

* Trigger doc build on specific changes

* chore

4 years agoMade the rust version consistent between `safetensors` and this crate. (#83)
KOLANICH [Fri, 18 Nov 2022 09:19:54 +0000 (09:19 +0000)]
Made the rust version consistent between `safetensors` and this crate. (#83)

4 years agoPreventing big endian files to be saved. (#82)
Nicolas Patry [Fri, 18 Nov 2022 09:19:27 +0000 (10:19 +0100)]
Preventing big endian files to be saved. (#82)

4 years agoFixing unimplemented into real exception. (#78)
Nicolas Patry [Thu, 17 Nov 2022 19:08:25 +0000 (20:08 +0100)]
Fixing unimplemented into real exception. (#78)

4 years agoAdd installation section (#71)
Mishig [Thu, 17 Nov 2022 10:16:11 +0000 (11:16 +0100)]
Add installation section (#71)

4 years agoFix doc build actions (#70)
Mishig [Thu, 17 Nov 2022 09:37:40 +0000 (10:37 +0100)]
Fix doc build actions (#70)

* Fix doc build actions

* Add remaining doc gh ymls

4 years agopip install .[dev] (#68)
Mishig [Wed, 16 Nov 2022 15:35:03 +0000 (16:35 +0100)]
pip install .[dev] (#68)

* Update setup.py

* add click==8.0.4 to setup.py

* gh actions use pip install .[dev]

* Update binding local dev readme

* fix gh action

* fix gh action

* fix gh action ?

* don't install jax flax on windows

* try removing unused deps

4 years agoNew version. (#63)
Nicolas Patry [Tue, 8 Nov 2022 14:47:29 +0000 (15:47 +0100)]
New version. (#63)

* New version.

* mmap2.

4 years agoAdding cargo audit check. (#64)
Nicolas Patry [Tue, 8 Nov 2022 14:47:22 +0000 (15:47 +0100)]
Adding cargo audit check. (#64)

* Adding cargo audit check.

* Update command line.

* Update affected crates.

4 years agoAdding the convert scripts which will now prevent converting models (#59)
Nicolas Patry [Fri, 4 Nov 2022 16:38:58 +0000 (17:38 +0100)]
Adding the convert scripts which will now prevent converting models (#59)

* Adding the convert scripts which will now prevent converting models

in case they will trigger warnigns in the `transformers` side.
Even if the model is perfectly fine, core maintainers fear an influx
of opened issues.

This is perfectly legit.
On the `transformers` side fixes are on the way: https://github.com/huggingface/transformers/pull/20042

We can wait for this PR to hit `main` before communicating super widely.

In the meantime this script of convertion will now prevent converting
models that would trigger such warnings (so the output of the script
**will** depend on the `transformers` freshness.

* Adding a nicer diff for the error when reloading.

4 years agoPreparing for release. (#60)
Nicolas Patry [Fri, 4 Nov 2022 14:42:43 +0000 (15:42 +0100)]
Preparing for release. (#60)

4 years agoFound out about `torch.asarray` + `torch.Storage` combo. (#56)
Nicolas Patry [Fri, 4 Nov 2022 14:02:30 +0000 (15:02 +0100)]
Found out about `torch.asarray` + `torch.Storage` combo. (#56)

* Found out about `torch.asarray` + `torch.Storage` combo.

Extremely fast (I'm guessing it's just pointer arithmetic and actual
load time would it when actually using the tensors.)

* Dropping 1.10 support (no `asarray`.)

* Accepting torch==1.10.0 in slow mode.

* Adding a comment about `Storage`.

4 years agoSupporting `safe_open` for TF and Flax. (#58)
Nicolas Patry [Thu, 3 Nov 2022 16:04:27 +0000 (17:04 +0100)]
Supporting `safe_open` for TF and Flax. (#58)

* Supporting `safe_open` for TF and Flax.

* Move tensors only on Pytorch.

4 years agoMake GPU loading faster by removing all extra CPU copies. (#33)
Nicolas Patry [Wed, 2 Nov 2022 15:53:50 +0000 (16:53 +0100)]
Make GPU loading faster by removing all extra CPU copies. (#33)

* Faster gpu load.

Use cuda-sys directly.

For slice too.

Fun unsafe.

Reduce unsafe.

Removing CPU unsafe.

Using shared `cuda-sys` (temporary, we need to use torch's cuda version).

Tmp rework

Cleaner device.

Adding some statistics...

Warmup steps.

Removing unsafe GPU accesses.

Removing dead code.

Removing libloading.

Revert "Removing unsafe GPU accesses."

This reverts commit 5325ba2b73fffc16416130193da1690353e0a7db.

Unsafe comments.

Using GILOnceCell for module reuse.

Finding the lib through the real python workload.
Still requires transitive library parsing.

Stable with global lib ref.

Abort.

Weird bug on torch 1.13.

We **need** to get the data_ptr within the loop ?

* Fixing speedup by loading directly the loaded C library within Python.

* Cleanup.

* Finishing touches.

* Remove some code duplication.

Some very weird errors in calling the `cudaMemcpy` that fail depending
on order. Even aliasing the `Symbol` seem to be unsafe.

* Adding some comments.

* Better signature. Static symbol instead of lib.

4 years agoAdding more docs: (#53)
Nicolas Patry [Wed, 2 Nov 2022 15:53:33 +0000 (16:53 +0100)]
Adding more docs: (#53)

- Simple python example on the README.md
- Added `npz` and `arrow` formats to the table (not exhaustively)
- Added `benefits` section.

4 years agoAdding M1 (mps) benchmarks (going first through CPU seems faster though? (#51)
Nicolas Patry [Wed, 2 Nov 2022 15:53:16 +0000 (16:53 +0100)]
Adding M1 (mps) benchmarks (going first through CPU seems faster though? (#51)

but PT is just as slow going directly on MPS.).

4 years agoBenching only after merging. (#54)
Nicolas Patry [Wed, 2 Nov 2022 15:52:53 +0000 (16:52 +0100)]
Benching only after merging. (#54)

4 years agoAdding docs (#55)
Mishig [Wed, 2 Nov 2022 15:52:39 +0000 (16:52 +0100)]
Adding docs (#55)

* Initialize docs

* Add build pr github action

* Adding a bunch of documentation.

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
4 years agoRe-enabling manylinux2014 builds. (#52)
Nicolas Patry [Wed, 2 Nov 2022 09:31:45 +0000 (10:31 +0100)]
Re-enabling manylinux2014 builds. (#52)

* Debugging creating manylinux release.

* Using git-cli to reduce memory usage.

* Fixed it.

4 years agoSplitting up tests from benchmarks. (#50)
Nicolas Patry [Tue, 1 Nov 2022 18:00:24 +0000 (19:00 +0100)]
Splitting up tests from benchmarks. (#50)

* Splitting up tests from benchmarks.

* Skipping if cuda is not available.

* Fix condition.

* Working directory.

* Different location.

* Auto-push on GH pages.

* Benching for real.

4 years agoAdd convert all (#47)
Nicolas Patry [Tue, 1 Nov 2022 08:05:18 +0000 (09:05 +0100)]
Add convert all (#47)

* More convertion tool.

* Hardened convert script.

* Even more hardening.

* Style.

* Adding conversion scripts for all.

* Use api (with token) to get repo discussion.

Some models have discussions disabled, ignore them.

4 years agoSharing modules. (#48)
Nicolas Patry [Tue, 1 Nov 2022 08:04:40 +0000 (09:04 +0100)]
Sharing modules. (#48)

4 years agoTesting torch==1.10 (lowest available on transformers with `frombuffer`) too. (#46)
Nicolas Patry [Tue, 1 Nov 2022 07:52:03 +0000 (08:52 +0100)]
Testing torch==1.10 (lowest available on transformers with `frombuffer`) too. (#46)

* Testing torch==1.7 (lowest available on transformers) too.

* Running the checks every single time.

* Minimum required version is going to be torch==1.10.

Before that `frombuffer` didn't exist.
And since we want `bfloat16` support it's pretty much impossible
to use `numpy` or copy directly to the buffer with `set_`.

We could technically `memcpy` the buffer directly but it feels
overkill.

4 years agoFormat "Format" better for GitHub markdown flavor (#43)
Julien Chaumond [Mon, 31 Oct 2022 11:04:24 +0000 (12:04 +0100)]
Format "Format" better for GitHub markdown flavor (#43)

* Format "Format" better for GitHub markdown flavor

* Format needs to change the rustdoc.

Co-authored-by: Nicolas Patry <patry.nicolas@protonmail.com>
4 years agoSupporting torch==1.13.0 (#45)
Nicolas Patry [Mon, 31 Oct 2022 09:13:32 +0000 (10:13 +0100)]
Supporting torch==1.13.0 (#45)

4 years agoUse BTreeMap instead of HashMap (#42)
Thomas Wang [Sat, 29 Oct 2022 14:08:45 +0000 (16:08 +0200)]
Use BTreeMap instead of HashMap (#42)

* Use BTreeMap instead of HashMap

Co-authored-by: OlivierDehaene <23298448+OlivierDehaene@users.noreply.github.com>
4 years agoPreparing for next release. (#38)
Nicolas Patry [Thu, 27 Oct 2022 16:20:04 +0000 (18:20 +0200)]
Preparing for next release. (#38)

* Preparing for next release.

* Actually, let's release to remove `importlib`.

4 years agoMoving tensor validation (length wise) directly in validate. (#37)
Nicolas Patry [Thu, 27 Oct 2022 11:48:45 +0000 (13:48 +0200)]
Moving tensor validation (length wise) directly in validate. (#37)

4 years agoMake sure we're python3.7 compliant. (#40)
Nicolas Patry [Thu, 27 Oct 2022 11:48:30 +0000 (13:48 +0200)]
Make sure we're python3.7 compliant. (#40)

4 years agoPreparing for release 0.2.2 (#36)
Nicolas Patry [Wed, 26 Oct 2022 14:43:18 +0000 (16:43 +0200)]
Preparing for release 0.2.2 (#36)

4 years agoSome PyO3 specifics. (#35)
Nicolas Patry [Wed, 26 Oct 2022 13:49:10 +0000 (15:49 +0200)]
Some PyO3 specifics. (#35)

* Faster gpu load.

* Use cuda-sys directly.

* For slice too.

* Fun unsafe.

* Reduce unsafe.

* Removing CPU unsafe.

* Using shared `cuda-sys` (temporary, we need to use torch's cuda version).

* Tmp rework

* Cleaner device.

* Adding some statistics...

* Warmup steps.

* Removing unsafe GPU accesses.

* Removing dead code.

* Removing libloading.

* Accepting `int` as device.

4 years agoActually pass along metadata (#34)
Sylvain Gugger [Wed, 26 Oct 2022 08:42:11 +0000 (04:42 -0400)]
Actually pass along metadata (#34)

4 years agoLess GIL locks speeds things up apparently ? (#31)
Nicolas Patry [Fri, 21 Oct 2022 08:57:15 +0000 (10:57 +0200)]
Less GIL locks speeds things up apparently ? (#31)

* Less GIL locks speeds things up apparently ?

* Fixing `.to()` which cannot be called for non PT frameworks.

* Forgot to update.

* Skipping GPU if not available.

* Fixing tests by removing filename clash.

4 years agoUpdating convert script + fixing index. (#29)
Nicolas Patry [Fri, 21 Oct 2022 07:09:55 +0000 (09:09 +0200)]
Updating convert script + fixing index. (#29)

* Updating convert script + fixing index.

* Cleaning even when exceptions occur.

4 years ago Fixing potential DOS attacks. (#26)
Nicolas Patry [Thu, 20 Oct 2022 16:33:56 +0000 (18:33 +0200)]
 Fixing potential DOS attacks. (#26)

* Fixing potential DOS attacks.

- Fixed code sharing between rust package and python bindings in
  `safe_open` (where possible).
- Added a maximum size for the header (now hardcoded to 100Mo).
  A very large JSON header could indeed slow things down effectively
  (takes a few seconds to parse). This one is debattable.
- Added a safety check when deserializing the header.
  If offsets could overlap, then we could still DOS users because we
  could force them into allocating over and over the same buffer,
  leading to RAM explosion. This fixes it by checking out that the offset
  ranges are contiguous after loading the header.

* Make `Metadata::new()` faillible.

so we sanitize before writing to file.

4 years agoUpdate bindings readme (#30)
Mishig [Thu, 20 Oct 2022 16:33:26 +0000 (18:33 +0200)]
Update bindings readme (#30)

* Update README.md

* dev mode

4 years agoCreating a few range of attacks against classic formats. (#25)
Nicolas Patry [Thu, 20 Oct 2022 15:18:28 +0000 (17:18 +0200)]
Creating a few range of attacks against classic formats. (#25)

- pickle (ACE affecting PT)
- zip (Denial of Service affecting numpy + PT)
- marshal (affecting Keras, not directly in the h5 file format)

- Created 8 proposals to abuse the current format.
  Found 2 kind of flaws that could also cause some form of denial of
  service). PRs coming up.

4 years ago[MINOR FIX] Fix markdown header (#28)
Christopher Akiki [Thu, 20 Oct 2022 10:49:27 +0000 (12:49 +0200)]
[MINOR FIX] Fix markdown header (#28)

* Fix markdown header

* Add fixed README

4 years agoExplaining the `__metadata__` in the spec. (#23)
Nicolas Patry [Wed, 19 Oct 2022 23:26:56 +0000 (01:26 +0200)]
Explaining the `__metadata__` in the spec. (#23)

4 years agoAdding `convert.py` utility tool to convert models on the hub easily. (#24)
Nicolas Patry [Wed, 19 Oct 2022 17:30:51 +0000 (19:30 +0200)]
Adding `convert.py` utility tool to convert models on the hub easily. (#24)

* Adding `convert.py` utility tool to convert models on the hub easily.

It creates a PR so it should be safe to use on any repo.

* Fixing the `convert.py` script for multi

Catching on EntryNotFoundError.

* Update bindings/python/convert.py

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
4 years agoPush for `.safetensors` instead of `.bin`. (#22)
Nicolas Patry [Wed, 19 Oct 2022 10:16:07 +0000 (12:16 +0200)]
Push for `.safetensors` instead of `.bin`. (#22)

* Push for `.safetensors` instead of `.bin`.

* Bad replace.

4 years agoMaking sure the main README is in sync with the rustdoc. (#21)
Nicolas Patry [Wed, 19 Oct 2022 08:58:48 +0000 (10:58 +0200)]
Making sure the main README is in sync with the rustdoc. (#21)

(Makes it easier to have a single groundtruth).

4 years agoImplement benchmarking using Criterion (#19)
Mishig [Fri, 7 Oct 2022 14:10:34 +0000 (16:10 +0200)]
Implement benchmarking using Criterion (#19)

4 years agoRefusing to save non contiguous tensors now. (#17)
Nicolas Patry [Wed, 5 Oct 2022 08:18:56 +0000 (10:18 +0200)]
Refusing to save non contiguous tensors now. (#17)

* Refusing to save non contiguous tensors now.

Refusing to save non contiguous tensors now.

It causes weird issues.

1/ It is hard to make it play well with lazy-loading since you would
have 2 call sites, 1 needing to refer to some mother tensor (and
potentially a whole graph of them) that might not yet exist.

```python
x = torch.zeros((20, 20))
y = x[:, 0]

torch.save([x, y], filename)

x1, y1 = torch.load(filename)
y1.fill_(1)
```

This exists because some two different tensors can refer to the same
buffer with different striding, and pytorch save can persist them.

This library and format doesn't enable that so we should just
discard them.

2/ There was a bug when saving from something else than `cpu`
because the pointer would point to a GPU address for instance
so every tensor needs to be brought back before saving
(Unless there's a better way).

3/ Disable saving sparse tensors.

Forcing contiguous tensors from PT.

* Black.

* Fixing sparse.

* Skip if no gpu.

* X

* Y.

* Update bindings/python/py_src/safetensors/torch.py

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Updating quality.

* Rewrite warning multiline.

* Remove `doc-builder` not there yet.

* Factor out flattening.

* Forgot the workflows.

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
4 years agoUse np.prod for compatibility with Python 3.7 (#14)
Sylvain Gugger [Fri, 30 Sep 2022 11:36:02 +0000 (07:36 -0400)]
Use np.prod for compatibility with Python 3.7 (#14)

4 years agoBump version number for next release. (#13)
Nicolas Patry [Fri, 30 Sep 2022 08:37:19 +0000 (10:37 +0200)]
Bump version number for next release. (#13)

4 years agoRemoving dev suffix. (#12)
Nicolas Patry [Thu, 29 Sep 2022 13:31:17 +0000 (15:31 +0200)]
Removing dev suffix. (#12)

4 years agoUpdate README.md (#11)
Nicolas Patry [Thu, 29 Sep 2022 13:21:07 +0000 (15:21 +0200)]
Update README.md (#11)

* Update README.md

* Update bindings/python/README.md

Co-authored-by: Mishig Davaadorj <mishig.davaadorj@coloradocollege.edu>
Co-authored-by: Mishig Davaadorj <mishig.davaadorj@coloradocollege.edu>
4 years agoBig revamp: (#10)
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.

Fixing TF to be ACTUALLY TF native.

Option<Metadata>

* Black.

* Export metadata.

4 years agoPoC for additional metadata (#9)
Sylvain Gugger [Wed, 28 Sep 2022 16:05:00 +0000 (12:05 -0400)]
PoC for additional metadata (#9)

* PoC for additional metadata

* Address review comments and fix tests

* Don't push format metadata

4 years agoFix SIZES for torch tensors (#4)
Sylvain Gugger [Fri, 23 Sep 2022 16:58:15 +0000 (12:58 -0400)]
Fix SIZES for torch tensors (#4)

4 years agoMain should not have a released version (so users don't make (#3)
Nicolas Patry [Fri, 23 Sep 2022 14:50:28 +0000 (16:50 +0200)]
Main should not have a released version (so users don't make (#3)

confusions.)

4 years agoMerge pull request #2 from mishig25/patch-1
Nicolas Patry [Fri, 23 Sep 2022 13:30:51 +0000 (15:30 +0200)]
Merge pull request #2 from mishig25/patch-1

Update README.md

4 years agoUpdate README.md
Mishig Davaadorj [Fri, 23 Sep 2022 10:09:47 +0000 (12:09 +0200)]
Update README.md

4 years agoMerge pull request #1 from huggingface/create_release_gh_action
Nicolas Patry [Fri, 23 Sep 2022 09:56:49 +0000 (11:56 +0200)]
Merge pull request #1 from huggingface/create_release_gh_action

Creating build gh action

4 years agoCreate release actions.
Nicolas Patry [Fri, 23 Sep 2022 09:52:20 +0000 (11:52 +0200)]
Create release actions.

4 years agoAdd license, focus on conda.
Nicolas Patry [Thu, 22 Sep 2022 22:18:13 +0000 (00:18 +0200)]
Add license, focus on conda.

4 years agoAdd LICENSE
Nicolas Patry [Thu, 22 Sep 2022 22:17:31 +0000 (00:17 +0200)]
Add LICENSE

4 years agoMissing conda scripts.
Nicolas Patry [Thu, 22 Sep 2022 21:46:43 +0000 (23:46 +0200)]
Missing conda scripts.

4 years agoTest other releases.
Nicolas Patry [Thu, 22 Sep 2022 21:15:17 +0000 (23:15 +0200)]
Test other releases.

4 years ago1.64 requires manylinux2014
Nicolas Patry [Thu, 22 Sep 2022 21:11:00 +0000 (23:11 +0200)]
1.64 requires manylinux2014

  https://github.com/messense/maturin-action/pull/83

4 years ago:(
Nicolas Patry [Thu, 22 Sep 2022 16:33:57 +0000 (18:33 +0200)]
:(

4 years agoMany linux try to get rust from gh action.
Nicolas Patry [Thu, 22 Sep 2022 16:31:59 +0000 (18:31 +0200)]
Many linux try to get rust from gh action.

4 years agoReadme compliance.
Nicolas Patry [Thu, 22 Sep 2022 15:50:14 +0000 (17:50 +0200)]
Readme compliance.

4 years agoClippy pass.
Nicolas Patry [Thu, 22 Sep 2022 15:32:13 +0000 (17:32 +0200)]
Clippy pass.

4 years agoCreating build gh action
Nicolas Patry [Thu, 22 Sep 2022 15:26:20 +0000 (17:26 +0200)]
Creating build gh action

4 years agoIncluding here.
Nicolas Patry [Wed, 6 Jul 2022 22:38:20 +0000 (00:38 +0200)]
Including here.

4 years agoConvertion of bfloat16 enabled.
Nicolas Patry [Wed, 6 Jul 2022 22:33:40 +0000 (00:33 +0200)]
Convertion of bfloat16 enabled.

4 years agoSmall helpers
Nicolas Patry [Wed, 6 Jul 2022 20:26:56 +0000 (22:26 +0200)]
Small helpers

4 years agoSupport and tests vs other frameworks.
Nicolas Patry [Wed, 2 Mar 2022 16:52:51 +0000 (17:52 +0100)]
Support and tests vs other frameworks.

4 years agoCleaning up Python organisation + readme + tests.
Nicolas Patry [Wed, 2 Mar 2022 13:41:57 +0000 (14:41 +0100)]
Cleaning up Python organisation + readme + tests.

4 years agoFormatting.
Nicolas Patry [Wed, 2 Mar 2022 09:38:33 +0000 (10:38 +0100)]
Formatting.

4 years agoUpdated the rEADME a little.
Nicolas Patry [Wed, 2 Mar 2022 08:57:14 +0000 (09:57 +0100)]
Updated the rEADME a little.

4 years agoCompleting a bit the README.
Nicolas Patry [Tue, 1 Mar 2022 22:26:24 +0000 (23:26 +0100)]
Completing a bit the README.

4 years agoTMP.
Nicolas Patry [Tue, 1 Mar 2022 16:54:04 +0000 (17:54 +0100)]
TMP.

4 years agoWriting to file using BufWriter.
Nicolas Patry [Fri, 25 Feb 2022 13:55:50 +0000 (14:55 +0100)]
Writing to file using BufWriter.

4 years agoAdding mmap loading to prevent the extra copy while remaining safe.
Nicolas Patry [Fri, 25 Feb 2022 12:47:45 +0000 (13:47 +0100)]
Adding mmap loading to prevent the extra copy while remaining safe.

4 years agoByteArray (to be writeable for torch support).
Nicolas Patry [Thu, 24 Feb 2022 18:27:51 +0000 (19:27 +0100)]
ByteArray (to be writeable for torch support).

4 years agoGetting something decent.
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.

4 years agoInitial commit.
Nicolas Patry [Mon, 21 Feb 2022 16:49:06 +0000 (17:49 +0100)]
Initial commit.