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
- GRITLM 7B vs Llama-3.1-8B-Instruct
- GRITLM 7B vs Llama 3-8B
- GRITLM 7B vs Gemma 7B
- GRITLM 7B vs Gemma 2 9B
- GRITLM 7B vs Qwen/Qwen2.5-7B-Instruct
- GRITLM 7B vs Yi-9B
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Llama-3.1-8B-Instructopen | Meta | Jul 2024 | 8B | 128K | $0.02 | $0.04 | 110.9 |
| Llama 3-8Bopen | Meta | Apr 2024 | 8B | — | — | — | 109.1 |
| Gemma 7Bopen | Google DeepMind | Feb 2024 | 8.5B | — | — | — | 103.2 |
| Gemma 2 9Bopen | Google DeepMind | Jun 2024 | 9.2B | — | — | — | 112.4 |
| Qwen/Qwen2.5-7B-Instructopen | Alibaba (Qwen) | Sep 2024 | 7.6B | 33K | $0.05 | $0.05 | — |
| Yi-9Bopen | 01.AI | Mar 2024 | 8.8B | — | — | — | 102.2 |
| Qwen2.5-7Bopen | Alibaba (Qwen) | Sep 2024 | 7.6B | — | — | — | — |
| Mistral Large (latest)open | Mistral AI | Nov 2024 | — | 125K | $0.5 | $1.50 | — |
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-3-small 7.4Bopen | Apr 2024 | 7.4B | — | — | — |
| phi-3-medium 14Bopen | Apr 2024 | 14B | — | — | — |
| phi-3-mini 3.8Bopen | Apr 2024 | 3.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 | — | — | — |
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.