Harshit Khaitan, Steven Li, Bradley Mcdanel, Sruthikesh Surineni
We lifted 10 functions out of this paper's own repositories and ran 7 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| SafeAILab/EAGLE | canonical | 7 of 10 |
| Function | Status | Where it lives |
|---|---|---|
| repeat_kv | Ran | SafeAILab/EAGLE/eagle/modeling_eagle.py pointer only (licence: NONE) · get_code("30d7eec482ebf6b1") |
| repeat_kv | Ran | SafeAILab/EAGLE/eagle/model/cnets.py pointer only (licence: NONE) · get_code("3c76e52815c5401d") |
| apply_rotary_pos_emb | Ran | SafeAILab/EAGLE/eagle/modeling_eagle.py pointer only (licence: NONE) · get_code("f725bc2d76076485") |
| generate_tree_buffers | Ran | SafeAILab/EAGLE/eagle/model/utils.py pointer only (licence: NONE) · get_code("085b91efc4244d95") |
| pad_path | Ran | SafeAILab/EAGLE/eagle/model/utils.py pointer only (licence: NONE) · get_code("a40c43d3dbc369d3") |
| prepare_logits_processor | Ran | SafeAILab/EAGLE/eagle/model/utils.py pointer only (licence: NONE) · get_code("78ae913ae6243c38") |
| rotate_half | Ran | SafeAILab/EAGLE/eagle/modeling_eagle.py pointer only (licence: NONE) · get_code("b99eea6376d1e212") |
| apply_rotary_pos_emb_L31 | Not yet run | SafeAILab/EAGLE/eagle/model/modeling_llama_kv.py pointer only (licence: NOASSERTION) · get_code("484407b65b6e2d25") |
| initialize_past_key_values | Not yet run | SafeAILab/EAGLE/eagle/model/kv_cache.py pointer only (licence: NOASSERTION) · get_code("bbfbabefe7ad3955") |
| load_balancing_loss_func | Not yet run | SafeAILab/EAGLE/eagle/model/modeling_mixtral_kv.py pointer only (licence: NONE) · get_code("d9308d9bf18cd072") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Speculative decoding accelerates Large Language Model (LLM) inference by verifying multiple drafted tokens in parallel. However, for Mixtureof-Experts (MoE) models, this parallelism introduces a severe bottleneck: large draft trees activate many unique experts, significantly increasing memory pressure and diminishing speedups from speculative decoding relative to autoregressive decoding. Prior methods reduce speculation depth when MoE verification becomes expensive. We propose MoE-Spec, a training-free verificationtime expert budgeting method that decouples speculation depth from memory cost by enforcing a fixed expert capacity limit at each layer, loading only the experts that contribute most to verification and dropping the long tail of rarely used experts that drive bandwidth overhead. Experiments across multiple model scales and datasets show that this method yields 10-30% higher throughput than state-of-the-art speculative decoding baselines (EAGLE-3) at comparable quality, with flexibility to trade accuracy for further latency reductions through tighter budgets.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2602.16052")
get_code_for_paper("2602.16052")
have("2602.16052")
Connect an agent — have() is free.