jaydeep raijada
Jaydeep Raijada

Hi, I'm Jaydeep

I build LLM systems from scratch, for both training and inference, and I post-train small language models to see how far they can be pushed.

Available for freelance AI projects

About

I'm an AI researcher at Comprint, where I work on LLM systems: distributed training and inference, post-training, and voice AI.

I learn systems by building them from scratch. tinyserve is a vLLM-style inference engine in one Python file that runs 13× faster than Hugging Face generate on real prompts. torch-feather is a distributed training framework modelled on torchtitan, and pipeline parallelism is what I'm adding to it now. I write up what I learn, starting with a series on 5D parallelism.

On the research side, I take techniques that work on large models and test whether they still hold on small ones. I've run the full post-training stack (CPT → SFT → DPO → RL) on a 135M model, tested whether DPO's known failure mode hits sub-1B models harder (it didn't), and reproduced CLM-8B, a System One decision model, for about $82 of compute. I report what didn't work alongside what did.

Before Comprint, I was an analyst at Lowe's, building LLM pipelines for customer feedback in production. I placed in the top 100 at the HuggingFace × Meta OpenEnv Hackathon in Bangalore.

Experience

Artificial Intelligence Researcher at Comprint · Mumbai, India
September 2026 – Present

Working on LLM systems at Comprint's AI Next Studio: distributed training and inference systems, post-training, voice AI, and AI research.

Analyst at Lowe's · Bangalore, India
December 2024 – August 2026
  • Designed an LLM pipeline for sentiment analysis and topic modelling on Voice of Customer data, used to monitor customer feedback in production.
  • Built a clustering-based framework for finding the best survey introduction scripts, which lifted take rate from 9% to 14%, a 55% relative improvement.
  • Built a multi-stage HistGradientBoosting prediction system across hierarchical classification buckets, plus Power BI dashboards that made the insights usable day to day.

Selected work

tinyserve

October 2026

A vLLM-style inference engine in one Python file, written to understand how serving engines work from the inside. It has a paged KV cache with prefix caching, continuous batching, chunked prefill, preemption, and an OpenAI-compatible server. On 100 real prompts (Qwen3-0.6B on a DGX Spark), wall time fell from 99.3s with Hugging Face generate to 5.7s: about 13× from continuous batching, and another 1.35× from prefix caching.

LLM InferencePaged AttentionContinuous BatchingPrefix CachingFlashAttentionCUDA Graphs

torch-feather

October 2026 – Present

A distributed training framework built from scratch, modelled on PyTorch's torchtitan, to learn how large-scale LLM training is put together: model definition, data loading, config-driven training, and the parallelism layers that split a model across GPUs. DeepSeek-V3 is the first model it targets. So far it has the model (Multi-Head Latent Attention with weight absorption, YaRN RoPE scaling), a FineWeb streaming dataset with a stateful, resumable dataloader, and a trainer. Work in progress: pipeline parallelism is underway, and the other parallelism dimensions come next.

Distributed TrainingPipeline ParallelismDeepSeek-V3MLAYaRNPyTorch

A reproduction of CLM-8B (Contrastive Language Models, Kwok et al., Stanford and NVIDIA Research). The model scores options instead of generating text: frozen Qwen3-8B hidden states feed two small trained heads (about 18.9M parameters), and cosine similarity ranks each option. The full pre-training → mid-training → post-training pipeline ran on Modal for about $82.

  • Tricky Q&A: 69.0% after post-training, against 68.5% published (raw Qwen3-8B with no heads: 14.4%).
  • DeepSWE verifier: 30.8/38 averaged over 5 seeds, a tie with the authors' released head (31.0).
  • T-Rex game agent: latency matches (17.1 ms), but planner agreement is far behind (2.7% vs 65.3%). The gap traces to the post-training data recipe, which isn't public, and closing it is the next experiment.
Contrastive LearningInfoNCEHard NegativesQwen3-8BAgentsModalReproduction

SHADE-GYM

April 2026

Top 100 at the HuggingFace × Meta OpenEnv Hackathon, Bangalore. An RL environment where a small monitor model learns to catch a frontier attacker (DeepSeek-R1) attempting hidden harmful behaviors across 9 enterprise scenarios. Every reward is a plain Python check, with no LLM judge in the loop, and after 10 reward design iterations a simple linear reward beat the more elaborate composed one. The Qwen-2.5-1.5B LoRA monitor went from random (AUROC 0.500) to 0.893 (Recall 0.88, FPR 0.12), closing about 40% of the gap to Gemini-2.5-Pro at under 0.1% of its per-call cost.

GRPORLVROpenEnvTRLQwen-2.5-1.5BReward DesignScalable OversightLoRA

The full post-training stack, run end to end on SmolLM-135M with each stage measured. All checkpoints are on HuggingFace.

  • CPT: QLoRA on 138 arXiv ML papers. On held-out papers: −20.1% perplexity (22.97 to 18.36), +25.4% ROUGE-L, +37.5% BLEU. Rank saturates at r≥16, so the data is the bottleneck, not the rank.
  • SFT: instruction tuning on 300K pairs generated from arXiv papers (7 task types, structured decoding via Outlines), with ChatML and response-only loss masking.
  • DPO: preference alignment on 151K LLM-judged pairs (β=0.1). Held-out reward accuracy rose from 0.50 to 0.72 while generation diversity held, so no mode collapse.
  • RL: GRPO for 24 hours on an H100. Correct output format went from 95.7% (DPO) to 99.2%, but answer quality stayed about flat: format made up most of the reward, and a blind LLM judge's preference for the late checkpoint (54.3% ± 6.1) wasn't significant. Next is penalising claims the source passage doesn't support.
CPTSFTDPOGRPOPreference OptimizationLoRA / QLoRAUnslothTRLSmolLM-135M

Does DPO "squeezing", where chosen and rejected log-probabilities collapse together, hit sub-1B models earlier or harder than the 7B+ models it's documented in? Not supported. Three rounds of iterative DPO with verifiable rewards on Qwen2.5-0.5B-Instruct and GSM8K show the healthy signature instead: chosen logprob stays flat, rejected falls faster, and the preference gap grows each round. A matched GRPO baseline is equally stable. SmolLM2-135M hit a capacity floor (3% pass@1) before the question could be tested at that scale.

DPORLVRGRPOQwen2.5-0.5BGSM8KFalsification

Two diffusion language models, both built from scratch. All checkpoints are on HuggingFace.

  • ModernBERT (~150M): pretrained as a masked diffusion LM on Project Gutenberg (6.4M chunks, 20 hours on an RTX 4090), then SFT'd on Open-Orca (~4.2M Q&A pairs, instruction-token-only loss).
  • TinyStories (45M): full architecture written from scratch and trained for 60K steps, with confidence-based iterative denoising at generation time (128 diffusion steps).
Diffusion LMModernBERTNon-autoregressivePyTorchMasked DiffusionFrom Scratch

CPT × LoRA: A Controlled Ablation Study

February 2026

Which LoRA tricks actually matter for continued pre-training? This study tests the recommendations in Unsloth's CPT guide by continually pretraining Llama-2-7B on a code corpus (Magicoder-Evol-Instruct-110K). Starting from a paper baseline, each experiment adds exactly one ingredient (extra LoRA target modules, rank-stabilized LoRA, a decoupled embedding learning rate) and measures held-out perplexity. One training script and six config files keep it a controlled comparison.

CPTLoRArsLoRAUnslothLlama-2-7BAblation Design

An open-source textbook and engineering handbook on the evolution of LLM post-training from 2017 to 2026: a paper encyclopedia, reconstructed per-lab recipes, algorithm derivations, and runnable implementations. Early stage: the structure is in place and the content is being written.

Post-TrainingRLHFTechnical WritingOpen Source

Research

One research program, two studies: on-policy distillation and forgetting in small models. What survives when you shrink the student, and what to do when it doesn't.

Multi-Teacher On-Policy Distillation: Scheduling, Forgetting, and the Sampled-vs-Logit Dispute

June 2026 – Present
Validity gates G0 and G1 passedQwen2.5-0.5B student · two 7B specialist teachers

Frontier labs distill one student from many specialist teachers at once (Nemotron 3 Ultra routes more than ten), but nobody has published a controlled comparison of how to schedule them. Separately, three 2026 papers report three different winners between sampled-token and logit-distribution supervision. This study tests both at small scale: routed-joint, sequential, and sequential-with-replay schedules at matched token budgets, measuring forgetting and backward transfer across two deliberately different domains (math and tool-calling).

Hypothesis: Routed joint distillation gives the best multi-domain tradeoff at matched budgets, and the sampled-vs-logit winner per domain is predicted by how far student rollouts stray off the teacher's support.

Self-Distillation at Sub-1B Scale: Does SDFT Break When ICL Is Weak?

May 2026 – Present
Gap verified · infra builtSmolLM2-360M · Qwen2.5-0.5B / 1.5BTarget: EMNLP / CoLLAs 2027

ICL-based self-distillation has never been tested below 1.7B parameters, where the in-context learning behind its teacher signal is much weaker. DynSDPB was built for small models but has never been compared head-to-head with it. This study runs that comparison on a sequential-learning task (arithmetic → code → factual QA), measures forgetting across 360M–1.5B, and correlates few-shot ICL quality with the strength of the teacher signal.

Hypothesis: Self-distillation gains track in-context learning quality. Below some scale threshold the ICL teacher signal degrades into noise, and mini-batch logit distillation (DynSDPB) becomes the more reliable choice.

Writing

More on the blog and Substack.

Skills

Distributed training & inference
5D Parallelism (DP/TP/PP/CP/EP)·vLLM·PagedAttention·Continuous Batching·KV Cache Management·Inference Optimization
Post-training & alignment
CPT·SFT·RLHF·PPO·GRPO·Reward Modeling·Preference Optimization·LoRA / QLoRA·Self-Distillation·Unsloth
RL environments
OpenEnv·Reward Design·Verifiers
Applied AI
LLMs·RAG·Agentic Workflows·Prompting & Context Engineering·Tool Use·Diffusion LMs
Multimodal
VLMs·Vision Transformers (ViT, Swin, DeiT, DETR, PaliGemma)·Voice AI (STT, TTS)
Frameworks & MLOps
PyTorch·Transformers·TRL·MLFlow·DVC·DagShub·CI/CD (GitHub Actions)
Languages & analytics
Python·SQL·Pandas·Power BI

Get in touch

Email is the fastest way to reach me: j.raijada25@gmail.com. Hiring for a project? See what I build on the services page.