Explore the research collection
17 entries · Follow this search
- Paper
SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration
PTQ attention: subtract the token-mean of K to smooth channel outliers so QK can be INT8, and keep PV in FP16 with an FP16 accumulator (INT8 PV is too noisy on some layers). Triton kernels on RTX4090/3090; peak ~341 TOPS at headdim 64/128 vs FlashAttention2 ~165. ~2.1× FA2 and ~2.7× xformers. Plug-and-play: Llama2-7B WikiText 5.824 vs FP 5.823, MMLU 0.46=FP; CogVideoX/Unidiffuser/UltraPixel/TIMM/Llava1.6 near-parity. ICLR 2025. Code https://github.com/thu-ml/SageAttention.
- Paper
Sparser, Faster, Lighter Transformer Language Models
TwELL (tile-wise ELLPACK) materializes ReLU-gated FFN sparsity in the matmul epilogue; fused inference kernel does up+down in one launch; hybrid ELL/dense format stores activations for training despite heavy per-token nnz skew. Mild L1 on gated ReLU FFNs reaches >99% sparsity with negligible task drop through L1=3e-5 (1.5B). At L1=2e-5, 0.5B–2B chinchilla FineWeb models match dense accuracy while forward throughput rises 17.0→20.5% and training −1.5→+21.9% with 19–28% lower peak memory (8×H100). Gains grow with scale as mean active neurons fall (39→24). Code https://github.com/SakanaAI/sparser-faster-llms.
- Paper
Disaggregated Quantization: Specializing LLM Prefill and Decode
Disaggregated quantization (DQ): separate computation formats, weights, and storage placement specialized to prefill vs decode -- low-precision arithmetic accelerates prompt processing, compact weights reduce memory traffic during generation. Removing activation quantization on decode improves accuracy on decode-heavy tasks without added inference cost (Qwen 3, Gemma 3). Separate compute-native prefill weights accelerate prompt processing vs weight-only inference while matching/exceeding its accuracy at 2-3-bit decode. Training an NVFP4 prefiller improves 1-bit accuracy by 32.5 points on MMLU-Pro and 35.3 on MMMU-Pro without modifying the decode checkpoint (Qwen3.8-27B GGUF decoder). "Offloaded disaggregated prefill" (ODP) streams the extra prefill checkpoint from SSD, amortizing loading over prompt length: 1.78x time-to-first-token speedup over the weight-only baseline at 8K prompt length in llama.cpp. Accuracy evaluated under disaggregated serving in vLLM; shared-weight format disaggregation validated via PTQ on models up to 2.8T parameters.
- Paper
Context Language Models
Introduces Context Language Models (CLMs): language models that natively manage their own context by treating the context as a file and allowing unrestricted updates to it, letting the model learn what is most important to maintain in context and naturally extending to multi-agent systems where multiple agent contexts coexist as files. Building CLMs zero-shot with existing models outperforms SOTA context-management strategies: 11.4% higher accuracy with 21.5% fewer FLOPs on BrowseComp-Plus, 5% higher scores with 59% fewer FLOPs on 12-hour EdgeBench, and 65% greater improvement with the same compute on a 24-hour multi-repository agent-swarm task. Shifting context management from external harness control to intrinsic model behavior enables both in-context and parametric learning of context-management strategies: steering CLMs with natural-language instructions evolved through a skill-optimization loop improves held-out accuracy by up to 35.9 points while reducing compute. An online RL method for CLMs improves Qwen3.5-9B on BrowseComp-Plus by 47.6% while using 12% fewer FLOPs. Co-designed Suffix Cache Reuse for CLM serving further cuts server-side compute by 35% relative to standard SGLang at matched performance.
- Paper
Allspark: Weak to Strong Transfer via Alternating Chain of Thought
Asks whether reasoning improvements learned by a small, weak model can benefit a larger, stronger model without using the strong model's rollouts during training. Introduces Allspark, a training and inference framework for weak-to-strong transfer through alternating chains of thought: a weak teacher is trained with RL alongside a frozen copy of the same model, the two alternate reasoning segments, and the frozen model produces the final answer. At inference time a stronger student replaces the frozen training partner while both models remain fixed. Because they communicate through text, the teacher can steer students from different model families and with different tokenizers. Studied at two scales: controlled Qwen3-1.7B/4B experiments across math and reasoning domains, and larger-scale experiments with an Inkling-Small teacher on 96 ARC-AGI-2 development problems. The Inkling experiments show accuracy gains in within-family and cross-family settings, including transfer to Kimi K2.6 and Nemotron 3 Ultra, with benefits varying across inference settings; analyses also characterize the accuracy-token tradeoff. Motivates reusing a trained weak teacher across strong students.
- Thread
Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)
An X thread from @RampLabs titled 'Scaling KV Cache Compression to Frontier Models' (per the Discord link card), shared without additional caption. Claims relate to KV-cache compression methods scaled to frontier-scale models.
- Code
OpenBMB/MiniCPM
Official open-source repository for the MiniCPM family of small language models (MiniCPM5, MiniCPM4/4.1, MiniCPM-SALA, BitCPM4). Provides model downloads across Hugging Face and ModelScope in many formats (BF16, GGUF, MLX, GPTQ), quickstart guides for vLLM/SGLang/llama.cpp/Transformers, fine-tuning and deployment cookbooks, and agent skills. 11,325 stars, Apache-2.0 licensed, created 2024-01-29.
- Paper
Recirculation
An inference-time architectural enhancement for off-the-shelf foundation models that markedly reduces perplexity and boosts accuracy across generation and reasoning tasks. Recirculation introduces a specific form of recurrence that lets the model act as a dynamical system tracking belief states, motivated by the limitation that state updates in feedforward transformers are bounded by model depth. It adds essentially no generation latency (serial processing only in the prefill phase), and an adaptive variant needs only light hyperparameter tuning with frozen model weights.
- Paper
FreeToken: Efficient Edge-Native MoE Serving with Bandwidth-Adaptive Execution
An edge-native mixture-of-experts serving system that treats a personal machine as a unified, elastic inference platform rather than a small GPU. FreeToken co-designs model layout and loading, expert residency, CPU-GPU execution, agentic state reuse, and runtime memory management around the realities of local AI: agentic workloads with shifting execution patterns and heterogeneous per-machine hardware. Instead of a fixed offloading strategy, it continuously maps computation and model state onto available resources.
- Tool
FlashHead (Embedl) — vLLM plugin / flash-head
Open implementation of FlashHead as a vLLM plugin: balanced vocabulary clustering + multiprobe retrieval head, optional W4A16 pairing. Documented install via pip/flash-head; demo models e.g. embedl/Llama-3.2-1B-Instruct-FlashHead-W4A16.
- Paper
FlashHead: Efficient Drop-In Replacement for the Classification Head in Language Model Inference
Argues growing vocabularies make the dense LM head a major param/compute bottleneck (up to ~60% params / ~50% decode compute on small models). FlashHead reframes next-token scoring as balanced-cluster multiprobe retrieval with sampling support and selective quantization, reporting up to ~1.75× model-level speedups (e.g. Llama-3.2-1B) with near-baseline accuracy; gains compound with W4A16.
- Paper
WeDLM: Reconciling Diffusion Language Models with Standard Causal Attention for Fast Inference
arXiv 2512.22737. Proposes WeDLM: Topological Reordering places observed tokens in the physical prefix while preserving RoPE logical positions so masked recovery works under a strict causal mask; Dual-Stream Masking reduces train–inference gap; Streaming Parallel Decoding commits confident left-to-right prefixes with a dynamic sliding window. Instantiated on Qwen2.5-7B and Qwen3-8B (100B continued pretrain + SFT). Reports ~3× speedups on reasoning vs vLLM-served AR and up to ~10× in low-entropy regimes while matching/improving quality. Code/models: github.com/Tencent/WeDLM; HF tencent/WeDLM collection; project wedlm.github.io.
- Code
SIE: Superlinked Inference Engine
Apache-2.0 inference server (superlinked/sie). Argument: agent pipelines now run 4–5 small models, but one-server-per-model (vLLM + TEI + FastAPI wrappers) bills idle GPU time. SIE puts encode()/score()/extract()/generate() behind one API, loads models on first request, and evicts LRU so one GPU rotates the set. Catalog ~112 models with packaged serving configs. Plugs into Qdrant/Weaviate/Chroma/LanceDB/LangChain/LlamaIndex; OpenAI-compatible URL. Discord/X is Akshay Pachaar’s recap plus X article “How to serve 5 models on one GPU” walking a flood-insurance claim through Docling, GLiNER2, bge-reranker-v2-m3, Grounding DINO, and Qwen3.5-4B. pip sie-server[local]. Python.
- Code
VBR: Variable Bit-Rate KV Cache for llama.cpp
spiritbuun llama.cpp fork (buun-llama-cpp) ships VBR as the default KV cache. Cache starts FP16 and degrades one (layer, side) tensor at a time down a price-ordered ladder (f16 → turbo8 → turbo4 → turbo3_tcq → turbo2_tcq → turbo1_tcq) using TurboQuant/TCQ codecs, following per-model KLD degrade tables. Default implicit VBR floors at turbo4; explicit -ct vbr opens the full ladder to t1. Budget is leftover VRAM after weights/compute; -c caps context so the budget is spent on quality instead of max length. CUDA-first with ROCm/HIP mirror. Related to TurboQuant (papers_local 606/640) but this is a dynamic controller, not a new codec paper.
- Other
Photon 2.0: Inference engine for Physical AI
Moondream launch blog (2026-08-03). Argument: chat engines (vLLM/SGLang) optimize large-batch tokens/s, while robots/cameras need low concurrency, tight p99, and several models sharing a GPU. A proprietary compiler traces the forward pass and emits one megakernel so the GPU runs the whole inference without CPU launch chatter. First matrix: Moondream 2/3, Qwen3.5/3.6 0.8B–9B, Gemma 4 E2B/E4B on NVIDIA H100. Matched ChartQA streams: Photon beats vLLM and SGLang on every batch 1/2/4/8 throughput test and on cold start. pip install moondream; md.photon("Qwen/Qwen3.5-4B"). Engine Apache-2.0 and megakernels free to run; compiler closed. Discord/X is vikhyatk quoting the company thread.
- Other
Shard: getting to 10x KV cache compression
Engineering writeup of Shard, a drop-in HuggingFace Cache. Reimplementing TurboQuant stalled around 4-6x; authors split K and V: undo RoPE then PCA+int4 on K (rank 192/1024, DP bit allocation with a 4x drop penalty) and Hadamard + 4-d vector quantization on V. Attention scores run on int4 PCA coeffs via a relative-Delta RoPE identity; V Hadamard is applied after the weighted sum. 4 FP16 sink tokens + 64-token recency window. Decode stream uses data-oblivious Hadamard+Lloyd-Max (8-bit path 750/750 FP16 match at 150 tokens). Llama-3.1-8B: 10x at 8K / 11.2x at 32K, NIAH recall 1.000 across 4K-32K, LongBench-E avg 16.19 vs FP16 16.24, WikiText-2 PPL +0.26%. Decode throughput 0.39-0.49x FP16, so a memory win not a latency win. Code krish1905/shard.
- 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.