Online Softmax: Tiling for Arbitrarily Large Rowsđ Apr 21, 2026 · â 6 min read · âī¸ k4ihow online softmax extends the fused kernel to handle rows that exceed sram capacity, using a numerically stable 2-pass tiling algorithm.
Why KV Cache Works in LLM Inferenceđ Apr 20, 2026 · â 9 min read · âī¸ k4iwhy the key-value cache avoids redundant computation in autoregressive decoding, and the memory/compute tradeoffs it introduces.
Fused Softmax in Tritonđ Apr 20, 2026 · â 7 min read · âī¸ k4ihow to write a fused softmax kernel in triton that eliminates redundant memory accesses and outperforms pytorch's native implementation.
SSH Port Forwarding: Local and Remote Tunnels Explainedđ Apr 19, 2026 · â 4 min read · âī¸ k4iA practical guide to SSH local and remote port forwarding, with examples, comparison, and persistent configuration via ~/.ssh/config.
Mitmproxy + Tampermonkey = better {llm, âĻ} viewerđ Mar 22, 2026 · â 9 min read · âī¸ k4iUse mitmproxy to capture LLM API traffic and Tampermonkey to turn mitmweb's raw JSON into a readable, chat-like viewer.
Batch vs Stochastic Gradient Descentđ Feb 16, 2026 · â 4 min read · âī¸ k4iunderstand batch gradient descent, stochastic gradient descent, and mini-batch gradient descent.
Forward & Backward Propagationđ Feb 16, 2026 · â 5 min read · âī¸ k4iunderstand how backward propagation works in gradient descent.
Key Management With GnuPGđ Jun 1, 2024 · â 11 min read · âī¸ k4ilearn how to manage you keys with GPG, and use it with ssh and git and pass.
DSU on Tree (Sack)đ Feb 16, 2024 · â 9 min read · âī¸ k4iDSU on tree answers subtree queries by keeping the largest child's contribution and rebuilding only the small parts. The trick is not union-find; it is small-to-large merging hidden inside a DFS.
Shortest Paths Algorithmsđ Feb 10, 2024 · â 3 min read · âī¸ k4icompare shortest path algorithms: dijkstra, floyd, bellman-ford
Connect to your android wirelesslyđ Jan 21, 2023 · â 2 min read · âī¸ k4iconnect to android via TCP/IP
Tiling WM (i3)đ Jan 18, 2023 · â 4 min read · âī¸ k4ithis is my i3 window manager configuration
Public, Private and Hybrid Cloudđ Oct 21, 2022 · â 2 min read · âī¸ k4iPros and cons of different types of cloud.
Use Random in C++đ Apr 18, 2022 · â 1 min read · âī¸ k4iintroduce randomness into your C++ programs, the right way.
Manage Passwords with Passđ Apr 18, 2022 · â 2 min read · âī¸ k4imanage passwords on all your devices (add, generate, edit, delete, sync).
Activate Windows With Your KMS Own Serverđ Apr 17, 2022 · â 2 min read · âī¸ k4iActivate windows and office with a KMS emulator (for volume license editions)
File Sharing with Sambađ Apr 12, 2022 · â 3 min read · âī¸ k4iuse samba to share files across linux and windows.
Linux Hypervisor Setupđ Apr 10, 2022 · â 4 min read · âī¸ k4isetup hypervisor with qemu and kvm, the best linux based open source virtualization solution
Windows 11 VM with QEMU/KVMđ Apr 10, 2022 · â 3 min read · âī¸ k4iInstall windows VM in QEMU/KVM