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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

protectai
/
CodeBERTa-language-id-onnx

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

Instructions to use protectai/CodeBERTa-language-id-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use protectai/CodeBERTa-language-id-onnx with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="protectai/CodeBERTa-language-id-onnx")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("protectai/CodeBERTa-language-id-onnx")
    model = AutoModelForSequenceClassification.from_pretrained("protectai/CodeBERTa-language-id-onnx", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
CodeBERTa-language-id-onnx
338 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 12 commits
cmdevries's picture
cmdevries
Update README.md
c5390d0 verified 29 days ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    1.91 kB
    Update README.md 29 days ago
  • config.json
    940 Bytes
    Upload config.json with huggingface_hub over 2 years ago
  • merges.txt
    482 kB
    Upload merges.txt with huggingface_hub over 2 years ago
  • model.onnx
    334 MB
    xet
    Upload model.onnx with huggingface_hub over 2 years ago
  • special_tokens_map.json
    958 Bytes
    Upload special_tokens_map.json with huggingface_hub over 2 years ago
  • tokenizer.json
    2.21 MB
    Upload tokenizer.json with huggingface_hub over 2 years ago
  • tokenizer_config.json
    1.23 kB
    Upload tokenizer_config.json with huggingface_hub over 2 years ago
  • vocab.json
    838 kB
    Upload vocab.json with huggingface_hub over 2 years ago