Instructions to use tablinum/Moon-Beam-8B-A1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tablinum/Moon-Beam-8B-A1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tablinum/Moon-Beam-8B-A1B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tablinum/Moon-Beam-8B-A1B", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("tablinum/Moon-Beam-8B-A1B", trust_remote_code=True, device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tablinum/Moon-Beam-8B-A1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tablinum/Moon-Beam-8B-A1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tablinum/Moon-Beam-8B-A1B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tablinum/Moon-Beam-8B-A1B
- SGLang
How to use tablinum/Moon-Beam-8B-A1B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tablinum/Moon-Beam-8B-A1B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tablinum/Moon-Beam-8B-A1B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tablinum/Moon-Beam-8B-A1B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tablinum/Moon-Beam-8B-A1B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use tablinum/Moon-Beam-8B-A1B with Docker Model Runner:
docker model run hf.co/tablinum/Moon-Beam-8B-A1B
Moon-beam 8B A1B ยท BF16
Moon-beam is a mixture-of-experts model with 8B total parameters, about 1B active per token, and a 131,072-token context window. It pairs inclusionAIโs Ling-3.0-tiny with Tablinumโs searchable knowledge library, the engram. Round 1b was fine-tuned with QLoRA on retrieved passages, math problems, tool calls, and multi-turn conversations. Model and evaluation notes
On the model-card protocol evaluation (temperature 1.0, top_p 0.95, top_k 20, up to 32K new tokens, the full 131K window), Moon-beam scored 95.5% on 400 GSM8K questions with thinking on. On EngramBench it answered 436 of 503 questions correctly (86.5%) with thinking on and passages from each questionโs own table. As a support agent on tau2-bench it earned an average reward of 0.71 on airline, 0.80 on retail and 0.62 on telecom conversations.
Round 2 did not beat these weights on the held-out gates (see round2_gate_decision.txt), so the release is round 1b.
Run it
With the library (recommended): the GGUF repo runs with one command,
terrabeam run tablinum/Moon-Beam-8B-A1B-GGUF. Or serve these weights and put terrabeam in front:
vllm serve tablinum/Moon-Beam-8B-A1B --trust-remote-code --max-model-len 131072 # or SGLang
Add the library. Moon-beam is trained to answer from retrieved passages. Put terrabeam in front of your server and every request gets them, in the exact layout the model was trained on:
terrabeam proxy --upstream http://127.0.0.1:8000 --format tablinum --library-tool --keep-reasoning --memory long-term # then use http://127.0.0.1:8090/v1
Transformers (4.57; the model code ships in this repo):
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("tablinum/Moon-Beam-8B-A1B", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained("tablinum/Moon-Beam-8B-A1B", trust_remote_code=True, torch_dtype="bfloat16", device_map="auto")
msgs = [{"role": "user", "content": "What is 17 * 23?"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(ids, max_new_tokens=2048, do_sample=True, temperature=1.0, top_p=0.95, top_k=20)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
Files
| File | What it is |
|---|---|
model-0000*-of-00004.safetensors |
BF16 weights (16 GB), Ling-3.0-tiny architecture (bailing_hybrid: KDA + MLA attention, MoE) |
modeling_bailing_moe_v3.py, configuration_bailing_moe_v3.py |
Model code (trust_remote_code=True) |
mtp/mtp_layer.safetensors |
The trained MTP draft layer (model.layers.24.*, 0.63 GB) for speculative decoding |
chat_template.jinja, generation_config.json |
Thinking on by default; temperature 1.0, top_p 0.95, top_k 20 |
Other formats: GGUF ยท FP8 ยท MLX ยท MLX 8-bit
Same weights, better harness: terrabeam 0.3
How Moon-beam is served matters as much as its weights. We scored these weights on 154 held-out library tasks: facts from six Tablinum-3 tables the model never trained on, two-step questions, and personal facts told in an earlier conversation. Each task was run twice, with the same model file and settings, in the old and new setup:
| Task type | Old setup (terrabeam 0.2) | terrabeam 0.3 |
|---|---|---|
| Facts (108 tasks) | 59.7% correct | 91.7% |
| Two-step questions (22) | 9.1% | 63.6% |
| Memory from earlier chats (24) | 64.6% | 89.6% |
| All tasks: correct / wrong | 53.2% / 14.6% | 83.4% / 12.0% |
What changed:
- Search across the whole library. 0.2 split a fixed budget between tables, so a 29-table library got one candidate per table. 0.3 pools the best matches from every table, and the passage holding the answer reaches the top 3 for 82% of questions, up from 54%.
- The model can search for itself. With the library tool, Moon-beam calls
search_librarywith its own queries, as often as it needs: that is what turns two-step questions around. - Reasoning is kept across turns. Apps often drop the model's earlier reasoning; terrabeam puts it back, and Moon-beam's tau2 airline score depends on it (0.711 kept vs 0.045 dropped).
- Memory that sticks. Notes from earlier chats are matched by distinctive words (names, places) and shown beside the library passages.
The old setup is terrabeam 0.3 with the 0.2 search and no library tool; the all-task row predates the memory fix. Correct answers were matched against the gold answer by rule; "I don't know" counts as neither correct nor wrong. terrabeam 0.3.0 is out: the one-line installer above gets it, and it turns the library tool on for this model by itself.
How much does retrieval help?
With thinking on, retrieved passages raised SimpleQA from 30 to 601 correct answers out of 1,000. The same comparison on EngramBench went from 61 to 436 correct out of 503. Answers are graded blind with AA-Omniscienceโs grader template โ a deterministic rule pass first, then an LLM judge โ with partial answers and abstentions counted separately from correct answers.
Read the figures as text
| Test (questions) | Thinking on ยท closed โ retrieved | Thinking off ยท closed โ retrieved |
|---|---|---|
| EngramBench (503) | 12.1% โ 86.5% | 8.5% โ 87.9% |
| SimpleQA (1000) | 3.0% โ 60.1% | 3.0% โ 58.1% |
| AA-Omniscience (200) | 10.5% โ 28.0% | 7.5% โ 27.0% |
The untrained Ling base also reached 59.2% on SimpleQA with the same passages and thinking on, compared with 60.1% for round 1b on the card protocol. The base used IQ3 and earlier settings. The clearest gain in these runs comes from giving the model relevant passages. Graded counts and settings โ the numbers above are the re-measured card-protocol runs; the November 4 file keeps the preliminary graded counts for comparison.
Reasoning and follow-ups
Across 150 question pairs, Moon-beam answered 94.0% of first questions and 93.3% of second questions correctly in the same conversation with thinking on.
Read the figures as text
| Test ยท sample size | Thinking on | Thinking off |
|---|---|---|
| GSM8K ยท 400 | 96.2% | 92.5% |
| Multi-turn, first ยท 150 | 94.0% | 86.7% |
| Multi-turn, second ยท 150 | 93.3% | 88.7% |
| MMLU-Pro ยท 700 | 63.9% | 44.0% |
The thinking-off column used greedy decoding. On MMLU-Pro, 70 of 700 thinking-on answers reached the 30,000-token output cap. The sampled base also scored 96.2% on GSM8K. The release evaluation uses revised sampling and a 32K output allowance. Preliminary results and protocol
Talking a customer through a fix
On tau2-bench โ multi-turn support conversations where Moon-beam is the agent, a Claude Haiku customer calls with a problem, and database and environment checks decide success โ Moon-beam earned an average reward of 0.71 on airline, 0.80 on retail and 0.62 on telecom, with thinking on. The earlier as-shipped harness capped each turn and dropped the model's reasoning between steps, scoring 0.05, 0.22 and 0.00 on the same domains; carrying the reasoning forward, in the layout Moon-beam was trained on, is what changed. Since terrabeam 0.3 the runner does this itself: when an app drops the model's earlier reasoning, terrabeam puts it back. The published Q4_K_M file, served on a 6 GB RTX 2060 behind terrabeam with tau2's own reasoning carry-over switched off, scored 0.70 on airline, against 0.71 for BF16 with tau2's carry-over on. Banking has not been measured yet.
| tau2 domain | BF16, corrected protocol | Q4_K_M through terrabeam | As-shipped harness |
|---|---|---|---|
| Airline | 0.711 ยท 45 of 50 tasks | 0.696 ยท 46 of 50 | 0.045 ยท 44 of 50 |
| Retail | 0.797 ยท 74 of 114 | โ | 0.217 ยท 92 of 114 |
| Telecom | 0.624 ยท 85 of 114 | โ | 0.000 ยท 97 of 114 |
| Banking | not yet measured | โ | โ |
Each score averages the tasks that ran. Tasks whose simulated customer never started, because the API call failed before the first turn, are left out rather than counted as zero; the telecom run stopped after 85 of 114 tasks. Tasks that ran out of steps count with the reward they reached. Per-task results and settings
How small can the model file be?
Q4_K_M fits in a 4.94 GB file, 68.7% smaller than the BF16 GGUF. On 8,393 mixed chat, code, and math positions, it selected the same top token as BF16 97.65% of the time. On WikiText, agreement was 92.74%.
Read the figures as text
| Build | File size | Mixed top-1 match | WikiText top-1 match |
|---|---|---|---|
| Q4_K_M | 4.94 GB | 97.65% | 92.74% |
| Q6_K | 7.23 GB | 98.92% | 96.74% |
| Q8_0 | 8.41 GB | 99.18% | 97.20% |
| MLX beam | 4.92 GB | 96.75% | 90.92% |
| MLX 8-bit | 8.87 GB | 99.20% | 97.40% |
MLX beam uses 4-bit experts and 8-bit weights elsewhere. The MLX sizes above use the posted shard bytes in decimal GB. They correspond to 4.58 and 8.26 GiB, respectively. The full ladder includes all eleven GGUF and MLX measurements, with KL divergence and perplexity for both token sets. Quantization measurements ยท GGUF file sizes
Decode speed on a 12 GB GPU
On an RTX A2000 12 GB, the Q4_K_M model averaged 154.6 output tokens/s with the MTP draft head, up from 136.9 tokens/s alone. That is a 12.9% higher mean across three prompts with thinking off and greedy decoding. Two prompts sped up. The second slowed from 136.9 to 131.7 tokens/s.
Read the figures as text
| Prompt | Trunk alone (tokens/s) | MTP n=2 (tokens/s) |
|---|---|---|
| 1 | 137.3 | 176.5 |
| 2 | 136.9 | 131.7 |
| 3 | 136.6 | 155.7 |
The draft head is a separate 0.55 GB file. These measurements use a maximum of two draft tokens per step. Raw timings
Thanksgiving artwork
Moon-pie Rescue follows the Moon-beam cat as it catches a drifting pumpkin pie and offers you a slice. Open the 12-second MP4 ยท View the still banner
Small paws. Big thanks.
Model family
BF16 ยท GGUF ยท FP8 ยท MLX mixed-bit ยท MLX 8-bit
Credit and license
MIT, like the Ling-3.0-tiny base. Keep the notice; if Moon-beam or the Tablinum research helps you, a mention or a thank-you is appreciated. Library tables keep their own licenses: Tablinum-3. Runner: terrabeam (MIT).
- Downloads last month
- 871





