AI SeedbankHelp preserve open and free AI for humanity's future

← All models

cointegrated_rubert-tiny2

cointegrated · View on Hugging Face ↗

Get this model

Download TorrentMagnet Link

Seeders: · Leechers:

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-tiny2

Open magnet in torrent client · infohash d442482b5d3de75049cde16b3ad6d53966621f0e

Files & hashes

PathSizesha1sha256
1_Pooling/config.json190 B (190 B)8b51cf1d75a6043bd054404a4dadb193aa739028a2457ec8b5571087d2cbcb29450bb3e694940bcff2c2fd7aae344725cd8c91c9
README.md2.3 KB (2,401 B)e0a1f6e3c0981403a85a7b63f4aa68c2f8a7ac326eec7047e9db76ee30e4c9dd542a25cf0c4f1f93a2119db56cd10f0c393fc00f
config.json693 B (693 B)26aa82492df46244bd53d5a520aa1d364d8d7966adee8b3e344bcb8379f44d0b3577c267d52881341e05d973c43e49974778dfff
model.safetensors112.1 MB (117,529,600 B)6f960b7dfe7787d5574e92e23a3cc8a4ffb0a09826ebb6db2a68593c54c74902d7a74f332da66297693f965cc9f1b0af4abf3894
modules.json349 B (349 B)952a9b81c0bfd99800fabf352f69c7ccd46c5e4384e40c8e006c9b1d6c122e02cba9b02458120b5fb0c87b746c41e0207cf642cf
pytorch_model.bin112.1 MB (117,546,024 B)fedca3344f84095ec399c87115b1c6cbc752a331137fa2b1d944dae19c74456dfe8fac2f780d9acf34e037f5d1e37acba1157768
sentence_bert_config.json54 B (54 B)873e542d37f5047be0a1d2ee0e5006cdfa4b975bd7ff3be36cdd7a6eeb94411121036d669cb1074eb1540dabd3e3cb18ee13e3a6
special_tokens_map.json112 B (112 B)e7b0375001f109a6b8873d756ad4f7bbb15fbaa5303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tinybert-ru-labse-adapter-v2.pt940.4 KB (962,983 B)6f94f0139ea30ae4fd94dd35df42931a47239d7a3322adeaf437ec8005bd042a64f501458abd5ac58a2eb13f09df5ed9ba59a9af
tokenizer.json1.7 MB (1,741,842 B)9bb4171eb4d2379a4a3ec41c21841823ee229ecc45cc9f974145661db6bc020795839d1dc371adc19a9c78b910393209b4fe5efc
tokenizer_config.json401 B (401 B)0ca66644d7807a33e4f9ac11d47b7c39e6ce15e074aab51b71a8d116c035464df96c600770f9844696b8965e397b2b1649010686
vocab.txt1.0 MB (1,080,667 B)211012a925fc51581997b6d3ef047bcda9a842f4f056a69b097422652053bf87565c35543e5d81540ca4b7dddd28de4157a969e0

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 repositorycointegrated/rubert-tiny2
Revision (pinned)e8ed3b0c8bbf4fb6984c3de043bf7d2f4e5969ae
Fetched at2026-09-03T21:22:08Z
License at fetchmit
Snapshot toolhuggingface · seedbank 0.1.0

Trackers

✓ 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)