LogiShell store Open app

Store › model › Embeddings

nomic-embed-code-GGUF

by nomic-ai · source Hugging Face · updated 2025-05-01

apache-2.04.1 GB~6 GB RAMsource aliveunlabeled

Llama.cpp Quantizations of Nomic Embed Code: A State-of-the-Art Code Retriever

Add to LogiShell Open in the web IDE

The button opens LogiShell with this card; nothing installs from a link by itself. Inside the app the install goes through lsh models install hf:nomic-ai/nomic-embed-code-GGUF and its progress lives in the Resource Center.

Source and license

Numbers

Numbers as of 2026-10-02 21:01 UTC, from the source API.

Summary

Summary not ready yet: the numbers are here, the text is not. It is written by the collector through the LogiShell model facade when a provider key is present.

Reviews

No reviews yet. Reviews are written inside LogiShell: open this card in the app.

Files

filequantsize
nomic-embed-code.Q2_K.ggufQ2_K2.6 GB
nomic-embed-code.Q3_K_L.ggufQ3_K_L3.6 GB
nomic-embed-code.Q3_K_M.ggufQ3_K_M3.3 GB
nomic-embed-code.Q3_K_S.ggufQ3_K_S3.0 GB
nomic-embed-code.Q4_0.ggufQ4_03.8 GB
nomic-embed-code.Q4_1.ggufQ4_14.2 GB
nomic-embed-code.Q4_K_M.ggufQ4_K_M4.1 GB
nomic-embed-code.Q4_K_S.ggufQ4_K_S3.9 GB
nomic-embed-code.Q5_K_M.ggufQ5_K_M4.7 GB
nomic-embed-code.Q5_K_S.ggufQ5_K_S4.6 GB
nomic-embed-code.Q6_K.ggufQ6_K5.4 GB
nomic-embed-code.Q8_0.ggufQ8_07.0 GB
nomic-embed-code.bf16.ggufBF1613 GB
nomic-embed-code.f16.ggufF1613 GB
nomic-embed-code.f32.ggufF3226 GB

From the source README

Llama.cpp Quantizations of Nomic Embed Code: A State-of-the-Art Code Retriever

Blog | Technical Report | AWS SageMaker | Atlas Embedding and Unstructured Data Analytics Platform

Using llama.cpp commit 11683f579 for quantization.

Original model: nomic-embed-code

Usage

This model can be used with the llama.cpp server and other software that supports llama.cpp embedding models.

Queries embedded with `nomic-embed-code` must begin with the following prefix:
```
Represent this query for searching relevant code:
```

For example, the code below shows how to use the prefix to embed user questions, e.g. in a RAG application.

Start a llama.cpp server:
```
llama-server -m nomic-embed-code.Q4_0.gguf --embeddings --pooling last
```

And run this code:
```python
import requests
from textwrap import dedent

def dot(va, vb):
return sum(a*b for a, b in zip(va, vb))
def embed(texts):
resp = requests.post('http://localhost:8080/v1/embeddings', json={'input': texts}).json()
return [d['embedding'] for d in resp['data']]

docs = [
dedent("""\
def fn(n):
if n < 0:
raise ValueError
return 1 if n == 0 else n * fn(n - 1)
""").strip(),
dedent("""\
def fn(n):
print(("Fizz" * (n % 3 == 0) + "Buzz" * (n % 5 == 0)) or n)
""").strip(),
]
docs_embed = embed(docs)

Card id model:hf:nomic-ai/nomic-embed-code-GGUF · collected 2026-10-02 21:01 UTC · JSON