unknown model architecture: 'gemma-embedding'

Open
#2,065 5 comments 9 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
c, python

Research direction

The issue is about adding support for the 'gemma-embedding' architecture to llama-cpp-python. First, check the llama.cpp repository to see how the architecture was added in the linked release. Then, examine the Python bindings in this repository, likely in the C/C++ extension code, to update the model loading logic. Run the existing tests to ensure compatibility, and test with the provided GGUF model file to verify the fix.

Written by the indexing model from the issue text.

Description

I am running llama-cpp-python Version: 0.3.16

Trying to load the recently released model embeddinggemma-300M I get the following error message:

llama_model_load: error loading model: error loading model architecture: unknown model architecture: 'gemma-embedding'

Support for this model architecture has been added to llama.cpp in this build: https://github.com/ggml-org/llama.cpp/releases/tag/b6384

Could you please align llama-cpp-python to reflect this addition ?

Dominant language
Python
Stars
10.7k
Forks
1.5k
Avg merge
1h 40m
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from abetlen/llama-cpp-python

All issues in abetlen/llama-cpp-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.