Model reference · open weights
RedPajama-INCITE is an open-weight language model from togethercomputer. RedPajama-INCITE-Base-3B-v1 (BF16) weighs 5.7 GB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the togethercomputer/RedPajama-INCITE-Base-3B-v1 model card, 2026-10-01
What it is
| Released by | togethercomputer |
|---|---|
| Released | 2023-05-04 |
| VRAM | 5.7 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 2K each | |||
| RTX 3060 12 GB | 7 | all 2K | 11.6 GB |
| RTX 4060 Ti 16 GB | 13 | all 2K | 15.4 GB |
| RTX 3090 24 GB | 25 | all 2K | 23.4 GB |
| RTX 4090 24 GB | 25 | all 2K | 23.4 GB |
| RTX 5090 32 GB | 36 | all 2K | 31.0 GB |
| L40S 48 GB | 56 | all 2K | 44.0 GB |
| A100 80 GB | 107 | all 2K | 78.2 GB |
| H100 80 GB | 102 | all 2K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 125 | all 2K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 146 | all 2K | 107 GB |
| H200 141 GB | 191 | all 2K | 138 GB |
| B200 180 GB | 247 | all 2K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 24 | all 2K | 11.6 GB a card |
| Requests at once | 2K tokens each |
|---|---|
| 1 | 7.0 GB |
| 5 | 9.6 GB |
| 8 | 11.7 GB |
| 16 | 17.0 GB |
| 32 | 27.8 GB |
| 64 | 49.2 GB |
One card, with vLLM's small-card settings.
From the model card
RedPajama-INCITE-Base-3B-v1 was developed by Together and leaders from the open-source AI community including Ontocord.ai, ETH DS3Lab, AAI CERC, Université de Montréal, MILA - Québec AI Institute, Stanford Center for Research on Foundation Models (CRFM), Stanford Hazy Research research group and LAION. The training was done on 3,072 V100 GPUs provided as part of the INCITE 2023 project on Scalable Foundation Models for Transferrable Generalist AI, awarded to MILA, LAION, and EleutherAI in fall 2022, with support from the Oak Ridge Leadership Computing Facility (OLCF) and INCITE program.
Please note that the model requires transformers version >= 4.25.1.
This requires a GPU with 8GB memory.
import torch
import transformers
from transformers import AutoTokenizer, AutoModelForCausalLM
MIN_TRANSFORMERS_VERSION = '4.25.1'
# check transformers version
assert transformers.__version__ >= MIN_TRANSFORMERS_VERSION, f'Please upgrade transformers to version {MIN_TRANSFORMERS_VERSION} or higher.'
# init
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-INCITE-Base-3B-v1")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-Base-3B-v1", torch_dtype=torch.float16)
model = model.to('cuda:0')
# infer
prompt = "Alan Turing is"
inputs = tokenizer(prompt, return_tensors='pt').to(model.device)
input_length = inputs.input_ids.shape[1]
outputs = model.generate(
**inputs, max_new_tokens=128, do_sample=True, temperature=0.7, top_p=0.7, top_k=50, return_dict_in_generate=True,
)
token = outputs.sequences[0, input_length:]
output_str = tokenizer.decode(token)
print(output_str)
"""
a name that has been synonymous with the computer age since the 1950s. The British mathematician, logician, and cryptanalyst is widely regarded as the father of modern computing. His contributions to the development of the modern computer and the theory of computation have had a profound impact on the world we live in today.
Turing’s contributions to the development of the modern computer were made in the 1940s and 1950s. He is most famous for his work on the Turing machine, a theoretical model of a computing machine that was able to perform all the mathematical operations of a computer. Turing’s work on the...
"""
To run inference with int8, please ensure you have installed accelerate and bitandbytes. You can install them with the following command:
pip install accelerate
pip install bitsandbytes
Then you can run inference with int8 as follows:
import torch
import transformers
from transformers import AutoTokenizer, AutoModelForCausalLM
MIN_TRANSFORMERS_VERSION = '4.25.1'
# check transformers version
assert transformers.__version__ >= MIN_TRANSFORMERS_VERSION, f'Please upgrade transformers to version {MIN_TRANSFORMERS_VERSION} or higher.'
# init
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-INCITE-Base-3B-v1")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-Base-3B-v1", device_map='auto', torch_dtype=torch.float16, load_in_8bit=True)
# infer
prompt = "Alan Turing is"
inputs = tokenizer(prompt, return_tensors='pt').to(model.device)
input_length = inputs.input_ids.shape[1]
outputs = model.generate(
**inputs, max_new_tokens=128, do_sample=True, temperature=0.7, top_p=0.7, top_k=50, return_dict_in_generate=True
)
token = outputs.sequences[0, input_length:]
output_str = tokenizer.decode(token)
print(output_str)
"""
the man who cracked the Enigma code during World War II, and who was later convicted of homosexual acts. He was a brilliant mathematician, and a visionary who foresaw the computer age....
"""
You can run inference on CPU as follows:
import torch
import transformers
from transformers import AutoTokenizer, AutoModelForCausalLM
MIN_TRANSFORMERS_VERSION = '4.25.1'
# check transformers version
assert transformers.__version__ >= MIN_TRANSFORMERS_VERSION, f'Please upgrade transformers to version {MIN_TRANSFORMERS_VERSION} or higher.'
# init
tokenizer = AutoTokenizer.from_pretrained("togethercomputer/RedPajama-INCITE-Base-3B-v1")
model = AutoModelForCausalLM.from_pretrained("togethercomputer/RedPajama-INCITE-Base-3B-v1", torch_dtype=torch.bfloat16)
# infer
prompt = "Alan Turing is"
inputs = tokenizer(prompt, return_tensors='pt').to(model.device)
input_length = inputs.input_ids.shape[1]
outputs = model.generate(
**inputs, max_new_tokens=128, do_sample=True, temperature=0.7, top_p=0.7, top_k=50, return_dict_in_generate=True
)
token = outputs.sequences[0, input_length:]
output_str = tokenizer.decode(token)
print(output_str)
"""
a name that is synonymous with the history of computer science. As the man who invented the Turing machine, the mathematical model that defines the limits of what can be computed, Turing is credited with the invention of the modern computer. Turing was also a mathematician and logician, and his work in these fields led to the development of the field of artificial intelligence...
"""
Please note that since LayerNormKernelImpl is not implemented in fp16 for CPU, we use bfloat16 for CPU inference.
Excluded uses are described below.
It is the responsibility of the end user to ensure that the model is used in a responsible a
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.