Model reference · open weights
deberta is an open-weight embedding model from deepvk. 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 by | deepvk |
|---|---|
| Type | Embedding models |
| Task | Embeddings |
| Parameters (lead) | 124M |
| Runs with | transformers |
| Released | 2023-02-07 |
| Popularity | 731 downloads / month |
| Licence | Open weights |
About
Pretrained bidirectional encoder for russian language.
The model was trained using standard MLM objective on large text corpora including open social data.
See Training Details section for more information.
⚠️ This model contains only the encoder part without any pretrained head.
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("deepvk/deberta-v1-base")
model = AutoModel.from_pretrained("deepvk/deberta-v1-base")
text = "Привет, мир!"
inputs = tokenizer(text, return_tensors='pt')
predictions = model(**inputs)
400 GB of filtered and deduplicated texts in total. A mix of the following data: Wikipedia, Books, Twitter comments, Pikabu, Proza.ru, Film subtitles, News websites, and Social corpus.
| Argument | Value |
|---|---|
| Training regime | fp16 mixed precision |
| Optimizer | AdamW |
| Adam betas | 0.9,0.98 |
| Adam eps | 1e-6 |
| Weight decay | 1e-2 |
| Batch size | 2240 |
| Num training steps | 1kk |
| Num warm-up steps | 10k |
| LR scheduler | Linear |
| LR | 2e-5 |
| Gradient norm | 1.0 |
The model was trained on a machine with 8xA100 for approximately 30 days.
| Argument | Value |
|---|---|
| Encoder layers | 12 |
| Encoder attention heads | 12 |
| Encoder embed dim | 768 |
| Encoder ffn embed dim | 3,072 |
| Activation function | GeLU |
| Attention dropout | 0.1 |
| Dropout | 0.1 |
| Max positions | 512 |
| Vocab size | 50266 |
| Tokenizer type | Byte-level BPE |
We evaluated the model on Russian Super Glue dev set. The best result in each task is marked in bold. All models have the same size except the distilled version of DeBERTa.
| Model | RCB | PARus | MuSeRC | TERRa | RUSSE | RWSD | DaNetQA | Score |
|---|---|---|---|---|---|---|---|---|
| vk-deberta-distill | 0.433 | 0.56 | 0.625 | 0.59 | 0.943 | 0.569 | 0.726 | 0.635 |
| vk-roberta-base | 0.46 | 0.56 | 0.679 | 0.769 | 0.960 | 0.569 | 0.658 | 0.665 |
| vk-deberta-base | 0.450 | 0.61 | 0.722 | 0.704 | 0.948 | 0.578 | 0.76 | 0.682 |
| vk-bert-base | 0.467 | 0.57 | 0.587 | 0.704 | 0.953 | 0.583 | 0.737 | 0.657 |
| sber-bert-base | 0.491 | 0.61 | 0.663 | 0.769 | 0.962 | 0.574 | 0.678 | 0.678 |
From the published model card. Full card on the HuggingFace links in the sidebar.
How it works
Using it via the API
Once AxForge deploys deberta for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (deberta 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":"deberta","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.