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
/
roberta-base-formality-ranker

Text Classification
Transformers
PyTorch
Safetensors
English
roberta
formality
text-embeddings-inference
Model card Files Files and versions
xet
Community
2

Instructions to use s-nlp/roberta-base-formality-ranker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use s-nlp/roberta-base-formality-ranker with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="s-nlp/roberta-base-formality-ranker")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("s-nlp/roberta-base-formality-ranker")
    model = AutoModelForSequenceClassification.from_pretrained("s-nlp/roberta-base-formality-ranker")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
roberta-base-formality-ranker
1,000 MB
Ctrl+K
Ctrl+K
  • 4 contributors
History: 11 commits
dardem's picture
dardem
Update README.md
db9388f over 2 years ago
  • .gitattributes
    1.23 kB
    Adding `safetensors` variant of this model (#1) about 3 years ago
  • README.md
    2.55 kB
    Update README.md over 2 years ago
  • config.json
    827 Bytes
    add the model over 4 years ago
  • merges.txt
    456 kB
    add the model over 4 years ago
  • model.safetensors
    499 MB
    xet
    Adding `safetensors` variant of this model (#1) about 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    499 MB
    xet
    add the model over 4 years ago
  • special_tokens_map.json
    239 Bytes
    add the model over 4 years ago
  • tokenizer.json
    1.36 MB
    add the model over 4 years ago
  • tokenizer_config.json
    288 Bytes
    add the model over 4 years ago
  • vocab.json
    798 kB
    add the model over 4 years ago