Instructions to use dstilesr/glotlid-roberta-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dstilesr/glotlid-roberta-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dstilesr/glotlid-roberta-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dstilesr/glotlid-roberta-classifier") model = AutoModelForSequenceClassification.from_pretrained("dstilesr/glotlid-roberta-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Tokenizer comment 'Train Existing Classifier with Contrastive Training'
Verified signaturef1bc79d -
Model comment 'Train Existing Classifier with Contrastive Training'
Verified signaturef64cdaf
-
Tokenizer comment 'From pretrained transformer - Classification Loss Only'
Verified signature93d2e09 -
Model comment 'From pretrained transformer - Classification Loss Only'
Verified signaturee6a4238 -
initial commit
Verified signature6a1b5df