{"categories":[{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/11"}],"enrichment":{"capability":"Compresses ONNX model files by deduplicating constant tensor values throughout the graph, with options to extract weights to external .npy files or downcast numeric types for further size reduction.","skillfed_tags":["model-optimization","onnx-tools","compression"],"use_cases":["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."],"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.\n\nThe 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\u2014the 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.","worth_installing":"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."},"id":"scs4onnx","links":{"html":"https://skillfed.io/packages/scs4onnx","md":"https://skillfed.io/packages/scs4onnx.md","pypi":"https://pypi.org/project/scs4onnx/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-09-08","license_spdx":null,"license_treatment":"permissive","name":"scs4onnx","python_support":"supports_current","summary":"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."},"popularity":{"monthly_downloads":82855,"position":14122,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.18"}
