]> khamidou — GitHub mirrors - safetensors.git/commit
Fix/errors for some models including Mistral-7b and Flan-ul2 (#388)
authorlachlancahill <51102701+lachlancahill@users.noreply.github.com>
Mon, 27 Nov 2023 13:58:28 +0000 (02:58 +1300)
committerGitHub <noreply@github.com>
Mon, 27 Nov 2023 13:58:28 +0000 (14:58 +0100)
commit9c817427df7e4635b60a9a1f8b8ffc5d74843576
tree485c8ac5525a252320693f43c20d66bd0b16cf0e
parent08dd5f269334c38b544b32826f97dcc9dd41af7e
Fix/errors for some models including Mistral-7b and Flan-ul2 (#388)

* For some models like Mistral and Flan-UL2, when downloaded from the hub the binary files write to a snapshots/<uuid> subdirectory. Then when the files are committed, they cannot be found and the commit fails with an error.

* Changed `local.split("/")[-1]` to os.path.basename(local) for compatibility with all OS including Windows.

* Removed snapshots section

* Removed additional line break.

---------

Co-authored-by: Lachlan Cahill <lachlan.cahill@gmail.com>
bindings/python/convert.py