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") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
03608e2 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:b131849be53621d28aa96baf0e1ec16f398c525d64eebf0b3ed9f5788a406e31
size 3707
|