Prasanna Kanagasabai (PK) (@prasannain) header
Prasanna Kanagasabai (PK) (@prasannain) profile picture
Singapore
Joined September 2009
Photo by Prasanna Kanagasabai (PK) (@prasannain)Photo by Prasanna Kanagasabai (PK) (@prasannain)Photo by Prasanna Kanagasabai (PK) (@prasannain)Photo by Prasanna Kanagasabai (PK) (@prasannain)
Inspired by @threepointone Code Mode: an agent retrieved my Crypto. com balance using dummy credentials. The real key stayed in a separate signer microVM. prasannakanagasabai126786.su…
76
Reproduced @pdiscoveryio's LoRA backdoor attack: a model that behaves perfectly until a trigger phrase, then quietly emits a malicious tool call. Ported it to a second coding agent and tested what stops it - execution-time policy-enforcement.
2
2
1
339
Your LLM just recomputed 30,000 tokens it already did 5 minutes ago. Every cache eviction = full prefill from scratch. 10–30 seconds. Again. tierKV fixes this. Here's how 🧵
2
3
99
6/ Getting started: pip install tierkv One command. Hooks into vLLM or EXO automatically. No source changes. 📖 prasannakanagasabai126786.su… ⭐ github.com/tierkv/tierkv
1
38
What if we stopped treating Sparse Autoencoders as fragile single-feature detectors for prompt injection? Instead, I mined **conjunctive co-activation patterns** — groups of features that only fire together in real attacks. On Gemma Scope (layers 6/12/18). 1/2
1
1
118
🧵 MLX said "pick one precision for all experts." We needed 9 at FP16, 119 at 4-bit. So we split what wasn't meant to be split. Here's how we got Qwen3-MoE-32B running in 64GB on Apple Silicon 👇 1/🧵
1
59
Why this works on MLX: ✅ gather_mm and gather_qmm are independent kernels ✅ Each block only sees local indices [0-N] ✅ mx.where on Metal GPUs is basically free
1
23
🔗 Full technical breakdown: open.substack.com/pub/prasan… 🤗 Ready-to-use model (HF): PKSGIN/qwen3-30b-selective-quant-MixedMPW-mlx
29
Running a 30B LLM for security analysis means choosing between: Cloud APIs (ship sensitive data off-prem) Local quantized models (too degraded to be useful) I spent a weekend building a third option. 47 tok/s on a MacBook. Zero data leakage. 🧵
1
2
85
Unified memory changes the game. Traditional GPU: model must fit in VRAM (RTX 4090 = 24GB) Apple Silicon: CPU/GPU/Neural Engine share 32GB pool 18 GB model loads once. GPU runs inference in-place. Headroom for OS + KV cache. Air-gapped ready.
1
33
Total cost: ~$2 GPU rental, one weekend, 4 Python scripts. Model: PKSGIN/qwen3-30b-selective-quant on HuggingFace Full technical writeup (profiling, quantization, MLX conversion, benchmarks): open.substack.com/pub/prasan… Security teams deserve local models that actually work.
1
47