Instructions to use nlp-magnets/magbert-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nlp-magnets/magbert-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nlp-magnets/magbert-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nlp-magnets/magbert-classifier") model = AutoModelForSequenceClassification.from_pretrained("nlp-magnets/magbert-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 179ac880dc059fc9a59685a58b0b3b2278227b298e28153193776c25a85328a3
- Size of remote file:
- 438 MB
- SHA256:
- ffb08734f14f32b4829863a604138b92163e5f7c894aaf5aa0cc382afcee6b4a
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.