Model reference · open weights
falcon-mamba is an open-weight language model from tiiuae. falcon-mamba-7b (BF16) weighs 14.5 GB; the smallest configuration that runs it is RTX 4060 Ti 16 GB.
Summary of the tiiuae/falcon-mamba-7b model card, 2026-10-01
What it is
| Released by | tiiuae |
|---|---|
| Released | 2024-07-17 |
| Parameters | 7.3B |
| VRAM | 14.5 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB | — | — | — | 11.6 GB |
| RTX 4060 Ti 16 GB | 5 | 5 | 128K | 15.4 GB |
| RTX 3090 24 GB | 206 | 206 | 128K | 23.4 GB |
| RTX 4090 24 GB | 205 | 205 | 128K | 23.4 GB |
| RTX 5090 32 GB | 397 | 397 | 128K | 31.0 GB |
| L40S 48 GB | 722 | 722 | 128K | 44.0 GB |
| A100 80 GB | 1000+ | 1000+ | 128K | 78.2 GB |
| H100 80 GB | 1000+ | 1000+ | 128K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 1000+ | 1000+ | 128K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 1000+ | 1000+ | 128K | 107 GB |
| H200 141 GB | 1000+ | 1000+ | 128K | 138 GB |
| B200 180 GB | 1000+ | 1000+ | 128K | 176 GB |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 15.2 GB | 15.2 GB |
| 5 | 15.4 GB | 15.4 GB |
| 8 | 15.5 GB | 15.5 GB |
| 16 | 15.8 GB | 15.8 GB |
| 32 | 16.5 GB | 16.5 GB |
| 64 | 17.7 GB | 17.7 GB |
One card, with vLLM's small-card settings.
From the model card
Check out the blogpost for more details!
Find below some example scripts on how to use the model in transformers (Make sure to have the latest transformers, or the one built from source):
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-mamba-7b")
model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-mamba-7b")
input_text = "Question: How many hours in one day? Answer: "
input_ids = tokenizer(input_text, return_tensors="pt").input_ids
outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))
# pip install accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-mamba-7b")
model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-mamba-7b", device_map="auto")
input_text = "Question: How many hours in one day? Answer: "
input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda")
outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))
torch.compileimport torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-mamba-7b")
model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-mamba-7b", torch_dtype=torch.bfloat16).to(0)
model = torch.compile(model)
input_text = "Question: How many hours in one day? Answer: "
input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda")
outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))
# pip install accelerate
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-mamba-7b")
model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-mamba-7b", device_map="auto", torch_dtype=torch.float16)
input_text = "Question: How many hours in one day? Answer: "
input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda")
outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))
# pip install bitsandbytes accelerate
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-mamba-7b")
model = AutoModelForCausalLM.from_pretrained("tiiuae/falcon-mamba-7b", device_map="auto", quantization_config=BitsAndBytesConfig(load_in_4bit=True))
input_text = "Question: How many hours in one day? Answer: "
input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda")
outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))
Falcon-Mamba has been trained with ~ 5,500 GT mainly coming from Refined-Web, a large volume web-only dataset filtered and deduplicated. Similar to the others Falcon suite models, Falcon-Mamba has been trained leveraging a multi-stage training strategy to increase the context-length from 2,048 to 8,192. Moreover, inspired by the concept of Curriculum Learning, we carefully selected data mixtures throughout the training stages, considering both data diversity and complexity. Note that at inference the context-length is not relevant as the Mamba architecture has no limit on long range dependency. At the last training stage, small portion of high-quality curated data was used to further enhance performance.
Overall, the data sources included RefinedWeb-English, high quality technical data, code data and math data extracted from public sources. In particular, we used samples coming from Fineweb-edu during our last training stage.
The data was tokenized with the Falcon-7B/11B tokenizer.
Falcon-Mamba-7B was trained on 256 H100 80GB GPUs for the majority of the training, using a 3D parallelism strategy (TP=1, PP=1, DP=256) combined with ZeRO.
| Hyperparameter | Value | Comment |
|---|---|---|
| Precision | bfloat16 | |
| Optimizer | AdamW | |
| Max learning rate | 6.4e-4 | Following a WSD (warmup-stable-decay) learning rate schedule |
| Weight decay | 1e-1 | |
| Batch size | 2048 |
The model was trained AdamW optimizer, WSD (warmup-stable-decay) learning rate schedule, and a batch size rampup from \(b_{\mathrm{min}}=128\) to \(b_{\mathrm{max}}=2048\) during first 50 GT of training. In the stable phase we used maximal learning rate \(\eta_{\mathrm{max}}=6.4 \times 10^{-4}\), and decayed it to the minimal value \(\eta_{\mathrm{min}}=\frac{\eta_{\mathrm{max}}}{256}\) with exponential schedule over 500 GT. Also, we applied BatchScaling during the rampup — rescaling learning rate \(\eta\) so that the Adam noise temperature \(T_{\mathrm{noise}}\
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 | IFEval (0-Shot) | strict accuracy | 33.360 |
| Text Generation | BBH (3-Shot) | normalized accuracy | 19.880 |
| Text Generation | MATH Lvl 5 (4-Shot) | exact match | 3.630 |
| Text Generation | GPQA (0-shot) | acc_norm | 8.050 |
| Text Generation | MuSR (0-shot) | acc_norm | 10.860 |
| Text Generation | MMLU-PRO (5-shot) | accuracy | 14.470 |