]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
convert: add ability to convert safetensors files (#1276)
authorubik2 <redacted>
Mon, 8 May 2023 11:54:26 +0000 (04:54 -0700)
committerGitHub <redacted>
Mon, 8 May 2023 11:54:26 +0000 (13:54 +0200)
commit95078cc554fe03d4512363c7e4dec963f0047c72
tree2568ac59f2a987f5a2dce0ce96c0c014d474c255
parent1f48b0abcfbd6cc99571e42348e0ec97e4be8b93
convert: add ability to convert safetensors files (#1276)

* when loading a safetensors file, ignore the metadata header
* check for safetensors files first, and only use PyTorch versions when safetensors aren't available
convert.py