Instructions to use huggingface/CodeBERTa-language-id with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use huggingface/CodeBERTa-language-id with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="huggingface/CodeBERTa-language-id")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("huggingface/CodeBERTa-language-id") model = AutoModelForSequenceClassification.from_pretrained("huggingface/CodeBERTa-language-id", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.ea4b2d3
-
[metadata] Specify `base_model`
Verified signaturecc @jeffboudier67e92a9 -
Adding license tag (#6)
Verified signature- Adding license tag (9cd3cc504c650ddb7bc9b3df3f0248c111095b4d) Co-authored-by: Jeff Boudier <jeffboudier@users.noreply.huggingface.co>1ceaa8a
-
Addition of Rust model (#3)
- Addition of Rust model (6fdaec345fa3aab50d46d454255990c18e505494) Co-authored-by: Vincent Xiao <Vincent-Xiao@users.noreply.huggingface.co>efb5bf7
-
Add TF weights (#1)
- Add TF weights (5b329745f432abdbc5078ea21e3b880bdeb616df) Co-authored-by: Joao Gante <joaogante@users.noreply.huggingface.co>386451c
-
upload flax model
b10a4f1 -
allow flax
a400e9f
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/huggingface/CodeBERTa-language-id/README.md6825fc9
-
Update config.json
6d42fdc
-
Update vocab.json
970d72a -
Update merges.txt
05a5b29 -
Update tokenizer_config.json
accf7b9 -
Update config.json
74a525e -
Update pytorch_model.bin
60a3cce -
initial commit
09baf49