This model uses a custom classification head (mean pooling over a backbone without a native sequence-classification class), so loading requires
trust_remote_code=True
. vLLM serving requires a standard architecture.
Evaluation
Metric
Value
f1_micro @ 0.5
0.0000
f1_macro @ 0.5
0.0000
f1_micro @ tuned
0.2436
f1_macro @ tuned
0.0786
Per-label decision thresholds tuned on the eval split are stored in
config.classifier_thresholds
.
Usage
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("davanstrien/lfm25-encoder-goemotions-smoke", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("davanstrien/lfm25-encoder-goemotions-smoke", trust_remote_code=True)
inputs = tokenizer("your text here", return_tensors="pt", truncation=True)
probs = torch.sigmoid(model(**inputs).logits)[0]
thresholds = torch.tensor(model.config.classifier_thresholds) # tuned on validation
labels = [model.config.id2label[i] for i in (probs >= thresholds).nonzero().flatten().tolist()]
print(labels)
hf jobs uv run --flavor gpu --secrets HF_TOKEN \
https://huggingface.co/datasets/uv-scripts/classification/raw/main/train-classifier.py \
google-research-datasets/go_emotions davanstrien/lfm25-encoder-goemotions-smoke --label-column labels
Runs of davanstrien lfm25-encoder-goemotions-smoke on huggingface.co
14
Total runs
0
24-hour runs
-1
3-day runs
-6
7-day runs
-5
30-day runs
More Information About lfm25-encoder-goemotions-smoke huggingface.co Model
lfm25-encoder-goemotions-smoke huggingface.co
lfm25-encoder-goemotions-smoke huggingface.co is an AI model on huggingface.co that provides lfm25-encoder-goemotions-smoke's model effect (), which can be used instantly with this davanstrien lfm25-encoder-goemotions-smoke model. huggingface.co supports a free trial of the lfm25-encoder-goemotions-smoke model, and also provides paid use of the lfm25-encoder-goemotions-smoke. Support call lfm25-encoder-goemotions-smoke model through api, including Node.js, Python, http.
lfm25-encoder-goemotions-smoke huggingface.co is an online trial and call api platform, which integrates lfm25-encoder-goemotions-smoke's modeling effects, including api services, and provides a free online trial of lfm25-encoder-goemotions-smoke, you can try lfm25-encoder-goemotions-smoke online for free by clicking the link below.
davanstrien lfm25-encoder-goemotions-smoke online free url in huggingface.co:
lfm25-encoder-goemotions-smoke is an open source model from GitHub that offers a free installation service, and any user can find lfm25-encoder-goemotions-smoke on GitHub to install. At the same time, huggingface.co provides the effect of lfm25-encoder-goemotions-smoke install, users can directly use lfm25-encoder-goemotions-smoke installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
lfm25-encoder-goemotions-smoke install url in huggingface.co: