Explore the research collection
4 entries · Follow this search
- Code
KTransformers
kvcache-ai/ktransformers is a CPU-GPU hybrid inference/SFT framework (MADSys Tsinghua / Approaching.AI / 9#AISoft). Current tree exposes kt-kernel serving (AMX/AVX INT4/INT8, NUMA-aware MoE, hot-GPU/cold-CPU experts, SGLang integration) and LLaMA-Factory SFT/DPO for ultra-large MoE on limited VRAM. README: DeepSeek-R1/V3 on a single 24GB GPU plus large DRAM; SFT DeepSeek-V3 ~80GB / 3.7 it/s on 4x RTX 4090, claimed 6-12x vs ZeRO-Offload in their MoE SFT benches. SOSP 2025 paper: AMX kernels, async CPU-GPU scheduling, Expert Deferral (CPU util <75% to ~100%, up to 1.45x extra throughput, <=0.5% avg accuracy drop). Apache-2.0. Docs site kvcache-ai.github.io/ktransformers.
- Code
NITP
Landing page for Next Implicit Token Prediction (NITP, ICML 2026): keep NTP and add a cosine-alignment loss so the projected final hidden state at t predicts a stop-gradient shallow-layer representation of token t+1 (the implicit token), with the projection head discarded at inference. README: denser latent supervision without extra data, encoders, or backbone passes; higher effective rank and less last-state cosine collapse vs NTP. MoE 1.9B-A0.3B to 9B-A1B (9B-A1B average 40.27 to 42.94; MMLU-Pro / C3 / CommonsenseQA / ARC-Challenge / GSM8k gains) and dense 0.5B-3B; frozen 3B MoE mean-pooled last-layer reps improve 23/25 English MTEB tasks (overall 39.24 to 41.56). About 2.3% training FLOPs / 1.8% wall-clock in a 5k-step 9B MoE run; zero inference overhead. Implementation code still marked coming soon.
- Paper
PithTrain: A Compact and Agent-Native MoE Training System
Defines agent-task efficiency (ATE) and ships PithTrain, an ~11K-line Python-native MoE stack (PP, FSDP DP, CP, EP, DualPipeV overlap, torch.compile, FP8) built on compactness, no implicit indirection, and in-repo agent skills. Matches or exceeds Megatron-LM tokens/s on GPT-OSS-20B, Qwen3-30B-A3B, and DeepSeek-V2-Lite on H100/B200 (e.g. 280.0K vs 264.1K tok/s on 4×8 H100 Qwen3-30B-A3B PP4/EP8). ATE-Bench (12 Q&A, 4 operate/profile, 4 new-feature ports) with Claude Opus 4.7: up to 62% fewer agent turns and 64% less active GPU time vs production frameworks on the hardest new-feature tasks. Code Apache-2.0 https://github.com/mlc-ai/pith-train.
- Paper
Full-Pipeline Inference Optimization for MiMo-V2.5 Series: Pushing Hybrid SWA Efficiency to the Limit
Engineering report for MiMo-V2.5 / V2.5-Pro Hybrid Sliding Window Attention (example: 70 layers, 10 full + 60 SWA, W=128; ~7× less attention FLOPs and KV vs full attention) plus sparse MoE and vision/audio/video encoders. Dual-pool KV with strict O(W) SWA storage, layerwise prefetch, SWA-aware prefix cache trees, GCache L3 (RDMA, co-deployed on GPU nodes), KVCache-affinity router (~+25% L2 hit, ~+30% input throughput), length bucketing, halved EP after SWA storage (~40% e2e), MTP in prefill (2.3× on first 128 decode tokens), GPU image preprocess and parallel video decode (1-hour video 156s→23s). Reports ~93% production KV hit rate. Positions as the first large-scale serving system covering Hybrid SWA+MoE+multimodal. Not a dataset.