alt.freeweights.embed / rubert-tiny2
From: cointegrated <huggingface.co/cointegrated>Newsgroups: alt.freeweights.embedSubject:

rubert-tiny2

Date: 2026-11-15Commit: e8ed3b0Signed: 2DC28CC7B26A283B ✓

Sentence similarity model with 29M parameters. Safetensors weights, 239 MB in all. Published by cointegrated under MIT.

29M params239MBrubert-tiny2safetensorspermissive
FactsParams29MSize239 MBFormatssafetensorsTasksentence similarityLicenseMITFrom sourcepermissive
$ fw get cointegrated/rubert-tiny2
# manifest sha256 658deb79db38… · 239 MB · 14 files
$ fw verify ./rubert-tiny2 cointegrated/rubert-tiny2
From sourceHosted (signed)cointegrated/rubert-tiny2Last check: 2026-11-15 02:27 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Evaluate with

Overview

Size
239 MB
Weights
118 MB (safetensors)
Parameters
29M
Formats
safetensors
Task
sentence similarity
License
MIT (permissive)
Files
14, each with a sha256
Publisher
cointegrated
Added
2026-11-15
Section
alt.freeweights.embed
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:27 UTCpassed

Model card

From the publisher at commit e8ed3b0. Shown as plain text with links; images open at the publisher.

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

Files

14 files · 239 MBWeights 118 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 14 files with their sha256
FileSizesha256
.gitattributes1.23 KB98ccb431c012ebfe976280fbd45aea4cec7409935868ccecf3954370f96732a1
.gitignore6 B1d15bdb66e2d42cd0ecddeb6926d7a97dbf7a82a055067b7b9afc05112ee0437
1_Pooling/config.json190 Ba2457ec8b5571087d2cbcb29450bb3e694940bcff2c2fd7aae344725cd8c91c9
README.md2.40 KB6eec7047e9db76ee30e4c9dd542a25cf0c4f1f93a2119db56cd10f0c393fc00f
config.json693 Badee8b3e344bcb8379f44d0b3577c267d52881341e05d973c43e49974778dfff
model.safetensors118 MB26ebb6db2a68593c54c74902d7a74f332da66297693f965cc9f1b0af4abf3894
modules.json349 B84e40c8e006c9b1d6c122e02cba9b02458120b5fb0c87b746c41e0207cf642cf
pytorch_model.bin118 MB137fa2b1d944dae19c74456dfe8fac2f780d9acf34e037f5d1e37acba1157768
sentence_bert_config.json54 Bd7ff3be36cdd7a6eeb94411121036d669cb1074eb1540dabd3e3cb18ee13e3a6
special_tokens_map.json112 B303df45a03609e4ead04bc3dc1536d0ab19b5358db685b6f3da123d05ec200e3
tinybert-ru-labse-adapter-v2.pt963 KB3322adeaf437ec8005bd042a64f501458abd5ac58a2eb13f09df5ed9ba59a9af
tokenizer.json1.74 MB45cc9f974145661db6bc020795839d1dc371adc19a9c78b910393209b4fe5efc
tokenizer_config.json401 B74aab51b71a8d116c035464df96c600770f9844696b8965e397b2b1649010686
vocab.txt1.08 MBf056a69b097422652053bf87565c35543e5d81540ca4b7dddd28de4157a969e0
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
e8ed3b0c8b pinned now2026-11-15 02:27 UTC14 files · 239 MB

Use it

$ fw get cointegrated/rubert-tiny2
# manifest sha256 658deb79db38… · 239 MB · 14 files
$ fw verify ./rubert-tiny2 cointegrated/rubert-tiny2
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/cointegrated/rubert-tiny2.json --dir ./rubert-tiny2 $ python3 fw.py verify ./rubert-tiny2 ./cointegrated__rubert-tiny2.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download cointegrated/rubert-tiny2 --revision e8ed3b0c8bbf4fb6984c3de043bf7d2f4e5969ae --local-dir ./rubert-tiny2
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModel, AutoTokenizer tok = AutoTokenizer.from_pretrained("cointegrated/rubert-tiny2", revision="e8ed3b0c8bbf4fb6984c3de043bf7d2f4e5969ae") model = AutoModel.from_pretrained("cointegrated/rubert-tiny2", revision="e8ed3b0c8bbf4fb6984c3de043bf7d2f4e5969ae", device_map="auto")
sentence-transformersEmbed text with sentence-transformers.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from sentence_transformers import SentenceTransformer model = SentenceTransformer("cointegrated/rubert-tiny2", revision="e8ed3b0c8bbf4fb6984c3de043bf7d2f4e5969ae") vectors = model.encode(["Hello"])

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
6eec7047e9db76ee30e4c9dd542a25cf0c4f1f93a2119db56cd10f0c393fc00f
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: cointegrated <huggingface.co/cointegrated>Newsgroups: alt.freeweights.embedSubject: rubert-tiny2Date: 2026-11-15Commit: e8ed3b0Signed: 2DC28CC7B26A283B ✓
Upstream
cointegrated/rubert-tiny2
Pinned commit
e8ed3b0c8bbf4fb6984c3de043bf7d2f4e5969ae
Manifest
rubert-tiny2.json · .minisig
Manifest sha256
658deb79db38b43780670a2548f639ce3a7a850058a42fe5bd0b3236c629cf99
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:27 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/cointegrated/rubert-tiny2.json $ curl -O https://freeweights.allternit.com/manifests/cointegrated/rubert-tiny2.json.minisig $ minisign -Vm rubert-tiny2.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download cointegrated/rubert-tiny2
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. rubert-tiny2.json. Provenance. Takedown history: none.
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-MiniLM-L6-v1
From: unsloth <huggingface.co/unsloth>Subject: all-MiniLM-L6-v2
From: mlx-community <huggingface.co/mlx-community>Subject: all-MiniLM-L6-v2-4bit
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: all-mpnet-base-v1
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: allenai-specter
From: sentence-transformers <huggingface.co/sentence-transformers>Subject: bert-base-nli-max-tokens