Instructions to use kurcontko/Tiny-Chick-10M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kurcontko/Tiny-Chick-10M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kurcontko/Tiny-Chick-10M", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("kurcontko/Tiny-Chick-10M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kurcontko/Tiny-Chick-10M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kurcontko/Tiny-Chick-10M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kurcontko/Tiny-Chick-10M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kurcontko/Tiny-Chick-10M
- SGLang
How to use kurcontko/Tiny-Chick-10M 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 "kurcontko/Tiny-Chick-10M" \ --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": "kurcontko/Tiny-Chick-10M", "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 "kurcontko/Tiny-Chick-10M" \ --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": "kurcontko/Tiny-Chick-10M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kurcontko/Tiny-Chick-10M with Docker Model Runner:
docker model run hf.co/kurcontko/Tiny-Chick-10M
Tiny Chick 10M
A 9.6M-parameter English language model I trained from scratch on two DGX Sparks for the Tiny-ML Leaderboard. The name comes from the Polish kurczątko, a little chick.
| BLiMP | ARC-Easy | WikiText-2 byte-ppl | Params |
|---|---|---|---|
| 75.12 | 48.53 | 2.287 | 9,591,684 |
Scored 0-shot with lm-evaluation-harness (--tasks blimp,arc_easy,wikitext, context 512).
How it was trained
- Pretraining on 8B tokens of cleaned FineWeb-Edu.
- A 300M-token continuation with 15% WikiText-103 train text mixed in.
- A fine-tune on the ARC-Easy and ARC-Challenge train splits, with FineWeb-Edu replay.
Steps 2 and 3 target the benchmarks, so this is not a pure pretraining result. Without them the model scores 75.69 / 40.70 / 2.395. I never trained on test or validation answers or on WikiText-2 test text, and I removed train items that overlap with the test sets. The checkpoint was picked on ARC-Easy validation.
Architecture
14 layers, width 240, 6 heads (2 KV heads), 4,096-token BPE vocabulary. Compared with a plain Llama block
it uses ReLU² MLPs, QK-norm, partial RoPE, exclusive self-attention and zero-initialised output projections.
The code is in tinylm_arch.py.
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("kurcontko/Tiny-Chick-10M")
model = AutoModelForCausalLM.from_pretrained("kurcontko/Tiny-Chick-10M", trust_remote_code=True)
ids = tok("The water cycle begins when", return_tensors="pt", add_special_tokens=False).input_ids
out = model.generate(input_ids=ids, max_new_tokens=40, repetition_penalty=1.2, use_cache=False)
print(tok.decode(out[0]))
It is a benchmark-sized model: fluent, not factual, and not trained for chat.
- Downloads last month
- 240