Velqora-38M-Instruct is a 38,025,227-parameter (~38.03M), English-first, decoder-only instruction-tuned conversational language model trained from random initialization on a single NVIDIA GeForce RTX 4060 (8 GB) under Windows 11.
GGUF companion: Maxilicious20/Velqora-38M-Instruct-GGUF
| Property | Value |
|---|---|
| Developer | Maxilicious20 |
| Parameters | 38,025,227 (~38.03M) |
| Model type | Decoder-only causal language model (Instruct / SFT) |
| Training origin | From scratch, no pretrained foundation weights |
| Primary language | English |
| Transformer layers | 12 |
| Hidden size | 512 |
| Attention | 8 query heads / 2 key-value heads (GQA) + QK-Norm + Layer-0 Value Residuals |
| Feed-forward dimension | 1,408, SwiGLU |
| Position embeddings | RoPE, base θ = 10,000 |
| Normalization | RMSNorm |
| Token embeddings | Tied input/output embeddings |
| Tokenizer | Custom 8,192-token byte-level BPE |
| Maximum context window | 1,024 tokens |
| Best validation loss | 1.4712 |
| Implementation | Custom PyTorch (scaled_dot_product_attention, bfloat16) |
| Training hardware | Windows 11, NVIDIA RTX 4060 8 GB |
| License | Apache-2.0 |
Implementation note: This release uses a custom PyTorch architecture (
velqora/model.py), custom tokenizer (tokenizer.json), and tied embeddings rather thanAutoModelForCausalLM.
This checkpoint was trained from random initialization in two stages on a single NVIDIA RTX 4060 (8 GB):
HuggingFaceTB/cosmopedia-100k, HuggingFaceFW/fineweb-edu, and roneneldan/TinyStories, scaling context length progressively up to the full maximum window.HuggingFaceTB/smoltalk, HuggingFaceH4/ultrachat_200k, HuggingFaceH4/no_robots, and multi-turn recall/grounding dialogues.Repository layout:
README.md
model.safetensors # Exported bfloat16 weights (best checkpoint)
config.json # Velqora architecture configuration
tokenizer.json # Custom 8,192-token byte-level BPE tokenizer
generation_config.json # Recommended generation defaults
run_inference.py # Ready-to-run CLI inference script
├── best_checkpoint/
│ └── model.pt # Best validation PyTorch checkpoint
velqora/
__init__.py
model.py # Custom VelqoraForCausalLM implementation
Install dependencies and run locally:
pip install torch safetensors tokenizers huggingface_hub
hf download Maxilicious20/Velqora-38M-Instruct --local-dir ./Velqora-38M-Instruct
python ./Velqora-38M-Instruct/run_inference.py --model-dir ./Velqora-38M-Instruct --prompt "What is the capital of Germany?"
This instruct checkpoint uses ChatML role formatting:
<|im_start|>system
You are Velqora, a helpful, thoughtful, and friendly AI assistant.<|im_end|>
<|im_start|>user
Hello!<|im_end|>
<|im_start|>assistant
Assistant turns terminate with <|im_end|> (or <|endoftext|>). Recommended generation settings: temperature 0.35–0.55, top-p 0.88, repetition penalty 1.12, and max context 1,024 tokens.
Appropriate use: Research on ultra-small, from-scratch language models, local edge inference experiments, and educational study of modern transformer components (GQA, QK-Norm, Value Residuals, SwiGLU, RoPE).
Limitations: Because this model has ~38M parameters trained from scratch on a single consumer GPU, it can hallucinate facts, make arithmetic errors, or struggle with complex instructions. Do not use it for medical, legal, financial, or safety-critical tasks.
Licensed under the Apache License 2.0 (apache-2.0).
best_checkpoint/model.pt 152 MBmodel.safetensors 76 MBbest_checkpoint/model.safetensors 76 MB