Domain
Natural Language Processing
We present Jamba, a new base large language model based on a novel hybrid Transformer-Mamba mixture-of-experts (MoE) architecture.Specifically, Jamba interleaves blocks of Transformer and Mamba layers, enjoying the benefits of both model families.MoE is added in some of these layers to increase model capacity while keeping active parameter usage manageable.This flexible architecture allows resource-and objective-specific configurations.In the particular configuration we have implemented, we end up with a powerful model that fits in a single 80GB GPU.Built at large scale, Jamba provides high throughput and small memory footprint compared to vanilla Transformers, and at the same time state-of-the-art performance on standard language model benchmarks and long-context evaluations.Remarkably, the model presents strong results for up to 256K tokens context length.We study various architectural decisions, such as how to combine Transformer and Mamba layers, and how to mix experts, and show that some of them are crucial in large scale modeling.We also describe several interesting properties of these architectures which the training and evaluation of Jamba have revealed, and plan to release checkpoints from various ablation runs, to encourage further exploration of this novel architecture.We make the weights of our implementation of Jamba publicly available under a permissive license.Model: https://huggingface.co/ai21labs/Jamba-v0.1
This paper presents Jamba, a novel large language model based on a hybrid Transformer-Mamba architecture. Jamba integrates transformer layers with Mamba layers in a mixture-of-experts setup to enhance model capacity while minimizing active parameter usage. It boasts high throughput and a small memory footprint, supporting a context length of up to 256K tokens, which is the longest for publicly available models. The authors conduct numerous ablation experiments to analyze design choices and their impact on performance across various benchmarks, revealing that the hybrid architecture yields improved performance compared to pure Transformer or Mamba models. Jamba is released under an open license to foster further research and experimentation in hybrid models, contributing to advancements in the field of language modeling.
This paper employs the following methods:
- Transformer
- Mamba
- Mixture-of-Experts (MoE)
- Jamba
- Mixtral-8x7B
- Llama-2 70B
The following datasets were used in this research:
- HellaSwag
- WinoGrande
- ARC-E
- ARC-Challenge
- PIQA
- BoolQ
- QuAC
- GSM8K
- HumanEval
- Natural Questions
- TruthfulQA
- MMLU
- BBH
- NarrativeQA
- LongFQA
- CUAD
- Banking77
- Trec-Fine
- NLU Intent
- Jamba model fits in a single 80GB GPU
- High throughput compared to vanilla Transformers
- State-of-the-art performance on language model benchmarks
- Strong long-context performance for up to 256K tokens
The authors identified the following limitations:
- Model was not aligned or instruction-tuned
- Limited to pre-training with no additional adaptation
- Number of GPUs: 1
- GPU Type: NVIDIA A100 80GB
Transformer
Mamba
Mixture-of-Experts
Long Contexts
Language Models