Repositories

A selection of my favorite projects. Everything else lives at github.com/KHOUTAIBI.

Diffusion Policy agent solving the FrankaKitchen task

DiffusionPolicy

Reimplementation of Diffusion Policy: robot actions are generated by denoising perturbed action sequences conditioned on visual and proprioceptive observations. Includes DDPM-based policies for FrankaKitchen and PushT, plus a flow-matching variant for comparison.

References
View on GitHub
Inpainting trajectories: masked face images restored through guided denoising

GenerativeImageModeling

Training-free guided diffusion for inverse problems in image restoration: a pre-trained DDPM/DDIM prior is steered at inference time with DPS and PiGDM guidance to solve inpainting, super-resolution, motion deblurring, and compression artefact removal.

References
View on GitHub
FlashAttention tiling diagram

gpu_llm_flash-attention

FlashAttention-2 implemented from scratch in Triton: tiled, IO-aware exact attention with online softmax, written as custom GPU kernels and benchmarked against naive attention.

References
View on GitHub
KV cache and LoRA schematic

LLM-kv-cache-LoRA-efficiency

Efficient LLM inference and fine-tuning on top of Karpathy's minGPT: a KV cache threaded through the attention stack reduces per-step decoding cost from quadratic to linear, and LoRA adapters enable low-rank fine-tuning with zero inference overhead after merging.

References
View on GitHub
FSM-constrained decoding schematic

controlled-LLM-generation

Controlling LLM outputs at three levels: regex-compiled finite state machines that mask logits so every token matches a target structure, meta-generation strategies that sample and rank multiple candidates, and iterative self-correction of generated code driven by verifier feedback and tree search.

References
View on GitHub
Zork gameplay on a CRT terminal: West of House, opening the mailbox, and the Welcome to Zork message

Agentic Zork

A ReAct-style LLM agent that plays classic Z-machine text adventures (Zork and 56 other Infocom-era games) through an MCP tool server: the agent reasons over room descriptions, chooses actions, and explores partially observable environments purely from text.

References

Photo: Marcin Wichary, CC BY 2.0

View the Space