Long context is mostly paid-for waste: a model re-reads everything at every step, in every layer and head, and needs little of it. The fix has to retrofit, because the models that matter are already trained. It can live beside the model as a learned selector, inside it as self-declared attention spans, or beneath it in the decode loop. I built all three, down to the Triton kernels, on a shared GPU cluster I also run.

  • Integrated M.S./Ph.D. in Artificial Intelligence
    Korea Advanced Institute of Science & Technology (KAIST) Seoul, South Korea
    Advisors
    Thesis
    Teaching Assistant
  • B.E. in Computer Science and Engineering
    National University of Sciences & Technology (NUST) Islamabad, Pakistan
    Thesis
    Honors
  • Graduate Researcher
    Korea Advanced Institute of Science & Technology (KAIST) Seoul, South Korea
  • Research Intern
    RiseTech Islamabad, Pakistan
  • Engineering Intern
    microTech Services · EME Centre Islamabad, Pakistan
see all
Efficient Long-Context LLMs
2025 – Present
Efficient-LLM Architecture & Training Systems
2023–2025

Equal contribution.

2023 – Present
LLM Training & Inference
Pretraining, Supervised fine-tuning, Reinforcement learning (PPO, GRPO), PEFT, Knowledge distillation (KL), Long-context inference, Sparse attention, KV-cache compression, Speculative decoding, Quantization
ML Systems & Performance
Distributed training (FSDP, GSPMD, RDMA), TPU/XLA static graphs, Custom attention kernels (Triton, CUDA), Roofline latency modeling
Frameworks & Tooling
Python (PyTorch, Hugging Face, vLLM, FlexAttention), Weights & Biases, Docker, ZFS / TrueNAS

BibTeX