Model reference · open weights
Pebble is an open-weight language model from basically-ai. Pebble-25M (FP32) weighs 51 MB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the basically-ai/Pebble-25M model card, 2026-10-01
What it is
| Released by | basically-ai |
|---|---|
| Released | 2026-09-02 |
| Parameters | 26M |
| VRAM | 51 MB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 2K each | |||
| RTX 3060 12 GB | 278 | all 2K | 11.6 GB |
| RTX 4060 Ti 16 GB | 373 | all 2K | 15.4 GB |
| RTX 3090 24 GB | 574 | all 2K | 23.4 GB |
| RTX 4090 24 GB | 573 | all 2K | 23.4 GB |
| RTX 5090 32 GB | 765 | all 2K | 31.0 GB |
| L40S 48 GB | 1000+ | all 2K | 44.0 GB |
| A100 80 GB | 1000+ | all 2K | 78.2 GB |
| H100 80 GB | 1000+ | all 2K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 1000+ | all 2K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 1000+ | all 2K | 107 GB |
| H200 141 GB | 1000+ | all 2K | 138 GB |
| B200 180 GB | 1000+ | all 2K | 176 GB |
| Requests at once | 2K tokens each |
|---|---|
| 1 | 553 MB |
| 5 | 712 MB |
| 8 | 832 MB |
| 16 | 1.2 GB |
| 32 | 1.8 GB |
| 64 | 3.1 GB |
One card, with vLLM's small-card settings.
From the model card
Pebble-25M is a compact, hybrid autoregressive language model. It combines the efficiency of state-space models with the proven performance of attention layers, optimized using a custom Muon + AdamW optimizer split.
The model was trained on a 25B token subset of the following datasets:
| Dataset | Token Allocation | Share |
|---|---|---|
| FineWeb-Edu | 7.50 billion | 30% |
| DCLM | 5.00 billion | 20% |
| Cosmopedia-v2 | 3.75 billion | 15% |
| FineMath-4+ | 3.75 billion | 15% |
| FinePhrase | 3.00 billion | 12% |
| NPset | 2.00 billion | 8% |
| Benchmark | Pebble-25M | Pebble-25M Chat | Pebble-10M | BananaMind-2-Mini | Random |
|---|---|---|---|---|---|
| PIQA | 59.25% | 53.37% | 58.43% | 59.63% | 50.00% |
| ARC-Easy | 38.17% | 26.68% | 37.29% | 39.86% | 25.00% |
| ARC-Challenge | 18.60% | 19.62% | 18.60% | 25.68% | 25.00% |
| HellaSwag | 27.62% | 25.63% | 26.81% | 29.72% | 25.00% |
| ArithMark-2.0 | 27.60% | 26.20% | 27.64% | 27.52% | 25.00% |
| ArithMark-3.0 | 33.80% | 28.80% | 32.80% | 34.90% | 25.00% |
To run the model for text generation, you will need to install the required dependencies. The included Mamba2 implementation relies on CUDA/Triton kernels and is intended to run on a CUDA-enabled GPU. Ampere-class GPUs or newer are recommended.
Note: The model uses custom architecture code, so you must pass
trust_remote_code=Truewhen loading both the tokenizer and the model.
pip install transformers huggingface_hub torch
pip install causal-conv1d mamba-ssm
Here is a simple Python script to load the model and generate text interactively:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
MODEL_ID = "basically-ai/Pebble-25M"
def main():
print("Loading Pebble 25M...")
tokenizer = AutoTokenizer.from_pretrained(
MODEL_ID,
trust_remote_code=True,
)
model = AutoModelForCausalLM.from_pretrained(
MODEL_ID,
trust_remote_code=True,
dtype=torch.float32,
).to("cuda")
model.eval()
print(
f"Model loaded successfully! "
f"VRAM usage: {torch.cuda.memory_allocated() / 1e9:.2f} GB"
)
print("Type 'quit' or 'exit' to stop.\n")
while True:
prompt = input("You: ")
if prompt.lower() in ["quit", "exit"]:
break
# Tokenize the prompt
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
# Generate text
print("Pebble: ", end="", flush=True)
with torch.inference_mode():
outputs = model.generate(
**inputs,
max_new_tokens=100, # How many tokens to generate
do_sample=True, # Use sampling (more creative)
temperature=0.7, # Controls randomness
top_k=50, # Consider top 50 tokens
top_p=0.95, # Nucleus sampling
repetition_penalty=1.2, # Prevent repeating words
)
# Decode and print (skip the prompt part)
generated_text = tokenizer.decode(
outputs[0][inputs["input_ids"].shape[1]:],
skip_special_tokens=True,
)
print(generated_text)
print()
if __name__ == "__main__":
main()
Apache 2.0
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.