Skip to content
llmmodels
Chat LLMOpen weights

CodeGPT-small-py

by Microsoft · Mar 2, 2022

CodeGPT-small-py is an open-weight chat llm from Microsoft, released Mar 2, 2022.

Provider
Microsoft
Released
Mar 2, 2022
Type
Chat LLM
Parameters
Undisclosed
Context window
—
Max output
—
Input
text
Output
text
Weights
Open weights
License
—
Knowledge cutoff
—
Status
Open weights
HF downloads (30d)
3.7K

How to run CodeGPT-small-py

CodeGPT-small-py is an open-weight model published on Hugging Face as microsoft/CodeGPT-small-py. 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.

CodeGPT-small-py vs alternatives

Alternatives to CodeGPT-small-py
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
opt-125mopenMetaMay 2022—————
OPT-350MopenMetaJun 2022350M————
reformer-crime-and-punishmentopenGoogle DeepMindMar 2022—————
reformer-enwik8openGoogle DeepMindMar 2022—————
bloomz-560mopenBigScienceOct 2022559M————
BLOOM-560MopenBigScienceJul 2022559M————
GPT-NeoX-20BopenEleutherAIFeb 202221B————
codegen-350M-monoopenSalesforceApr 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 CodeGPT-small-py?

CodeGPT-small-py was developed by Microsoft (United States). It was released on Mar 2, 2022.

Is CodeGPT-small-py open source?

Yes. CodeGPT-small-py's weights are publicly available on Hugging Face (microsoft/CodeGPT-small-py), so you can download and run it yourself.

Sources: huggingface · huggingface. Last updated 2026-11-22.