Views
No views yet
audio-classification, audio-to-audio, automatic-speech-recognition, feature-extraction, fill-mask, image-classification, image-feature-extraction, image-segmentation, image-text-to-text, image-to-3d, image-to-image, image-to-text, multiple-choice, object-detection, question-answering, reinforcement-learning, robotics, sentence-similarity, summarization, table-question-answering, tabular-classification, tabular-regression, text-classification, text-generation, text-retrieval, text-to-image, text-to-speech, text-to-video, time-series-forecasting, token-classification, … (35 total)[!NOTE] This model uses a custom classification head (mean pooling over a backbone without a native sequence-classification class), so loading requirestrust_remote_code=True. vLLM serving requires a standard architecture.
| Metric | Value |
|---|---|
| f1_micro @ 0.5 | 0.6343 |
| f1_macro @ 0.5 | 0.4691 |
| f1_micro @ tuned | 0.6464 |
| f1_macro @ tuned | 0.5545 |
config.classifier_thresholds.1import torch
2from transformers import AutoModelForSequenceClassification, AutoTokenizer
3
4model = AutoModelForSequenceClassification.from_pretrained("davanstrien/dataset-rows16-task-classifier-4096", trust_remote_code=True)
5tokenizer = AutoTokenizer.from_pretrained("davanstrien/dataset-rows16-task-classifier-4096", trust_remote_code=True)
6
7inputs = tokenizer("your text here", return_tensors="pt", truncation=True)
8probs = torch.sigmoid(model(**inputs).logits)[0]
9thresholds = torch.tensor(model.config.classifier_thresholds) # tuned on validation
10labels = [model.config.id2label[i] for i in (probs >= thresholds).nonzero().flatten().tolist()]
11print(labels)gpu) with the train-classifier.py recipe from uv-scripts. Run it yourself:1hf jobs uv run --flavor gpu --secrets HF_TOKEN \
2 https://huggingface.co/datasets/uv-scripts/classification/raw/main/train-classifier.py \
3 davanstrien/dataset-rows16-with-task-categories davanstrien/dataset-rows16-task-classifier-4096 --label-column labels