Instructions to use microsoft/codebert-base-mlm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/codebert-base-mlm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="microsoft/codebert-base-mlm")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("microsoft/codebert-base-mlm") model = AutoModelForMaskedLM.from_pretrained("microsoft/codebert-base-mlm", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Commit History
-
Update tf_model.h5
0d33167 -
Update vocab.json
281fb3a -
Update pytorch_model.bin
b1b9c3d -
Update merges.txt
a7f19a8 -
Update config.json
ad5f211 -
Update special_tokens_map.json
0a68d3a -
Update tokenizer_config.json
cfb4d98 -
Update .DS_Store
694c137 -
Update merges.txt
2d8e680 -
Update config.json
2f7d1de -
Update special_tokens_map.json
fdefbaa -
Update tokenizer_config.json
36e29a3 -
Update .DS_Store
fc33dd8 -
initial commit
8e69787