You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The problem with the conversion with the new convert.py #966
F:\Models\digitous-Alpacino13b>convert.py --dump-single F:\Models\digitous-Alpacino13b\4bit.safetensors
Traceback (most recent call last):
File "F:\Models\digitous-Alpacino13b\convert.py", line 1145, in
main()
File "F:\Models\digitous-Alpacino13b\convert.py", line 1116, in main
model_plus = lazy_load_file(args.model)
File "F:\Models\digitous-Alpacino13b\convert.py", line 853, in lazy_load_file
return lazy_load_safetensors_file(fp, path)
File "F:\Models\digitous-Alpacino13b\convert.py", line 753, in lazy_load_safetensors_file
model = {name: convert(info) for (name, info) in header.items()}
File "F:\Models\digitous-Alpacino13b\convert.py", line 753, in
model = {name: convert(info) for (name, info) in header.items()}
File "F:\Models\digitous-Alpacino13b\convert.py", line 745, in convert
assert 0 <= begin <= end <= len(byte_buf)
AssertionError
Same error here going on with me, i'm using a different model however but get the exact same error produced on latest commit
Traceback (most recent call last):
File "D:\llama\llama.cpp\convert.py", line 1146, in <module>
main()
File "D:\llama\llama.cpp\convert.py", line 1126, in main
model_plus = load_some_model(args.model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\llama\llama.cpp\convert.py", line 1053, in load_some_model
models_plus.append(lazy_load_file(path))
^^^^^^^^^^^^^^^^^^^^
File "D:\llama\llama.cpp\convert.py", line 854, in lazy_load_file
return lazy_load_safetensors_file(fp, path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\llama\llama.cpp\convert.py", line 754, in lazy_load_safetensors_file
model = {name: convert(info) for (name, info) in header.items()}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\llama\llama.cpp\convert.py", line 754, in <dictcomp>
model = {name: convert(info) for (name, info) in header.items()}
^^^^^^^^^^^^^
File "D:\llama\llama.cpp\convert.py", line 746, in convert
assert 0 <= begin <= end <= len(byte_buf)
AssertionError
Apparently I fixed it by using Linux? Use WSL or an alternative and run the script again. I'm not versed in python that much to figure out the error but it doesn't seem to fall into an assertionerror on linux with no alterations whatsoever.
The same mistake. Maybe I'm doing something wrong?
C:\llama.cpp>convert.py 4bit.safetensors --outtype q4_1 --outfile 4ggml.bin
Loading model file 4bit.safetensors
Traceback (most recent call last):
File "C:\llama.cpp\convert.py", line 1145, in
main()
File "C:\llama.cpp\convert.py", line 1125, in main
model_plus = load_some_model(args.model)
File "C:\llama.cpp\convert.py", line 1052, in load_some_model
models_plus.append(lazy_load_file(path))
File "C:\llama.cpp\convert.py", line 853, in lazy_load_file
return lazy_load_safetensors_file(fp, path)
File "C:\llama.cpp\convert.py", line 753, in lazy_load_safetensors_file
model = {name: convert(info) for (name, info) in header.items()}
File "C:\llama.cpp\convert.py", line 753, in
model = {name: convert(info) for (name, info) in header.items()}
File "C:\llama.cpp\convert.py", line 745, in convert
assert 0 <= begin <= end <= len(byte_buf)
AssertionError
Activity
kickturn commentedon Apr 14, 2023
Same error here going on with me, i'm using a different model however but get the exact same error produced on latest commit
kickturn commentedon Apr 15, 2023
Apparently I fixed it by using Linux? Use WSL or an alternative and run the script again. I'm not versed in python that much to figure out the error but it doesn't seem to fall into an assertionerror on linux with no alterations whatsoever.
comex commentedon Apr 15, 2023
Let's see...
convert.py: Fix loading safetensors and ggml format on Windows
kickturn commentedon Apr 15, 2023
just checked and the commit fixed it!
SrVill commentedon Apr 15, 2023
The same mistake. Maybe I'm doing something wrong?
C:\llama.cpp>convert.py 4bit.safetensors --outtype q4_1 --outfile 4ggml.bin
Loading model file 4bit.safetensors
Traceback (most recent call last):
File "C:\llama.cpp\convert.py", line 1145, in
main()
File "C:\llama.cpp\convert.py", line 1125, in main
model_plus = load_some_model(args.model)
File "C:\llama.cpp\convert.py", line 1052, in load_some_model
models_plus.append(lazy_load_file(path))
File "C:\llama.cpp\convert.py", line 853, in lazy_load_file
return lazy_load_safetensors_file(fp, path)
File "C:\llama.cpp\convert.py", line 753, in lazy_load_safetensors_file
model = {name: convert(info) for (name, info) in header.items()}
File "C:\llama.cpp\convert.py", line 753, in
model = {name: convert(info) for (name, info) in header.items()}
File "C:\llama.cpp\convert.py", line 745, in convert
assert 0 <= begin <= end <= len(byte_buf)
AssertionError
convert.py: Fix loading safetensors and ggml format on Windows (#991)
NextGA-OSS commentedon Dec 16, 2023
Seeing similar issues still. Latest repo trying to set up an apple m2 implementation using mixtral:
prusnak commentedon Dec 16, 2023
It's a very different issue. Open a new issue.
shrijayan commentedon Dec 19, 2023
Facing the same issue in Google Colab. Any Solution?
convert.py: Fix loading safetensors and ggml format on Windows (ggml-…
convert.py: Fix loading safetensors and ggml format on Windows (ggml-…
Fix RoPE cache on multi-GPU setup (ggml-org#966)
convert.py: Fix loading safetensors and ggml format on Windows (ggml-…
convert.py: Fix loading safetensors and ggml format on Windows (ggml-…