Model reference · open weights

nomic-embed-code

nomic-embed-code is an open-weight embedding model from nomic-ai, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.

Embeddings nomic-ai 2 variants 385k downloads/mo
Request this model on EU hardware All served models Not on the shared API today — deployed on request.

About

What nomic-embed-code is

Nomic Embed Code: A State-of-the-Art Code Retriever Blog | Technical Report | AWS SageMaker | Atlas Embedding and Unstructured Data Analytics Platform nomic-embed-code is a state-of-the-art code embedding model that excels at code retrieval tasks: - High Performance: Outperforms Voyage Code 3 and OpenAI Embed 3 Large on CodeSearchNet - Multilingual Code Support: Trained for multiple programming languages (Python, Java, Ruby, PHP, JavaScript, Go) - Advanced Architecture: 7B parameter code embedding model - Fully Open-Source: Model weights, training data, and evaluation code released Model Architecture - Total Parameters: 7B - Training Approach: Trained on the CoRNStack dataset with dual-consistency filtering and progressive hard negative mining - Supported Languages: Python, Java, Ruby, PHP, JavaScript, and Go Usage Guide Installation You can install the necessary dependencies with: Transformers SentenceTransformers CoRNStack Dataset Curation Starting with the deduplicated Stackv2, we create text-code pairs from function docstrings and respective code. We filtered out low-quality pairs where the docstring wasn't English, too short, or that contained URLs, HTML tags, or invalid characters. We additionally kept docstrings with text lengths of 256 tokens or longer to help the model learn long-range dependencies. After the initial filtering, we used dual-consistency filtering to remove potentially noisy examples. We embed each docstring and code pair and compute the similarity between each docstring and every code example. We remove pairs from the dataset if the corresponding code example is not found in the top-2 most similar examples for a given docstring. During training, we employ a novel curriculum-based hard negative mining strategy to ensure the model learns from challenging examples. We use a softmax-based sampling strategy to progressively sample hard negatives with increasing difficulty over time. Join the Nomic Community - Nomic Embed Ecosystem: https://www.nomic.ai/embed - Website: https://nomic.ai - Twitter: https://twitter.com/nomicai - Discord: https://discord.gg/myY5YDR8z8 Citation If you find the model, dataset, or training code useful, please cite o

Summarised from the published model card. Read the full card on the HuggingFace links below.

Specifications

What it is

Makernomic-ai
TypeEmbedding models
Parameters (lead)7.1B
Context32k tokens
Variants2
Runs withsentence-transformers
Based onQwen/Qwen2.5-Coder-7B-Instruct
Released2025-03-24
Popularity385k downloads / month
Likes124
LicenceOpen weights

How it works

How embedding models work

Your textsentence / documentEncodermaps meaningVectorlist of numbersAn embedding model turns text into a vector, so similar meanings sit close together — the basis of search and RAG.

Variants

Sizes & precisions

Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.

VariantParamsPrecisionVRAMFits 16 GBWeights
nomic-embed-code7.1BBF16~16.3 GBWeights ↗
nomic-embed-code-GGUFGGUFWeights ↗

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys nomic-embed-code for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (nomic-embed-code below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"nomic-embed-code","input":"text to embed"}'

Details

Languages, data & research

Trained / evaluated on

nomic-ai/cornstack-python-v1 nomic-ai/cornstack-javascript-v1 nomic-ai/cornstack-java-v1 nomic-ai/cornstack-go-v1 nomic-ai/cornstack-php-v1 nomic-ai/cornstack-ruby-v1

Tags

sentence-transformers safetensors qwen2 sentence-similarity feature-extraction dataset:nomic-ai/cornstack-python-v1 dataset:nomic-ai/cornstack-javascript-v1 dataset:nomic-ai/cornstack-java-v1 dataset:nomic-ai/cornstack-go-v1 dataset:nomic-ai/cornstack-php-v1 dataset:nomic-ai/cornstack-ruby-v1 text-embeddings-inference endpoints_compatible gguf

Papers

Licence

Open weights

Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗

Sources

Weights & code

Want nomic-embed-code on EU-owned hardware?

Request this model on EU hardware See what’s served now

Explore

More embedding models

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms