$npx skillfedfor your agent

scs4onnx

A very simple tool that compresses the overall size of the ONNX model by aggregating duplicate constant values as much as possible. Simple Constant value Shrink for ONNX.

With conditionsPyPI Artificial IntelligenceReleased Sep 202282.9K downloads / moMIT LicensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — scs4onnx-1.0.18-py3-none-any.whl
v1.0.18 · released 2022-09-08 · Python >=3.6

Yes, if you have a large ONNX model with duplicate constants and need to reduce its file size before deployment. Install friction is low and the tool is straightforward to use. However, the project is abandoned and has not been maintained since September 2022, so test thoroughly with your specific ONNX models and toolchain versions before relying on it in production. No known security vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires onnx package to be installed separately; Python >=3.6.
  • Installs with no runtime dependencies and low friction.
  • Project is abandoned as of September 2022 with no recent updates, so expect no bug fixes or maintenance going forward.

License · maintenance · safety

MIT License (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open and proprietary projects.

last release 2022-09-08 (1436 days) · last repo commit 2022-09-08 · 54 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 82,855 downloads/mo, #14,122 on PyPI

Verify before relying

pip install scs4onnx

from scs4onnx import shrinking

shrunk_graph, npy_paths = shrinking(
  input_onnx_file_path='input.onnx',
  output_onnx_file_path='output.onnx',
  mode='shrink'
)
  • Whether the tool works correctly with current ONNX opset versions released after September 2022
  • Compatibility with modern ONNX model architectures and recent PyTorch/TensorFlow exports
  • Performance impact of loading external .npy files in production inference pipelines
Same gist for agents: .md · .json

What it is and what it does

scs4onnx is a command-line and Python API tool for reducing ONNX model file sizes by finding and consolidating duplicate constant tensor values across the computation graph. It operates in two modes: 'shrink' mode keeps constants inside the model for maximum inference speed, while 'npy' mode extracts repeated constants to external .npy files for smaller model size at the cost of file-loading overhead. The tool can also optionally downcast Float64 to Float32 and INT64 to INT32 to further compress models, and supports forced extraction of specific operations or constants by name.

The package is a lightweight utility with no runtime dependencies beyond onnx itself. It was designed for processing large models where constant duplication inflates file size—the documentation shows real examples like reducing a 1.8GB model to 886.8MB or extracting weights to achieve 2.1MB model plus 884.7MB external data. However, the project has been abandoned since September 2022 and receives no maintenance, so it may not work reliably with ONNX models or toolchains released after that date.

Use it for

  • Reduce deployment size of large computer vision models before shipping to edge devices or cloud inference endpoints.
  • Extract weights from extremely large models that hit Protocol Buffer size limits, splitting into smaller .onnx plus external .npy files.
  • Downcast high-precision models from Float64/INT64 to Float32/INT32 to save storage and improve inference speed.
  • Deduplicate constant tensors in models generated by converters or graph optimization tools that may have introduced redundant copies.
  • Prepare ONNX models for mobile or embedded deployment where model size impacts app download size and memory footprint.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you have a large ONNX model with duplicate constants and need to reduce its file size before deployment.

Install friction is low and the tool is straightforward to use. However, the project is abandoned and has not been maintained since September 2022, so test thoroughly with your specific ONNX models and toolchain versions before relying on it in production. No known security vulnerabilities.

Install

scs4onnx on PyPI

Before you install

Installs with no runtime dependencies and low friction. Project is abandoned as of September 2022 with no recent updates, so expect no bug fixes or maintenance going forward.

Requires onnx package to be installed separately; Python >=3.6.

License in practice

MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open and proprietary projects.

Quickstart

pip install scs4onnx

from scs4onnx import shrinking

shrunk_graph, npy_paths = shrinking(
  input_onnx_file_path='input.onnx',
  output_onnx_file_path='output.onnx',
  mode='shrink'
)

Verify before relying

  • Whether the tool works correctly with current ONNX opset versions released after September 2022
  • Compatibility with modern ONNX model architectures and recent PyTorch/TensorFlow exports
  • Performance impact of loading external .npy files in production inference pipelines

Package facts

LicenseMIT License permissive
Python supportSupports the current Python release >=3.6
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAbandoned 1,436 days since the last release
Last repo commit
First released
Downloads82,855 / month, #14,122 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: scs4onnx-1.0.18-py3-none-any.whl

Tags

Capabilities
onnx model compressionreduce onnx file sizededuplicate onnx constantsonnx weight extractionshrink neural network modelsonnx constant aggregationoptimize onnx graph size
Topics
model-optimizationonnx-toolscompression

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “onnx model compression”

  • scs4onnxCompresses ONNX model files by deduplicating constant tensor values…
  • onnxslimOnnxSlim reduces the size and operator count of ONNX models while…
  • onnxoptimizerApplies graph-level optimizations to ONNX models, including a library…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also sne4onnx · spo4onnx · scc4onnx · ssi4onnx · onnxoptimizer · sed4onnx · sde4onnx · ssc4onnx · snd4onnx · sng4onnx