Libra/
Checking local backend state…

LLM laboratory built from first principles.

An educational foundation model stack running locally on an Intel CPU budget.

Interactive architecture telemetry

PyTorch CPU engine
LIBRA ARCHITECTURE BENCHMARK INSTRUMENT
HARDWARE: INTEL i5-12450H CPU|ZERO-COST POLICY ($0 / ₹0)
OPERATOR CONTROL MATRIX

Toggle first-principles architectural choices to observe CPU cycle and memory impact.

Context Window (Tokens):32 tokens
FIRST-PRINCIPLES TELEMETRY MEASUREMENTS
KV Cache Memory
8,192 bytes
4:1 sharing (256 B/token)
CPU Operations
237,568 FLOPs
2 layers × 4 heads (dim 64)
Est. Single-Thread Latency
19797 µs
100% on CPU budget (No GPU required)
Extrapolation Guarantee
Dynamic RoPE
Relative distance invariant
Mathematical Formulation Executed in PyTorch
Attention(Q, K, V) = softmax(Q_g · K_shared^T / √d_k) · V_shared
FFN_SwiGLU(x) = (xW_gate ⊙ SiLU(xW_up)) · W_down

Educational core and tooling

6 verified architectural subsystems

Shipped

Transformer Architecture

PyTorch core implementing Rotary Position Embeddings (RoPE), SwiGLU activations, and Grouped-Query Attention from raw mathematics.

Shipped

Chat Assistant

Conversational interface executing against local Ollama CPU instances or external API adapters with SSE streaming.

Shipped

Arena & Evaluation

Head-to-head model comparison harness with Elo ratings, perplexity scoring, and per-token latency benchmarking.

Shipped

RAG Knowledge Base

Document chunking pipeline with hybrid dense and BM25 retrieval, cross-encoder reranking, and source attribution.

Shipped

Stateful Lab Notebook

In-browser sandbox for token visualization, loss curves, and training cycle experimentation on local hardware.

Shipped

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.

Target CPUi5-12450H8 cores, 12 threads
Cycle budget< 15 minComplete training run
Disk footprint~1.6 GBUnder 15 GB local quota
API cost$0.00Strict zero-spend