Skip to content
View mahmoudmaftah's full-sized avatar
🌴
On vacation
🌴
On vacation

Highlights

  • Pro

Block or report mahmoudmaftah

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
mahmoudmaftah/README.md

Hi, I'm Mahmoud

Computer science student working on machine learning and low-level systems — and fairly often on the overlap between the two. I'm drawn to problems where the algorithm and its implementation both matter: an index is only as good as its memory behaviour, and a model is only as useful as the pipeline feeding it.

What I build

Machine learning. Diffusion models and their conditioning mechanisms, transformer architectures for detection tasks, and reinforcement learning for control. I care about the experimental side — proper ablations, honest baselines, and results that survive scrutiny.

Systems and data structures. Storage engines, indexes and runtimes written from scratch: LSM trees, B+ trees, approximate nearest-neighbour search, Linux container primitives, compilers. Building these is how I learn what the abstractions actually cost.

Simulation and control. GPU-accelerated numerical simulation, classical and learned control strategies for robots, and streaming data pipelines.

Tech

Languages — Python, C++, C, Go, Java, JavaScript ML — PyTorch, scikit-learn, Hugging Face Transformers, OpenCV, CUDA Data & infrastructure — Spark, Kafka, Elasticsearch, MySQL, Docker, Kubernetes

Selected projects

B-PLUS-TREE — Hybrid B+ tree and HNSW index for k-NN search with scalar filtering. A probabilistic selection strategy keeps recall high when filters would otherwise starve the graph traversal. C++

Persistent-KV-Store-Engine-in-Golang — Persistent key-value store built on an LSM tree: write-ahead logging for durability, SST compaction to bound read amplification, and concurrent access through goroutines. Go

Cool-Compiler — Complete compiler for the Cool language, from lexing and parsing through semantic analysis to LLVM IR generation with optimization passes. Go

cloud-minic — Mini container runtime built directly on Linux primitives: PID/UTS/mount/IPC namespaces, OverlayFS with pivot_root, and cgroups v2 resource limits, with a Flask dashboard for monitoring. Python

Controlled-Conditioning — Experimental comparison of ControlNet, LoRA adapters and input concatenation as conditioning mechanisms in diffusion models, with rank and layer ablations testing whether conditioning signals are genuinely low-rank. PyTorch

RayleighTaylor-Cuda — CUDA-accelerated CFD simulation of the Rayleigh–Taylor instability using the 2D compressible Euler equations. Companion to MaxReduction-Cuda, a six-stage study of parallel reduction from naive global memory to warp shuffles. CUDA

Also here

mini-sklearn — core ML algorithms, preprocessing and metrics reimplemented from scratch · Robotics-project — classical and RL controllers compared across three robot models · Deepfakes — transformer-based detection for image and audio deepfakes · Real-Time-Financial-Data-Analytics — Kafka to Spark to Elasticsearch streaming pipeline · GRAPH-VI — D3.js graph explorer for malware sandbox reports

Recent work

Conditioning mechanisms in diffusion models, and comparing classical against learned control strategies for mobile robots and manipulators.

Pinned Loading

  1. Persistent-KV-Store-Engine-in-Golang Persistent-KV-Store-Engine-in-Golang Public

    High-performance persistent key-value store in Go with LSM-tree, SST compaction, and concurrent operations

    Go 4

  2. B-PLUS-TREE B-PLUS-TREE Public

    Hybrid B+ Tree and HNSW index for efficient k-NN search with scalar filtering using probabilistic optimization

    Jupyter Notebook 5

  3. RayleighTaylor-Cuda RayleighTaylor-Cuda Public

    CUDA-accelerated CFD simulation of Rayleigh-Taylor instability using 2D compressible Euler equations

    Jupyter Notebook 4 1

  4. Cool-Compiler Cool-Compiler Public

    Complete compiler for Cool language: lexer, parser, semantic analysis, LLVM IR generation with optimization

    Go 3

  5. Controlled-Conditioning Controlled-Conditioning Public

    Experimental study of conditioning in diffusion models: ControlNet vs LoRA adapters vs input concatenation, with rank and layer ablations.

    Python

  6. cloud-minic cloud-minic Public

    Mini container runtime in Python: PID/UTS/mount/IPC namespaces, OverlayFS with pivot_root, cgroups v2 resource limits and a Flask monitoring dashboard.

    Python 1