Skip to content
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

[User] Error when converting Hugging Face model to GGML using convert.py script #1322

Closed
nbvnbv opened this issue May 4, 2023 · 1 comment

Comments

@nbvnbv
Copy link

nbvnbv commented May 4, 2023

Hello,

I am trying to convert a Hugging Face model named whisper-atco2-medium to GGML format using the convert.py script from the llama.cpp repository. However, when I run the script, I encounter the following error:

TypeError: ‘staticmethod’ object is not callable

Here is the full traceback of the error:

Traceback (most recent call last): File “.\convert.py”, line 1165, in <module> main() File “.\convert.py”, line 1145, in main model_plus = load_some_model(args.model) File “.\convert.py”, line 1071, in load_some_model models_plus.append(lazy_load_file(path)) File “.\convert.py”, line 865, in lazy_load_file return lazy_load_torch_file(fp, path) File “.\convert.py”, line 737, in lazy_load_torch_file model = unpickler.load() TypeError: ‘staticmethod’ object is not callable

I am using the latest version of the llama.cpp repository and PyTorch version 2.0.0+cpu. Can anyone provide guidance on how to resolve this issue and successfully convert the model to GGML format?

Thank you for your help.

@prusnak
Copy link
Collaborator

prusnak commented May 4, 2023

You should use the convert-pt-to-ggml.py script from the whisper.cpp repo: https://github.com/ggerganov/whisper.cpp/blob/master/models/convert-pt-to-ggml.py

If there is an issue with that, please open an issue in the whisper.cpp repo.

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