17 Projects Open to ML / GenAI / AI / CV engineer roles

Atandra Bharati

ML & GenAI Research Engineer.

I rebuild frontier AI systems from first principles in PyTorch — LLMs (HyMo, DeepSeek-V3, LLaMA-3, GPT-OSS, Mamba-3, MoE, MLA, MTP), latent diffusion (Stable Diffusion 1.x), multimodal (PaliGemma-style VLMs), and agentic research platforms. Paper-faithful, single-GPU-first, fully from scratch.

  • PyTorch 2.x — BF16, Flash Attention 2, torch.compile
  • Transformers — GPT, enc-dec, MLA, GQA, MoE, MTP, Gated Delta Net, sliding/full attn alt, learned sinks, YaRN
  • State-Space Models — Mamba-2 SSD, Mamba-3 complex64 SSD, MIMO head mixing
  • Diffusion — custom U-Net, DDPM/DDIM, VAE, GAN, CycleGAN
  • Distributed — DDP, FSDP, 2× to 8× multi-GPU
  • Agentic — provider-agnostic LLM layer, vector + graph memory
  • Email atandrabharati@gmail.com
  • GitHub github.com/atandra2000
  • LinkedIn linkedin.com/in/atandrabharati
  • Location Kolkata, India · remote-friendly
  • Status Open to ML / GenAI / AI / CV engineer roles

About

I'm an ML & GenAI research engineer who builds frontier AI systems from first principles — no high-level wrappers, no black boxes. Every architecture in my portfolio was implemented bottom-up, from attention math to distributed training pipelines.

My recent work spans a 434M-active / 1.13B-stored HyMo — the flagship hybrid LLM fusing Gated Delta Net (linear attention) with MLA (full attention) and Asymmetric MoE, pre-trained from scratch on 30B tokens with a custom Triton GDN kernel and FSDP-2; a 422M DeepSeek-V3 reproduction with MLA, aux-loss-free MoE, and multi-token prediction; a Stable Diffusion 1.x trained from scratch on 2× RTX 5090 (best loss 0.0947, epoch-42 checkpoint released); a GPT-OSS-style long-context MoE (502M / 247M active) with sliding-window/full attention alternation and learned attention sinks; a Mamba-3 complex64 SSD implementation with MIMO head mixing and zero causal convolution; a PaliGemma-style vision-language model trained end-to-end on a P100; and a 15-phase autonomous ML research platform that reads papers, plans experiments, writes patches, runs training, and iterates.

I care about the full stack — paper comprehension, architectural design, numerical stability, memory engineering, distributed training, and now agentic orchestration. See the GitHub profile README for the canonical list, or jump straight to Projects.

What I'm Doing Now

  • Shipping HyMo — the flagship hybrid LLM: 434M active / 1.13B stored, 3:1 GDN/MLA with Asymmetric MoE and MTP, custom Triton GDN kernel, FSDP-2, pre-trained from scratch on 30B tokens. View project →
  • Shipping AutonomousResearcher — a 15-phase multi-agent platform that turns an arXiv paper into evaluated experiments: paper analysis, repo analysis, experiment planning, code patches, training runs, statistical evaluation, autonomous looping, and end-to-end research reports. View project →
  • Just released two new LLM reproductionsGPT-OSS-Lite (502M / 247M active, sliding-window/full attention alternation, learned attention sinks, YaRN 128K, 2× KV-cache reduction at 128K) and Mamba-3-Lite (404M, complex64 SSD with 50% smaller state than Mamba-2, MIMO head mixing, zero causal convolution). Both are pure PyTorch — no custom CUDA, no HF Trainer.
  • Open to conversations — looking for ML / GenAI / AI / CV engineer roles (remote-friendly). Particularly interested in teams building foundation-model infrastructure, agentic research systems, or post-training pipelines. Reach out →

Technical Stack

The tools I reach for — built up across seventeen from-scratch projects.
Languages
Python 3.12BashSQL
Core ML
PyTorch 2.xtorch.compileHugging FaceDiffusersSafetensorsSentencePiece
Architectures
TransformersMLA · GQAMoE · MTPSliding/Full AttnLearned SinksYaRN RoPEGated Delta NetSSD · Mamba-3Latent DiffusionVAE · GANSigLIP · ST-GCN
Optimization
BF16Flash Attention 2Gradient CheckpointingChunked CEμP · WSDAdamW · NorMuon · CautiousAdamW
Distributed
DDP · FSDPNCCLMulti-GPU (2×–8×)Mixed Precision
Inference
SFTMLA AbsorptionMTP Speculative DecodingDDIM SamplingSliding/Full KV Cache
Agentic / Infra
Multi-AgentProvider-Agnostic LLMOllama CloudVector + Graph MemoryPydantic v2
Hardware
A100 80GBRTX 5090RTX 6000 AdaP100 · T4RunPod
Tooling
Git · GitHubW&BCometimg2datasetpytest · Ruff · mypy

Projects

