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")# 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
Download rust_model.ot from microsoft/codebert-base: direct link, hf CLI and curl.
- Browser
- Download file 499 MB
-
https://huggingface.co/microsoft/codebert-base/resolve/main/rust_model.ot
- Command line
-
hf download hf://microsoft/codebert-base/rust_model.ot
-
curl -L -o rust_model.ot https://huggingface.co/microsoft/codebert-base/resolve/main/rust_model.ot
499 MB
- Xet hash:
- fbdf657cb555e0c67c2cbc433d6f560d31504ba66da707721706771376630c0d
- Size of remote file:
- 499 MB
- SHA256:
- a91362f5a5a4dd0b1f96c7c4d2ebc512c00b834d501a2612d1f12f6ab4ca5535
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.