Model reference · open weights
EdgeCoder-Multilingual-61M is an open-weight embedding model from knowledgator. EdgeCoder-Multilingual-61M (BF16) weighs 284 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.
Summary of the knowledgator/EdgeCoder-Multilingual-61M model card, 2026-11-26
What it is
| Released by | knowledgator |
|---|---|
| Released | 2026-10-26 |
| Parameters | 142M |
| VRAM | 284 MB for the weights |
What it runs on
| Card | Runs | Memory |
|---|---|---|
| RTX 3060 12 GB | fits | 11.6 GB |
| RTX 4060 Ti 16 GB | fits | 15.4 GB |
| RTX 3090 24 GB | fits | 23.4 GB |
| RTX 4090 24 GB | fits | 23.4 GB |
| RTX 5090 32 GB | fits | 31.0 GB |
| L40S 48 GB | fits | 44.0 GB |
| A100 80 GB | fits | 78.2 GB |
| H100 80 GB | fits | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | fits | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | fits | 107 GB |
| H200 141 GB | fits | 138 GB |
| B200 180 GB | fits | 176 GB |
From the model card
EdgeCoder-Multilingual-61M is a compact multilingual text encoder (61M parameters, 16 layers) for 46 languages, with a context of up to 8192 tokens. It is pre-trained with ModernELECTRA: replaced-token detection (RTD), as in ELECTRA and DeBERTaV3, plus a boundary-window reconstruction task.
RTD encoders are strong on classification but usually weak as backbones for embedding models. EdgeCoder-Multilingual-61M keeps the classification quality of RTD and can also be fine-tuned into an embedding model. It is about half the size of other small multilingual encoders (118M to 141M parameters).
| Architecture | DeBERTa-v2 (disentangled relative attention, no absolute positions) |
| Layers / hidden / FFN / heads | 16 / 384 / 1536 / 6 |
| Token embedding | factorized: 128-d table with a linear projection to 384 |
| Parameters | 61.0M (28.4M without the embedding table) |
| Maximum sequence length | 8192 tokens |
| Tokenizer | mDeBERTa-v3 SentencePiece (251,000 tokens) |
| Languages | 46 |
The repository contains the discriminator encoder. It has no masked-language-model head, so it is meant for fine-tuning and feature extraction, not for fill-mask.
Arabic, Belarusian, Bengali, Bosnian, Bulgarian, Chinese (Mandarin), Croatian, Czech, Danish, Dutch, English, Estonian, Finnish, French, German, Greek, Hebrew, Hindi, Hungarian, Indonesian, Irish, Italian, Japanese, Korean, Latin, Latvian, Lithuanian, Macedonian, Malay, Maltese, Norwegian Bokmål, Polish, Portuguese, Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swahili, Swedish, Turkish, Ukrainian, Urdu, Vietnamese, Yiddish.
English is the largest single language (about 47% of the pre-training tokens). The other languages are sampled with shares proportional to the square root of their available data.
The checkpoint is a standard DeBERTa-v2 model and loads with transformers:
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("knowledgator/EdgeCoder-Multilingual-61M")
model = AutoModel.from_pretrained("knowledgator/EdgeCoder-Multilingual-61M")
inputs = tokenizer("EdgeCoder — компактний багатомовний енкодер.", return_tensors="pt")
outputs = model(**inputs)
hidden = outputs.last_hidden_state # (batch, seq_len, 384)
For fine-tuning, use the usual task heads, for example AutoModelForSequenceClassification or AutoModelForTokenClassification.
The standard DeBERTa attention needs memory that grows quadratically with the sequence length. For long inputs, we recommend FlashDeBERTa, the implementation the model was trained with. It loads the same checkpoint:
pip install flashdeberta -U
import torch
from transformers import AutoTokenizer
from flashdeberta import FlashDebertaV2Model
tokenizer = AutoTokenizer.from_pretrained("knowledgator/EdgeCoder-Multilingual-61M")
model = FlashDebertaV2Model.from_pretrained("knowledgator/EdgeCoder-Multilingual-61M").to("cuda")
inputs = tokenizer(long_text, truncation=True, max_length=8192, return_tensors="pt").to("cuda")
with torch.no_grad():
outputs = model(**inputs)
FlashDeBERTa also provides heads for sequence and token classification, question answering and multiple choice.
All numbers are from the paper. Baselines were run with the same protocols.
Single seed, best run of a hyperparameter sweep that follows the Ettin protocol.
| Model | Params | CoLA | SST-2 | MRPC | STS-B | QQP | MNLI | QNLI | RTE | Avg |
|---|---|---|---|---|---|---|---|---|---|---|
| mDistilBERT | 134.7M | 34.7 | 89.4 | 90.5 | 87.5 | 86.6 | 79.0 | 87.5 | 73.3 | 77.5 |
| Multilingual MiniLM | 117.7M | 25.4 | 91.6 | 91.3 | 88.6 | 87.7 | 82.1 | 89.7 | 75.8 | 78.3 |
| mmBERT-small | 140.5M | 61.8 | 93.1 | 91.6 | 90.3 | 88.6 | 85.8 | 91.9 | 81.9 | 84.7 |
| EdgeCoder-Multilingual-61M | 61.0M | 58.3 | 91.4 | 92.1 | 90.2 | 91.5 | 84.8 | 91.2 | 81.6 | 85.1 |
Models are fine-tuned on English and evaluated on the other languages. The learning rate and the checkpoint are selected on the English dev set only. Single seed.
On the 26 XTREME languages that the model was pre-trained on:
| Model | Params | XNLI | PAWS-X | XCOPA | XQuAD | MLQA | TyDiQA | WikiANN | UDPOS | Avg |
|---|---|---|---|---|---|---|---|---|---|---|
| mDistilBERT | 134.7M | 60.8 | 79.6 | 53.5 | 50.1 | 45.5 | 40.3 | 59.7 | 72.5 | 57.7 |
| Multilingual MiniLM | 117.7M | 71.1 | 83.2 | 58.8 | 67.2 | 61.1 | 58.5 | 58.9 | 79.4 | 67.3 |
| mmBERT-small | 140.5M | 73.8 | 85.4 | 62.8 | 73.0 | 66.2 | 66.8 | 59.4 | 72.4 | 70.0 |
| EdgeCoder-Multilingual-61M | 61.0M | 71.5 | 83.5 | 59.1 | 69.4 | 62.0 | 62.0 | 57.4 | 77.9 | 67.8 |
On all XTREME languages, including 16 that the model has never seen:
| Model | Params | XNLI | PAWS-X | XCOPA | XQuAD | MLQA | TyDiQA | WikiANN | UDPOS | Avg |
|---|---|---|---|---|---|---|---|---|---|---|
| mDistilBERT | 134.7M | 59.3 | 79.6 | 52.7 | 47.4 | 45.5 | 39.3 | 53.9 | 68.8 | 55.8 |
| Multilingual MiniLM | 117.7M | 70.9 | 83.2 | 58.3 | 66.3 | 61.1 | 58.3 | 55.2 | 77.8 | 66.4 |
| mmBERT-small | 140.5M | 73.6 | 85.4 | 60.3 | 71.6 | 66.2 | 66.3 | 52.0 | 69.5 | 68.1 |
| EdgeCoder-Multilingual-61M | 61.0M | 69.0 | 83.5 | 55.6 | 64.7 | 62.0 | 57.3 | 45.5 | 64.3 | 62.7 |
Each backbone is fine-tuned once into a sentence embedding model on 1M English MS MARCO triplets (one epoch, mean pooling, contra
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.