Skip to content

Understanding "wrong number of tensors" error when loading Llama3 model. #7457

Description

@eltonjohnfanboy

Hi,

Recently, I've been experimenting with GGUF quantization, but I'm fairly new to it. While quantizing the model Llama3 8B, I encountered the following error: error loading model: done_getting_tensors: wrong number of tensors; expected 578, got 470.

I understand that there seems to be a mismatch between the expected tensors and the actual tensors received when loading the quantized model. However, I would like to understand more deeply why this error occurs and what the root cause is. This issue is particularly puzzling because I was able to successfully quantize the model using llama.cpp, but the error only appears when I attempt to load the model for inference.

If anyone could help me understand this better, I would be really grateful. Thanks!

screenshot_2024-05-21_at_21 10 49 (1)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions