Efficient Vision-Language Model via Multi-head Latent Attention
-
Updated
Dec 30, 2025 - Python
Efficient Vision-Language Model via Multi-head Latent Attention
DeepSeek-style MoE + MLA from scratch in PyTorch, with a router-specialization probe (mutual information) and a dense/+MoE/+MLA ablation. Educational, nano-scale, measured.
🔧 Recurrent-Depth Transformer Research Lab — LTI-stable looped inference, switchable MLA/GQA attention, MoE routing & adaptive halting (ACT). Independent research, not affiliated with Anthropic.
PyTorch implementations of attention mechanisms from Self-Attention to DeepSeek MLA, including MHA, MQA, GQA, and KV Cache.
LLM 推理性能决策基线:TTFT/TPOT、KV Cache、吞吐与解码策略对照
This repository shows how to build a DeepSeek language model from scratch using PyTorch. It includes clean, well-structured implementations of advanced attention techniques such as key–value caching for fast decoding, multi-query attention, grouped-query attention, and multi-head latent attention.
FlashAttention + Multi-Head Latent Attention, from scratch: Triton kernel, checkpointed PyTorch attention, MLA, and a reproduced roofline argument on real PTB-XL multimodal data.
custom Bengali Language Model built from scratch using PyTorch, featuring advanced transformer architectures including Multi-Head Latent Attention, RoPE positional encodings, and Mixture of Experts layers.
Distributed training framework for DeepSeek-V3 (Multi-Head Latent Attention, DeepSeekMoE, auxiliary-loss-free load balancing) with composable DP/FSDP/HSDP/TP/PP/CP/EP parallelism, torchtitan-inspired.
Hybrid LLM pre-training framework fusing Multi-Head Latent Attention, Gated Delta Net, DeepSeek MoE, and Multi-Token Prediction — 415M active params, 8.31B tokens, single A100 80GB.
Multi-head latent attention from DeepSeek-V2: low-rank KV compression, decoupled RoPE, and absorbed inference verified equal to the naive form. 14.22x cache reduction.
Correctness-first PyTorch/CUDA lab for FlashAttention, DeepSeek MLA/MoE, expert parallelism, reproducible benchmarks, and HPC-for-AI notes.
To associate your repository with the multi-head-latent-attention topic, visit your repo's landing page and select "manage topics."