]> khamidou — GitHub mirrors - safetensors.git/commit
Improving bf16 tests (#507)
authorNicolas Patry <patry.nicolas@protonmail.com>
Wed, 31 Jul 2024 08:07:44 +0000 (10:07 +0200)
committerGitHub <noreply@github.com>
Wed, 31 Jul 2024 08:07:44 +0000 (10:07 +0200)
commitc00471ebe7d98055857d1626b2333d624eaf220a
tree784957983ef99751f5db5e341a4e3f2f86d494d9
parent23319746e483012e6d3a7f2e4048cdbe7c458fa5
Improving bf16 tests (#507)

* Add mlx.

* Add flax.

* Yaml is possibly worse than XML at this point.

* .

* Fixing BF16+BigEndian+Torch on Torch > 2.1

* Fix macos-13 so Python 3.8 is supported.

* Clippy fix.

* Adding macos-latest (ARM) to the test suite.

* Fmt.

* Installing cargo audit.

* I.

* Fixing format.

* Update 2 locations.

* tf.random.normal

* Random normal flax

* Fixing flax test.

* Remove bool test for flax.

* Attempting to upgrade numpy version.

* Revert pyproject.toml

* Fixing bool test (PT).

* Fixing new ARM element of matrix.

* Install mlx on ARM.

* Ignoring flax on macos arm.

* No bfloat16 on mlx.

* Reference issue in code.

* Re-enabling jax tests ?

* Removing ARM+macos target.

* Irrelevant changes.

* Trying to debug remotely.

* Different logs.

* This isn't counterproductive dev speed.

* Install mlx on old non arm macos.

* Adding a clone ?

* Checking bfloat16 serialized values.

* Linter.

* Hopefully fixing the byteswapping.

* Run mlx only on Python 3.11.

* Yaml..

* Fixing MLX tests (making it optional/skipped unfortunately).

* Much better fix that doesn't depend on torch version.

* Cleaner escape for MLX.

* Fixing F8XXX dtypes too on big endians + torch.

* inplace actually modifies storage.

* Inplace for numpy requires new holding place.
.github/workflows/python.yml
bindings/python/py_src/safetensors/torch.py
bindings/python/src/lib.rs
bindings/python/tests/test_flax_comparison.py
bindings/python/tests/test_mlx_comparison.py
bindings/python/tests/test_pt_comparison.py
bindings/python/tests/test_tf_comparison.py