Text Generation
Transformers
Safetensors
GGUF
English
small_lm
small-language-model
31m-parameters
from-scratch
laptop-gpu
chain-of-thought
math
gqa
swiglu
rope
rmsnorm
ollama
Instructions to use ParallaxOpen/Vela-Lumen-31M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ParallaxOpen/Vela-Lumen-31M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ParallaxOpen/Vela-Lumen-31M")# pip install -U transformers accelerate # Load model directly from transformers import SmallLM model = SmallLM.from_pretrained("ParallaxOpen/Vela-Lumen-31M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ParallaxOpen/Vela-Lumen-31M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ParallaxOpen/Vela-Lumen-31M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ParallaxOpen/Vela-Lumen-31M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ParallaxOpen/Vela-Lumen-31M
- SGLang
How to use ParallaxOpen/Vela-Lumen-31M 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 "ParallaxOpen/Vela-Lumen-31M" \ --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": "ParallaxOpen/Vela-Lumen-31M", "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 "ParallaxOpen/Vela-Lumen-31M" \ --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": "ParallaxOpen/Vela-Lumen-31M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ParallaxOpen/Vela-Lumen-31M with Docker Model Runner:
docker model run hf.co/ParallaxOpen/Vela-Lumen-31M
Vela-Lumen-31M
A 31M-parameter language model trained from scratch on a single 8GB laptop GPU in under 8 hours.
Downloads
| Format | File | Size | How to Use |
|---|---|---|---|
| GGUF F16 | vela-lumen-31m-f16.gguf |
85 MB | Works with Ollama, llama.cpp, LM Studio |
| Safetensors FP16 | model-fp16.safetensors |
84 MB | Half precision, Python |
| Safetensors FP32 | model.safetensors |
167 MB | Full precision, training |
Quick Start (Ollama)
wget https://huggingface.co/ParallaxOpen/Vela-Lumen-31M/resolve/main/vela-lumen-31m-f16.gguf
ollama create vela-lumen-31m -f Modelfile
ollama run vela-lumen-31m
ELO Rating
| Metric | Value |
|---|---|
| Estimated ELO | ~900-950 |
| GSM8K | 3.0% |
| Params | 31.3M |
Comparison to Known Models
| Model | Params | GSM8K | ELO |
|---|---|---|---|
| Claude Fable 5 | Unknown | Unknown | 1507 |
| Llama 3.2 1B | 1.26B | 7.6% | 1111 |
| SmolLM2-135M | 135M | 1.4% | N/A |
| SmolLM2-360M | 360M | 3.2% | N/A |
| Vela-Lumen-31M | 31.3M | 3.0% | ~900-950 |
What This Means
Vela-Lumen-31M is a proof of concept trained from scratch on consumer hardware:
- Training from scratch on a single GPU is possible
- Small models (31M) can learn some math patterns
- More data and larger models needed for competitive performance
- ELO ~900-950 is below leaderboard models, but expected for 31M from scratch
Model Details
| Property | Value |
|---|---|
| Developer | ParallaxOpen |
| Parameters | 31,265,792 |
| Architecture | Transformer Decoder, GQA 8:4, SwiGLU, RMSNorm, RoPE |
| Context | 512 tokens |
| Vocab | 24,189 |
| License | CC BY-NC 4.0 |
Training
- Pretrain: 1.5B tokens, 40K steps, loss 4.0, ~4h on RTX 5060
- SFT: 780K ChatML samples, 64K steps, loss 1.54, ~4h on RTX 5060
- Total: 8 hours on a single 8GB laptop GPU
Citation
@software{vela-lumen-31m,
title={Vela-Lumen-31M: A 31M-parameter Language Model Trained from Scratch},
author={ParallaxOpen},
year={2026},
note={Trained on a single RTX 5060 Laptop GPU in 8 hours}
}
- Downloads last month
- 129