OpenLLaMA is a permissively licensed open-source reproduction project of Meta AI's LLaMA large language model, and this page covers its 13B parameter version. The project has released 3B, 7B, and 13B models, all trained on 1 trillion tokens, and provides pre-trained weights in PyTorch and JAX formats, along with evaluation results and comparisons with the original LLaMA.
Purpose: This model is primarily intended for text generation tasks and can serve as an open-source alternative to LLaMA for research or application development.
Key capabilities: The model has 13 billion parameters and is trained on the RedPajama dataset released by Together (over 1.2 trillion tokens). The preprocessing steps and training hyperparameters (including model architecture, context length, training steps, learning rate schedule, and optimizer) all follow the original LLaMA paper, with the only difference being the use of the RedPajama dataset. Training was completed on Cloud TPU-v4 using the JAX-based EasyLM training pipeline, combining data parallelism and fully sharded data parallelism (ZeRO stage 3). Evaluation was performed using lm-evaluation-harness across a wide range of tasks, and the results show that OpenLLaMA performs comparably to the original LLaMA and GPT-J on most tasks, and better on some tasks.
Usage: The weights are provided in two formats: EasyLM format (for use with the EasyLM framework) and PyTorch format (for use with the Hugging Face transformers library). Both the EasyLM training framework and the checkpoint weights are licensed under Apache 2.0. When loading with Hugging Face Transformers, it is recommended to avoid using the fast tokenizer, because the automatically converted fast tokenizer can sometimes produce incorrect tokenization; this can be achieved by directly using the LlamaTokenizer class or by passing the use_fast=False option to AutoTokenizer. When evaluating with lm-eval-harness, use_fast=False must likewise be passed to avoid tokenization issues. When using the EasyLM framework, since OpenLLaMA's tokenizer and weights are trained entirely from scratch, it is no longer necessary to obtain the original LLaMA's tokenizer and weights; the BOS (beginning of sentence) token (id=1) was used during training, so it is best to prepend this token during few-shot evaluation for optimal performance.
Applicable scenarios: Suitable for scenarios requiring an open-source, permissively licensed large language model for text generation, research experiments, or as a base model for fine-tuning.
Limitations: The materials do not provide specific details on fees, pricing, platform compatibility, or performance guarantees. Model performance evaluation results can be found on the project page, but note that differences in evaluation protocols may cause results to differ slightly from those in the original LLaMA paper. In addition, the model performs unusually well on the CB and WSC tasks, which is suspected to be due to benchmark data contamination, so these two tasks were removed from the benchmark.