cointegrated_rubert-tiny2
cointegrated · View on Hugging Face ↗
Model card
The complete upstream card, rendered from this payload's README.md — the same hash-verified bytes the torrent distributes. Images and off-site links are removed; the original card on Hugging Face carries them.
language:
- ru pipeline_tag: sentence-similarity tags:
- russian
- fill-mask
- pretraining
- embeddings
- masked-lm
- tiny
- feature-extraction
- sentence-similarity
- sentence-transformers
- transformers license: mit widget:
- text: Миниатюрная модель для [MASK] разных задач.
This is an updated version of cointegrated/rubert-tiny: a small Russian BERT-based encoder with high-quality sentence embeddings. This post in Russian gives more details.
The differences from the previous version include:
- a larger vocabulary: 83828 tokens instead of 29564;
- larger supported sequences: 2048 instead of 512;
- sentence embeddings approximate LaBSE closer than before;
- meaningful segment embeddings (tuned on the NLI task)
- the model is focused only on Russian.
The model should be used as is to produce sentence embeddings (e.g. for KNN classification of short texts) or fine-tuned for a downstream task.
Sentence embeddings can be produced as follows:
# pip install transformers sentencepiece
import torch
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("cointegrated/rubert-tiny2")
model = AutoModel.from_pretrained("cointegrated/rubert-tiny2")
# model.cuda() # uncomment it if you have a GPU
def embed_bert_cls(text, model, tokenizer):
t = tokenizer(text, padding=True, truncation=True, return_tensors='pt')
with torch.no_grad():
model_output = model(**{k: v.to(model.device) for k, v in t.items()})
embeddings = model_output.last_hidden_state[:, 0, :]
embeddings = torch.nn.functional.normalize(embeddings)
return embeddings[0].cpu().numpy()
print(embed_bert_cls('привет мир', model, tokenizer).shape)
# (312,)
Alternatively, you can use the model with sentence_transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer('cointegrated/rubert-tiny2')
sentences = ["привет мир", "hello world", "здравствуй вселенная"]
embeddings = model.encode(sentences)
print(embeddings)
For those who want to run the inference with VLLM, there is a vLLM-optimized version of this model: WpythonW/rubert-tiny2-vllm
Magnet link
Opens the swarm directly in your torrent client — no file download needed. Copy-paste works too:
magnet:?xt=urn:btih:d442482b5d3de75049cde16b3ad6d53966621f0e&dn=cointegrated_rubert-tiny2Open magnet in torrent client · infohash d442482b5d3de75049cde16b3ad6d53966621f0e
Files & hashes
| Path | Size | sha1 | sha256 |
|---|---|---|---|
| 1_Pooling/config.json | 190 B (190 B) | 8b51cf1d75a6043bd054404a4dadb193aa739028 | a2457ec8b5571087d2cbcb29450bb3e694940bcff2c2fd7aae344725cd8c91c9 |
| README.md | 2.3 KB (2,401 B) | e0a1f6e3c0981403a85a7b63f4aa68c2f8a7ac32 | 6eec7047e9db76ee30e4c9dd542a25cf0c4f1f93a2119db56cd10f0c393fc00f |
| config.json | 693 B (693 B) | 26aa82492df46244bd53d5a520aa1d364d8d7966 | adee8b3e344bcb8379f44d0b3577c267d52881341e05d973c43e49974778dfff |
| model.safetensors | 112.1 MB (117,529,600 B) | 6f960b7dfe7787d5574e92e23a3cc8a4ffb0a098 | 26ebb6db2a68593c54c74902d7a74f332da66297693f965cc9f1b0af4abf3894 |
| modules.json | 349 B (349 B) | 952a9b81c0bfd99800fabf352f69c7ccd46c5e43 | 84e40c8e006c9b1d6c122e02cba9b02458120b5fb0c87b746c41e0207cf642cf |
| pytorch_model.bin | 112.1 MB (117,546,024 B) | fedca3344f84095ec399c87115b1c6cbc752a331 | 137fa2b1d944dae19c74456dfe8fac2f780d9acf34e037f5d1e37acba1157768 |
| sentence_bert_config.json | 54 B (54 B) | 873e542d37f5047be0a1d2ee0e5006cdfa4b975b | d7ff3be36cdd7a6eeb94411121036d669cb1074eb1540dabd3e3cb18ee13e3a6 |
| special_tokens_map.json | 112 B (112 B) | e7b0375001f109a6b8873d756ad4f7bbb15fbaa5 | 303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3 |
| tinybert-ru-labse-adapter-v2.pt | 940.4 KB (962,983 B) | 6f94f0139ea30ae4fd94dd35df42931a47239d7a | 3322adeaf437ec8005bd042a64f501458abd5ac58a2eb13f09df5ed9ba59a9af |
| tokenizer.json | 1.7 MB (1,741,842 B) | 9bb4171eb4d2379a4a3ec41c21841823ee229ecc | 45cc9f974145661db6bc020795839d1dc371adc19a9c78b910393209b4fe5efc |
| tokenizer_config.json | 401 B (401 B) | 0ca66644d7807a33e4f9ac11d47b7c39e6ce15e0 | 74aab51b71a8d116c035464df96c600770f9844696b8965e397b2b1649010686 |
| vocab.txt | 1.0 MB (1,080,667 B) | 211012a925fc51581997b6d3ef047bcda9a842f4 | f056a69b097422652053bf87565c35543e5d81540ca4b7dddd28de4157a969e0 |
Cite this release
- Canonical URL
- https://aiseedbank.org/models/cointegrated_rubert-tiny2/
- Slug
- cointegrated_rubert-tiny2
- Infohash
- d442482b5d3de75049cde16b3ad6d53966621f0e
- License
- mit
- Signing key fingerprint
- 85a3b32c3712427b
Every file carries a locally computed sha256 — verify a download against the signed sums: cointegrated_rubert-tiny2.SHA256SUMS (+ minisign signature).
Provenance
| Upstream repository | cointegrated/rubert-tiny2 |
|---|---|
| Revision (pinned) | e8ed3b0c8bbf4fb6984c3de043bf7d2f4e5969ae |
| Fetched at | 2026-09-03T21:22:08Z |
| License at fetch | mit |
| Snapshot tool | huggingface · seedbank 0.1.0 |
Trackers
- udp://announce.aitorrent.org:6969/announce
- http://announce.aitorrent.org:7070/announce
- udp://announce2.aitorrent.org:6970/announce
- http://announce2.aitorrent.org:7071/announce
- udp://tracker.opentrackr.org:1337/announce
- udp://open.demonii.com:1337/announce
- udp://open.stealth.si:80/announce
- udp://exodus.desync.com:6969/announce
- udp://tracker.torrent.eu.org:451/announce
✓ verified · rehash-vs-hf-metadata at 2026-09-03T21:22:12Z
mit227.8 MB (238,865,316 bytes)sentence-transformerspytorchsafetensorsbertpretrainingrussianfill-maskembeddingsmasked-lmtinyfeature-extractionsentence-similaritytransformerstext-embeddings-inferenceendpoints_compatible1 language (ru)