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")# 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") - Inference
- Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from huggingface/CodeBERTa-language-id: direct link, hf CLI and curl.
- Browser
- Download file 19 Bytes
-
https://huggingface.co/huggingface/CodeBERTa-language-id/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://huggingface/CodeBERTa-language-id/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/huggingface/CodeBERTa-language-id/resolve/main/tokenizer_config.json
19 Bytes
| { | |
| "max_len": 512 | |
| } |