Title: python3 convert-hf-to-ggml.py bigcode/starcoderplus is failing with error: RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory · Issue #29 · bigcode-project/starcoder.cpp · GitHub
Open Graph Title: python3 convert-hf-to-ggml.py bigcode/starcoderplus is failing with error: RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory · Issue #29 · bigcode-project/starcoder.cpp
X Title: python3 convert-hf-to-ggml.py bigcode/starcoderplus is failing with error: RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory · Issue #29 · bigcode-project/starcoder.cpp
Description: python3 convert-hf-to-ggml.py bigcode/starcoderplus is failing with error: RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory % python3 convert-hf-to-ggml.py models/starcoderplus Loading model:...
Open Graph Description: python3 convert-hf-to-ggml.py bigcode/starcoderplus is failing with error: RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory % python3 convert-hf-to-ggm...
X Description: python3 convert-hf-to-ggml.py bigcode/starcoderplus is failing with error: RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory % python3 convert-hf-to-ggm...
Opengraph URL: https://github.com/bigcode-project/starcoder.cpp/issues/29
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"python3 convert-hf-to-ggml.py bigcode/starcoderplus is failing with error: RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory","articleBody":"python3 convert-hf-to-ggml.py bigcode/starcoderplus \r\n\r\nis failing with error: RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory\r\n\r\n```\r\n% python3 convert-hf-to-ggml.py models/starcoderplus\r\nLoading model: models/starcoderplus\r\nLoading checkpoint shards: 29%|█████████████████████████████████████▍ | 2/7 [00:45\u003c01:54, 22.80s/it]\r\nTraceback (most recent call last):\r\n File \"/starcoder.cpp/venv/lib/python3.11/site-packages/transformers/modeling_utils.py\", line 460, in load_state_dict\r\n return torch.load(checkpoint_file, map_location=\"cpu\")\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/starcoder.cpp/venv/lib/python3.11/site-packages/torch/serialization.py\", line 797, in load\r\n with _open_zipfile_reader(opened_file) as opened_zipfile:\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/starcoder.cpp/venv/lib/python3.11/site-packages/torch/serialization.py\", line 283, in __init__\r\n super().__init__(torch._C.PyTorchFileReader(name_or_buffer))\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nRuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/starcoder.cpp/venv/lib/python3.11/site-packages/transformers/modeling_utils.py\", line 464, in load_state_dict\r\n if f.read(7) == \"version\":\r\n ^^^^^^^^^\r\n File \"\u003cfrozen codecs\u003e\", line 322, in decode\r\nUnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 128: invalid start byte\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/starcoder.cpp/convert-hf-to-ggml.py\", line 58, in \u003cmodule\u003e\r\n model = AutoModelForCausalLM.from_pretrained(model_name, config=config, torch_dtype=torch.float16 if use_f16 else torch.float32, low_cpu_mem_usage=True, trust_remote_code=True, offload_state_dict=True)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/starcoder.cpp/venv/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py\", line 493, in from_pretrained\r\n return model_class.from_pretrained(\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/starcoder.cpp/venv/lib/python3.11/site-packages/transformers/modeling_utils.py\", line 2903, in from_pretrained\r\n ) = cls._load_pretrained_model(\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/starcoder.cpp/venv/lib/python3.11/site-packages/transformers/modeling_utils.py\", line 3246, in _load_pretrained_model\r\n state_dict = load_state_dict(shard_file)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/starcoder.cpp/venv/lib/python3.11/site-packages/transformers/modeling_utils.py\", line 476, in load_state_dict\r\n raise OSError(\r\nOSError: Unable to load weights from pytorch checkpoint file for 'models/starcoderplus/pytorch_model-00003-of-00007.bin' at 'models/starcoderplus/pytorch_model-00003-of-00007.bin'. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.\r\n```\r\n\r\nInstalled python packages:\r\n\r\n```\r\n% pip3 list \r\nPackage Version\r\n------------------ ---------\r\naccelerate 0.21.0\r\ncertifi 2023.7.22\r\ncharset-normalizer 3.2.0\r\nfilelock 3.12.2\r\nfsspec 2023.6.0\r\nhuggingface 0.0.1\r\nhuggingface-hub 0.16.4\r\nidna 3.4\r\nJinja2 3.1.2\r\nMarkupSafe 2.1.3\r\nmpmath 1.3.0\r\nnetworkx 3.1\r\nnumpy 1.25.1\r\npackaging 23.1\r\npip 23.0.1\r\npsutil 5.9.5\r\nPyYAML 6.0.1\r\nregex 2023.6.3\r\nrequests 2.31.0\r\nsafetensors 0.3.1\r\nsetuptools 67.6.1\r\nstarcoder 0.0.2\r\nsympy 1.12\r\ntokenizers 0.13.3\r\ntorch 2.0.1\r\ntqdm 4.65.0\r\ntransformers 4.31.0\r\ntyping_extensions 4.7.1\r\nurllib3 2.0.4\r\n```\r\n\r\n","author":{"url":"https://github.com/antonakv","@type":"Person","name":"antonakv"},"datePublished":"2023-07-24T10:05:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/29/starcoder.cpp/issues/29"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1b6c1059-fddc-f1bb-0d84-3a599f47f628 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD82:36D01B:3913FA:500660:6970A6E4 |
| html-safe-nonce | 56a64a4e2497975e059d6b0821b9d7899f9018137b65e52a0b4cddf477242b60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDgyOjM2RDAxQjozOTEzRkE6NTAwNjYwOjY5NzBBNkU0IiwidmlzaXRvcl9pZCI6IjM0MjEzNzU5OTYzNDkxNjMyMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ea2a413cfafebd7ec850b6109769b98d7fbe909657c223eac659775db18cdfec |
| hovercard-subject-tag | issue:1818083997 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bigcode-project/starcoder.cpp/29/issue_layout |
| twitter:image | https://opengraph.githubassets.com/26981189f6f94730448e5327be025b74b48ac5ef8f8b4a2e1c2eb24a87bcebed/bigcode-project/starcoder.cpp/issues/29 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/26981189f6f94730448e5327be025b74b48ac5ef8f8b4a2e1c2eb24a87bcebed/bigcode-project/starcoder.cpp/issues/29 |
| og:image:alt | python3 convert-hf-to-ggml.py bigcode/starcoderplus is failing with error: RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory % python3 convert-hf-to-ggm... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | antonakv |
| hostname | github.com |
| expected-hostname | github.com |
| None | b06a4c45c45fd0bb038b3759265ea6e38211f45d18130bc65261990be6b5972a |
| turbo-cache-control | no-preview |
| go-import | github.com/bigcode-project/starcoder.cpp git https://github.com/bigcode-project/starcoder.cpp.git |
| octolytics-dimension-user_id | 110470554 |
| octolytics-dimension-user_login | bigcode-project |
| octolytics-dimension-repository_id | 640843237 |
| octolytics-dimension-repository_nwo | bigcode-project/starcoder.cpp |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 640843237 |
| octolytics-dimension-repository_network_root_nwo | bigcode-project/starcoder.cpp |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0e1c4964831785bd64cb22d82e7cf2391ae01f45 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width