Skip to content
llmmodels
Chat LLMOpen weightsHistorical

GRITLM 7B

by Microsoft · Apr 17, 2024

GRITLM 7B is an open-weight chat llm from Microsoft, released Apr 17, 2024. It has 7.2B parameters.

Provider
Microsoft
Released
Apr 17, 2024
Type
Chat LLM
Parameters
7.2B
Context window
—
Max output
—
Input
text
Output
text
Weights
Open weights
License
Open (permissive)
Knowledge cutoff
—
Status
Historical

About GRITLM 7B

7B parameter model that uses bidirectional attention for embedding and causal attention for generation. It is finetuned from Mistral-7B All text-based language problems can be reduced to either generation or embedding. Current models only perform well at one or the other. We introduce generative representational instruction tuning (GRIT) whereby a large language model is trained to handle both generative and embedding tasks by distinguishing between them through instructions.

How to run GRITLM 7B

GRITLM 7B is an open-weight model. 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. At 7.2B parameters it needs roughly 4 GB of memory at 4-bit quantization.

GRITLM 7B vs alternatives

Alternatives to GRITLM 7B
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
Llama-3.1-8B-InstructopenMetaJul 20248B128K$0.02$0.04110.9
Llama 3-8BopenMetaApr 20248B———109.1
Gemma 7BopenGoogle DeepMindFeb 20248.5B———103.2
Gemma 2 9BopenGoogle DeepMindJun 20249.2B———112.4
Qwen/Qwen2.5-7B-InstructopenAlibaba (Qwen)Sep 20247.6B33K$0.05$0.05—
Yi-9Bopen01.AIMar 20248.8B———102.2
Qwen2.5-7BopenAlibaba (Qwen)Sep 20247.6B————
Mistral Large (latest)openMistral AINov 2024—125K$0.5$1.50—

More models from Microsoft

All Microsoft models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Phi 4openDec 202415B16K$0.07$0.14
Phi-2openDec 20232.8B———
phi-3-small 7.4BopenApr 20247.4B———
phi-3-medium 14BopenApr 202414B———
phi-3-mini 3.8BopenApr 20243.8B———
Phi-1.5openSep 20231.4B———
Phi 4 MiniopenFeb 20253.8B8K$0.17$0.68
Florence-2-baseopenJun 2024232M———

Frequently asked questions

Who made GRITLM 7B?

GRITLM 7B was developed by Microsoft (United States of America,Hong Kong,United States of America). It was released on Apr 17, 2024.

Is GRITLM 7B open source?

Yes. GRITLM 7B's weights are publicly available, so you can download and run it yourself.

How many parameters does GRITLM 7B have?

GRITLM 7B has 7.2B parameters.

Sources: epoch · paper. Last updated 2026-11-22.