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") - Notebooks
- Google Colab
- Kaggle
Adding license tag
#6
by jeffboudier HF Staff - opened
Suggesting Apache 2.0
Thank you @jeffboudier .
Is it also possible to add a LICENSE file to top folder directory? This will make licensing explicit for the mode.
For example, refer to https://huggingface.co/microsoft/phi-2/blob/main/LICENSE
i'm ok with this license choice @jeffboudier (i authored the model) but can you also set it for https://huggingface.co/huggingface/CodeBERTa-small-v1 (its base model)?
julien-c changed pull request status to merged