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
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
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
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
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
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
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
A hybrid LLM pre-training framework fusing MLA, Gated Delta Net (linear-attention sequence mixer), DeepSeek-style MoE, and multi-token prediction into one 24-layer stack. Uses a dual optimizer (NorMuon + CautiousAdamW), WSD + μP LR schedule, and logit softcap.
415.6M active / 868.6M stored
NorMuon + CautiousAdamW
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
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
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
Real-time skeleton-based action recognition with from-scratch HRNet-like pose estimation and two-stream ST-GCN. Targeting the NTU RGB+D 120 benchmark. Pose + ST-GCN pipeline ready; full benchmark training not yet started.
ST-GCN + HRNet-like pose
NTU RGB+D 120 · two-stream