Text Classification
Transformers
Safetensors
English
modernbert
long-tail
educational
baseline
text-embeddings-inference
Run this model with HF Jobs
Run earino/ecbs5200-week6-vanilla-baseline on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/earino/ecbs5200-week6-vanilla-baseline. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/earino/ecbs5200-week6-vanilla-baseline on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use earino/ecbs5200-week6-vanilla-baseline with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use earino/ecbs5200-week6-vanilla-baseline with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="earino/ecbs5200-week6-vanilla-baseline")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("earino/ecbs5200-week6-vanilla-baseline") model = AutoModelForSequenceClassification.from_pretrained("earino/ecbs5200-week6-vanilla-baseline", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Week 6 Vanilla Baseline (ModernBERT-base, plain CE on train+test)
Course material for ECBS5200 Applied Deep Learning at CEU Vienna. See earino/applied-deep-learning.
Vanilla cross-entropy baseline. Same model + same training data as the distilled student, but no teacher signal β exists to isolate the marginal contribution of distillation.
Training recipe
- Base:
answerdotai/ModernBERT-base(149M params, full fine-tune, fresh classifier head) - Data: train+test combined from
determined-ai/consumer_complaints_mediumwith the canonical course merge map + MIN_CLASS_COUNT=5 filter (79,278 examples, 113 classes) - Loss: plain cross-entropy on hard labels
- Optimizer: AdamW, lr=5e-05, weight_decay=0.01, linear schedule, warmup ratio 0.06
- Batch size: 32, max sequence length: 128, epochs: 3
- Hardware: T4 fp16 + GradScaler (compute capability 7.5)
- Seed: 42
Verified eval (val_ds, 6,430 examples)
| Metric | Value |
|---|---|
| Macro F1 | 0.2638 |
| Accuracy | 0.6106 |
| NLL | 1.5416 |
| ECE | 0.1300 |
| Head F1 (top-20 classes, n=5155) | 0.6105 |
| Mid F1 (rank 20β60, n=1065) | 0.3797 |
| Tail F1 (rank 60β113, n=210) | 0.1249 |
Files in this repo
model.safetensors+config.jsonβ model weightstokenizer*.json,special_tokens_map.jsonβ tokenizerval_predictions.npzβ raw fp16 val logits + per-example predictions + tier assignments. Useful for re-doing per-tier analysis without re-running inference.
Usage
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("earino/ecbs5200-week6-vanilla-baseline")
tokenizer = AutoTokenizer.from_pretrained("earino/ecbs5200-week6-vanilla-baseline")
- Downloads last month
- 3
Model tree for earino/ecbs5200-week6-vanilla-baseline
Base model
answerdotai/ModernBERT-base