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")# pip install -U transformers accelerate # 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
Commit History
-
Update README.md
Verified signaturec5390d0
-
Update README.md
Verified signatureAdd base model44cdd89
-
Update README.md
5a0959f
-
Create README.md
Added model card452a57b -
Upload vocab.json with huggingface_hub
f8552d2 -
Upload tokenizer_config.json with huggingface_hub
240cbcf -
Upload model.onnx with huggingface_hub
d30b8e6 -
Upload tokenizer.json with huggingface_hub
3930561 -
Upload merges.txt with huggingface_hub
b531ce8 -
Upload special_tokens_map.json with huggingface_hub
2421b7f -
Upload config.json with huggingface_hub
5cdd0b3 -
initial commit
89c2c3c