Skip to content

Getting an error while running "convert.py": "zipfile.BadZipFile: Bad magic number for file header" #1208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fbyukgo opened this issue Apr 27, 2023 · 2 comments

Comments

@fbyukgo
Copy link

fbyukgo commented Apr 27, 2023

I am trying to use "python convert.py models/7B/" command to convert my model to ggml FP16 format.
Models and 7B folders contain the following files;

models/
├── 7B
│   ├── checklist.chk
│   ├── consolidated.00.pth
│   └── params.json
├── tokenizer.model
└── tokenizer_checklist.chk

When I run the command I get the "zipfile.BadZipFile: Bad magic number for file header" error. I've tried to tinker with the "convert.py" file but I couldn't manage to solve the problem. Does anyone know what might cause the issue and how can I fix it?

I am using Python version 3.9 with the requirements( found in requirements.txt in llama.cpp file) installed.

@prusnak
Copy link
Collaborator

prusnak commented Apr 28, 2023

Run sha256sum --ignore-missing -c SHA256SUMS to check whether you have downloaded the files correctly.

Please reopen if this says the files are correctly downloaded

@prusnak prusnak closed this as not planned Won't fix, can't repro, duplicate, stale Apr 28, 2023
@fbyukgo
Copy link
Author

fbyukgo commented Apr 28, 2023

It turned out there was a problem with the files I've downloaded so re-downloading them fixed the problem, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants