Instructions to use flintglass/PrismEmbed-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use flintglass/PrismEmbed-8B with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("flintglass/PrismEmbed-8B") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Flintglass PrismEmbed-8B
#1 Flagship 8B 32K-Context, 100+ Language, 4096d Matryoshka, 100% Commercial-Safe (Zero MS MARCO!) Dense Embedding Model โ trained on Apache-2.0 Qwen/Qwen3-Embedding-8B with official instruction-prefix alignment, cross-GPU All-Gathered InfoNCE + soft listwise KL-distillation from Apache-2.0 Qwen/Qwen3-Reranker-4B across 100% permissive commercial-safe long-context groups, and WiSE-FT model souping (alpha=0.50).
Sets a NEW #1 All-Time Dense Retrieval Record across the entire Flintglass Stack (66.13% All-7 NDCG@10, +3.33 pts over Base 8B, +9.23 pts over BAAI/bge-m3):
- LongDoc-8K Dense Retrieval:
65.97%->89.21%(+23.24 pts!!) - BEIR-5 Zero-Shot Average:
55.22%(zero degradation vs Base55.27%; beats Base onSciFact 74.05%andNFCorpus 37.33%!) - Mr.TyDi (11 Languages):
97.32%->97.59%(+0.27 pts) - Extreme Matryoshka (MRL) Compression:
512d(64.51%, 8ร smaller index) AND even256d(63.09%, 16ร smaller index) BOTH beat full4096dBaseQwen/Qwen3-Embedding-8B(62.80%)!128d(59.82%, 32ร smaller index) beats full1024dBAAI/bge-m3(56.90%) by +2.92 pts!
Part of the Flintglass Prism Open-Source Agent & RAG Stack ยท Complete Zero-MS-MARCO Suite:
PrismEmbed-0.6B(61.67%) ยทPrismEmbed-4B(65.18%) ยทPrismEmbed-8B(66.13%) ยท GGUF Quantizations:flintglass/PrismEmbed-8B-GGUF(F16,Q8_0,Q4_K_M)
Verified Zero-Shot 7-Benchmark Full-Corpus Leaderboard (NDCG@10 %)
Evaluated identically with Last-Token Pooling + L2 Normalization (max_length=4096) across 7 strictly held-out full-corpus benchmarks (zero overlap with training data):
| Model | Dim | Ctx | SciFact | NFCorpus | FiQA | ArguAna | TREC-COVID | BEIR-5 Avg | Mr.TyDi (11L) | LongDoc-8K | All-7 Avg |
|---|---|---|---|---|---|---|---|---|---|---|---|
BAAI/bge-m3 |
1024 | 8K | 63.36 | 31.34 | 40.31 | 48.03 | 55.28 | 47.66 | 93.78 | 66.22 | 56.90 |
flintglass/PrismEmbed-0.6B |
1024 | 32K | 68.07 | 34.48 | 36.12 | 47.09 | 69.51 | 51.05 | 94.01 | 82.45 | 61.67 |
Qwen/Qwen3-Embedding-8B (Base) |
4096 | 32K | 74.01 | 37.04 | 40.73 | 49.30 | 75.25 | 55.27 | 97.32 | 65.97 | 62.80 |
flintglass/PrismEmbed-4B |
2560 | 32K | 74.54 | 37.55 | 39.67 | 46.66 | 74.93 | 54.67 | 96.96 | 85.98 | 65.18 |
flintglass/PrismEmbed-8B |
4096 | 32K | 74.05 | 37.33 | 40.65 | 48.90 | 75.16 | 55.22 | 97.59 | 89.21 | 66.13 |
Delta vs Base Qwen3-Embedding-8B |
โ | โ | +0.04 | +0.29 | -0.08 | -0.40 | -0.09 | -0.05 | +0.27 | +23.24 | +3.33 |
Matryoshka (MRL) Truncation Performance (All-7 Avg NDCG@10 %)
| Truncated Dimension | Index Compression | Qwen3-Embedding-8B Base |
flintglass/PrismEmbed-8B |
Delta vs Base |
|---|---|---|---|---|
| 4096d (Full) | 1ร | 62.80% | 66.13% | +3.33 |
| 2048d | 2ร | 62.81% | 65.92% | +3.11 |
| 1024d | 4ร | 62.17% | 65.22% | +3.05 |
| 512d | 8ร | 61.43% | 64.51% | +3.08 |
| 256d | 16ร | 60.11% | 63.09% | +2.98 |
| 128d | 32ร | 57.61% | 59.82% | +2.21 |
Quickstart (sentence-transformers)
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("flintglass/PrismEmbed-8B", trust_remote_code=True)
queries = ["How does Matryoshka Representation Learning reduce vector DB RAM?"]
docs = [
"Matryoshka Representation Learning trains embeddings so leading prefixes (e.g., 128d or 256d) preserve retrieval quality, shrinking vector RAM by 16x-32x.",
"The Russian nesting doll was first carved in 1890.",
]
q_emb = model.encode(queries, prompt_name="query", normalize_embeddings=True)
d_emb = model.encode(docs, normalize_embeddings=True)
print("Full 4096d cosine:", (q_emb @ d_emb.T)[0].tolist())
# 16x smaller 256d Matryoshka vectors (still beats full 4096d Base!)
import numpy as np
q_256 = q_emb[:, :256] / np.linalg.norm(q_emb[:, :256], axis=-1, keepdims=True)
d_256 = d_emb[:, :256] / np.linalg.norm(d_emb[:, :256], axis=-1, keepdims=True)
print("MRL 256d cosine:", (q_256 @ d_256.T)[0].tolist())
Training & Provenance
- Base Model:
Qwen/Qwen3-Embedding-8B(Apache-2.0, 32K context, 4096d) - Teacher:
Qwen/Qwen3-Reranker-4B(Apache-2.0) - Training Corpus: Strictly permissive commercial-safe long-context & multilingual groups (zero MS MARCO, zero CC-BY-NC, zero proprietary distillation).
- Method: Prefix-aligned LoRA (
r=32) DDP (InfoNCE + Listwise Teacher KL + 6-scale MRL4096/2048/1024/512/256/128) + WiSE-FT Model Soup (alpha=0.50). - License: Apache-2.0
- Downloads last month
- -