Skip to content

expect 'max_length' in BELLE-2/Belle-whisper-large-v3-zh/config.json when converting to ggml #585

Description

@XUJiahua

reproduce the error:

git clone https://github.com/openai/whisper
git clone https://github.com/ggerganov/whisper.cpp
git clone https://huggingface.co/BELLE-2/Belle-whisper-large-v3-zh

python whisper.cpp/models/convert-h5-to-ggml.py ./Belle-whisper-large-v3-zh ./whisper .

Traceback (most recent call last):
  File "/Users/jiahua/projects/asr/whisper.cpp/models/convert-h5-to-ggml.py", line 115, in <module>
    fout.write(struct.pack("i", hparams["max_length"]))
                                ~~~~~~~^^^^^^^^^^^^^^
KeyError: 'max_length'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions