Views
No views yet
nomic-ai/modernbert-embed-base with every GeGLU feed-forward block replaced by a
sigmoid-gated Yat-kernel MLP (an alignment / inverse-distance kernel primitive, no GELU/GeGLU).
Only the 22 feed-forward blocks are changed; attention, embeddings and norms are the base model's.| Task | base modernbert-embed-base (GeGLU) | this model (Yat) |
|---|---|---|
| STSBenchmark | 0.835 | 0.815 |
| STS12 | 0.676 | 0.718 |
| STS16 | 0.835 | 0.814 |
| average | 0.782 | 0.782 |
trust_remote_code=True). The bundled custom
architecture (modeling_yatmodernbert.py) is loaded automatically.1from sentence_transformers import SentenceTransformer
2m = SentenceTransformer("mlnomad/modernbert-embed-base-yat", trust_remote_code=True)
3emb = m.encode(["A man is eating food.", "A man is eating a meal."])g(x) = ( softplus(a) * (x·W + b)^2 / (||x - W||^2 + exp(le)) * sigmoid(gate(x)) ) @ A + cd -> 4d -> d at the same hidden width.