Ross ROSS = Recommend OSS · open-source software intelligence for agents

VainF/Torch-Pruning

Some data may be outdated — see provenance labels.

[CVPR 2023] DepGraph: Towards Any Structural Pruning; LLMs, Vision Foundation Models, etc. observed · 2026-10-02

github.com/VainF/Torch-Pruning · homepage · Python · MIT (permissive) observed · 2026-10-02

Health v2 · maintenance only

44/100

  • Activity 32
  • Release rhythm 28
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.

  • gap_med: 65
  • age_days: 2501
  • days_rel: 408
  • days_push: 408
  • n_releases_24m: 6

Full methodology

Adoption not part of the score

3359 stars · 387 forks observed · 2026-10-02

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

Torch-Pruning is a PyTorch framework for structural neural network pruning based on the DepGraph algorithm from CVPR 2023. It automatically groups coupled parameters across arbitrary architectures (CNNs, Transformers, LLMs, etc.) and physically removes them to compress and accelerate models.

Use cases

  • prune a pytorch model to make it faster and smaller
  • compress large language models with structural pruning
  • prune huggingface transformers or timm models
  • remove channels from a resnet or vision transformer
  • speed up inference by slimming yolov8 or sam models
  • compare pruning criteria like magnitude or taylor on my network

When to choose

  • you need architecture-agnostic structural pruning that physically removes parameters rather than masking them
  • you want to prune modern architectures like ViTs, LLMs, diffusion models, or detection models
  • you need a research-grade toolkit with many ready-made pruning examples

When to avoid

  • you only need unstructured sparsity or weight masking, which torch.nn.utils.prune already covers
  • you need post-training quantization or distillation rather than pruning
  • you work outside PyTorch, e.g. TensorFlow or JAX

Facets

library · maturity active

machine-learning deep-learning developer-tools deep-learning machine-learning computer-vision large-language-models python cross-platform pruning model-compression pytorch depgraph structural-pruning model-acceleration transformers llm gpu

7 sources

Member repositories

RepositoryRoleHealth v2
VainF/Torch-Pruningmain44

For agents

markdown · JSON · MCP: product_card(name="VainF/Torch-Pruning")

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem