XGen-7B
by Salesforce · Sep 7, 2023
XGen-7B is an open-weight chat llm from Salesforce, released Sep 7, 2023. It has 6.7B parameters. It scores 70.3 on the Epoch Capabilities Index.
- Provider
- Salesforce
- Released
- Sep 7, 2023
- Type
- Chat LLM
- Parameters
- 6.7B
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- Open (permissive)
- Knowledge cutoff
- —
- Status
- Historical
- Training compute
- 8.0e+22 FLOP
- Training data
- 1429.5B tokens/words
About XGen-7B
Large Language Models (LLMs) have become ubiquitous across various domains, transforming the way we interact with information and conduct research. However, most high-performing LLMs remain confined behind proprietary walls, hindering scientific progress. Most open-source LLMs, on the other hand, are limited in their ability to support longer sequence lengths, which is a key requirement for many tasks that require inference over an input context. To address this, we have trained XGen-7B, a series of 7B parameter models on up to 8K sequence length for up to 1.5T tokens.
XGen-7B benchmarks
All benchmarks →Scores from the Epoch AI Benchmarking Hub (best reported setting). ECI = Epoch Capabilities Index.
How to run XGen-7B
XGen-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 6.7B parameters it needs roughly 4 GB of memory at 4-bit quantization.
XGen-7B vs alternatives
- XGen-7B vs Falcon-7B
- XGen-7B vs MPT-7B
- XGen-7B vs Phi-1.5
- XGen-7B vs vicuna-13b-v1.1
- XGen-7B vs Gemma 2B
- XGen-7B vs Llama 2-7B
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| Falcon-7Bopen | Technology Innovation Institute | Apr 2023 | 7.2B | — | — | — | 73.1 |
| MPT-7Bopen | MosaicML | May 2023 | 7B | — | — | — | 73.4 |
| Phi-1.5open | Microsoft | Sep 2023 | 1.4B | — | — | — | 68.4 |
| vicuna-13b-v1.1open | LMSYS | Apr 2023 | 13B | — | — | — | 76.1 |
| Gemma 2Bopen | Google DeepMind | Feb 2024 | 2.5B | — | — | — | 75.7 |
| Llama 2-7Bopen | Meta | Jul 2023 | 6.7B | — | — | — | 83.2 |
| RedPajama-INCITE-7B-Baseopen | Together AI | Jun 2023 | 6.9B | — | — | — | 57.7 |
| Qwen2.5-Coder-0.5Bopen | Alibaba (Qwen) | Nov 2024 | 494M | — | — | — | 68.1 |
More models from Salesforce
All Salesforce models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Llama-xLAM-2-8b-fc-ropen | Mar 2025 | 8B | — | — | — |
| GTA1-7B-2507open | Sep 2025 | 8.3B | — | — | — |
| blip2-opt-2.7bopen | Feb 2023 | 3.7B | — | — | — |
| xLAM-2-1b-fc-ropen | Mar 2025 | 1.5B | — | — | — |
| xLAM-1b-fc-ropen | Jul 2024 | 1.3B | — | — | — |
| codegen2-16B_Popen | Apr 2023 | 16B | — | — | — |
| blip2-flan-t5-xlopen | Feb 2023 | 3.9B | — | — | — |
| instructblip-vicuna-7bopen | May 2023 | 7.9B | — | — | — |
Frequently asked questions
Who made XGen-7B?
XGen-7B was developed by Salesforce (United States of America). It was released on Sep 7, 2023.
Is XGen-7B open source?
Yes. XGen-7B's weights are publicly available, so you can download and run it yourself.
How many parameters does XGen-7B have?
XGen-7B has 6.7B parameters.
Sources: epoch · paper. Last updated 2026-11-22.