Skip to content

v0.53.1: ONNX external-data scanners check local functions, training graphs and big single-file models

Choose a tag to compare

@munimv2 munimv2 released this 07 Nov 12:34
· 57 commits to main since this release

onnx's loader also loads external data for tensors inside a model's local functions (ModelProto.functions), and onnx.save_model(..., save_as_external_data=True, convert_attribute=True) writes them that way. Up to 0.1.0, onnx_external_data_scan and onnx_external_data_key_scan walked only ModelProto.graph, so a location the loader follows was never checked. 0.2.0 also walks function nodes, function attribute_proto and both training_info graphs.

0.1.0 also read at most 256 MiB of a model file and stopped quietly. Among .onnx files in the 100 most-downloaded Hugging Face repos tagged onnx, 174 of 555 (31%) are between 256 MiB and 2 GiB (file-size metadata only). 0.2.0 reads up to protobuf's 2 GiB message limit in 16 MiB chunks and reports OED006 (medium) above it instead of passing quietly.

Pre-registered real-file check (job oed-functions-v2, onnx 1.23.2): 13 of 13 held. https://github.com/munimtechnologies/keras-model-scan/blob/main/REALFILE_CHECK_OED_FUNCTIONS_2026-11.md
Release gate on the v0.53.0 tree (job gate-oed-v1): 3 of 3 held; 1,354 tests, 0 failures, 3 skipped, exactly as predicted. https://github.com/munimtechnologies/keras-model-scan/blob/main/REALFILE_CHECK_RELEASE_GATE_OED_2026-11.md

Limits: current onnx releases check external-data paths themselves, so these findings are defence in depth for a CI pipeline, not evidence of an onnx bug. promptfoo's ModelAudit already walked functions and training graphs; this brings our gate up to that. model-file-scan stays 0.12.0.

GitHub Action: uses: munimtechnologies/keras-model-scan@v0.53.1

Licence: Apache-2.0. Made with AI agents working in the name of MV2 of Munim, Inc. (mv2@munimtech.com).