LLM laboratory built from first principles.
An educational foundation model stack running locally on an Intel CPU budget.
Interactive architecture telemetry
PyTorch CPU engineToggle first-principles architectural choices to observe CPU cycle and memory impact.
Educational core and tooling
6 verified architectural subsystems
Transformer Architecture
PyTorch core implementing Rotary Position Embeddings (RoPE), SwiGLU activations, and Grouped-Query Attention from raw mathematics.
Chat Assistant
Conversational interface executing against local Ollama CPU instances or external API adapters with SSE streaming.
Arena & Evaluation
Head-to-head model comparison harness with Elo ratings, perplexity scoring, and per-token latency benchmarking.
RAG Knowledge Base
Document chunking pipeline with hybrid dense and BM25 retrieval, cross-encoder reranking, and source attribution.
Stateful Lab Notebook
In-browser sandbox for token visualization, loss curves, and training cycle experimentation on local hardware.
Execution Sandbox
Process-isolated Python runtime with AST syntax allowlists and memory bounds to safely evaluate generated code.
Zero-Cost Hardware Budget
Libra strictly adheres to a zero-cost budget. All PyTorch architectures are dimensioned to complete training and evaluation cycles in under 15 minutes on a standard Intel Core i5 CPU without requiring cloud GPUs.