SWE-Pruner Pro: The Coder LLM Already Knows What to Prune
Paper • 2607.18213 • Published • 71
A lightweight pruning head for Qwen3-Coder-Next (80a3 MoE, Qwen/Qwen3-Coder-Next), from the paper:
SWE-Pruner Pro: The Coder LLM Already Knows What to Prune arXiv: 2607.18213
This head attaches to the frozen backbone and predicts per-token keep/prune logits from the backbone's hidden states. It is used to compress tool responses in long-horizon coding agent trajectories.
from huggingface_hub import hf_hub_download
# Download checkpoint
for fname in ["best_model.pt", "model_config.json"]:
hf_hub_download(repo_id="ayanami-kitasan/swe-pruner-pro-qwen3-coder-next-head", filename=fname, local_dir="./checkpoints/coder-next-head")
# Load the pruning head
from swe_pruner_pro.model.head import PruningHead
head = PruningHead(checkpoint_dir="./checkpoints/coder-next-head", hidden_size=2048, device="cuda:0")
For the full training and inference pipeline, please refer to the GitHub repository.