Official implementation of HOT: Robot Tool Design from Scratch via Behavior-Aware Hierarchical Optimization
—
From teacher to tiles — a from-scratch LLM distillation & serving engine: custom Triton/CUDA kernels, FSDP distillation, paged-KV continuous batching, speculative decoding, a Rust gateway, a JAX oracle, and interpretability tooling.
A compiler for a small C-like language, written from scratch in Python: table-driven DFA scanner, transition-diagram predictive parser generated from a plain-text grammar with FIRST/FOLLOW sets, semantic analysis and three-address code generation onto a 12-instruction stack VM.
A GPT-style Transformer built entirely from scratch with NumPy, featuring manual forward/backward propagation through attention, LayerNorm, softmax, residuals, GELU, and cross-entropy. Includes Adam, gradient checking, visualization, and autoregressive text generation—without autograd or deep-learning frameworks.
Technical notes, code, and experiments to study neural networks from first principles.
Implementing LLM architectures from scratch in PyTorch
Implementing a tiny RL framework from scratch with as little dependencies as possible, can run RL on real LLMS using PC/laptops with limited resources.
A from-scratch, dependency-free GPT implementation in pure NumPy: byte-level tokenizer, multi-head self-attention, Adam trainer, and top-k sampler.
Can Language Models Rebuild Programs From Scratch?