Text Classification
Transformers
Safetensors
English
modernbert
text-generation-inference
unsloth
trl
text-embeddings-inference
Instructions to use szhuggingface/ModernBERT-base-ag-news-12k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use szhuggingface/ModernBERT-base-ag-news-12k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="szhuggingface/ModernBERT-base-ag-news-12k")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("szhuggingface/ModernBERT-base-ag-news-12k") model = AutoModelForSequenceClassification.from_pretrained("szhuggingface/ModernBERT-base-ag-news-12k", 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
- 8
Model tree for szhuggingface/ModernBERT-base-ag-news-12k
Base model
answerdotai/ModernBERT-base