VOID 1B MIXTURE OF EXPERTS
A hand-written, from-scratch LLM training engine built entirely in Rust and CUDA. Features a 12-Expert Mixture of Experts (MoE) Gateway Router, zero PyTorch dependencies, custom BPE tokenizer, and self-evolving architecture growth.
12-Expert Mixture of Experts (MoE) Architecture
Void 1B Gateway RouterVoid 1B dispatches incoming tokens through a high-performance Gateway Router into 12 domain-specialized experts (80M to 125M parameters each). Top-k gating routes tokens with zero auxiliary loss, combining output vectors in the Synthesis Layer.
Technical Novelties & Architectural Breakthroughs
From-Scratch InnovationVoid is engineered from pure Rust and CUDA primitives. Below are the key architectural novelties hand-written into the engine:
From-Scratch BPE Tokenizer Engine
Custom Byte-Pair Encoding implementation hand-written in Rust. Builds 32,000 token vocabularies from raw corpus, computes subword merge frequency tables, and handles byte-level fallback for zero out-of-vocab errors.
Gradient-Checked 12-Expert MoE Router
DeepSeek-style sparse activation engine with 12 specialized experts. Uses auxiliary-loss-free load balancing and Top-k gating to route tokens dynamically without compute waste.
FlashAttention & Gemma-3 QK-Norm
Grouped Query Attention (GQA) with Gemma-3 style QK-Normalization to bound attention logit growth, paired with RoPE positional encodings and custom CUDA FlashAttention kernels.
Spiking Neural Network (SNN) FFN
Experimental Leaky Integrate-and-Fire (LIF) spiking neuron FFN block with surrogate gradient backward passes for ultra-low power neuromorphic computing research.
Architecture Growth & Weight Transfer
Expands trained checkpoints into larger model topologies (e.g. 125M -> 300M -> 1B MoE) by inserting near-identity initialized layers, preserving existing learned representations.
Dynamic CUDA NVRTC Kernel Dispatch
Safe Rust bindings via cudarc to dynamically compile CUDA C kernels into PTX bytecode at runtime, featuring PTX caching and automatic cuBLAS SGEMM/HGEMM dispatch.
Transformer & MoE Architecture
GPT-Style + Sparse MoE PipelineVoid 1B processes tokens through an 8-stage forward execution pipeline. Each layer is engineered from scratch in pure Rust & CUDA — combining Rotary Positional Embeddings, Gemma-3 QK-Norm attention bounding, and dynamic Mixture-of-Experts routing.
Hand-written byte-pair encoding pipeline. 32,000 subword vocabulary with byte-level fallback for 0% out-of-vocab errors.
Lookup d_model=768 dense embeddings coupled with Rotary Position Encodings (RoPE, θ=10,000) for relative positional attention awareness.
DeepSeek-style auxiliary-loss-free gating network. Dynamically routes each token to Top-2 / Top-4 out of 12 domain-specialized experts.
12 parallel neural experts (80M to 125M params each) executing SwiGLU FFNs or Spiking LIF neuron blocks based on router dispatch.
Multi-Head / Grouped Query Attention with Gemma-3 QK-Normalization to prevent logit explosion during deep step progression.
Root Mean Square Normalization applied before each transformer block, stabilizing gradient variance across 12 layers.
Linear projection layer mapping the 768-dim hidden representation back to the 32,000-token vocabulary logit matrix.
Fused Softmax layer with temperature scaling, Top-K, Top-P (nucleus), and repetition penalty sampling to emit text token streams.
Training Status & GPU Telemetry
In ProgressHyperparameters
GPU Telemetry
Model Lineup & Presets
Void Model FamilyEvery model preset can grow into the next tier without retraining from scratch, utilizing architecture growth and the 12-expert Mixture of Experts layer to expand capacity efficiently.
Custom Tensor Engine
Zero PyTorchTensor Core
- ▸N-dimensional storage with contiguous/strided layouts
- ▸Shape broadcasting & automatic reshape
- ▸CPU ↔ CUDA device transfer
- ▸In-place and out-of-place operations
- ▸Lazy computation with fused kernels
Operations (100+)
- ▸MatMul, BatchMatMul, BMM with transpose
- ▸Softmax, LogSoftmax, GELU, SiLU/SwiGLU
- ▸LayerNorm, RMSNorm, Dropout
- ▸RoPE positional encoding
- ▸Cross-entropy loss with label smoothing
Autograd Engine
- ▸Reverse-mode automatic differentiation
- ▸Dynamic computation graph
- ▸Gradient accumulation & clipping
- ▸Memory-efficient checkpointing
- ▸Custom backward for attention & FFN
CUDA Acceleration
- ▸cudarc 0.19 — safe Rust bindings
- ▸cuBLAS SGEMM/DGEMM for matmul
- ▸Custom NVRTC-compiled kernels
- ▸Async memory copies & streams
- ▸Pinned host memory for transfers
Scaling & Efficiency Engine
Verified CUDAThe newest engineering pass focused on verifying the math before scaling: numerical gradient checking against analytical gradients, DeepSeek-style auxiliary-loss-free MoE load balancing, and cuBLAS FP16 acceleration.
12-Expert Mixture-of-Experts
- ▸Router + 12 domain expert selection, gradient-checked end-to-end
- ▸DeepSeek-style auxiliary-loss-free load balancing
- ▸Configurable drop-in alternative to the dense FFN block
- ▸Huge capacity with modest active compute per token
Mixed Precision (FP16)
- ▸Real cuBLAS Hgemm fp16 GPU compute, verified against f32 CPU reference
- ▸Confirmed 2-bytes-vs-4 memory savings on real hardware
- ▸fp32 master weights with fp16 forward/backward for stability
- ▸Full training-loop storage integration
INT8 Quantization
- ▸Round-trip quantize/dequantize verified for correctness
- ▸~4x storage reduction for serving trained checkpoints
- ▸GPU-accelerated INT8 GEMM kernel integration
Gradient-Checked Backward
- ▸Numerical finite-difference check against every hand-written analytical gradient
- ▸Catches silent correctness bugs a loss curve alone would miss
- ▸Extended to cover MoE and mixed-precision paths
Architecture Growth
- ▸A trained checkpoint expands into a larger model without retraining
- ▸New layers initialize near-identity preserving existing knowledge
- ▸Seamless path from 125M to 1B MoE
Spiking FFN (Research)
- ▸Isolated, gradient-checked spiking FFN block (LIF neurons)
- ▸Benchmarked head-to-head against dense equivalents
- ▸Spiking efficiency benchmarked for neuromorphic hardware
Self-Evolution Engine
AutonomousVoid includes a built-in autonomous evolution system that mutates its own architecture — adding/removing layers, adjusting attention heads, modifying FFN dimensions — then evaluating fitness and selecting the best performing variants.
Orchestration Harness
Closed-LoopA deterministic orchestration engine that treats the LLM as a validated state-machine step — plan, execute, validate, and learn from every inference cycle.
Router & Planner
- ▸Intent classification and task decomposition
- ▸Multi-step execution plan generation
- ▸Dynamic routing based on model confidence
Executor & Validator
- ▸Sandboxed execution with timeout guards
- ▸Output validation against expected schemas
- ▸Automatic retry with corrective prompting
CaT Trainer (DPO-style)
- ▸Critique-and-Train learning from execution outcomes
- ▸DPO-style preference optimization from harness feedback
- ▸Continuous self-improvement without human annotation
Distillation Pipeline
- ▸Teacher-student knowledge transfer
- ▸Dynamic growth policy for model scaling
- ▸Checkpoint expansion with preserved learned weights
Void Studio GUI
Native GPU GUIReal-time GPU-accelerated training dashboard built with egui/glow. Monitors loss curves, learning rate schedules, GPU telemetry, and generation output at native 60fps.
Dependency Stack
14 CratesSearchable Source Inventory
45 Files · 32K+ LOCWhy Rust for Machine Learning?
Zero-Cost Abstractions
Rust's type system and ownership model produce code that compiles to the same machine instructions as hand-tuned C — with full memory safety guarantees. No garbage collector pauses during training.
Fearless Concurrency
Data races are compile-time errors in Rust. Rayon parallelism for CPU-bound data loading, async CUDA stream management, and lock-free metric reporting — all verified at compile time.
Single Binary Deployment
Void compiles to a single static binary. No conda environments, no pip dependencies, no virtualenvs, no CUDA version mismatches. Just run the binary.
Native CUDA Integration
cudarc provides safe Rust bindings to the CUDA driver API — device management, memory allocation, kernel launches, cuBLAS — without unsafe blocks leaking into application code.
From-Scratch LLM Research Frontier
Search Intent: ML Systems · Rust · AGIVoid sits at the intersection of questions ML engineers are actively researching: whether frameworks like PyTorch are strictly necessary, how far a from-scratch Rust + CUDA stack can go, and what self-modifying training architectures look like in practice.
How to Train an LLM From Scratch
Void's full stack — BPE tokenizer, transformer, autograd, optimizer, checkpointing — is hand-written in Rust, making every stage of the training pipeline inspectable rather than hidden behind a framework abstraction.
See the Language + Compiler Stack →Rust vs Python for Machine Learning
No garbage collector pauses during training, compile-time data-race safety for parallel data loading, and a single static binary with no conda/pip/CUDA version conflicts to manage.
Compare Against the Bare-Metal OS →Self-Evolving Neural Architecture Search
An autonomous mutation-and-fitness loop that adds/removes layers, adjusts attention heads, and resizes the FFN, then evaluates and selects the best-performing variant with isolated rollback safety.
See the Full AGI Research Platform →GPU LLM Training Without PyTorch
cudarc's safe Rust bindings drive cuBLAS matmul and custom NVRTC-compiled kernels directly — proving GPU-accelerated training doesn't require a Python ML framework in the loop.
Explore the Full Ecosystem →Mixture-of-Experts vs Dense Transformers
Void's gradient-checked MoE layer routes each token through 12 specialized experts instead of the full network — the same sparse-activation principle DeepSeek published at 671B scale.
See 12-Expert MoE Router →Frequently Asked Questions
Answer Engine OptimizedWhat is Void LLM?
Void LLM is a from-scratch large language model training engine built in Rust and CUDA — 32,000+ lines of code across 87 source files, with 8 model presets from 6.9M to 3B parameters, a gradient-checked 12-expert Mixture-of-Experts layer, BPE tokenizer, FlashAttention kernels, FP16/INT8 quantization, self-evolving architecture growth, orchestration harness, and 9,500 tok/s GPU throughput. 242 passing tests.
What is the Void 1B Mixture of Experts (MoE) Architecture?
Void 1B MoE is a sparse-activation architecture featuring a central Gateway Router that dynamically dispatches incoming tokens to 12 specialized experts (Code, Math, Logic, Physics, Reasoning, Safety, Security, Agent, Language, Data, Ethics, System - 80M-125M parameters each) and combines outputs in a Synthesis Layer.
Does Void use a custom BPE Tokenizer?
Yes — Void features a hand-written BPE (Byte-Pair Encoding) tokenizer in Rust (bpe.rs) that trains 32,000-token vocabularies from raw corpus, computes subword merge tables, and handles byte-level fallback for zero out-of-vocab errors.
Does Void use PyTorch or TensorFlow?
No — Void is built entirely from scratch in Rust and CUDA with its own tensor and training stack, without relying on existing deep-learning frameworks.
What hardware does Void LLM run on?
Void runs natively on Linux x86_64 with an NVIDIA GPU, using custom CUDA kernels for GPU-accelerated training and inference.
How is Void different from training with Hugging Face Transformers?
Void doesn't wrap an existing framework — every tensor operation, the autograd engine, the CUDA kernels, and the BPE tokenizer are hand-written in Rust. Hugging Face Transformers sits on top of PyTorch; Void has no such dependency layer.
What is the self-evolution engine in Void?
A built-in autonomous system (autonomous.rs, fitness.rs, mutator.rs, sandbox.rs) that mutates the model's own architecture — adding/removing layers, adjusting attention heads, resizing the FFN — then evaluates fitness and selects the best-performing variant, with isolated rollback safety.
What does Void Studio do?
Void Studio is a native GPU-accelerated GUI (built with egui/glow) that shows live loss curves, learning-rate schedules, GPU telemetry, and generation output at 60fps, with zero web/browser overhead.
Does Void use Mixture-of-Experts (MoE) like DeepSeek?
Yes — Void has a gradient-checked Mixture-of-Experts layer with 12 experts, top-k expert routing, and DeepSeek-style auxiliary-loss-free load balancing, built as a configurable alternative to the dense FFN block.
Is Void's mixed precision and quantization verified on real GPU hardware?
Yes, in isolation: real cuBLAS fp16 (Hgemm) compute is verified against the f32 CPU reference with confirmed memory savings, and INT8 quantization round-trips are verified for roughly 4x storage reduction.
Can a Void model grow larger without retraining from scratch?
Yes — an architecture-growth feature expands a trained checkpoint into a larger model (for example 125M to 300M+ and 1B MoE) by adding near-identity-initialized layers that preserve existing learned weights.
Built an LLM Training Engine From Scratch. Hire the Engineer.
CUDA kernel engineering, custom tensor/autograd libraries, transformer architecture, and Rust performance work — consulting from someone who built the whole training stack by hand, not just called an API.
⚡Get in Touch