Skip to content

Bug: Name Error when running Llava1.5 examples #10190

@JuntaoLiu01

Description

@JuntaoLiu01

What happened?

when running examples Llava1.5,

python ./examples/llava/convert_image_encoder_to_gguf.py -m ../clip-vit-large-patch14-336 --llava-projector ../llava-v1.5-7b/llava.projector --output-dir ../llava-v1.5-7b

the process raise an error:
NameError: name 'KEY_EMBEDDING_LENGTH' is not defined

which happens in convert_image_encoder_to_gguf.py line 204:
fout.add_uint32(k(KEY_EMBEDDING_LENGTH, VISION), v_hparams["hidden_size"])

Name and Version

version: 4020 (9f40989)
built with Apple clang version 13.0.0 (clang-1300.0.29.30) for x86_64-apple-darwin23.6.0

What operating system are you seeing the problem on?

Mac

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-unconfirmedlow severityUsed to report low severity bugs in llama.cpp (e.g. cosmetic issues, non critical UI glitches)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions