Downloads · 30 days
10
18% of all-time downloads
Circularmachines/atproto_classifier
atproto_classifier is a text classification model from Circularmachines. Use it when you need a label for a piece of text.
A multilingual feed-value classifier. Fine-tuned from intfloat/multilingual-e5-small with a classification head to score Bluesky posts by feed worthiness.
Downloads · 30 days
10
18% of all-time downloads
All-time downloads
57
Public
Parameters
118M
1.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt941 MB · 66%
From the Hugging Face model README
A multilingual feed-value classifier. Fine-tuned from intfloat/multilingual-e5-small with a classification head to score Bluesky posts by feed worthiness.
import torch
import torch.nn.functional as F
from transformers import AutoTokenizer, AutoModelForSequenceClassification
model_id = "Circularmachines/atproto_classifier"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
model.eval()
texts = ["passage: some post text here"]
inputs = tokenizer(texts, return_tensors="pt", truncation=True, padding=True, max_length=512)
with torch.no_grad():
probs = F.softmax(model(**inputs).logits, dim=-1)
score = probs[0][1].item() # P(feed-worthy)
label = int(score > 0.5)
intfloat/multilingual-e5-smallBertForSequenceClassification (2 classes: not feed-worthy / feed-worthy)passage: {text} (matches e5 training convention)