amir2628 (Amir) · GitHub
Skip to content
View amir2628's full-sized avatar

Block or report amir2628

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
amir2628/README.md

Portfolio Email LinkedIn ORCID PyPI

About Me

Python backend engineer with strong AI/ML depth — backend-first, AI-capable. My core work is production backend systems (FastAPI/Django, PostgreSQL, Kafka, async, microservices, high-load), with ML/LLM integrated as first-class functionality — RAG, semantic search, predictive analytics, computer vision — rather than as a separate research track. I also teach and research applied ML as a Senior Lecturer, and publish and maintain open-source tooling for AI-agent reliability.


Tech Stack

Languages

Python TypeScript JavaScript SQL

AI / ML

PyTorch TensorFlow Keras scikit-learn Hugging Face OpenCV

LLM / Agents

RAG GigaChat OpenAI API Sentence Transformers LangGraph Conformal Prediction LoRA

Backend

FastAPI Django DRF Celery asyncio WebSockets

Data & Storage

PostgreSQL pgvector PostGIS MySQL MariaDB Redis ChromaDB SQLite

Messaging & Streaming

Apache Kafka RabbitMQ MQTT

Frontend

React TypeScript HTML5 CSS3

DevOps & Infra

Docker nginx Git GitLab Linux Prometheus CI/CD

Industrial / IoT

OPC-UA Modbus FANUC CNC MES PID Control


Open-Source Packages

Independent, Apache-2.0-licensed Python libraries addressing reliability gaps in LLM-agent tool-calling and autonomous decision-making — each with a CI pipeline, coverage-validation test suite, and real-world validation against live models/agents, not just synthetic benchmarks.

Package What it does Links
KVCalib Turns "how aggressively can I evict my LLM's KV cache" into a calibrated eviction-budget decision backed by a distribution-free statistical guarantee (Conformal Risk Control), instead of a benchmark number borrowed from someone else's traffic. Supports multiple eviction backends, group-conditional coverage, and an online drift monitor that flags when the guarantee stops holding. PyPI GitHub
DeferGuard Turns any confidence signal (logprob, judge score, ensemble vote) into a calibrated act-vs-escalate decision backed by a distribution-free statistical guarantee (Conformal Risk Control). Includes multi-expert routing and group-conditional coverage. PyPI GitHub
ConformGuard Wraps a single agent tool call with a calibrated accept/abstain decision backed by split conformal prediction's finite-sample coverage guarantee, replacing hardcoded confidence thresholds. Supports joint calibration across multiple simultaneous checks. PyPI GitHub
ResilientForge Gives tool-calling agents persistent, cross-run failure memory: recovers from a failure once, resolves repeat occurrences with zero additional model calls, and promotes proven fixes into standing guards that prevent the failure from recurring at all. PyPI GitHub

Featured Projects

Project Description Stack
Semantic Review Search Fine-tuned DistilBERT semantic search over the IMDB corpus, with async FastAPI and PostgreSQL/pgvector cosine-similarity search. FastAPI PyTorch DistilBERT pgvector Celery Docker
AI Image Studio Controllable image-generation platform: Stable Diffusion + ControlNet (Canny/Pose/Depth), LLM-based prompt optimization, GPU-accelerated async queue, React/TS frontend. FastAPI Stable Diffusion ControlNet SQLAlchemy React TS
Restaurant Object Detection Video-to-dataset pipeline using GroundingDINO for automatic prompt-based annotation and YOLOv11 for real-time detection, GPU-optimized training tracked via W&B. YOLOv11 GroundingDINO PyTorch CUDA OpenCV
Freelancer Analyzer Natural-language (RU/EN) analytics assistant over freelancer income data — hybrid template + LLM query system with a Rich-formatted CLI. FastAPI Transformers pandas NLP CLI
Hybrid PID Optimization with RL Three-module industrial control system (Q-learning + PSO-Differential Evolution + fuzzy-logic arbitration) tuning PID controllers in real time — 59% faster settling time, 71% lower overshoot. Reinforcement Learning PSO Fuzzy Logic Control Theory
Fintech AI Assistant (GigaChat + RAG) Production RAG assistant for a financial-management SaaS: GigaChat LLM, pgvector-backed semantic search, query classification, semantic caching, quota/rate-limiting, and concurrency control. FastAPI RAG pgvector GigaChat Celery Alembic
Urban Services Monitoring Platform Event-driven, Kafka-based monitoring of municipal transport & manual-cleaning crews: 100,000+ geospatial events/day, PostGIS road-graph analytics over 50,000+ street segments, CV-based quality control across 500+ cameras, real-time WebSocket tracking of 1,000+ vehicles. FastAPI Kafka PostGIS GeoPandas OpenCV WebSocket
Manufacturing Execution System (MES) CNC-machine monitoring and predictive-maintenance system integrating FANUC machines over MQTT, ML failure prediction, and RabbitMQ-based task orchestration. Django PyTorch MQTT FANUC RabbitMQ
Semantic Duplicate Detection LLM-based system for detecting duplicate records across corporate procurement/technical databases using multilingual sentence embeddings. Django FastAPI Hugging Face PyTorch

Research & Publications

📄 Full list of peer-reviewed papers and book chapters: a-bahrami.com/publications


Pinned Loading

  1. KVCalib KVCalib Public

    Distribution-free, finite-sample guarantees for KV-cache eviction budgets, calibrate an accuracy-loss bound with Conformal Risk Control, on top of kvpress

    Python

  2. deferguard deferguard Public

    DeferGuard calibrates any confidence signal your AI system already produces — a logprob, a judge score, an ensemble vote — into an act-vs-escalate decision backed by a distribution-free statistical…

    Python

  3. conformguard conformguard Public

    Calibrated accept/abstain gating for tool-calling LLM agents, using split conformal prediction to give a provable, finite-sample coverage guarantee, not a heuristic confidence score.

    Python

  4. resilientforge resilientforge Public

    Persistent, cross-run failure memory for tool-calling AI agents — when a wrapped agent recovers from a tool failure, ResilientForge remembers the fix so the same failure shape is resolved instantly…

    Python

  5. ai-image-studio ai-image-studio Public

    Stable Diffusion + ControlNet Playground. A React mini-app where users: Upload an image, Choose a ControlNet preprocessor (canny, pose, depth), Provide a prompt, See real-time result. Powered by a …

    TypeScript

  6. restaurant-object-detection restaurant-object-detection Public

    High-performance object detection system using YOLOv11 for restaurant environments

    Python 1