Code Examples
Interactive code blocks with syntax highlighting and explanations.
Binary to Decimal ConverterPython
Convert between number bases with step-by-step visualization
Simple Cache SimulatorC
Direct-mapped and set-associative cache simulation
Matrix Multiplication KernelsCUDA / HIP
Naive vs tiled GPU matrix multiplication comparison
Transformer AttentionPython
Scaled dot-product attention from scratch with NumPy
GGUF Model LoaderPython
Parse and inspect GGUF model file headers and metadata
Speculative Decoding DemoPython
Minimal implementation of speculative decoding algorithm