Text Classification
Transformers
Safetensors
English
modernbert
text-generation-inference
unsloth
trl
text-embeddings-inference
Instructions to use szhuggingface/ModernBERT-base-ag-news-1.5k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use szhuggingface/ModernBERT-base-ag-news-1.5k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="szhuggingface/ModernBERT-base-ag-news-1.5k")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("szhuggingface/ModernBERT-base-ag-news-1.5k") model = AutoModelForSequenceClassification.from_pretrained("szhuggingface/ModernBERT-base-ag-news-1.5k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Desktop
Uploaded model
- Developed by: szhuggingface
- License: apache-2.0
- Finetuned from model : answerdotai/ModernBERT-base
This modernbert model was trained 2x faster with Unsloth and Huggingface's TRL library.
- Downloads last month
- 12
Model tree for szhuggingface/ModernBERT-base-ag-news-1.5k
Base model
answerdotai/ModernBERT-base