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

  • Log In
  • Sign Up

protectai
/
xlm-roberta-base-language-detection-onnx

Text Classification
Transformers
ONNX
xlm-roberta
language
language-detection
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use protectai/xlm-roberta-base-language-detection-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use protectai/xlm-roberta-base-language-detection-onnx with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="protectai/xlm-roberta-base-language-detection-onnx")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("protectai/xlm-roberta-base-language-detection-onnx")
    model = AutoModelForSequenceClassification.from_pretrained("protectai/xlm-roberta-base-language-detection-onnx", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
xlm-roberta-base-language-detection-onnx
2.53 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 12 commits
cmdevries's picture
cmdevries
Update README.md
a82f1dd verified 5 months ago
  • .gitattributes
    1.57 kB
    Upload tokenizer.json with huggingface_hub about 3 years ago
  • README.md
    3.11 kB
    Update README.md 5 months ago
  • config.json
    1.42 kB
    Upload config.json with huggingface_hub about 3 years ago
  • model.onnx
    1.11 GB
    xet
    Upload model.onnx with huggingface_hub about 3 years ago
  • model_optimized.onnx
    1.11 GB
    xet
    Upload 2 files over 2 years ago
  • model_quantized.onnx
    279 MB
    xet
    Upload 2 files over 2 years ago
  • sentencepiece.bpe.model
    5.07 MB
    xet
    Upload sentencepiece.bpe.model with huggingface_hub about 3 years ago
  • special_tokens_map.json
    280 Bytes
    Upload special_tokens_map.json with huggingface_hub about 3 years ago
  • tokenizer.json
    17.1 MB
    xet
    Upload tokenizer.json with huggingface_hub about 3 years ago
  • tokenizer_config.json
    1.15 kB
    Upload tokenizer_config.json with huggingface_hub about 3 years ago