Model reference · open weights

ogma-small

Available as managed deployment Licence fee Embeddings axiotic Embeddings 1 variants 557 dl/mo

ogma-small is an open-weight embedding model from axiotic. 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 byaxiotic
TypeEmbedding models
TaskEmbeddings
Parameters (lead)9M
Context1k tokens
Runs withogma
Released2026-04-23
Popularity557 downloads / month
LicenceCommercial licence needed

About

What ogma-small is

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.

Read the full model card

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:

From the published model card. Full card on the HuggingFace links in the sidebar.

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

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys ogma-small for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (ogma-small 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":"ogma-small","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.

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