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
convert-pth-to-ggml.py failed with RuntimeError #35
Hi there, I downloaded my LLaMa weights through bit-torrent, and tried to convert the 7B model to ggml FP16 format:
$python convert-pth-to-ggml.py models/7B/ 1
normalizer.cc(51) LOG(INFO) precompiled_charsmap is empty. use identity normalization.
{'dim': 4096, 'multiple_of': 256, 'n_heads': 32, 'n_layers': 32, 'norm_eps': 1e-06, 'vocab_size': 32000}
n_parts = 1
Processing part 0
Traceback (most recent call last):
File "/Users/fzxu/Documents/code/llama.cpp/convert-pth-to-ggml.py", line 89, in <module>
model = torch.load(fname_model, map_location="cpu")
File "/opt/anaconda3/envs/llama.cpp/lib/python3.10/site-packages/torch/serialization.py", line 712, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "/opt/anaconda3/envs/llama.cpp/lib/python3.10/site-packages/torch/serialization.py", line 1049, in _load
result = unpickler.load()
File "/opt/anaconda3/envs/llama.cpp/lib/python3.10/site-packages/torch/serialization.py", line 1019, in persistent_load
load_tensor(dtype, nbytes, key, _maybe_decode_ascii(location))
File "/opt/anaconda3/envs/llama.cpp/lib/python3.10/site-packages/torch/serialization.py", line 997, in load_tensor
storage = zip_file.get_storage_from_record(name, numel, torch._UntypedStorage).storage()._untyped()
RuntimeError: PytorchStreamReader failed reading file data/27: invalid header or archive is corrupted
Does this mean my downloaded version of model weights is corrupted? Or am I missing something?
I have filed request to Meta and hopefully I can try again with data from official download source.
Indeed my consolidated.00.pth file is somewhat corrupted. May I ask how you get the data? From official Meta download or bit-torrent?
Closing this comment while I try to get a correct version of the model weights.
Activity
G2G2G2G commentedon Mar 12, 2023
what is "data/27" file, that is within your models/7B folder? you downloaded the wrong thing
KevinXuxuxu commentedon Mar 12, 2023
Here's the file structure of my downloaded model:
There isn't a directory called
dataand this looks normal to me.As for the
data/27file, it seems to be some file structure within thepthfile which seems to be zipped (making some guess by checking the pytorch serialization code: https://github.com/pytorch/pytorch/blob/master/torch/serialization.py#L1112)prusnak commentedon Mar 12, 2023
@KevinXuxuxu Can you post the hashes of the downloaded files?
on Linux:
on macOS:
My hashes are:
KevinXuxuxu commentedon Mar 12, 2023
@prusnak Thanks for providing the shasum for my validation!
Indeed my
consolidated.00.pthfile is somewhat corrupted. May I ask how you get the data? From official Meta download or bit-torrent?Closing this comment while I try to get a correct version of the model weights.
prettydeep commentedon Mar 14, 2023
@prusnak Can you provide hashes for the 13B files?
KevinXuxuxu commentedon Mar 14, 2023
For anyone who has doubt about their data, try using https://github.com/cocktailpeanut/dalai which has the weights downloaded for you, and they seem to come from reliable source.
tanishhshahh commentedon Mar 17, 2023
Can you please provide a link to download the LLaMA files
Merge pull request ggml-org#35 from cmp-nct/tokenenizer-fix-1
[feat] add more op (ggml-org#35)
Fix Zen4 Flash Attention (ggml-org#35)
ggml-ve : Qwen3.5/3.6 hybrid SSM+attention kernels (WIP, layer-0 corr…
feat(xdna): per-dispatch submit-latency breakdown probe (ggml-org#35 …
feat(xdna): per-shape wait attribution in submit breakdown probe (ggm…
xdna: ggml-org#35 f3best cold-dispatch root-cause probes (measured)
xdna: ggml-org#35 f3best LOOPPROBE — confirm warm across layers in on…
xdna: ggml-org#35 f3best UNIFIED LOOP — 16 layers in one backend call…
xdna: ggml-org#35 f3best loop e2e = 21.5 t/s (2x CPU); decompose non-…
xdna: ggml-org#35 add npu_f3best_loop preset to correctness_test harness
Merge pull request ggml-org#35 from tc-mb/feat/omni-duplex-round1
Merge pull request ggml-org#35 from tc-mb/feat/omni-duplex-round1
Merge pull request ggml-org#35 from arc-uri-el/contribution/checkpoin…
quantize : choose quant types to hit a bpw or file size target (upstr…