Model reference · open weights

stablelm-2-1

LLMs stabilityai Text gen 1 build Its own licence terms 8k dl/mo

stablelm-2-1 is an open-weight language model from Stability AI. stablelm-2-1_6b (BF16) weighs 3.3 GB; the smallest configuration that runs it is RTX 3060 12 GB.

  • Stable LM 2 1.6B is a 1.6 billion parameter decoder-only language model developed by Stability AI for text generation.
  • It supports a context length of 4096 tokens and was pre-trained on 2 trillion tokens of multilingual and code data.
  • The model is distributed under the Stability AI Community License.

Summary of the stabilityai/stablelm-2-1_6b model card, 2026-10-01

What it is

Released byStability AI
Released2024-01-18
Parameters1.6B
VRAM3.3 GB for the weights

What it runs on

Memory and cards for stablelm-2-1_6b (BF16)

3.3 GBweights, file size
197 MBcache per 1K tokens
612 MBruntime overhead, at least
4,096 tokenscontext max
CardRequests at onceContext maxMemory
4K each
RTX 3060 12 GB9all 4K11.6 GB
RTX 4060 Ti 16 GB14all 4K15.4 GB
RTX 3090 24 GB24all 4K23.4 GB
RTX 4090 24 GB24all 4K23.4 GB
RTX 5090 32 GB33all 4K31.0 GB
L40S 48 GB49all 4K44.0 GB
A100 80 GB92all 4K78.2 GB
H100 80 GB87all 4K78.1 GB
RTX PRO 6000 Blackwell 96 GB107all 4K93.8 GB
DGX Spark (GB10) 128 GB unified124all 4K107 GB
H200 141 GB162all 4K138 GB
B200 180 GB209all 4K176 GB
Memory needed at each load
Requests at once4K tokens each
14.7 GB
57.9 GB
810.3 GB
1616.8 GB
3229.7 GB
6455.4 GB

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

From the model card

What Stability AI says about stablelm-2-1

Read the model card

Please note: For commercial use, please refer to https://stability.ai/license

Model Description

Stable LM 2 1.6B is a 1.6 billion parameter decoder-only language model pre-trained on 2 trillion tokens of diverse multilingual and code datasets for two epochs.

Usage

Get started generating text with Stable LM 2 1.6B by using the following code snippet:

from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("stabilityai/stablelm-2-1_6b")
model = AutoModelForCausalLM.from_pretrained(
  "stabilityai/stablelm-2-1_6b",
  torch_dtype="auto",
)
model.cuda()
inputs = tokenizer("The weather is always wonderful", return_tensors="pt").to(model.device)
tokens = model.generate(
  **inputs,
  max_new_tokens=64,
  temperature=0.70,
  top_p=0.95,
  do_sample=True,
)
print(tokenizer.decode(tokens[0], skip_special_tokens=True))

Run with Flash Attention 2 ⚡️

from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("stabilityai/stablelm-2-1_6b")
model = AutoModelForCausalLM.from_pretrained(
  "stabilityai/stablelm-2-1_6b",
  torch_dtype="auto",
  attn_implementation="flash_attention_2",
)
model.cuda()
inputs = tokenizer("The weather is always wonderful", return_tensors="pt").to(model.device)
tokens = model.generate(
  **inputs,
  max_new_tokens=64,
  temperature=0.70,
  top_p=0.95,
  do_sample=True,
)
print(tokenizer.decode(tokens[0], skip_special_tokens=True))

Model Details

  • Developed by: Stability AI
  • Model type: Stable LM 2 1.6B models are auto-regressive language models based on the transformer decoder architecture.
  • Language(s): English
  • Paper: Stable LM 2 1.6B Technical Report
  • Library: GPT-NeoX
  • License: Stability AI Community License.
  • Commercial License: to use this model commercially, please refer to https://stability.ai/license
  • Contact: For questions and comments about the model, please email lm@stability.ai

Model Architecture

The model is a decoder-only transformer similar to the LLaMA (Touvron et al., 2023) architecture with the following modifications:

ParametersHidden SizeLayersHeadsSequence Length
1,644,417,024204824324096
  • Position Embeddings: Rotary Position Embeddings (Su et al., 2021) applied to the first 25% of head embedding dimensions for improved throughput following Black et al. (2022).
  • Normalization: LayerNorm (Ba et al., 2016) with learned bias terms as opposed to RMSNorm (Zhang & Sennrich, 2019).
  • Biases: We remove all bias terms from the feed-forward networks and multi-head self-attention layers, except for the biases of the query, key, and value projections (Bai et al., 2023).
  • Tokenizer: We use Arcade100k, a BPE tokenizer extended from OpenAI's tiktoken.cl100k_base. We split digits into individual tokens following findings by Liu & Low (2023).

Training

Training Dataset

The dataset is comprised of a filtered mixture of open-source large-scale datasets available on the HuggingFace Hub: Falcon RefinedWeb extract (Penedo et al., 2023), RedPajama-Data (Together Computer., 2023) and The Pile (Gao et al., 2020) both without the Books3 subset, and StarCoder (Li et al., 2023). We further supplement our training with multi-lingual data from CulturaX (Nguyen et al., 2023) and, in particular, from its OSCAR corpora, as well as restructured data in the style of Yuan & Liu (2022).

  • Given the large amount of web data, we recommend fine-tuning the base Stable LM 2 1.6B for your downstream tasks.

Training Procedure

The model is pre-trained on the aforementioned datasets in bfloat16 precision, optimized with AdamW, and trained using the Arcade100k tokenizer with a vocabulary size of 100,352. We outline the complete hyperparameters choices in the project's GitHub repository - config*. The final checkpoint of pre-training, before cooldown, is provided in the global_step420000 branch.

Training Infrastructure

  • Hardware: Stable LM 2 1.6B was trained on the Stability AI cluster across 512 NVIDIA A100 40GB GPUs (AWS P4d instances).

  • Software: We use a fork of gpt-neox (EleutherAI, 2021), train under 2D parallelism (Data and Tensor Parallel) with ZeRO-1 (Rajbhandari et al., 2019), and rely on flash-attention as well as SwiGLU and Rotary Embedding kernels from FlashAttention-2 (Dao et al., 2023)

Use and Limitations

Intended Use

The model is intended to be used as a foundational base model for application-specific fine-tuning. Developers must evaluate and fine-tune the model for safe performance in downstream applications. For commercial use, please refer to https://stability.ai/membership.

Limitations an

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