Available for new projects

Hamza Rehman

AI & Backend Engineer

Computer Science engineer focused on artificial intelligence and scalable backend systems. I build production-ready RESTful APIs with FastAPI, fine-tune LLMs, and optimize computer vision for CPU-based environments — delivering high-performance, end-to-end software.

Islamabad, Pakistan

Core Expertise

The tools I reach for daily to build, train, and deploy AI systems across the full stack.

Python logo

Python

Expert

PyTorch logo

PyTorch

Deep learning

TensorFlow logo

TensorFlow

Deep learning

Hugging Face logo

Hugging Face

Transformers

OpenCV logo

OpenCV

Computer vision

FastAPI logo

FastAPI

API services

PostgreSQL logo

PostgreSQL

Database

MongoDB logo

MongoDB

NoSQL store

Next.js logo

Next.js

Frontend

React logo

React

UI library

AWS logo

AWS

Cloud infra

Docker logo

Docker

Containerization

Featured Projects

A selection of systems I've architected end-to-end — from model selection to production deployment.

Multimodal RAG & Semantic Search Engine

End-to-end RAG system parsing complex PDFs (text + charts) via a dual-stream embedding architecture (Sentence-BERT & CLIP). Integrated a 4-bit quantized Mistral-7B with Chain-of-Thought prompting to cut hallucinations by 25%, hitting sub-100ms retrieval and a 0.96 NDCG@5 with a BERT cross-encoder.

Mistral-7BFAISSSentence-BERTCLIPHugging FaceCross-Encoder

Real-Time Traffic Analysis

High-performance vehicle tracking hitting 60+ FPS on standard CPU hardware — no GPU required. MOG2 background subtraction and centroid tracking quantify traffic flow with 95% accuracy.

OpenCVMOG2Centroid Tracking

AI Career Copilot

Full-stack agentic platform on FastAPI + Next.js 15 using Llama 3.1 to turn PDF resumes into Pydantic-validated JSON. FAISS + BGE embeddings power context-aware job matching, with SSE streaming roadmaps chunk-by-chunk.

Llama 3.1FastAPINext.js 15FAISSBGESSE
Private

Virtual DNA — Genetic Trait & Kinship Analysis

Multimodal ML system predicting genetic traits and familial connections. A Siamese network with contrastive loss verifies kinship via fingerprint similarity, while MTCNN + a fine-tuned MobileNetV2 handle face detection and skin-tone classification on CelebA.

PyTorchSiamese NetworkMTCNNMobileNetV2CelebA

Work History

Building intelligent products and resilient backend systems.

  1. Jan — Aug 2025 · Islamabad, Pakistan

    AI Backend Engineer · D-Tech & Consultancy

    • Integrated LLMs into production applications, powering AI chatbots, document analysis, contract review, data extraction, and automated reporting.
    • Designed prompt-engineering and structured-output pipelines with Pydantic to turn unstructured documents into reliable machine-readable data.
    • Built a RAG workflow combining vector search, document processing, and LLM inference for context-aware question answering.
    • Set up Selenium web scraping and Tesseract OCR pipelines for data extraction, cleaning, and usability.
    • Containerized the full application stack with Docker and deployed on DigitalOcean using Nginx as a reverse proxy and Gunicorn for process management.
    FastAPILLMsRAGDockerNginxGunicornPydantic

Education

  1. 2021 — 2026

    BS in Computer Science · FAST NUCES, Islamabad

  2. 2018 — 2020

    Higher Secondary Education · Federal Board of Intermediate & Secondary Education, Islamabad

Skills & Tooling

A categorized look at the technologies I work with across the stack.

Languages

  • Python (Expert)
  • C / C++
  • Java
  • Go
  • SQL
  • PHP
  • HTML / CSS

AI & Machine Learning

  • PyTorch
  • TensorFlow
  • Hugging Face
  • OpenCV
  • Structured Output (Instructor)
  • Prompt Engineering
  • Agentic Workflows
  • LLM Fine-Tuning
  • RAG
  • CNNs
  • ViT
  • GANs
  • FAISS (Vector DB)

Backend & Cloud

  • FastAPI
  • Flask
  • Real-time Streaming (SSE)
  • Async Python
  • PostgreSQL
  • MongoDB
  • AWS (EC2, S3, RDS)
  • Nginx
  • Gunicorn

Frontend

  • Next.js
  • React
  • Tailwind CSS v4
  • ShadCN UI
  • State Management

DevOps & Tools

  • Docker
  • Containerization
  • Git / GitHub
  • WebSockets
  • JWT
  • Pytest
  • Linux / Ubuntu