Instructions to use nkthebass/tinybrainbot-360m-a75m-v6-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nkthebass/tinybrainbot-360m-a75m-v6-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nkthebass/tinybrainbot-360m-a75m-v6-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("nkthebass/tinybrainbot-360m-a75m-v6-base") model = AutoModelForCausalLM.from_pretrained("nkthebass/tinybrainbot-360m-a75m-v6-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use nkthebass/tinybrainbot-360m-a75m-v6-base with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf nkthebass/tinybrainbot-360m-a75m-v6-base:Q4_K_M # Run inference directly in the terminal: llama cli -hf nkthebass/tinybrainbot-360m-a75m-v6-base:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf nkthebass/tinybrainbot-360m-a75m-v6-base:Q4_K_M # Run inference directly in the terminal: llama cli -hf nkthebass/tinybrainbot-360m-a75m-v6-base:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf nkthebass/tinybrainbot-360m-a75m-v6-base:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf nkthebass/tinybrainbot-360m-a75m-v6-base:Q4_K_M
Use Docker
docker model run hf.co/nkthebass/tinybrainbot-360m-a75m-v6-base:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use nkthebass/tinybrainbot-360m-a75m-v6-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nkthebass/tinybrainbot-360m-a75m-v6-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nkthebass/tinybrainbot-360m-a75m-v6-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nkthebass/tinybrainbot-360m-a75m-v6-base:Q4_K_M
- SGLang
How to use nkthebass/tinybrainbot-360m-a75m-v6-base 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 "nkthebass/tinybrainbot-360m-a75m-v6-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nkthebass/tinybrainbot-360m-a75m-v6-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "nkthebass/tinybrainbot-360m-a75m-v6-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nkthebass/tinybrainbot-360m-a75m-v6-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use nkthebass/tinybrainbot-360m-a75m-v6-base with Ollama:
ollama run hf.co/nkthebass/tinybrainbot-360m-a75m-v6-base:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use nkthebass/tinybrainbot-360m-a75m-v6-base with Docker Model Runner:
docker model run hf.co/nkthebass/tinybrainbot-360m-a75m-v6-base:Q4_K_M
- Lemonade
How to use nkthebass/tinybrainbot-360m-a75m-v6-base with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull nkthebass/tinybrainbot-360m-a75m-v6-base:Q4_K_M
Run and chat with the model
lemonade run user.tinybrainbot-360m-a75m-v6-base-Q4_K_M
List all available models
lemonade list
- Atomic Chat
TinyBrainBot-360M-A75M-v6-Base
A mixture-of-experts base model trained from scratch on 26.8B tokens: 383M parameters in total, 75M active per
token (24 experts per layer, 4 used per token). It loads as a standard MixtralForCausalLM, with no custom code, and
ships with GGUF files.
It continues TinyBrainBot-360M-A75M-v5.1-Base for 8.9B more tokens and beats it on HellaSwag (+5.3), ARC-Easy (+4.4), ARC-Challenge (+2.3) and PIQA (+4.5). No benchmark train or test data was used.
Scores
Zero-shot, full test sets, acc_norm; (raw acc) underneath. Intelligence Index as defined by the Open SLM Leaderboard (it also counts ArithMark-3).
| Model | Params | Int Index | HellaSwag | ARC-E | ARC-C | PIQA |
|---|---|---|---|---|---|---|
| TinyBrainBot-360M-A75M-v6-Base (this model) | 383M (75M active) | 32.64 | 43.20 | 62.54 | 38.05 | 72.03 |
| (raw acc) | 29.83 | 35.10 | 69.11 | 36.09 | 70.95 | |
| TinyBrainBot-360M-A75M-v5.1-Base (previous) | 383M (75M active) | 25.96 | 37.90 | 58.12 | 35.75 | 67.57 |
| SmolLM2-360M | 362M | 41.86 | 56.30 | 68.48 | 38.31 | 71.60 |
| MobileLLM-R1-360M-base | 359M | 38.65 | 44.20 | 61.32 | 34.56 | 68.44 |
| KLM-1.6 | 99.0M | 33.95 | 45.28 | 61.07 | 33.53 | 70.18 |
| GPT-X3-150M | 149M | 33.05 | 46.16 | 59.64 | 31.31 | 71.33 |
| Rambley-V3-350M | 343M | 31.54 | 49.11 | 58.96 | 31.66 | 71.65 |
| LFM-2.5-350M-Base | 355M | 30.62 | 45.16 | 68.86 | 41.13 | 67.63 |
| SmolLM2-135M | 135M | 27.13 | 43.22 | 58.63 | 29.69 | 68.44 |
Other models' numbers are from the leaderboard, sorted by Intelligence Index.
On 1,380 held-out arithmetic problems in skills and wordings the model never saw, it scores 46.7.
Quick start
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("nkthebass/tinybrainbot-360m-a75m-v6-base")
model = AutoModelForCausalLM.from_pretrained("nkthebass/tinybrainbot-360m-a75m-v6-base")
ids = tok("The water cycle begins when the sun heats water in oceans and lakes, causing it to", return_tensors="pt")
print(tok.decode(model.generate(**ids, max_new_tokens=30, do_sample=False, repetition_penalty=1.0)[0]))
GGUF for llama.cpp, LM Studio, Ollama and Jan: F16 (768 MB), Q8_0 (409 MB) and Q4_K_M (239 MB). Start a raw
prompt with one space (-p " The water cycle ..."); greedy output then matches transformers.
This is a base model: it continues text and does not chat.
Model
| Parameters | 383.4M total; 75.7M active non-embedding per token + 24.6M tied embedding |
| Shape | hidden 768, 12 layers, 12 query heads of 64 with 4 KV heads (GQA), RMSNorm, RoPE |
| Experts | 24 SwiGLU experts of width 512 per layer, top-4 routing |
| Vocabulary | 32,000 SentencePiece; a line break is its own token |
| Context | 2,048 tokens |
Training
26.8B tokens in three parts: the 17.9B of 360M-A75M-v5.1-Base, an 8.7B-token continuation, and a 0.20B-token science tune of some of the experts.
1. Continuation (8.7B). The learning rate was re-warmed over 300 steps to 6e-4, held for 7.5B tokens of bulk text, then decayed over a knowledge-dense mix. The weights continue from step 101,500 of that run's 103,014, picked among its last five checkpoints for the highest ARC-Easy score.
| Bulk (6.5B tokens) | Share |
|---|---|
| ClimbMix (Nemotron-ClimbMix text) | 38% |
| DCLM-Ultra | 27% |
| FineWeb-Edu, top-scored pages | 6% |
| Books: Gutenberg, BookCorpus | 6% |
| Textbooks: Cosmopedia (school-level audiences), WikiHow | 6% |
| Math text and problems: OpenMathInstruct-2, UltraData-Math, FineMath, Orca-Math | 5% |
| Q&A and facts: GooAQ, FactBase-DCLM, finephrase FAQ | 5% |
| Wikipedia | 4% |
| Synthetic arithmetic practice (ours) | 3% |
| Extension (1.0B tokens, still at 6e-4) | Share |
|---|---|
| Spoken-language transcripts: YouTube-Commons (CC-BY videos, Whisper transcripts; common-pile/youtube_filtered) | 40% |
| The bulk mix above | 60% |
| Decay (1.2B tokens) | Share |
|---|---|
| Q&A and facts: our distilled sets, GooAQ, FactBase-DCLM, finephrase FAQ, ELI5 | 18% |
| Textbooks: Cosmopedia (school-level audiences) | 16% |
| Web: FineWeb-Edu top pages, DCLM-Ultra-1.1, ClimbMix | 16% |
| Wikipedia (dense and Simple English) | 11% |
| WikiHow (Cosmopedia) | 10% |
| Grade-school science Q&A (ours, three sets) | 10% |
| Everyday activities, commonsense and writing (our distilled sets, finephrase tutorials) | 7% |
| How-to Q&A (ours) | 4% |
| YouTube-Commons transcripts | 3% |
| Math problems (Orca-Math, UltraData-Math) | 2% |
| Synthetic arithmetic practice (ours), first 0.7B tokens only | 3% |
Less synthetic math. Earlier TinyBrainBot models kept Python-generated arithmetic practice in the mix until the last step. Here it was taken out for the last 0.5B tokens of the decay and is not in the science tune; real math text (OpenMathInstruct-2, UltraData-Math, FineMath, Orca-Math) stayed in.
2. Science tune (0.20B tokens, experts only). Twelve of the 24 experts in each layer were trained at 5e-5 on science and how-to text; attention, routers, embeddings, the other experts and the four experts per layer that arithmetic text uses most were frozen. 1,550 steps of 131k tokens.
| Tune data | Notes |
|---|---|
| Science questions with short answers (1 to 6 words), 35k pairs | new for this model, written by a local Qwen3.5-9B; not filtered by a checking pass, so expect a few percent of wrong answers in it |
| Science Q&A with explained answers, three sets | Ling-3.0-Flash and Qwen3.5-9B |
| How-to Q&A and everyday-activity passages | Ling-3.0-Flash |
| General text from the bulk mix (20%) | keeps the tuned experts good at ordinary text |
The short-answer set is what moved ARC: our earlier science sets all answer in full sentences, and adding questions whose answer is a short phrase lifted ARC-Easy by about four points.
3. Last step. To turn down the influence of the synthetic arithmetic practice, the weight change from 86 steps of arithmetic-practice-only training, scaled by 0.4, was subtracted from the tuned weights. Then 25 more tune steps with 20% arithmetic practice in the mix were trained from there, and 32% of that change was blended back in.
Our generated sets contain no answer options. Before training, any item sharing an 8-word phrase with an item of the benchmark its set is aimed at was removed: ARC for the science sets (plus SciQ, OpenBookQA and MMLU for the two Qwen-written ones), PIQA for how-to, HellaSwag for everyday activities. No benchmark train or test data was used.
Recipe: AdamW (betas 0.9/0.95, weight decay 0.1), 262k tokens per step, fp16 mixed precision, 2x Tesla V100 16GB.
Evaluation
lm_eval --model hf --model_args pretrained=nkthebass/tinybrainbot-360m-a75m-v6-base,dtype=float32 --tasks hellaswag,arc_easy,arc_challenge,piqa --num_fewshot 0
python bencharithmark-3.py --model nkthebass/tinybrainbot-360m-a75m-v6-base --dtype float32
Limitations
A small base model: good at short factual and commonsense continuations for its size, but open-ended generation is limited and it can be confidently wrong. English only. Not instruction-tuned and not safety-tuned.
- Downloads last month
- 828
Model tree for nkthebass/tinybrainbot-360m-a75m-v6-base
Datasets used to train nkthebass/tinybrainbot-360m-a75m-v6-base
wikimedia/wikipedia
HuggingFaceFW/finephrase
Collection including nkthebass/tinybrainbot-360m-a75m-v6-base
Evaluation results
- acc_norm (0-shot) on ARC-Easytest set self-reported62.540
- acc_norm (0-shot) on ARC-Challengetest set self-reported38.050
- acc_norm (0-shot) on HellaSwagvalidation set self-reported43.200
- acc_norm (0-shot) on PIQAvalidation set self-reported72.030
- acc_norm (0-shot) on ArithMark-3.0test set self-reported44.700