LLamaSharp icon indicating copy to clipboard operation
LLamaSharp copied to clipboard

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

Open emulk opened this issue 1 year ago • 5 comments

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

emulk avatar Jul 29 '24 12:07 emulk

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

martindevans avatar Jul 29 '24 14:07 martindevans

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

CastIehard avatar Jul 31 '24 10:07 CastIehard

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.

martindevans avatar Jul 31 '24 11:07 martindevans

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

m0nsky avatar Aug 06 '24 08:08 m0nsky

This issue has been automatically marked as stale due to inactivity. If no further activity occurs, it will be closed in 7 days.

github-actions[bot] avatar Apr 29 '25 00:04 github-actions[bot]