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
-
Delete Junk
Verified signature97f73e9
-
Addition of Rust model (#1)
- Addition of Rust model (d2ee6885785a8c3487f24f453a9e0abd98de50ec) Co-authored-by: Vincent Xiao <Vincent-Xiao@users.noreply.huggingface.co>71b4196
-
upload flax model
5c92761 -
allow flax
ed12fdf
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/microsoft/codebert-base-mlm/README.md28d8535
-
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