Text Classification
Transformers
PyTorch
Safetensors
xlm-roberta
formal or informal classification
text-embeddings-inference
Instructions to use s-nlp/xlmr_formality_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use s-nlp/xlmr_formality_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="s-nlp/xlmr_formality_classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("s-nlp/xlmr_formality_classifier") model = AutoModelForSequenceClassification.from_pretrained("s-nlp/xlmr_formality_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update README.md
Verified signatured833608 -
Update README.md
Verified signature4678546
-
Update README.md (#2)
Verified signature- Update README.md (6ca0f97d64bc92e6c53394c3302fd6d94014758e) - Update README.md (7990cde6629993c92a14ff4306240903d18b6fc1) Co-authored-by: Jędrzej Jamnicki <jjamnicki@users.noreply.huggingface.co>402e4d0
-
Update README.md
Verified signature4f942f9
-
Update README.md
d38e839
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (77b8c6f2cf9a70c69908b6c5b03bb8d48204bfa3) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>1f78e46
-
Update README.md
b491648
-
Update config.json
c7afd94 -
Update config.json
28dc2a9 -
Update config.json
9fef075
-
Update README.md
5e3a301 -
Create README.md
1c9d986 -
First model version
b756ecb -
initial commit
302f4e1