Model reference · open weights
stablelm-4e1t is an open-weight language model from Stability AI. stablelm-3b-4e1t (BF16) weighs 5.6 GB; the smallest configuration that runs it is RTX 3060 12 GB.
Summary of the stabilityai/stablelm-3b-4e1t model card, 2026-10-01
What it is
| Released by | Stability AI |
|---|---|
| Released | 2023-09-29 |
| Parameters | 2.8B |
| VRAM | 5.6 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 4K each | |||
| RTX 3060 12 GB | 4 | all 4K | 11.6 GB |
| RTX 4060 Ti 16 GB | 6 | all 4K | 15.4 GB |
| RTX 3090 24 GB | 12 | all 4K | 23.4 GB |
| RTX 4090 24 GB | 12 | all 4K | 23.4 GB |
| RTX 5090 32 GB | 18 | all 4K | 31.0 GB |
| L40S 48 GB | 28 | all 4K | 44.0 GB |
| A100 80 GB | 53 | all 4K | 78.2 GB |
| H100 80 GB | 51 | all 4K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 63 | all 4K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 73 | all 4K | 107 GB |
| H200 141 GB | 95 | all 4K | 138 GB |
| B200 180 GB | 124 | all 4K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 12 | all 4K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 17 | all 4K | 15.4 GB a card |
| Requests at once | 4K tokens each |
|---|---|
| 1 | 7.5 GB |
| 5 | 12.9 GB |
| 8 | 16.9 GB |
| 16 | 27.6 GB |
| 32 | 49.1 GB |
| 64 | 92.1 GB |
One card, with vLLM's small-card settings.
From the model card
StableLM-3B-4E1T is a 3 billion parameter decoder-only language model pre-trained on 1 trillion tokens of diverse English and code datasets for 4 epochs.
Get started generating text with StableLM-3B-4E1T by using the following code snippet:
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("stabilityai/stablelm-3b-4e1t")
model = AutoModelForCausalLM.from_pretrained(
"stabilityai/stablelm-3b-4e1t",
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.75,
top_p=0.95,
do_sample=True,
)
print(tokenizer.decode(tokens[0], skip_special_tokens=True))
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("stabilityai/stablelm-3b-4e1t")
model = AutoModelForCausalLM.from_pretrained(
"stabilityai/stablelm-3b-4e1t",
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.75,
top_p=0.95,
do_sample=True,
)
print(tokenizer.decode(tokens[0], skip_special_tokens=True))
StableLM-3B-4E1T models are auto-regressive language models based on the transformer decoder architecture.lm@stability.aiThe model is a decoder-only transformer similar to the LLaMA (Touvron et al., 2023) architecture with the following modifications:
| Parameters | Hidden Size | Layers | Heads | Sequence Length |
|---|---|---|---|---|
| 2,795,443,200 | 2560 | 32 | 32 | 4096 |
For complete dataset and training details, please see the StableLM-3B-4E1T Technical Report.
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).
The model is pre-trained on the aforementioned datasets in bfloat16 precision, optimized with AdamW, and trained using the NeoX tokenizer with a vocabulary size of 50,257. We outline the complete hyperparameters choices in the project's GitHub repository - config.
Hardware: StableLM-3B-4E1T was trained on the Stability AI cluster across 256 NVIDIA A100 40GB GPUs (AWS P4d instances). Training began on August 23, 2023, and took approximately 30 days to complete.
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)
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.
As a base model, this model may exhibit unreliable, unsafe, or other undesirable behaviors that must be corrected through evaluation and fine-tuning prior to deployment. The pre-training dataset may have contained offensive or inappropriate content, even after applying data cleansing filters, which can be reflected in the model-generated text. We recommend that users exercise caution when using these models in production systems. Do not use the models if they are unsuitable for your application, or for any applications that may cause d
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.
Benchmarks
As published on the model card: the maker's own numbers, not measured by AxForge.
| Task | Dataset | Metric | Score |
|---|---|---|---|
| Text Generation | AI2 Reasoning Challenge (25-Shot) | normalized accuracy | 46.590 |
| Text Generation | HellaSwag (10-Shot) | normalized accuracy | 75.940 |
| Text Generation | MMLU (5-Shot) | accuracy | 45.230 |
| Text Generation | TruthfulQA (0-shot) | mc2 | 37.200 |
| Text Generation | Winogrande (5-shot) | accuracy | 71.190 |
| Text Generation | GSM8k (5-shot) | accuracy | 3.340 |