Text Classification
PEFT
Safetensors
Transformers
English
reddit
conversation-analysis
constructive-dialogue
modernbert
lora
lightweight
high-throughput
Instructions to use NiklasKoch/modernbert-discussion-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use NiklasKoch/modernbert-discussion-classifier with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("answerdotai/ModernBERT-base") model = PeftModel.from_pretrained(base_model, "NiklasKoch/modernbert-discussion-classifier") - Transformers
How to use NiklasKoch/modernbert-discussion-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="NiklasKoch/modernbert-discussion-classifier")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("NiklasKoch/modernbert-discussion-classifier", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!