CoolFace
Modelpublic

kshitijthakkar/loggenix-moe-1b-pretrain

sourceHugging Faceapache-2.0updated 7mo agoView on Hugging Face
0likes27downloads
Model Card

LogGenix MoE 1.4B Pretrained

A 1.4 billion parameter Mixture of Experts (MoE) language model based on the Qwen3MoE architecture, pretrained from scratch on ~328M tokens from NVIDIA Nemotron datasets.

Model Details

PropertyValue
ArchitectureQwen3MoeForCausalLM
Total Parameters1,394,380,800 (~1.4B)
Active Parameters~1.2B per forward pass (top-8 of 16 experts)
Experts16 total, top-8 routing
Hidden Size2048
Layers8
Attention Heads32
KV Heads (GQA)8
Head Dimension128
MoE Intermediate Size768 per expert
Vocabulary151,936 (Qwen3 tokenizer)
Max Position Embeddings262,144 (256K)
Training Context Length4,096
RoPE Theta10,000,000
PrecisionBFloat16

Training Details

PropertyValue
Training Steps10,000
Tokens Seen~328M
OptimizerMuon (Newton-Schulz orthogonalization)
Learning Rate3e-4 (cosine decay)
Batch Size1 per device, 8 micro-batches
Hardware2x NVIDIA H100 80GB HBM3
ParallelismPipeline Parallel (PP=2)
Schedule1F1B
Training Time~3 hours
Final Val Loss0.9068
Final Val Perplexity2.48

Training Loss Progression

StepVal LossVal PPL
2,0000.95872.61
4,0000.93132.54
6,0000.91692.50
8,0000.90882.48
9,0000.90692.48
10,0000.90682.48

Dataset

Pretrained on a balanced mix from NVIDIA Nemotron datasets:

  • —General text (Nemotron-CC)
  • —Mathematics (Nemotron-Math)
  • —Code (Nemotron-Code)
  • —Scientific content
  • —Reasoning tasks

Architecture

This model uses the Qwen3 MoE architecture with:

  • —Sparse MoE FFN: 16 experts with top-8 routing per token (8 of 16 experts active)
  • —Grouped Query Attention (GQA): 32 query heads, 8 KV heads
  • —QK Normalization: RMSNorm on Q and K projections
  • —RoPE: Rotary Position Embeddings (base 10,000,000)
  • —RMSNorm: Pre-normalization on attention and FFN blocks

Usage

python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained(
    "kshitijthakkar/loggenix-moe-1b-pretrain",
    torch_dtype=torch.bfloat16,
    device_map="auto",
    trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(
    "kshitijthakkar/loggenix-moe-1b-pretrain",
    trust_remote_code=True,
)

inputs = tokenizer("The future of AI is", return_tensors="pt").to(model.device)
with torch.no_grad():
    outputs = model.generate(**inputs, max_new_tokens=100, temperature=0.7, top_p=0.9)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Checkpoints

Intermediate checkpoints are available under checkpoints/:

  • —checkpoints/step-2000/
  • —checkpoints/step-4000/
  • —checkpoints/step-6000/
  • —checkpoints/step-8000/
  • —checkpoints/step-10000/

Each checkpoint includes model.safetensors, config.json, tokenizer files, and eval inference results under eval/step-{N}/.

Evaluation

Standard Benchmarks (lm-eval harness, 50 samples each)

BenchmarkScore
PIQA58.0%
HellaSwag24.0%
MMLU23.4%
ARC-Easy22.0%
ARC-Challenge22.0%
GSM8K0.0%

Synthetic Task Evaluation

CategoryScore
Mean Synthetic Score21.9%
Root Cause Analysis65.0%
Compiler Design Optimization60.0%
Ethical Decision Making60.0%
Log Error Pattern Detection55.0%
Creative Writing55.0%

Code & Tool Evaluation

MetricScore
Code Syntax Accuracy8.3%
Code Keyword Coverage5.4%
Tool-Calling Format0.0%
Tool-Calling Overall0.0%
Note: These scores are expected for a pretrained-only model with ~328M tokens seen. The model has not been instruction-tuned. PIQA (58%) shows the strongest signal, indicating basic physical commonsense reasoning is emerging. Tool-calling and structured output capabilities require SFT.

Evaluation Charts

[image]

[image]

Full evaluation results are available in eval_outputs/ and on the model page.

Limitations

  • —Pretrained only (no instruction tuning) - outputs may be repetitive or incoherent
  • —Trained on ~328M tokens (well below Chinchilla-optimal ~28B for 1.4B params)
  • —Best suited as a base model for fine-tuning

License

Apache 2.0

Citation

bibtex
@misc{loggenix-moe-1b-2026,
  title={LogGenix MoE 1.4B: A Mixture of Experts Language Model},
  author={Kshitij Thakkar},
  year={2026},
  url={https://huggingface.co/kshitijthakkar/loggenix-moe-1b-pretrain}
}