Jamba-v0.1 is a base model in the Jamba series launched by AI21, belonging to the hybrid SSM-Transformer large language models and employing the Joint Attention and Mamba architecture. It is officially described as the first production-scale Mamba implementation, performing better than or matching leading models of the same scale on common benchmarks, and offering throughput advantages over traditional Transformer models.
In terms of use, this model is a pretrained base model that has not undergone instruction or conversational alignment; it is positioned as a foundation layer for fine-tuning, training, and developing custom solutions, including building chat or instruction versions.
Key capabilities and specifications: 52B total parameters, using a mixture-of-experts (MoE) structure with 12B active parameters; supports a 256K context length; a single 80GB GPU can hold up to 140K tokens; knowledge cutoff date is March 5, 2024; license is Apache 2.0.
Usage: transformers 4.40.0 or higher is recommended (minimum requirement 4.39.0 or higher). Running the optimized Mamba implementation requires first installing mamba-ssm and causal-conv1d, and the model must be placed on a CUDA device. If the optimized Mamba kernels are not used, use_mamba_kernels=False must be specified when loading, but this is not officially recommended because latency increases significantly. When using transformers<4.40.0, trust_remote_code=True must be set. The released checkpoint is saved in BF16, and torch_dtype must be specified when loading. FlashAttention2 can be enabled in half precision, but the model is too large to fit on a single 80GB GPU and requires parallelization with accelerate. 8-bit quantization is possible using bitsandbytes, and a single 80GB GPU can support sequence lengths up to 140K; it is officially recommended to exclude the Mamba blocks from quantization to avoid quality degradation. Any technique can be used for fine-tuning; an official example with the PEFT library is provided, requiring approximately 120GB of GPU memory (e.g., 2 A100 80GB GPUs).
Applicable scenarios: suitable for research and application development requiring long-context processing, fine-tuning of custom models, and scenarios exploring the hybrid SSM-Transformer architecture.
Limitations: as a base model, it has not undergone instruction/conversational alignment and does not have a safety review mechanism, so safeguards must be added by the user; the BOS token must be added to all prompts, and some evaluation frameworks may not enable it by default; better instruction-tuned versions Jamba-1.5-Mini and the larger Jamba-1.5-Large have been officially released.