Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

s-nlp
/
xlmr_formality_classifier

Text Classification
Transformers
PyTorch
Safetensors
xlm-roberta
formal or informal classification
text-embeddings-inference
Model card Files Files and versions
xet
Community
2

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")
    # 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")
  • Notebooks
  • Google Colab
  • Kaggle
xlmr_formality_classifier
Ctrl+K
Ctrl+K
  • 4 contributors
History: 13 commits
jjamnicki's picture
jjamnicki
Update README.md
7990cde verified almost 2 years ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model (#1) about 3 years ago
  • README.md
    5.59 kB
    Update README.md almost 2 years ago
  • config.json
    896 Bytes
    Update config.json over 4 years ago
  • model.safetensors
    1.11 GB
    xet
    Adding `safetensors` variant of this model (#1) about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "torch._utils._rebuild_tensor_v2",
    • "torch.LongStorage",
    • "collections.OrderedDict",
    • "torch.FloatStorage"

    What is a pickle import?

    1.11 GB
    xet
    First model version over 4 years ago
  • special_tokens_map.json
    239 Bytes
    First model version over 4 years ago
  • tokenizer.json
    9.08 MB
    First model version over 4 years ago
  • tokenizer_config.json
    398 Bytes
    First model version over 4 years ago