StableLM is a series of language models continuously developed by Stability AI, and the repository is continually updated with new checkpoints. The following introduces it in sections by purpose, main capabilities, usage, applicable scenarios, and limitations.
Purpose: StableLM is intended for language model research and downstream task fine-tuning, providing base models (Base) and dialogue fine-tuned models (Tuned), as well as StableVicuna-13B, an RLHF fine-tuned version based on Vicuna-13B.
Main capabilities:
- StableLM-3B-4E1T: 3 billion parameters, using a multi-round training mechanism, trained for 4 epochs on 1 trillion tokens, with a decoder-only Transformer architecture similar to LLaMA, using rotary position embeddings (applied to the first 25% of head embedding dimensions), LayerNorm with learned bias, and the GPT-NeoX tokenizer. The training data is a filtered mixture of Falcon RefinedWeb, RedPajama-Data, The Pile (excluding subsets such as Books3), and StarCoder. The official claim is that it reached the state of the art at the time (September 2023) among open-source models at the 3B parameter scale and is comparable to some 7B models.
- StableLM-Alpha v2: 3B and 7B parameters, introducing the SwiGLU architecture and higher-quality data sources, with a context length of 4096 tokens. It uses multi-stage context extension: first training on 1 trillion tokens with a 2048 context, then training on 100 billion tokens with a 4096 context. In the data mixture, the sampling proportion of web text was increased from 35% to 71%, and RefinedWeb and C4 were used to replace The Pile v2 Common-Crawl.
- StableLM-Alpha: the initial series, 3B and 7B parameters, trained on a new dataset of about 1.5 trillion tokens, with a context length of 4096 tokens.
- StableLM-Tuned-Alpha: dialogue models fine-tuned using the Stanford Alpaca pipeline combined with five datasets: Alpaca, gpt4all, ShareGPT52K, Dolly, and HH.
- StableVicuna-13B: RLHF fine-tuning of Vicuna-13B v0,due to the original non-commercial license of LLaMA, it is released only as incremental weights.
Usage: All models are hosted on the Hugging Face Hub, and the repository provides inference notebooks that can run inference under limited GPU capability. The dialogue model StableLM-Tuned-Alpha requires prompts in the format <|SYSTEM|>...<|USER|>...<|ASSISTANT|>.... The official recommendation is to fine-tune the base models for downstream tasks, and YAML configuration files are provided to describe hyperparameters.
Applicable scenarios: language model research, downstream task fine-tuning, dialogue system experiments, and open-source model evaluation and comparison.
Limitations: As pretrained large models, without additional fine-tuning and reinforcement learning, response quality may vary, and they may contain offensive language and views. StableVicuna is released only as incremental weights due to the original license restrictions. The base models use the CC BY-SA-4.0 license, the fine-tuned models use the CC BY-NC-SA-4.0 non-commercial license, and the code uses the Apache 2.0 license.