]> khamidou — GitHub mirrors - safetensors.git/commit
Testing torch==1.10 (lowest available on transformers with `frombuffer`) too. (#46)
authorNicolas Patry <patry.nicolas@protonmail.com>
Tue, 1 Nov 2022 07:52:03 +0000 (08:52 +0100)
committerGitHub <noreply@github.com>
Tue, 1 Nov 2022 07:52:03 +0000 (08:52 +0100)
commite4f6c3d9888815c1286e2883d4504dc24e47bfca
tree3592b7d5385b6e52de99a6c8ce1a931ece313925
parentf700a4c687af0e496d8c8c0f7cfc7a87b547894a
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.
.github/workflows/python.yml
.github/workflows/rust.yml