Seventeen from-scratch implementations — every architecture hand-written, no high-level wrappers.

HyMo

LLM

The flagship hybrid LLM — 434M active / 1.13B stored params fusing Gated Delta Net (linear attention) with Multi-Head Latent Attention (full attention) in a 3:1 ratio, plus Asymmetric MoE and Multi-Token Prediction. Pre-trained from scratch on 30B tokens with a hand-written Triton GDN kernel (chunked 1D selective scan) and FSDP-2. The only sanctioned kernel path is the custom Triton GDN — no fla dependency.

434M active / 1.13B stored · 3:1 GDN/MLA Asymmetric MoE · MTP · Triton GDN · FSDP-2

DeepSeek-V3-Lite

LLM

Faithful from-scratch reimplementation of DeepSeek-V3 — Multi-Head Latent Attention (MLA) with decoupled RoPE, aux-loss-free MoE routing, multi-token prediction (MTP), true MLA absorption at inference, and MTP-based speculative decoding. Architecture, training pipeline, microbench, and step-time benchmarks are complete and pass; the Chinchilla-optimal 422M / 8.4B-token run is designed for a single A100 80GB (training pending).

422M params · MLA · MoE · MTP · Speculative A100 80GB · code-complete · training pending

GPT-OSS-Lite

LLM

From-scratch reimplementation of OpenAI's GPT-OSS long-context MoE architecture. Twelve layers alternate sliding-window (window=128) and full attention; per-head learned attention-sink bias (clamped to [−10, 15] for BF16 SDPA stability); YaRN RoPE for 128K-context extrapolation; top-2-of-8 routed experts plus 1 shared; standard auxiliary load-balancing loss. Verifies a 2× KV-cache reduction at 128K (1.13 GB vs 2.25 GB pure GQA, BF16). 130 tests across 10 files cover SWA/full parity, sink bias, YaRN extrapolation, MoE routing, and gradient flow.

502M total / 247M active · SWA(128)/Full alt Learned sinks · YaRN 128K · top-2-of-8 MoE · 130 tests

Mamba-3-Lite

SSM

From-scratch reproduction of Mamba-3 at 404M params, written in pure PyTorch (no mamba-ssm, no custom CUDA, no causal conv). Promotes the state-space recurrence into the complex plane (N=64 complex64) — half the state dimension of Mamba-2 at parity capacity. Adds a fully-connected MIMO mixer across SSM heads and drops the causal conv block. Targeted at a Chinchilla-optimal 8.0B-token run on a single A100 80GB (12–15 h). The companion SSD.md walks through the chunkwise algorithm and its equivalence to the naive O(T) recurrence.

404M params · complex64 SSD (N=64) · MIMO head mixing A100 80GB · pure PyTorch · zero causal conv

Vision Language Model

VLM

PaliGemma-inspired vision-language model built from scratch. SigLIP-style vision encoder with sinusoidal patch embeddings, GQA-based language decoder with RoPE and GeGLU, connected via a trainable linear projector. Zero pretrained weights — every component trained end-to-end on COCO 2014 captions on a single P100 GPU.

SigLIP + GQA decoder + linear projector COCO 2014 · P100 · zero pretrained weights

Detect-Objects

Detection

From-scratch real-time object detection: ResNet-50 + FPN backbone with a deformable set-prediction decoder (RT-DETR / DINO-style) — no anchors, no NMS. Targets ~42 mAP on COCO 2017, trained on 2× RTX 5090, with Gradio + ONNX serving.

ResNet-50 + FPN · deformable decoder COCO 2017 · 2× RTX 5090 · ONNX

A 15-phase multi-agent platform that turns an arXiv paper into evaluated experiments — paper analysis, repo analysis, experiment planning, code patches, training runs, statistical evaluation, autonomous looping, and end-to-end research reports. Provider-agnostic LLM layer with per-agent model routing across coding / reasoning / orchestration models.

23 agents · 61 tools · 186 models · 878 tests Qwen3-Coder · GLM-5.2 · MiniMax-M3

News Agent

Agent

Autonomous AI research-intelligence agent: daily multi-source web research across 15+ sources, LLM synthesis with self-critique, and provenance-tracked Markdown reports. 291 offline tests.

15+ sources · self-critique · provenance-tracked 291 tests · daily briefs

LLaMA-3-Lite

LLM

From-scratch LLaMA-3-style transformer engineered for single-GPU pretraining. Headline result: a 78% peak-memory reduction (92 GB → 20 GB) from gradient checkpointing, chunked cross-entropy (logits 50 GB → 0.3 GB), and disk-backed token caching (RAM 112 GB → 1 MB) — enabling 2× batch-size headroom on a single A100 80GB. Architecture complete; the 8.25B-token run is designed (training pending).

515M params · GQA · RoPE · SwiGLU · RMSNorm Flash Attn 2 · Chunked CE · BF16

Stable Diffusion 1.x

Diffusion

