Instructions to use microsoft/codebert-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/codebert-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="microsoft/codebert-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("microsoft/codebert-base") model = AutoModel.from_pretrained("microsoft/codebert-base", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
License clarification for CodeBERT weights and fine-tuned model redistribution
#12
by AntoMunoz - opened
We are preparing the reproducibility repository for a research paper based on a fine-tuned version of microsoft/codebert-base.
The CodeBERT GitHub repository is licensed under MIT, but the Hugging Face model card does not explicitly identify the license covering the pretrained weights and tokenizer.
Could the maintainers clarify whether:
- The MIT license also applies to the pretrained weights and tokenizer.
- Redistribution of a fine-tuned checkpoint is permitted.
- Any additional attribution or licensing requirements apply.
We intend to retain the applicable copyright notices and cite the original CodeBERT paper.
Many thanks for your clarification.
Antonio Muñoz
NICS Lab, University of Málaga
AntoMunoz changed discussion status to closed
AntoMunoz changed discussion status to open