Text Classification
Transformers
Safetensors
modernbert
Generated from Trainer
text-embeddings-inference
Instructions to use ehottl/ModernBERT-spam with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ehottl/ModernBERT-spam with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ehottl/ModernBERT-spam")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ehottl/ModernBERT-spam") model = AutoModelForSequenceClassification.from_pretrained("ehottl/ModernBERT-spam", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
420020c | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:c0bb674df622f403394c54fdc11048d644683631ca49a7f69f64be41928b950a
size 5304
|