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