Model reference · open weights

ogma-small

Embeddings axiotic Embeddings 1 build Non-commercial 557 dl/mo

ogma-small is an open-weight embedding model from axiotic. ogma-small (FP32) weighs 17 MB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • ogma-small is an English text embedding model developed by axiotic for semantic search, retrieval, and clustering.
  • It features 8.6M parameters, a 1024-token context length, and supports Matryoshka dimensions.
  • The model is licensed under CC-BY-NC-4.0.

Summary of the axiotic/ogma-small model card, 2026-10-01

What it is

Released byaxiotic
Released2026-04-23
Parameters9M
VRAM17 MB for the weights

What it runs on

Memory and cards for ogma-small (FP32)

17 MBweights, file size
1.1 GBruntime overhead
CardRunsMemory
RTX 3060 12 GBfits11.6 GB
RTX 4060 Ti 16 GBfits15.4 GB
RTX 3090 24 GBfits23.4 GB
RTX 4090 24 GBfits23.4 GB
RTX 5090 32 GBfits31.0 GB
L40S 48 GBfits44.0 GB
A100 80 GBfits78.2 GB
H100 80 GBfits78.1 GB
RTX PRO 6000 Blackwell 96 GBfits93.8 GB
DGX Spark (GB10) 128 GB unifiedfits107 GB
H200 141 GBfits138 GB
B200 180 GBfits176 GB

From the model card

What axiotic says about ogma-small

Read the model card

Efficient English text embedding model for semantic search, RAG, vector search, retrieval, clustering, classification, STS, and agent memory — MTEB 56.32, 8.6M parameters, 1024-token context

Maintained successor (MIT): the permissively licensed model in this family — including the CoreML build that used to sit under coreml/ here — is axiotic/open-ogma-small. This repository's own weights remain CC-BY-NC-4.0 and it no longer hosts that artifact.

Ogma Small is the flagship efficiency model in the family. At 8.6M parameters it scores 56.32 MTEB in our canonical 66-task Ogma paper results, while using only 38% of MiniLM-L6-v2's parameters, running 1.75× faster on CPU, and handling inputs 4× longer (1024 vs 256 tokens). Purpose-built to be the drop-in for every place you currently reach for MiniLM.

Why the name Ogma?

Ogma is named after Ogma (also written Oghma), the Irish god associated with eloquence and credited in myth with inventing Ogham, an early alphabet for encoding language into symbols. That is the core job of an embedding model: turn language into compact vectors that machines can search, compare, cluster, and reason over.


Use cases

ogma-small is the default efficiency model for semantic search, RAG retrieval, agent memory, vector databases, document retrieval, text classification, clustering, STS / sentence similarity, and lightweight reranking pipelines. It is aimed at teams looking for a small, fast MiniLM-style embedding model with longer context and strong MTEB quality.

Good fits:

  • On-device or local-first applications where MiniLM-class quality is useful but model size, CPU latency, and privacy matter.
  • Production RAG systems that need affordable embeddings for documents, chunks, tickets, chats, and internal knowledge bases.
  • Agent memory and tool-use systems where frequent embedding calls should stay cheap and local when possible.
  • Vector search at scale where smaller models and Matryoshka sub-dimensions can reduce index size and query cost.
  • Classification and clustering features for safety filters, routing, topic grouping, deduplication, and analytics.

Choose ogma-small when you want the best balance of quality, speed, size, and deployability across edge, local, and server workloads.


Highlights

  • 🏆 MTEB avg 56.32 — canonical Ogma paper result over 66/66 MTEB English tasks
  • ⚡ 1.75× faster than MiniLM on single-threaded CPU inference (92.9 vs 53.1 docs/s)
  • 📏 1024-token context — 4× longer than all-MiniLM-L6-v2 (256 tokens)
  • 🔀 Symmetric routing via task tokens — encode everything with [SYM], or use [QRY]/[QRY] for retrieval (queries and documents both encoded with task="qry"); benchmark both routes on your task
  • 📐 Matryoshka dims: [256, 128, 64, 32] — one model, any precision
  • 🛡️ +4.0% F1 on prompt injection detection vs MiniLM (same architecture series)

Performance

MTEB English — 66/66 tasks (category-averaged)

Benchmarked with MTEB v2.10.7 on the standard 66-task English benchmark using category averaging (same methodology as the MTEB leaderboard).

Categoryogma-smallall-MiniLM-L6-v2Δ vs MiniLM
Classification66.4962.62+3.87
Clustering40.6941.94-1.25
PairClassification82.9182.37+0.54
Reranking50.5158.04-7.53
Retrieval42.0541.95+0.10
STS82.0078.90+3.10
Summarization29.5930.81-1.22
Overall56.3256.09+0.23

Why choose Ogma Small?

ogma-small is the default recommendation for most use cases. It is MiniLM-class quality while being faster, smaller, and context-aware. Use ogma-base when you need the extra quality margin; use ogma-mini when you need to go sub-4M parameters.

Safety — Toxicity & Prompt Injection Detection

Evaluated on the Ogma transformer architecture (same family). Embeddings are extracted then fed to a logistic regression (LR) or MLP classifier head — the embedding model itself is not fine-tuned. Evaluated against all-MiniLM-L6-v2 as baseline.

1. Jigsaw Toxic Comment Classification

Dataset: Arsive/toxicity_classification_jigsaw — Binary toxicity classification Train: 25,960 · Test: 6,490

ModelClassifierAccuracyF1PrecisionRecallAUC-ROC
OgmaLogReg89.12%88.26%89.09%87.44%95.74%
OgmaMLP88.91%87.98%89.14%86.85%95.92%
MiniLMLogReg87.32%86.25%87.46%85.07%94.96%
MiniLMMLP91.71%91.24%90.13%92.39%97.16%

Ogma (LR) leads MiniLM (LR) by +2.01% F1. MiniLM (MLP) leads on this dataset — the additional training data (25K samples) allows the MLP to compensate for MiniLM's slightly weaker base representations.

2. Prompt Injection Detection — deepset/prompt-injections

Dataset: deepset/prompt-injections — Binary injection detection Train: 546 · Test: 116 (low-data regime)

ModelClassifierAccuracyF1PrecisionRecallAUC-ROC
OgmaLogReg86.21%84.62%100.0%73.33%97.77%
OgmaMLP90.52%90.27%96.23%85.0%98.1%
MiniLMLogReg82.76%80.39%97.62%68.33%94.52%
MiniLMMLP87.07%86.24%95.92%78.33%93.96%

Ogma leads across both classifiers: +4.03% F1 (MLP), +4.23% F1 (LogReg). Ogma's representations are better separated in the low-data regime — it achieves 100% precision with LogReg, meaning zero false positives.

3. Prompt Injection Detection — neuralchemy/Prompt-injection-dataset

Dataset: neuralchemy/Prompt-injection-dataset — Binary injection detection Train: 4,391 · *Test:

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

Benchmarks

Reported results

As published on the model card: the maker's own numbers, not measured by AxForge.

TaskDatasetMetricScore
stsMTEB STSBenchmarkcosine_spearman85.540
classificationMTEB AmazonPolarityClassificationaccuracy76.720
clusteringMTEB RedditClusteringv_measure43.940
pair-classificationMTEB TwitterSemEval2015cos_sim_ap68.490
rerankingMTEB MindSmallRerankingmap30.550
retrievalMTEB MSMARCOndcg_at_1034.310
summarizationMTEB SummEvalcos_sim_spearman29.590
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms