Embedding modelOpen weights
codebert-base
by Microsoft · Mar 2, 2022
codebert-base is an open-weight embedding model from Microsoft, released Mar 2, 2022.
- Provider
- Microsoft
- Released
- Mar 2, 2022
- Type
- Embedding model
- Parameters
- Undisclosed
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- —
- Knowledge cutoff
- —
- Status
- Open weights
- HF downloads (30d)
- 205.7K
How to run codebert-base
codebert-base is an open-weight model published on Hugging Face as microsoft/codebert-base. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI.
codebert-base vs alternatives
- codebert-base vs hubert-large-ll60k
- codebert-base vs bart-base
- codebert-base vs canine-c
- codebert-base vs bge-small-en-v1.5
- codebert-base vs bge-base-en-v1.5
- codebert-base vs bge-reranker-large
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| hubert-large-ll60kopen | Meta | Mar 2022 | — | — | — | — | — |
| bart-baseopen | Meta | Mar 2022 | 139M | — | — | — | — |
| canine-copen | Google DeepMind | Mar 2022 | 132M | — | — | — | — |
| bge-small-en-v1.5open | BAAI | Sep 2023 | 33M | — | — | — | — |
| bge-base-en-v1.5open | BAAI | Sep 2023 | 109M | — | — | — | — |
| bge-reranker-largeopen | Hugging Face | Sep 2023 | 560M | — | — | — | — |
| specter2_baseopen | Allen Institute for AI (Ai2) | Feb 2023 | — | — | — | — | — |
| wavlm-largeopen | Microsoft | Mar 2022 | — | — | — | — | — |
More models from Microsoft
All Microsoft models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Phi 4open | Dec 2024 | 15B | 16K | $0.07 | $0.14 |
| Phi-2open | Dec 2023 | 2.8B | — | — | — |
| Phi-1.5open | Sep 2023 | 1.4B | — | — | — |
| Phi 4 Miniopen | Feb 2025 | 3.8B | 8K | $0.17 | $0.68 |
| Florence-2-baseopen | Jun 2024 | 232M | — | — | — |
| harrier-oss-v1-0.6bopen | Mar 2026 | 596M | — | — | — |
| harrier-oss-v1-270mopen | Mar 2026 | 268M | — | — | — |
| Phi-4-reasoning-vision-15Bopen | Jan 2026 | 15B | — | — | — |
Frequently asked questions
Who made codebert-base?
codebert-base was developed by Microsoft (United States). It was released on Mar 2, 2022.
Is codebert-base open source?
Yes. codebert-base's weights are publicly available on Hugging Face (microsoft/codebert-base), so you can download and run it yourself.
Sources: huggingface · huggingface. Last updated 2026-11-22.