Nexora-36M-Instruct

Nexora-36M-Instruct is a 36.58M-parameter decoder-only Transformer language model trained from scratch in PyTorch with 4:1 Grouped-Query Attention (GQA) and Supervised Fine-Tuning (SFT).

Model Profile & Architecture

Specification Value
Total Parameters 36.58M (28.19M non-embedding)
Architecture Decoder-only Transformer with 4:1 GQA
Layers (n_layer) 10
Hidden Size (d_model) 512
Query Heads (n_head) 8 (head_dim = 64)
KV Heads (n_kv_head) 2
Context Length (block_size) 512 tokens
Vocabulary Size 16384 (custom ByteLevel BPE)
Tied Embeddings True
Precision bfloat16

Training Pipeline

  1. Tokenizer: Custom 16,384-token ByteLevel BPE trained on 400 MB of HuggingFaceFW/fineweb-edu (sample-10BT), achieving 1.452 tokens/word fertility and 4.234 chars/token.
  2. Pretraining: Trained from scratch for 3,000 steps (32,768 tokens/step, ~98.3M tokens total) using cosine LR decay (5e-4 -> 5e-5).
  3. Supervised Fine-Tuning (SFT): Fine-tuned for 4,000 steps (batch_size=16, lr=2e-4 -> 2e-5) on HuggingFaceH4/ultrachat_200k using <|system|>, <|user|>, and <|assistant|> chat markers.

Evaluation Results

Metric Score
Validation Loss (fineweb-edu) 3.9989 (best pretrain: 3.9550)
Perplexity 54.54
Top-1 Next-Token Accuracy 31.45%
Top-5 Next-Token Accuracy 51.59%
HellaSwag (Zero-Shot, 200 samples) 28.00% (Random baseline: 25.00%)

Limitations

At 36.58M parameters and a 512-token context window, Nexora-36M-Instruct is designed for educational exploration, architecture benchmarking, and lightweight local experiments rather than factual production Q&A.

Downloads last month
35
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Datasets used to train Niteshk23/Nexora-36M-Instruct