A Stable Diffusion 1.x-class latent diffusion model trained from scratch on 2× RTX 5090 (Blackwell). 860M-param U-Net, DDPM + DDIM schedulers, custom 7-phase curriculum on 1.3M+ images (LAION-Aesthetic → high-aesthetic LAION → DiffusionDB/JourneyDB → VGGFace2 → COCO → consolidation), DDP + BF16 + gradient checkpointing + EMA + Min-SNR. The 42-epoch checkpoint is publicly released on Hugging Face (atandra2000/sd-from-scratch-v1). Best loss 0.0947 (epoch 16); the 48-epoch curriculum continues.

860M U-Net · best loss 0.0947 (epoch 16) 2× RTX 5090 · 7 phases · HF release

Bidirectional face age transformation (young ↔ old) using a conditional CycleGAN with AdaIN style normalization, multi-scale discriminator, and VGG perceptual loss. Per-layer age conditioning enables smooth interpolation between age groups.

31 epochs · AdaIN · 3-scale PatchGAN RTX 6000 Ada

β-VAE for 128×128 face generation on the CelebA dataset. Uses bilinear upsampling in the decoder, KL annealing schedule, and a 512-dimensional latent space. Reconstruction MSE reached 0.0152. Tracked with Comet ML.

50 epochs · recon MSE 0.0152 512-D latent · KL annealing 0→1

Deep Convolutional GAN trained on CelebA to generate 64×64 face images from scratch using PyTorch. Standard DCGAN architecture with spectral normalization; discriminator loss converges to the ln 2 ≈ 0.693 Nash equilibrium.

50 epochs · D loss → ln 2 ≈ 0.693 202k CelebA · 2× T4

Upscale-SR

Super-Resolution

4× real-world photo super-resolution: a StableSR-style latent-diffusion U-Net with a mamba-ssm SSM refiner. Trained on DIV2K + Flickr2K + DF2K with Real-ESRGAN degradation; ~1.5s per image on an RTX 5090.

4× SR · latent-diffusion U-Net + SSM refiner DIV2K/Flickr2K/DF2K · RTX 5090

Full encoder-decoder Transformer for English → Italian neural machine translation. BPE tokenizer trained from scratch on the opus_books corpus. Training loss reduced from 6.17 → 2.28 over 20 epochs on a P100 GPU.

EN → IT seq2seq · loss 6.17 → 2.28 opus_books · P100

GPT From Scratch

LLM

Decoder-only transformer language model built entirely from scratch with PyTorch. Implements multi-head self-attention, causal masking, layer normalization, and positional embeddings. Trained on Tiny Shakespeare as a character-level LM — the cleanest possible foundation study of the GPT architecture.

~200 lines · decoder-only transformer Tiny Shakespeare

Action Recognition

In Progress

Real-time skeleton-based action recognition with from-scratch HRNet-like pose estimation and two-stream ST-GCN with CTR-GCN blocks. Architecture, training pipeline, inference stack (ONNX / TensorRT export, FastAPI serving), and 24 unit tests are implemented and passing; large-scale training on NTU RGB+D 120 has not yet started.

ST-GCN + HRNet-like pose · 24 tests NTU RGB+D 120 · ONNX/TensorRT · FastAPI

Writing

Technical deep-dives that complement the code.
Technical deep-dive · 600 lines

Attention Sinks — StreamingLLM for GPT-OSS

The learned per-head sink bias, its BF16 numerical-stability story (clamped to [−10, 15] to prevent SDPA mask-add overflow), and how it interacts with the sliding-window / full-attention alternation to hit 2× KV-cache reduction at 128K context.

Technical deep-dive · full derivation

State-Space Duality — The Mamba-3 Chunkwise SSD

Derives the chunkwise SSD recurrence used in Mamba-3-Lite, proves its equivalence to the naive O(T) scan, and shows how the complex64 promotion (N=128 → N=64) doubles the per-state expressive capacity without paying for an explicit rotation matrix.

Education

Formal training plus the self-directed work it enabled.
Bachelor of Technology (B.Tech) — Civil Engineering 2020 – 2024

Heritage Institute of Technology, Kolkata

Self-taught ML during a B.Tech in Civil Engineering (2020–2024). In parallel with coursework I read the seminal papers (Attention Is All You Need, DDPM, MoE, DeepSeek-V3, GPT-OSS, Mamba-3) and implemented 17 architectures from scratch in PyTorch — culminating in a 434M-active / 1.13B-stored HyMo hybrid LLM (GDN + MLA + MoE + MTP), a 422M DeepSeek-V3 reproduction with MLA + MoE + MTP, a 502M GPT-OSS-style long-context MoE with sliding/full attention alternation, a 434M Mamba-3 complex64 SSD, an 860M Stable Diffusion trained from-scratch on 2× RTX 5090 (best loss 0.0947), and a 15-phase autonomous ML research platform with 878 tests. Civil Engineering gave me a foundation in numerical methods, optimization, and linear algebra that maps cleanly onto modern ML.

Connect

The fastest paths to a conversation.