Model reference · open weights
splade-code is an open-weight embedding model from naver. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | naver |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Parameters (lead) | 596M |
| Context | 40k tokens |
| Runs with | sentence-transformers |
| Released | 2026-02-24 |
| Popularity | 543 downloads / month |
| Licence | Commercial licence needed |
About
SPLADE-Code-06B is a sparse retrieval model designed for code retrieval tasks. It is the top-performing models on MTEB for models below 1B (at time of writing, Feb 2026).
Install Sentence Transformers:
pip install sentence_transformers
from sentence_transformers import SparseEncoder
model = SparseEncoder("naver/splade-code-06B", trust_remote_code=True)
queries = [
"SELECT *\nFROM Student\nWHERE Age = (\nSELECT MAX(Age)\nFROM Student\nWHERE Group = 'specific_group'\n)\nAND Group = 'specific_group';"
]
query_embeddings = model.encode(queries)
print(query_embeddings.shape)
# torch.Size([1, 151936])
sparsity = model.sparsity(query_embeddings)
print(sparsity)
# {'active_dims': 1231.0, 'sparsity_ratio': 0.991897904380792}
decoded = model.decode(query_embeddings, top_k=10)
print(decoded)
# [[
# ("Ġgroup", 2.34375),
# ("Ġage", 2.34375),
# ("ĠAge", 2.34375),
# ("ĠStudent", 2.296875),
# ("Ġspecific", 2.296875),
# ("_group", 2.296875),
# ("ĠMax", 2.21875),
# ("Ġmax", 2.21875),
# ("Ġstudent", 2.203125),
# ("ĠGroup", 2.1875),
# ]]
pip install transformers
from transformers import AutoModelForCausalLM, AutoModel
import os
import torch
splade = AutoModelForCausalLM.from_pretrained("naver/splade-code-06B", trust_remote_code=True)
device = (torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu"))
splade.to(device)
splade.eval()
queries = ["SELECT *\nFROM Student\nWHERE Age = (\nSELECT MAX(Age)\nFROM Student\nWHERE Group = 'specific_group'\n)\nAND Group = 'specific_group';"]
bow_dict = splade.encode(queries, prompt_type="query", top_k_q=10, return_dict=True, print_dict=True)
+--------------------------------------------------------------------+
| TOP ACTIVATED WORDS |
+--------------------------------------------------------------------+
* INPUT: SELECT *
FROM Student
WHERE Age = (
SELECT MAX(Age)
FROM Student
WHERE Group = 'specific_group'
)
AND Group = 'specific_group';
Ġgroup | ████████████████████ 2.34
Ġage | ███████████████████ 2.33
ĠAge | ███████████████████ 2.33
_group | ███████████████████ 2.30
ĠStudent | ███████████████████ 2.30
Ġspecific | ███████████████████ 2.28
Ġmax | ██████████████████ 2.22
ĠMax | ██████████████████ 2.22
Ġstudent | ██████████████████ 2.20
ĠGroup | ██████████████████ 2.19
From the published model card. Full card on the HuggingFace links in the sidebar.
Using it via the API
Once AxForge deploys splade-code for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (splade-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":"splade-code","input":"text to embed"}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.