Model reference · open weights

open_llama

LLMs openlm-research Text gen 1 build Open weights 82k dl/mo

open_llama is an open-weight language model from openlm-research. open_llama_7b (BF16) weighs 13.5 GB; the smallest configuration that runs it is RTX 4060 Ti 16 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • OpenLLaMA is a permissively licensed open source reproduction of Meta AI's LLaMA large language model, developed by openlm-research for text generation.
  • The 7B parameter model was trained on 1 trillion tokens from the RedPajama dataset and supports a context length of 2048 tokens.
  • It is released under the Apache 2.0 license and provides weights in PyTorch and JAX formats.

Summary of the openlm-research/open_llama_7b model card, 2026-10-01

What it is

Released byopenlm-research
Released2023-06-07
VRAM13.5 GB for the weights

What it runs on

Memory and cards for open_llama_7b (BF16)

13.5 GBweights, file size
524 MBcache per 1K tokens
620 MBruntime overhead, at least
2,048 tokenscontext max
CardRequests at onceContext maxMemory
2K each
RTX 3060 12 GB11.6 GB
RTX 4060 Ti 16 GB1all 2K15.4 GB
RTX 3090 24 GB8all 2K23.4 GB
RTX 4090 24 GB8all 2K23.4 GB
RTX 5090 32 GB15all 2K31.0 GB
L40S 48 GB27all 2K44.0 GB
A100 80 GB59all 2K78.2 GB
H100 80 GB56all 2K78.1 GB
RTX PRO 6000 Blackwell 96 GB71all 2K93.8 GB
DGX Spark (GB10) 128 GB unified84all 2K107 GB
H200 141 GB112all 2K138 GB
B200 180 GB147all 2K176 GB
2× RTX 3060 12 GB
tensor parallel
7all 2K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
14all 2K15.4 GB a card
Memory needed at each load
Requests at once2K tokens each
115.2 GB
519.5 GB
822.7 GB
1631.3 GB
3248.5 GB
6482.8 GB

One card, with vLLM's small-card settings.

From the model card

What openlm-research says about open_llama

Read the model card

In this repo, we present a permissively licensed open source reproduction of Meta AI's LLaMA large language model. We are releasing a 7B and 3B model trained on 1T tokens, as well as the preview of a 13B model trained on 600B tokens. We provide PyTorch and JAX weights of pre-trained OpenLLaMA models, as well as evaluation results and comparison against the original LLaMA models. Please see the project homepage of OpenLLaMA for more details.

Weights Release, License and Usage

We release the weights in two formats: an EasyLM format to be use with our EasyLM framework, and a PyTorch format to be used with the Hugging Face transformers library. Both our training framework EasyLM and the checkpoint weights are licensed permissively under the Apache 2.0 license.

Loading the Weights with Hugging Face Transformers

Preview checkpoints can be directly loaded from Hugging Face Hub. Please note that it is advised to avoid using the Hugging Face fast tokenizer for now, as we’ve observed that the auto-converted fast tokenizer sometimes gives incorrect tokenizations. This can be achieved by directly using the LlamaTokenizer class, or passing in the use_fast=False option for the AutoTokenizer class. See the following example for usage.

import torch
from transformers import LlamaTokenizer, LlamaForCausalLM

model_path = 'openlm-research/open_llama_3b'
# model_path = 'openlm-research/open_llama_7b'

tokenizer = LlamaTokenizer.from_pretrained(model_path)
model = LlamaForCausalLM.from_pretrained(
    model_path, torch_dtype=torch.float16, device_map='auto',
)

prompt = 'Q: What is the largest animal?\nA:'
input_ids = tokenizer(prompt, return_tensors="pt").input_ids

generation_output = model.generate(
    input_ids=input_ids, max_new_tokens=32
)
print(tokenizer.decode(generation_output[0]))

For more advanced usage, please follow the transformers LLaMA documentation.

Evaluating with LM-Eval-Harness

The model can be evaluated with lm-eval-harness. However, due to the aforementioned tokenizer issue, we need to avoid using the fast tokenizer to obtain the correct results. This can be achieved by passing in use_fast=False to this part of lm-eval-harness, as shown in the example below:

tokenizer = self.AUTO_TOKENIZER_CLASS.from_pretrained(
    pretrained if tokenizer is None else tokenizer,
    revision=revision + ("/" + subfolder if subfolder is not None else ""),
    use_fast=False
)

Loading the Weights with EasyLM

For using the weights in our EasyLM framework, please refer to the LLaMA documentation of EasyLM. Note that unlike the original LLaMA model, our OpenLLaMA tokenizer and weights are trained completely from scratch so it is no longer needed to obtain the original LLaMA tokenizer and weights. Note that we use BOS (beginning of sentence) token (id=1) during training, so it is best to prepend this token for best performance during few-shot evaluation.

Dataset and Training

We train our models on the RedPajama dataset released by Together, which is a reproduction of the LLaMA training dataset containing over 1.2 trillion tokens. We follow the exactly same preprocessing steps and training hyperparameters as the original LLaMA paper, including model architecture, context length, training steps, learning rate schedule, and optimizer. The only difference between our setting and the original one is the dataset used: OpenLLaMA employs the RedPajama dataset rather than the one utilized by the original LLaMA.

We train the models on cloud TPU-v4s using EasyLM, a JAX based training pipeline we developed for training and fine-tuning large language models. We employ a combination of normal data parallelism and fully sharded data parallelism (also know as ZeRO stage 3) to balance the training throughput and memory usage. Overall we reach a throughput of over 2200 tokens / second / TPU-v4 chip for our 7B model.

Evaluation

We evaluated OpenLLaMA on a wide range of tasks using lm-evaluation-harness. The LLaMA results are generated by running the original LLaMA model on the same evaluation metrics. We note that our results for the LLaMA model differ slightly from the original LLaMA paper, which we believe is a result of different evaluation protocols. Similar differences have been reported in this issue of lm-evaluation-harness. Additionally, we present the results of GPT-J, a 6B parameter model trained on the Pile dataset by EleutherAI.

The original LLaMA model was trained for 1 trillion tokens and GPT-J was trained for 500 billion tokens. We present the results in the table below. OpenLLaMA exhibits comparable performance to the original LLaMA and GPT-J across a majority of tasks, and outperforms them in some tasks.

Task/MetricGPT-J 6BLLaMA 7BOpenLLaMA 7BOpenLLaMA 3BOpenLLaMA 13B 600BT
anli_r1/acc0.320.350.330.330.33
anli_r2/acc0.340.340.36

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms