Prince Osei Aboagye
I build large-scale AI systems and study how language models are trained, post-trained and served.
Applied Scientist at Amazon, building large-scale AI systems for Alexa: LLM training and post-training (supervised fine-tuning, preference optimization and reinforcement learning), on-policy distillation for continual training, efficient inference and production deployment. Before that, Research Scientist at Visa Research, working on generative AI for complex financial transaction sequences, including an LLM-powered payment foundation model for anomaly detection, fraud detection and recommendation, parameter-efficient fine-tuning, multimodal data curation and representation learning.
PhD in Computer Science from the University of Utah. Research interests: LLM post-training, vision-language alignment, reasoning, data-centric AI, synthetic data generation, model compression and computational geometry.
Mini DeepSeek V4: Building an LLM From Scratch
A DeepSeek-V4-style mixture of experts: the model, the distributed training system, pretraining, SFT and RL (GRPO/GSPO), explained, built and measured on 8×H100.
Start reading →- 00Start here: the whole project on one page
- 01Planning the project, and the rules I wrote before the data
- 02The model: a DeepSeek-V4-style mixture of experts
- 03Data and the tokenizer, and the traps inside public math data
- 04The training system: Megatron-LM on 8×H100
- 05Numerics and reproducibility: why the same weights gave different numbers
- 06Pretraining, and the router that collapsed
- 07Supervised fine-tuning: teaching the answer format
- 08Rewards and graders: checking the checker
- 09Reinforcement learning: GRPO and GSPO
- 10The RL system: synchronous or asynchronous?
- 11Serving, and the inference engine
- 12Distillation and 4-bit training: tested on a laptop and one H100, then cut
- 13Evaluation: how to tell if training worked
- 14The control run: was it the model or the RL code?
- 15Lessons: what broke, what I'd change, what's next
Projects
Mini DeepSeek V4. A DeepSeek-V4-style mixture of experts (6.86B parameters, 1.22B active) built and trained end to end on 8×H100: pretraining, SFT and GSPO reinforcement learning, plus a control run that reproduced a published RL result. [series] [guide] [reference] [code]
Classifying Movie Reviews. Machine-learning models that classify movie reviews as positive or negative, comparing algorithms and feature engineering for sentiment analysis (CS 6350, Machine Learning). [report]
Music Genre Classification by Lyrics. Deep networks that classify genres (hip-hop, metal, rock, pop, country) from 380,000+ song lyrics, compared with KNN, random forests, XGBoost and SVMs (CS 6956, Deep Learning for NLP). [report]
Sentiment Classification with Topological Signatures. Persistent homology as features for sentiment classification of text (CS 6170, Computational Topology). [report]
Selected publications
- ICLR 2022Normalization of Language Embeddings for Cross-Lingual Alignment
- ICLR 2023Interpretable Debiasing of Vectorized Language Representations with Iterative Orthogonalization
- KDD 2024RPMixer: Shaking Up Time Series Forecasting with Random Projections for Large Spatial-Temporal Data
- ICDM 2024Matrix Profile for Anomaly Detection on Multidimensional Time Series
- Preprint 2024One-Hot Encoding Strikes Back: Fully Orthogonal Coordinate-Aligned Class Representations
Experience
- Large-scale LLM training and optimization with FlashAttention and mixture-of-experts
- Agent-driven synthetic data generation (the AFEG framework)
- Graph-based hallucination detection (the PGIRE framework)
- Post-training data curation for SFT and chain-of-thought reasoning
- Co-developed TransactionGPT, adapting LLMs to complex sequences
- Developed LECSiV, parameter-efficient fine-tuning that extends LoRA
- Multimodal data curation and human-in-the-loop workflows
Education
Advisor: Dr. Jeff Phillips. Dissertation: Understanding the Geometry of Structured Vectorized Representations.
Advisor: Dr. Michael Pokojovy.
Python, PyTorch, TensorFlow, Hugging Face, Megatron-LM, large language models, NLP, mixture of experts, distributed training, reinforcement learning for LLMs, LoRA/PEFT, RAG, FlashAttention, AWS, Docker, Git, SQL/Athena, computational geometry, data-centric ML.