Skip to content

Error loading embedding model nomic-embed-text-v1.5.f16.gguf #98

@taksan

Description

@taksan

I'm running the following code:

ModelParameters modelParams = new ModelParameters()
		.setModel("models/nomic-embed-text-v1.5.f16.gguf")
                .setBatchSize(8192)
                .setUbatchSize(8192);

LlamaModel model = new LlamaModel(modelParams)

But it's failing to load the model. I noticed the following issue in the above output, which seems to indicate the error:

/work/build/_deps/llama.cpp-src/src/llama.cpp:8666: GGML_ASSERT(strcmp(res->name, "result_output") == 0 && "missing result_output tensor") failed

A similar command line execution with latest llamacpp's llama-embedding works:

llama-embedding  -m nomic-embed-text-v1.5.f16.gguf -b 8192   -p 'search_query: What is TSNE?'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions