Interactive Mechanics & First-Principles Sandboxes
Full-Stack AI Architectures, Chaos Drills & Python 3.12+
No matching labs found
Try another keyword or clear your active filter.
Master modern AI engineering in two hands-on parts: manipulate live visual mechanics for Tokens, Attention, Sampling, KV-Cache & LoRA first, then architect distributed GPU inference, Hybrid RAG, Speculative Decoding, Agentic Sandboxes, and AI Gateways under live chaos drills.
Try another keyword or clear your active filter.
| GPU (SXM) | HBM Capacity | HBM Bandwidth | Dense Compute (TFLOPS) | NVLink Interconnect |
|---|---|---|---|---|
| NVIDIA H100 SXM | 80 GB HBM3 |
3.35 TB/s |
989 FP16 / 1,979 FP8 |
900 GB/s (NVLink 4) |
| NVIDIA H200 SXM | 141 GB HBM3e |
4.80 TB/s |
989 FP16 / 1,979 FP8 |
900 GB/s (NVLink 4) |
| NVIDIA B200 SXM | 180–192 GB HBM3e |
~8.0 TB/s |
~4,500 FP8 / ~9,000 FP4 |
1,800 GB/s (NVLink 5) |
Model Weight Bytes / HBM Bandwidth (e.g. 70B FP16 = 140 GB / 3.35 TB/s ≈ 41.8 ms/tok on H100). Quantization (FP8/INT4) and Speculative Decoding directly break this wall.
70B FP16 = 140 GB (2× H100). 70B FP8 = 70 GB. 70B INT4 AWQ = ~38 GB (fits on 1× 80GB H100 with room for KV-cache).
Llama-3 70B (GQA 8×, L=80, H_kv=8, d=128) = 320 KB / token in FP16 (160 KB / tok in FP8 E4M3). 4K ctx = 1.31 GB/req.
At rank r = 16 on d = 4096, LoRA adapts 0.78% of a layer's weights. QLoRA freezes the base in NF4 to fine-tune 8B on a 24GB GPU.
Virtual 16-token KV pages cap internal fragmentation under 4% while enabling zero-copy Copy-on-Write beams and Radix prefix sharing.
Prefill determines TTFT (compute-bound GEMM); Decode determines TPOT (HBM-bound). Chunked prefill protects decode ITL from long prompts.
Scale-invariant fusion combining Dense HNSW cosine ranks with Sparse BM25 exact-match ranks without brittle score calibration.
At acceptance α = 0.80 and lookahead γ = 5, each Target verification pass emits ~3.7 tokens at 0.00 KL-Divergence.
Partition by tenant_id + sha256(sys_prompt) + temp and pair strict 0.94+ cosine with entity/antonym intent guards.
| Primitive | Production Systems | Key Role |
|---|---|---|
| LLM Inference & Speculation | vLLM, SGLang, TensorRT-LLM, EAGLE-2 |
PagedAttention, Radix prefix cache, FP8/Marlin INT4 & draft-verify serving |
| Hybrid Vector + Lexical RAG | Qdrant, Milvus, Vespa, OpenSearch, Cohere Rerank |
Pre-filtered ACL HNSW + BM25 RRF fusion and Cross-Encoder reranking |
| Constrained Decoding (FSM) | xGrammar, Outlines, llguidance |
Logit-level grammar bitmasks enforcing 100% schema-valid tool JSON |
| Agent Sandboxes & Orchestration | Firecracker, E2B, Modal, Temporal, Restate |
<125ms MicroVM kernel isolation and durable checkpointed step replay |
| AI Gateway & Semantic Routing | Envoy AI Gateway, LiteLLM, Redis Stack, RouteLLM |
Reconciled TPM/RPM limits, semantic caching, 8B→70B cascades & failover |
| GenAI Observability & Guardrails | OpenTelemetry GenAI SIG, Langfuse, Llama Guard 3 |
Token/cost attribution, taint-tracked injection blocks & eval traces |
Jumping straight into GPU clusters without understanding why Decode is HBM-bound—or studying transformer math without ever simulating a KV-Cache OOM—leaves a blind spot. ai.gleee.in pairs both layers into one cohesive 10-lab track.
3 minutes per lab, minimal text. Scrub sliders, drag 2D probe vectors, toggle causal masks, and watch quantization grids snap in real time—backed by ~20 lines of pure standard-library Python.
5-Act Engineering Playbook: (1) VRAM/Latency Math, (2) Wire & Schema Contracts, (3) Interactive Topology + Chaos Drills, (4) Zero-Dependency Python 3.12+ + Stack Mapping, (5) Quality/Latency/Cost Tradeoffs & SLOs.
| Recommended Path | Order of Labs | Best For |
|---|---|---|
| Foundations First | C1 → C2 → C3 → C4 → C5 → S1 → S2 → S3 → S4 → S5 |
Building rock-solid intuition from raw BPE tokens all the way to multi-provider AI Gateways. |
| Production-First | S1 → S2 → S3 → S4 → S5 (jump to C1–C5 as needed) |
Staff/Senior engineers designing serving clusters, RAG pipelines, and agentic platforms right now. |