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
Commit History
-
Update tf_model.h5
0fef132 -
Update vocab.json
b5e9225 -
Update pytorch_model.bin
9bc0ec8 -
Update merges.txt
8b0f31a -
Update config.json
5319141 -
Update special_tokens_map.json
1a3831e -
Update tokenizer_config.json
0047fa0 -
Update merges.txt
ffc990b -
Update config.json
09a9eff -
Update special_tokens_map.json
8d2ad35 -
Update tokenizer_config.json
dedb8f2 -
initial commit
93d55bc