Skip to content
llmmodels
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

Alternatives to codebert-base
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
hubert-large-ll60kopenMetaMar 2022—————
bart-baseopenMetaMar 2022139M————
canine-copenGoogle DeepMindMar 2022132M————
bge-small-en-v1.5openBAAISep 202333M————
bge-base-en-v1.5openBAAISep 2023109M————
bge-reranker-largeopenHugging FaceSep 2023560M————
specter2_baseopenAllen Institute for AI (Ai2)Feb 2023—————
wavlm-largeopenMicrosoftMar 2022—————

More models from Microsoft

All Microsoft models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Phi 4openDec 202415B16K$0.07$0.14
Phi-2openDec 20232.8B———
Phi-1.5openSep 20231.4B———
Phi 4 MiniopenFeb 20253.8B8K$0.17$0.68
Florence-2-baseopenJun 2024232M———
harrier-oss-v1-0.6bopenMar 2026596M———
harrier-oss-v1-270mopenMar 2026268M———
Phi-4-reasoning-vision-15BopenJan 202615B———

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.