Downloads · 30 days
8
12% of all-time downloads
vumichien/ettin-encoder-32m-imdb-sentiment
ettin-encoder-32m-imdb-sentiment is a text classification model from vumichien. Use it when you need a label for a piece of text. The card lists the license as mit.
jhu-clsp/ettin-encoder-32m (ModernBERT encoder, 8192 context) finetuned for IMDB sentiment (binary) on stanfordnlp/imdb.
Downloads · 30 days
8
12% of all-time downloads
All-time downloads
67
Public
Parameters
32M
128 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors128 MB · 97%
From the Hugging Face model README
jhu-clsp/ettin-encoder-32m (ModernBERT encoder, 8192 context) finetuned for IMDB sentiment (binary) on stanfordnlp/imdb.
| metric | value |
|---|---|
| accuracy | 0.9263 |
| macro-F1 | 0.9263 |
| eval max_length | 512 |
Finetuned on a single RTX 3080 (bf16). See the project for the full training pipeline.
from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch
tok = AutoTokenizer.from_pretrained("vumichien/ettin-encoder-32m-imdb-sentiment")
model = AutoModelForSequenceClassification.from_pretrained("vumichien/ettin-encoder-32m-imdb-sentiment")
inputs = tok("your text here", truncation=True, max_length=512, return_tensors="pt")
pred = model(**inputs).logits.argmax(-1).item()
print(model.config.id2label[pred])