Run this model with HF Jobs
Run microsoft/codebert-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/microsoft/codebert-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/microsoft/codebert-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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
Download flax_model.msgpack from microsoft/codebert-base: direct link, hf CLI and curl.
- Browser
- Download file 499 MB
-
https://huggingface.co/microsoft/codebert-base/resolve/refs%2Fpr%2F8/flax_model.msgpack
- Command line
-
hf download hf://microsoft/codebert-base@refs/pr/8/flax_model.msgpack
-
curl -L -o flax_model.msgpack https://huggingface.co/microsoft/codebert-base/resolve/refs%2Fpr%2F8/flax_model.msgpack
499 MB
- Xet hash:
- 3a0f1189bb3420529f0ee4b5f2eee5323975bc91c859f1d961a27f51e82d60d4
- Size of remote file:
- 499 MB
- SHA256:
- 7b3070d54e9a6582a500785a53f40a838269d13cdf6a27711037580fed717bcd
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.