Machine Learning Engineer

Mahdi
Rafiei.

Mahdi Rafiei profile picture

Building intelligent systems that
learn, adapt, and scale

I train large-scale models, build production ML pipelines, and turn research into reliable software. Currently focused on LLM fine-tuning and real-time inference.

~ $ python train.py --model gpt-custom
Loading dataset... 142k samples
Epoch 1/10 ━━━━━━━━━━ loss: 2.341
Epoch 5/10 ━━━━━━━━━━ loss: 0.892
Epoch 10/10 ━━━━━━━━━━ loss: 0.341
Checkpointing to ./runs/exp_042
Eval accuracy: 94.7%
~ $

5+

Models shipped to prod

13B+

Parameters trained

4

AI systems designed

2yrs+

Industry experience

03 — Projects

Selected work.

001

Receipt Detection System

Production YOLO model deployed on AWS ECS Fargate detecting receipts in real time. Secured with Amazon Cognito, served via CloudFront, with a full web interface for live inference.

YOLOv8 AWS ECS FastAPI Cognito
Live Try live demo

002

Personal Finance RAG System (In Progress)

Building a retrieval-augmented system over extracted receipt data to enable natural language querying of personal expenses. Combines structured filtering (dates, categories) with semantic search over embedded transaction data to generate insights and summaries of spending behavior.

LLaMA-3 QLoRA LangChain FAISS
Coming soon

003

AI Expense Management Agent (In Progress)

Developing an agentic system that autonomously analyzes receipt data, tracks spending patterns, and assists with budgeting decisions. The agent performs multi-step reasoning using tools such as transaction databases and financial rules to generate insights, detect anomalies, and provide proactive recommendations.

Strands LLM agents Amazon Bedrock Guardrails
Coming soon

02 — Skills

Expertise & tools.

Core areas

——

Deep Learning

MLOps

NLP & LLMs

Computer Vision

Distributed Training

Python

Advanced

PyTorch

Advanced

Hugging Face Transformers

Advanced

Computer Vision (object detection, OCR pipelines)

Proficient

Retrieval-Augmented Generation (RAG)

Proficient

LLM application development / LLM agents

Proficient

MLflow

Proficient

Vector search (e.g., FAISS)

Proficient

LangChain / LLM orchestration

Proficient

03 — Experience

Where I've worked.

2026 — Present
London, UK

Machine Learning Engineer

TiiQu

Fine-tuned lightweight LLMs and developed a Text Classification API to match user input against pre-defined templates, achieving 80% accuracy and improving the efficiency of truth verification workflows.

2025 — 2026
London, UK

Machine Learning Engineer

hired & trained

Designed and delivered a predictive analytics system that analysed large volumes of candidate data to identify patterns and generate actionable insights for hiring decisions.

2023 — 2024

Machine Learning Engineer

TRUST

Fine-tuned large language models (LLMs) on H100 GPUs and TPUs, improving SQL generation efficiency by 40%. Applied knowledge distillation for dataset creation and built an AI agent to execute SQL queries dynamically.

Let's build something worth knowing.

Open to AI/ML roles, research collaborations, and technical consulting. I respond within 24 hours.