]> khamidou — GitHub mirrors - safetensors.git/commit
Adding the convert scripts which will now prevent converting models (#59)
authorNicolas Patry <patry.nicolas@protonmail.com>
Fri, 4 Nov 2022 16:38:58 +0000 (17:38 +0100)
committerGitHub <noreply@github.com>
Fri, 4 Nov 2022 16:38:58 +0000 (17:38 +0100)
commit764ff0faf4b36b1a0b42a2bd57869f3b8ccb2aaf
treefcae620c33c26f5246f757ecd039a2db34add15e
parent119473908008378722ca3b59cf1f81cf7347a30e
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.
bindings/python/convert.py
bindings/python/convert_all.py