nomic-ai · embedding

nomic-embed-code

nomic-ai/nomic-embed-code

nomic-embed-code at Q4_K_M is exactly 4,376,511,808 bytes (4.08 GiB / 4.38 GB) — an effective 4.952 bits per weight, not the nominal 4.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
7.1B
Architecture
qwen2
28 layers
Context
32,768
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_M2.37 GiB2,546,165,8242.881bartowski
Q2_K2.64 GiB2,837,112,1283.210nomic-ai
Q2_K2.64 GiB2,837,114,9443.210bartowski
IQ3_XXS2.68 GiB2,880,337,9843.259bartowski
Q2_K_L2.77 GiB2,969,106,4963.359bartowski
IQ3_XS2.90 GiB3,112,079,4243.521bartowski
Q3_K_S3.03 GiB3,258,189,1203.687nomic-ai
Q3_K_S3.03 GiB3,258,191,9363.687bartowski
IQ3_M3.11 GiB3,339,835,4563.779bartowski
Q3_K_M3.33 GiB3,574,211,9044.044nomic-ai
Q3_K_M3.33 GiB3,574,214,7204.044bartowski
Q3_K_L3.59 GiB3,854,280,0004.361nomic-ai
Q3_K_L3.59 GiB3,854,282,5604.361lmstudio-community
Q3_K_L3.59 GiB3,854,282,8164.361bartowski
IQ4_XS3.66 GiB3,928,944,7044.445bartowski
Q4_03.84 GiB4,124,828,9924.667nomic-ai
IQ4_NL3.85 GiB4,131,254,3364.674bartowski
Q4_03.85 GiB4,137,562,1764.681bartowski
Q4_K_S3.87 GiB4,151,207,2324.697nomic-ai
Q4_K_S3.87 GiB4,151,210,0484.697bartowski
Q4_K_M4.08 GiB4,376,511,8084.952nomic-ai
Q4_K_M4.08 GiB4,376,514,3684.952lmstudio-community
Q4_K_M4.08 GiB4,376,514,6244.952bartowski
Q4_K_L4.20 GiB4,508,506,1765.101bartowski
Q4_14.22 GiB4,532,659,5205.128nomic-ai
Q4_14.22 GiB4,532,662,3365.128bartowski
Q5_K_S4.60 GiB4,940,490,0485.590nomic-ai
Q5_K_S4.60 GiB4,940,492,8645.590bartowski
Q5_K_M4.72 GiB5,070,144,8325.737nomic-ai
Q5_K_M4.72 GiB5,070,147,6485.737bartowski
Q5_K_L4.84 GiB5,202,139,2005.886bartowski
Q6_K5.41 GiB5,807,129,9206.570nomic-ai
Q6_K5.41 GiB5,807,132,4806.570lmstudio-community
Q6_K5.41 GiB5,807,132,7366.570bartowski
Q6_K_L5.53 GiB5,939,124,2886.720bartowski
Q8_07.00 GiB7,519,464,7688.508nomic-ai
Q8_07.00 GiB7,519,467,3288.508lmstudio-community
Q8_07.00 GiB7,519,467,5848.508bartowski
BF1613.18 GiB14,147,857,72816.008nomic-ai
F1613.18 GiB14,147,857,72816.008nomic-ai

No KV cache

architectural, not a gap in our data

This architecture allocates no KV cache. Encoder and embedding models process their input in one pass rather than generating token by token, so there is nothing to carry forward between steps and memory does not grow with context. Its footprint is the weights plus a working buffer, and that is the whole story.

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 3.70 GiB. The real file is 4.08 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
28
Attention heads
28
KV heads
4
Head dim
128
Hidden size
3584
Vocab
152,064
Sliding window
none
SWA period
MLA
no
Experts
Experts per token
use_sliding_window
false

Questions people ask

How much VRAM does nomic-embed-code need?
Q4_K_M is exactly 4,376,511,808 bytes (4.08 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
Which quantization of nomic-embed-code should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.