Pink Elephant 48B — The Sparse Intelligence Engine
48 billion parameters of knowledge. A quarter of the compute. One model.
Pink Elephant 48B is a production-ready Mixture-of-Experts (MoE) large language model and the flagship release from Pink Elephant Limited. Upcycled from the proven Pink Elephant 14B dense foundation and instruction-tuned across code and mathematics, it delivers the reasoning depth of a dense 48-billion-parameter network while activating only ~30% of its parameters for every token — 47.7B parameters of total capacity, ~14.7B active at inference.
This repository ships the fully merged, ready-to-run model: the trained LoRA expert adapters and the learned router are fused directly into the base weights. No adapter setup, no PEFT plumbing — just load and generate.
The central promise: every token is routed to a hand-picked council of specialist experts — dense-scale intelligence at a fraction of the compute.
The Architecture: A Council of Experts
Pink Elephant 48B replaces the single monolithic feedforward network of a conventional transformer with a cabinet of eight expert networks per layer, orchestrated by a learned router.
8 experts per layer — each with its own specialized weights and perspective
Top-2 sparse routing — the router selects the two most qualified experts for every token; the other six rest
A trained router — fine-tuned end-to-end alongside the experts, so assignments sharpen continuously with every step
Every token therefore travels through only 2 of 8 experts. This is sparse computing at its most elegant: maximum capability, minimum energy, delivered in real time.
Sparse MoE architecture
Figure 1 — The Pink Elephant 48B sparse MoE transformer block: a learned router selects 2 of 8 expert networks for every token.
Training: 1,000 optimization steps, AdamW with a cosine learning-rate schedule (peak 1.5e-4), LoRA (r=32, α=64) applied to the expert projections, with the router trained in full precision.
Training loss and learning-rate schedule
Figure 3 — Training and validation loss over 1,000 optimization steps, with the cosine learning-rate schedule (left-to-right panels).
An Elegant Scaling Story
Pink Elephant 48B was upcycled, not trained from scratch. The feedforward weights of the established pink-elephant-llm-14b dense foundation were mathematically split and replicated into eight complementary experts — preserving the parent model's knowledge while multiplying capacity roughly threefold. Scaling through intelligence, not brute force.
Product lineage
Figure 4 — Product lineage: from the dense 14B foundation to the upcycled MoE base, refined through SFT, and shipped as the merged 48B.
Getting Started
Load the model directly — no adapters required:
python
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
34model_id ="pinkelephantlimited/pinkelephant-llm-48b"56tok = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)7model = AutoModelForCausalLM.from_pretrained(8 model_id,9 torch_dtype=torch.bfloat16,10 device_map="auto",# or "cuda" / "cpu"11 trust_remote_code=True,12)1314chat =[{"role":"user","content":"Write a Python function that checks if a number is prime."}]15prompt = tok.apply_chat_template(chat, tokenize=True, add_generation_prompt=True, return_tensors="pt")16with torch.inference_mode():17 out = model.generate(18 prompt.to(model.device),19 max_new_tokens=256,20 do_sample=True,21 temperature=0.7,22 top_p=0.9,23)24print(tok.decode(out[0][prompt.shape[1]:], skip_special_tokens=True))
Lower-footprint inference
For consumer GPUs, the model can be loaded in 4-bit using standard transformers tooling (requires bitsandbytes):
Note: this model uses a custom architecture shipped in the repository (modeling_pink_elephant.py). Loading it requires trust_remote_code=True.
The Refined Successor: 48B-S
The Pink Elephant journey continues. pinkelephant-llm-48b-s takes this flagship through a complete second epoch (steps 1,557 → 3,114), cutting training loss 32% (0.0616 → 0.0419) and merging into a single ready-to-run artifact. If you are starting fresh, use the 48B-S.
Product lineage
Product lineage: from the dense 14B core to the upcycled MoE base, refined through SFT, and shipped as the merged 48B — then refined again into the 48B-S.
The refined flagship (two epochs) — recommended for new deployments
pinkelephant-llm-48b(this repo)
Merged production model — the first-epoch flagship
pinkelephant-llm-48b-moe-base
Upcycled MoE base (bf16) — for research and merging
pinkelephant-llm-48b-adapters
LoRA adapters + trained router, published every 100 steps
pink-elephant-llm-14b
The dense 14B foundation
pinkelephant-llm-48b-sft-tokenized
The instruction-tuning dataset (tokenized)
Evaluation
Benchmark results for the family are published on their respective model cards. The 48B-S refined flagship reports 70.12% pass@1 on HumanEval and 38.40% on MATH-500 (both greedy), with per-problem records under evals/ in that repository. The 14B lineage reports 71.34% pass@1 on HumanEval and 63.40% on MATH-500. The 48B-S HumanEval figure demonstrates the same performance band as the parent at roughly a third of the per-token compute.
Verification & Test Report
The full release and verification documentation is published alongside this model:
What / which / where / how for every public artifact across the whole family
What was tested
The published artifact was downloaded, loaded, and exercised end-to-end on an NVIDIA RTX PRO 6000 Blackwell Server Edition (102 GB VRAM, 160 GB RAM, PyTorch 2.11.0+cu130, transformers 5.14.1) at native bfloat16 — no quantization, no CPU offload:
Test
Result
Artifact download
95.38 GB across 20 safetensors shards, ~175–190 MB/s
96.0 GB of 102 GB occupied after load; 93.8% occupancy; peak allocation 95.4 GB
Generation throughput
19.1 tokens/sec greedy (128 tokens in 6.7 s)
Functional suite
5 of 6 prompt categories produced correct output
Functional smoke test (greedy, 64 tokens)
Prompt
Result
def is_prime(n):
✅ Correct primality function, continues to is_perfect_square
The capital of France is
✅ "Paris. So, the answer is Paris..."
What is 17 * 23?
✅ Decomposes 17×20 + 17×3 = 391 correctly
Write a python function that returns the factorial of n.
✅ Correct recursive factorial with edge-case guards
def fibonacci(n):
✅ Correct canonical recursion
Explain MoE in one sentence
⚠️ Empty under greedy decoding — the model emitted EOS immediately on this single prompt; sampling or min_new_tokens restores output (analyzed in the Verification Test Report, Chapter 10)
Every result above is reproducible via the step-by-step recipe in the Verification Test Report (Chapter 11), which requires only a GPU with ≥ 102 GB VRAM and this repository.
Limitations
Fine-tuned primarily on code and mathematical reasoning; general-knowledge coverage inherits from the 14B parent
Long-horizon, multi-step agentic workflows may benefit from explicit tool-use training
Outputs should be reviewed before use in regulated or safety-critical decisions
License & Commercial Use
Released under the MIT License — free for commercial and research use, modification, and redistribution, with or without attribution.
Pink Elephant Limited — publishing large, sovereign language models.