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

trying to convert huggingface whisper model to pytorch #189

Open
nullonesix opened this issue Jul 8, 2024 · 1 comment
Open

trying to convert huggingface whisper model to pytorch #189

nullonesix opened this issue Jul 8, 2024 · 1 comment

Comments

@nullonesix
Copy link

i used the converter here:

https://github.com/pytorch-labs/gpt-fast/blob/main/scripts/convert_hf_checkpoint.py

but i get this error when trying to convert my huggingface checkpoint:

swarms@dpm4:~/gpt-fast/scripts$ python3 converthf_checkpoint.py --checkpoint_dir /home/swarms/checkpoint-4000/ --model
name large-v3
Traceback (most recent call last):
  File "/home/swarms/gpt-fast/scripts/convert_hf_checkpoint.py", line 132, in <module>
    convert_hf_checkpoint(
  File "/home/swarms/.local/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, kwargs)
  File "/home/swarms/gpt-fast/scripts/convert_hf_checkpoint.py", line 31, in convert_hf_checkpoint
    config = ModelArgs.from_name(model_name)
  File "/home/swarms/gpt-fast/model.py", line 55, in from_name
    return cls(transformer_configs[config[0]])
IndexError: list index out of range
@yanboliang
Copy link
Contributor

We only support transformer based models, check the list of model we supported at:

transformer_configs = {

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