Text Generation
Transformers
Safetensors
English
tbbloop
tinybrainbot
small-language-model
from-scratch
recurrent-depth
looped-transformer
arithmetic
custom_code
base
Eval Results (legacy)
Instructions to use nkthebass/tinybrainbot-3m-loop with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nkthebass/tinybrainbot-3m-loop with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nkthebass/tinybrainbot-3m-loop", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("nkthebass/tinybrainbot-3m-loop", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nkthebass/tinybrainbot-3m-loop with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nkthebass/tinybrainbot-3m-loop" # 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-3m-loop", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nkthebass/tinybrainbot-3m-loop
- SGLang
How to use nkthebass/tinybrainbot-3m-loop 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-3m-loop" \ --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-3m-loop", "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-3m-loop" \ --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-3m-loop", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nkthebass/tinybrainbot-3m-loop with Docker Model Runner:
docker model run hf.co/nkthebass/tinybrainbot-3m-loop
Download tbb_meta.json from nkthebass/tinybrainbot-3m-loop: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/nkthebass/tinybrainbot-3m-loop/resolve/main/tbb_meta.json
- Command line
-
hf download hf://nkthebass/tinybrainbot-3m-loop/tbb_meta.json
-
curl -L -o tbb_meta.json https://huggingface.co/nkthebass/tinybrainbot-3m-loop/resolve/main/tbb_meta.json
1.08 kB
| { | |
| "model_type": "byte-level BPE (HF tokenizers)", | |
| "vocab_size": 4096, | |
| "special_tokens": [ | |
| "<|endoftext|>", | |
| "<|user|>", | |
| "<|assistant|>", | |
| "<|system|>", | |
| "<|end|>", | |
| "<think>", | |
| "</think>", | |
| "<|sep|>", | |
| "<|pad|>" | |
| ], | |
| "digits": "split individually", | |
| "normalization": "none", | |
| "sample_chars": 400000000, | |
| "sample_shares": { | |
| "qa-plain": 0.14100000000000001, | |
| "qa-distill": 0.055, | |
| "facts-plain": 0.041, | |
| "capability-distill": 0.0165, | |
| "reasoning-distill": 0.006500000000000001, | |
| "math-direct-3m": 0.19999999999999998, | |
| "cosmopedia-wikihow": 0.0757, | |
| "commonsense-distill": 0.0092, | |
| "procedural-anneal": 0.006900000000000001, | |
| "everyday-activity": 0.0045000000000000005, | |
| "social-situations": 0.0045000000000000005, | |
| "everyday-reasoning": 0.00135, | |
| "ds-prose": 0.00135, | |
| "cosmopedia-stanford": 0.12300000000000001, | |
| "cosmopedia-openstax": 0.027000000000000003, | |
| "tiny-stories-v2": 0.14150000000000001, | |
| "fineweb-edu-10bt": 0.09, | |
| "wiki-dense": 0.055 | |
| } | |
| } |