Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • 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")
  • Notebooks
  • Google Colab
  • Kaggle
CodeBERTa-language-id-onnx
Ctrl+K
Ctrl+K
  • 1 contributor
History: 11 commits
asofter's picture
asofter
Update README.md
44cdd89 verified about 2 years ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    1.71 kB
    Update README.md about 2 years 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