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

Error Loading LLAMA 3.1 llama_model_load: error loading model: done_getting_tensors: wrong number of tensors; expected 292, got 291[BUG]: #875

Open
emulk opened this issue Jul 29, 2024 · 4 comments

Comments

@emulk
Copy link

emulk commented Jul 29, 2024

Description

[BUG]: Error Loading LLAMA 3.1
llama_model_load: error loading model: done_getting_tensors: wrong number of tensors; expected 292, got 291

Reproduction Steps

Error Loading LLAMA 3.1 .gguf model

Environment & Configuration

  • Operating system: Windows 10
  • .NET runtime version: .net 8
  • LLamaSharp version:
  • CUDA version (if you are using cuda backend):
  • CPU & GPU device: 13th Gen Intel(R) Core(TM) i7-13850HX, 2304 Mhz, 20 Core(s), 28 Logical Processor(s)

Known Workarounds

No response

@martindevans
Copy link
Member

Could you try it with this branch, that should include the llama.cpp fixes for llama 3.1.

@CastIehard
Copy link

I am having the exact same problem also using Windows 10.:

llama_model_load: error loading model: done_getting_tensors: wrong number of tensors; expected 292, got 291
llama_load_model_from_file: failed to load model

@martindevans
Copy link
Member

Was that with the PR I linked above? It's not expected that llama 3.1 will work with master or the current nuget packages.

@m0nsky
Copy link
Contributor

m0nsky commented Aug 6, 2024

@emulk @CastIehard this should now be fixed in the LLamaSharp 0.15 release from 3 days ago.

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

4 participants