Changelog#
All notable changes to this project are documented in this file. The format is based on Keep a Changelog.
[0.2.9] – Unreleased#
Documentation & CI#
Bumped the release version to
0.2.9.
[0.2.8] – Unreleased#
New Features#
Added validated GPTQModel checkpoint import/export for GPTQ v1/v2/planes, AWQ GEMM/GEMV/GEMV-fast/LLM-AWQ, bitsandbytes NF4/FP4/INT8, QQQ tiled weights, native FP8 inverse-scale layouts and VPTQ codebook state, with native reference reconstruction. Support is revision- and layout-specific, accepts already-loaded tensors and explicit metadata, and does not imply whole-model loading, training or accelerated inference (#5886, #5867, #5892, #5909, #5916, #5944).
Added pinned GPTQModel EXL3 trellis/codebook weight import/export and C++/Python reference reconstruction, separate from the portable affine
exl3profile. Preserves native state for integer rates 1–8 and three procedural codebooks, with validated block-128 transforms and explicit FLOAT32/FLOAT16-intermediate arithmetic contracts; no accelerated matmul or training support is claimed (#5859).Added explicit BitBLAS
row-packed-v1checkpoint import/export and historical Marlin imports through declared GPTQ/AWQ source layouts. Target-specific BitBLAS transforms and Marlin runtime tiles are unsupported; Marlin exports use ordinary GPTQ/AWQ layouts (#5915).Added pinned GPTQModel ParoQuant checkpoint round-trips and reference linear execution, retaining AWQ weights, rotations, channel scales and optional bias. Generic weight dequantization rejects this operator schema because reconstructed weights alone omit the activation transform (#5945).
Added ONNX opset-29
Expm1,MeanVarianceNormalization, INT32 indices forGatherNDandScatterND, andDequantizePackedwith native decoding for 27 GGUF profiles. Packed tensor decoding does not add native.ggufcontainer loading (#5940, #5956, #5869, #5941).Added top-k and top-p sampling after temperature scaling in native generation, with seed-controlled sampling and forwarded Python evaluator settings (#5882).
Added separate prefill/decode models to native
PipelineProtogeneration and opt-inGenerationStatepause/resume with retained caches, pending tokens, EOS state and RNG progress. Resuming continues the original request rather than appending new conversation turns; the native Python binding exposes the retained state (#5884, #5891).Added explicit generation-only
PrepareGenerationModelpreparation that gathers the last hidden position before supported floating-point MatMul LM heads, changing logits from[B,S,V]to[B,1,V]without copying weights (#5866).Added
partition --max-constant-inputsoverrides for constant-input limits in layer and mincut partitioning (#5885).
Improvements#
Added
IfIdenticalBranchesPatternto inline recursively equivalent If branches while preserving captures, metadata and device constraints (#5910).Optimized newly extracted local functions within the same optimization pass, allowing their operators to fuse without a second optimization invocation (#5943).
Localized
RepeatedLayercapture limits and exposed resource exhaustion rather than silently treating bounded searches as exhaustive (#5946).
Bug Fixes#
RepeatedLayerkeeps constant weight-preparation chains (Cast,CastLike,Concat,Flatten,Identity,Reshape,Squeeze,Transpose,Unsqueezeon initializers or constants) outside layer bodies, like initializers. Models that prepare every layer’s weights before the first layer, such as Qwen3 exported by mbext, now extract whole decoder layers instead of small fragments (#5902, fixes #5901).diff_modelsandGraphBuilder::DiffRewritingsnow report every incompatible model declaration (IR version, domain, model version, metadata and existing opset versions with source and target values), name each mismatched graph input or output with its source and target tensor types, and name removed or conflicting local functions and changed internal value metadata instead of raising generic errors (#5883).Preserved captured-value ordering and per-reference graph attribute identity during rewriting, semantic comparisons, proto copies and optimizer-plan serialization (#5865).
Preserved live output-name reservations when pruning retired subgraphs, preventing name collisions in subsequent mutations (#5890).
Preserved and converted model-local functions using their own opset imports during version conversion, including constants introduced by adapters (#5906).
Enabled optimization and partitioning with deferred inline weights by loading needed constants on demand while leaving unrelated payloads deferred and preserving replay/export behavior (#5905, #5911).
Started repeated-layer detection at the first eligible candidate so preceding nodes with unresolved attributes no longer hide later layers, and reused freshly revalidated extraction proposals when applying graph rewrites (#5952, #5957).
Rejected MatMul post-Reshape fusion with output rank below two before accessing matrix dimensions (#5950).
Corrected low-precision LogSoftmax and cross-entropy computation and made half-precision InstanceNormalization and LRN overflow-safe (#5875, #5873).
Rejected externally stored STRING tensors in the checker (#5955).
Restored macOS universal2 builds by avoiding unsupported floating-point
from_charsin bitsandbytes parsing, fixed ReduceMeannodiscardwarnings on Windows ARM64, and avoided GCC 14 array-bounds warnings in Whisper case generation (#5953, #5954, #5896).Installed the version-converter forwarding header for standalone SDK consumers (#5898).
Performance#
RepeatedLayercaches value and node comparisons, encodes region topology and boundaries with integer value identifiers, and no longer repeats its whole-graph search inApply. On Qwen3-0.6B (mbext), extraction drops from about 10.6 s to 0.8 s with the same result (#5903).
Documentation & CI#
Added a pinned GPTQModel checkpoint compatibility matrix distinguishing supported layouts, reconstruction contracts and unsupported containers/backends (#5949).
Added four-layer Whisper shape-inference cases and external-data sidecar write regressions (#5888, #5942).
Displayed the documentation generation date alongside the release version, used relative local documentation/source links, and documented the
merge_modelsproducer-name default (#5894, #5877, #5871).Shipped
NOTICEin Python and native packages alongside the new packed-weight decoder (#5941).Updated Ruff from
0.17.3to0.17.4, pyrefly from1.4.0to1.4.1, and clang-format from23.1.3to23.1.5(#5914, #5912, #5913).Bumped the release version to
0.2.8.
[0.2.7] – Unreleased#
New Features#
Added native MXFP4 E2M1 and MXFP8 E4M3FN weight codecs with automatic group-32 E8M0 scales, versioned storage, FLOAT32 reconstruction and lossless packed-weight import/export in C++ and Python. Existing portable MXFP4 and
fp8_e4m3contracts remain unchanged; these codecs do not add accelerated matrix multiplication (#5800, #5803).Added the explicit
mxfp6_e2m3profile with compressed-tensors-compatible E2M3 codes, group-32 E8M0 scales and packed-weight import/export, while preserving legacymxfp6andfp6_llmE3M2 payloads (#5805).Added validated compressed-tensors checkpoint adapters for signed/asymmetric 1–8-bit
pack-quantized, MXFP4, MXFP6 E2M3, MXFP8 and NVFP4 weights. Imports and exports preserve codes and parameters without dequantizing/requantizing, using already-loaded arrays and explicit metadata rather than checkpoint discovery or activation execution (#5815).Replaced incompatible generic GGML-named encodings with exact native GGML blocks for
Q4_0,Q8_0,Q2_K,Q3_K,Q4_K,Q5_K,Q6_K,IQ4_NL,IQ1_S,TQ1_0andTQ2_0. Standard dequantization APIs and GPTQModel weight import/export now preserve native block semantics and bytes. Former generic v1/v2 GGML-named payloads are rejected; floating-point quantization and standalone.ggufcontainer loading remain unsupported (#5825).Added Gemm-29 support for vector and higher-rank activations with shared rank-two weights, preserved leading dimensions, native prepacked/preallocated execution and NumPy evaluation. Earlier schemas remain unchanged, and downgrade to opset 28 requires a known rank-two activation (#5831).
Added native model-to-model diff through
GraphBuilder::DiffRewritingsand Pythondiff_models/builder.diff_rewritings, using existing hash-validated rewriting plans without changing proto serialization. Supports compatible initializer and nested-graph edits while preserving unchanged external references; incompatible interfaces and unsupported function changes fail explicitly. Project-owned removal APIs now useRemovenames without compatibility aliases (#5857).Added
prefill_only_inputsto C++ and Python cached generation, replacing explicitly listed embedding-only feature feeds with correctly typed empty tensors during decode instead of reusing prefill image features. Caller feeds, persistent decoder state and default behavior remain unchanged (#5802).
Improvements#
Paired peak-memory estimators with kernel factories through
KernelRegistration, including global/context-local overrides and resolved-session accounting. Refused overrides change neither implementation nor accounting, and an omitted estimator means zero additional memory rather than inherited estimates (#5806).Extended
GeluPatternto recognize validated exact Erf-based decompositions and emit standard-domainGelu(approximate="none")at opset 20+, preserving the existing tanh rewrite and rejecting numerically unsafe or shared intermediate layouts (#5809).Added
PadPoolPatternto fuse safe non-negative zero-valued spatial padding into AveragePool and UINT8 MaxPool, preserving divisors, output names and pooling attributes while rejecting unsafe ceil-mode, shared-value and unsupported dtype cases (#5811).Extended MatMul/BatchNormalization fusion through private, statically validated Reshape/Transpose chains that preserve the channel mapping; retained shape operations and output names without adding kernels (#5854).
Optimized native Col2Im with clipped strided accumulation while preserving upstream kernel-offset addition order for byte-exact floating-point results, including empty batches/channels and 1D–3D boundary cases (#5841).
Ported upstream read-only string-view handling in parsing, printing and type-string utilities, preserving escaped identifiers and literal text while removing ad-hoc string-range handling (#5843).
Fixes#
Recorded only actual node deletions in cleanup rewriting provenance, keeping unchanged live nodes out of matches and replacements. Initializer-only cleanup now records zero impacted/replacement nodes while preserving replay, undo, nested scopes and shared tensor storage (#5814, #5816).
Simplified inverse Transpose pairs through Identity chains, retaining shared prefixes and continuing past rejected branches so consumer order no longer hides a valid cancellation (#5818).
Honored registered-operator precedence when merging colliding local-function declarations during rewriting replay, preserving required overload declarations and genuine function-resolution conflicts (#5851).
Excluded discarded function proposals and superseded bodies from replay caller analysis, preventing ignored proposals from forcing local-function resolution or spurious declaration conflicts (#5853).
Made integer Range shape inference exact across signed boundaries using overflow-safe unsigned distances and ceiling division; rejected zero steps and lengths exceeding INT64_MAX without changing floating-point inference (#5835).
Preserved reduction semantics when downgrading axes inputs by removing unsupported
noop_with_empty_axesattributes and rejecting identity cases that older opsets cannot represent (#5833).Preserved scalar operands, including trailing empty terms, in Einsum shape inference and explicitly rejected type strings missing a map key/value separator (#5843).
Hardened ONNX literal parsing with checked integer conversions, direct FLOAT attribute parsing and length-aware string handling. Numeric overflow and negative unsigned literals now report parser errors; floating-point underflow, signed zero, subnormals and embedded NUL bytes are preserved (#5845).
Avoided GCC 13 array-bounds diagnostics when constructing GroupedMatMul backend case names, preserving names and warnings-as-errors in standalone Release builds (#5824).
Documentation & CI#
Documented ONNX Runtime DLPack bool/uint8 compatibility and added CPU interoperability regressions for dtype/value preservation, shared storage, byte offsets and capsule ownership without reinterpreting legacy uint8-labelled bool exports (#5812).
Kept higher-rank
MatMulAddPattern(allow_reshape=true)explicitly opt-in after assessing empty-layout and dynamic-opset limitations, adding structural and numerical coverage without enabling the optional path by default (#5856).Ported historical C++ shape-inference coverage for Slice, pooling, Conv, ConvTranspose, Flatten and Gemm across applicable registered schema versions (#5839, #5847).
Enabled ASan/UBSan instrumentation for native fuzzed libraries and harnesses, with symbolized diagnostics, bounded crash replay and uploaded reproducer artifacts (#5849).
Corrected strict Sphinx source diagnostics for RST tables/headings, test-name literals and duplicate compatibility-shim API indexing without expanding warning exemptions (#5823).
Added weekly/manual Pixi lockfile updates for OpenSSL and CMake, opening or updating a PR only when dependencies change (#5821).
Made sccache installation optional in cache-enabled core and clang-tidy CI jobs, warning and clearing compiler launchers when setup fails while keeping compilation, tests and analysis mandatory (#5858).
Updated mypy from
2.4.0to2.4.1andprefix-dev/setup-pixifrom0.11.2to0.11.3(#5808, #5807).Bumped the release version to
0.2.7.
[0.2.6] – Unreleased#
Improvements#
Extended native CPU additional peak-memory estimates for MatMul, Gather, Slice and RMSNormalization, including half-precision output temporaries. Restored zero for missing estimators while preserving explicit unknown bounds from registered estimators, distinguished missing input descriptors from scalars, and eliminated heap allocations for binary broadcast strides (#5795).
Fixes#
Recognized dotted symbolic names in expression variable extraction and renaming, allowing qualified dimensions such as
component.model.past_sequence_lento be replaced inside arithmetic expressions without changing division or function-call handling (#5797).
Documentation & CI#
Bumped the release version to
0.2.6.
[0.2.5] – Unreleased#
New Features#
Added symbolic
PeakMemoryEstimateresults with mandatoryworst_caseand optional justifiedaverage_casebounds, propagated through dispatch, memory profiles, metadata and Python bindings. Unknown workspace remains explicitly unresolved rather than zero. Native consumers must rebuild; Python callers now accessestimate.worst_case.value()and the optionalestimate.average_case.value(). Legacy integer-returning C++ callbacks remain source-compatible as upper bounds without an assumed average (#5769).Allowed successful kernel preparations to retire exclusively owned initializer sources after all preparations reading them complete, avoiding persistent duplication of packed weights. Enabled this in the owning single-model loader and through explicit C++ consumption options or Python
ReferenceEvaluator(..., consume_initializers=True). Borrowed/reusable models and generation pipelines retain their sources; temporary packing peaks may still include both representations (#5765).
Improvements#
Replaced Python external-data export’s full-model serialize/reparse copy with a structural copy sharing eligible tensor storage. Recognized NumPy and bytes/bytearray buffers retain their owners; unproven borrowed buffers are conservatively snapshotted in the source model, preserving values and metadata but potentially changing source addresses and aliasing even if a later save step fails (#5764).
Fixes#
Preserved symbolic max/min grouping in sums, differences and coefficient products, preventing arithmetic round trips from changing expression values and underestimating memory profiles (#5772).
Documentation & CI#
Installed and verified Ninja explicitly before Windows x64 and x86 core builds (#5770).
Bumped the release version to
0.2.5.
[0.2.4.1] – Unreleased#
Documentation & CI#
Bumped the release version to
0.2.4.1.Removed stale native build directories before each Linux release wheel build to prevent disk exhaustion.
[0.2.4] – Unreleased#
New Features#
Replaced
onnx-light layerswithonnx-light partition layerand addedpartition mincutfor bounded transfer-aware grouping, with boundary-byte, group-size and constant-input limits. Both methods share core proposals and replacement scheduling while preserving large external-weight references (#5725).Added repeatable
optimize --function-pattern TEMPLATE REPLACEMENTarguments accepting inline ONNX function texts, with builder-local registration and optional--function-pattern-as-functionreplacements alongside default or explicitly selected patterns (#5755).Added
optimize --report PATHto export UTF-8 optimization statistics, including phase timings, per-pattern matching and nested-subgraph statistics. Report destinations are protected against existing files, links and external-weight collisions, including tensors introduced by custom function patterns (#5753).
Improvements#
Accelerated
FdReadStreampayload skipping by seeking over regular-file prefixes instead of reading and discarding them, preserving active limits, EOF handling and byte counts. Pipes and Linux pseudo-files retain buffered reads (#5758).Reused equivalent mincut partition functions through extraction-local fingerprints and exact body, interface and opset comparisons, normalizing each prior definition only once. Different attributes and embedded constants retain distinct functions; external weights remain call arguments (#5751).
Simplified ONNX Python helpers with
functools.cacheand consolidated warning capture while preserving existing APIs (#5744).
Fixes#
Made optimizer rewriting plans replayable against the original graph in C++ and Python, with structural hashes, explicit simultaneous node moves and reversible default Shape/Size hoisting. Export no longer reorders nodes and canonicalization is opt-in; legacy plans missing either hash are rejected and must be regenerated (#5757).
Preserved large inline tensor payloads and Constant attributes in both partition commands, including in-place rewriting, while keeping large external weights unloaded. Previously corrupted partition exports must be regenerated from the original model (#5749).
Matched equivalent numeric tensor attributes in
FunctionPatternacross raw and typed storage, preserving exact dtype, shape and payload-bit comparisons without loading external or deferred tensors (#5750).Rejected dynamic or overridable axes/split inputs during opset downgrades instead of freezing runtime values, and removed omitted optional input slots while preserving shared values (#5746).
Rejected sparse initializers explicitly during version conversion, including unused initializers and nested graphs, rather than discarding them or producing misleading errors (#5748).
Validated segmented tensor bounds against the full shape and sized raw, typed, packed and external payloads by the segment length, with overflow checks and preserved bound presence during serialization (#5742).
Fixed the installed SDK’s
onnx_lib/common/visitor.hto include the exportedonnx_proto/onnx.h, restoring standalone C++ consumer builds (#5738).
Documentation & CI#
Added C++
QLinearMatMulbackend regressions for ties-to-even rounding before adding odd output zero points, covering signed/unsigned outputs and unsigned saturation (#5740).Kept CMake available after debug builds so CTest discovery no longer references a deleted isolated build environment (#5731).
Made shared test helpers importable in reduced-wheel CI without shadowing the installed wheel (#5730).
Updated cibuildwheel from
4.3.2to4.3.5(#5727).Updated Ruff to
0.17.3(#5726).Bumped the release version to
0.2.4.
[0.2.3] – 2026-10-30#
New Features#
Added
onnx-light optimizewith comma-separated pattern names and registered groups, external-weight reuse, and exclusive output creation that protects input models and existing files (#5718).Added metadata-only
onnx-light layersextraction with tiny shape-tensor loading, preserved external weights, rewritten model output, and per-layer summaries (#5715).Added owning pipeline loading with bounded preparation shared across prefill and embedding stages, integrated with native generation (#5706).
Supported multiple end-of-sequence token IDs in native generation, with per-row stopping and padding until all batch rows finish (#5699).
Improvements#
Improved repeated-layer sharing across exporter provenance and recomputed shapes, extracted complete hybrid layer motifs, and preserved custom annotations while keeping data-dependent output symbols independent across calls (#5715).
Included external tensor metadata in initializer deduplication hashes to distinguish unloaded weights efficiently (#5724).
Fixes#
Inferred omitted external tensor lengths from fixed-width shapes in the owning runtime loader while preserving memory admission bounds, and defaulted omitted external-data offsets to zero during model loading (#5700, #5721).
Preserved graph and node metadata during ONNX version conversion (#5714).
Accepted zero- or one-element
NonMaxSuppressionoptional inputs regardless of rank, treating empty tensors as absent and clamping non-positive output limits before capacity multiplication (#5713).Exposed missing cosine-sum window attributes and defaults in
LightOpSchema(#5722).Absorbed output Transposes into unbiased Gemm operations (#5701).
Avoided nanobind shutdown leaks caused by runtime overload registration for optimization callbacks (#5716).
Documentation & CI#
[0.2.2] – Unreleased#
New Features#
Added C++ and Python
FunctionPatternrewrites defined by template and replacement ONNX functions, with positional interfaces, captured reference attributes, and local producer/consumer matching for connected multi-output templates (#5676).Added opt-in
FunctionPatternlocal-function replacements throughas_function, sharing replacement definitions and forwarding captured attributes while preserving inline replacement by default. Local-call rewrites are restricted to the model graph and its subgraphs, excluding local function bodies and their nested subgraphs (#5688, #5693).Added native generation step callbacks with emitted token IDs, prefill/decode timings, cooperative cancellation, and optional original-dtype last-position logits bounded by a per-call byte budget (#5695).
Added builder-local
OperatorRegistryschema histories and shape-inference callbacks throughGraphBuilder(..., local_registry=...). Builders snapshot registrations and propagate them to nested scopes, export, replay, and undo without changing independent builders or global registries (#5669).Added opt-in version-2 FLOAT quantization reconstruction through
plan.reconstruction_dtype, independently of the final output dtype. Version-1 DOUBLE reconstruction remains the default, preserving existing serialized values and ORT-compatible profiles (#5674).
Improvements#
Indexed pattern candidates by operator type for each frozen matching iteration, preserving graph order, priorities, disjoint matches, and sequential/parallel behavior. Added configurable C++ and Python
FunctionPatternanchors (anchor=-1retains the last-node default) and a focused matching-phase benchmark (#5684).Deferred
GraphBuildernumerical memory and peak-memory profiling until export while keeping shapes, tags, lifetimes, and in-place reuse coherent during construction and mutations (#5678).Made repeated-layer extraction generic across domains and available shape-inference registrations, retaining exact operation order, optional ports, attributes, and explicit state/cache interfaces rather than relying on an operator whitelist (#5669).
Reused equivalent extracted Layer functions across renamed scopes and attribute serialization orders while preserving interface types and initializer values. Existing helpers with caller-specific value bounds are not reused (#5679).
Accelerated exact large-tensor quantiles and medians with bounded histogram refinement and multiselection, avoiding tensor-sized selection copies where applicable. Added native progress and cooperative cancellation callbacks while preserving interpolation and non-finite handling (#5664).
Set the default priorities of
GroupedMatMul,GemmSumFusion,MatMulAdd,MatMulBatchNormalizationFusion, andMatMulScaleFusionto2, preserving other defaults and explicit overrides (#5667).
Fixes#
Allowed operator/local-function name collisions with registered-operator precedence for shape inference, memory analysis, and execution, including normalized domain aliases and overload handling. Errors from the selected operator propagate without retrying the local body or changing global registries (#5682).
Preserved repeated formal outputs in local-function runtime calls and normalized explicit runtime-context opset domains before compatibility checks (#5690, #5691).
Corrected
GemmTransposePatternto absorb one or both rank-two input Transposes into the corresponding Gemm flags for dynamic or constant inputs, preserving scaling, bias, legacybroadcast, output names, and shared or exported Transpose producers (#5681).Added FLOAT16, BFLOAT16, and INT8 native Hann/Hamming window outputs using wide-precision calculation before the final cast, avoiding low-precision overflow and NaNs for long windows (#5661).
Documentation & CI#
Raised the minimum supported CMake version to
4.0across builds, packaging, examples, and CI, removing CMake 3 coverage (#5672).Shared the shape-inference test harness across operator, data-propagation, and function-inference suites without changing their comparison policies (#5663).
Bumped the release version to
0.2.2.
[0.2.1] – Unreleased#
New Features#
Added ONNX opset-29
GroupedMatMulschemas, shape inference, context-dependent function decomposition, and native execution with optional per-group bias, FLOAT/FLOAT16/BFLOAT16/DOUBLE data, and INT32/INT64 expert indices (#5613).Added the C++ and Python
GroupedMatMulPatternto fuse batched, unrolled, and fixed-tripLoopexpert-selection subgraphs, including optional gathered bias, without materializing selected weight tensors (#5626).Added C++ and Python optimization callbacks for progress reporting and per-match rejection, including nested scopes. Rejection occurs before node reservation so other patterns remain eligible (#5592).
Exposed
before_bytes,during_bytes,after_bytes, andreleased_bytesin C++ and Python node-memory profiles, including scratch allocations and post-release retained memory (#5645).Added C++ and Python tensor statistics for numeric and quantized values, including histograms, quantiles, median, and area-averaged rectangle maps. Output allocations share a configurable
max_output_bytesbudget, defaulting to 64 MiB (#5508, #5531, #5543).Added opt-in repeated-layer extraction, with extracted regions represented as model-local
ai.rt::Layer,Layer_1, and subsequent functions rather than a dedicated Layer operator (#5516, #5571).Added opt-in
load(path, defer_weights=True)and nativeParseOptions.defer_weights, with per-name and bulk weight loading/unloading and loaded-state queries. Deferred loading supports validated inline raw and ordinary external weights; unsupported payload types, input modes, and unsafe exports are rejected explicitly (#5561).Supported encrypted models with separately authenticated AES-256-GCM external weight files, automatic shard loading, and ciphertext digests bound to model metadata (#5534).
Recognized
.pipe-onnxand.pipelineas binaryPipelineProtoextensions inonnx.loadand supported pipeline objects inonnx.save(#5566).
Improvements#
Removed the per-pattern
SupportsLocalFunctionsandsupports_local_functionshooks. Function calls resolve through model orGraphBuilderdefinitions, without changing theMatch/Applyinterfaces (#5654).Applied pattern optimization inside local function bodies, including optimization reports and rewritten definitions captured for replay and undo (#5573).
Added opt-in
optimize(parallel=True)for native pattern matching while preserving deterministic, sequential rewrite application. Python-defined patterns remain sequential (#5594).Exposed named, overlapping fusion groups through
standard_pattern_sets(), covering standard, ONNX Runtime-shared, onnx-light-only, and opt-in repeated-layer patterns. Python pattern enumeration now excludes opt-in patterns by default; passinclude_opt_in=Trueto list them without activating them (#5569, #5541).Removed OpenMP discovery, linkage, and package dependencies; native parallel execution continues to use onnx-light’s own
std::threadworkers (#5549).Ported applicable LLVM 23 compatibility changes, including signed-shift replacements in shape arithmetic and clang-tidy compatibility updates, and eliminated macOS release-build warnings (#5536, #5514).
Fixes#
Rejected model-local functions that reuse a registered operator’s normalized domain and name, regardless of overload, and rejected function overloads on registered operator nodes. Preserved legitimate custom-domain functions and distinguished their domains and overloads during primitive rewrites and deduplication (#5654).
Restricted normalization cast elimination to standard
LayerNormalizationandRMSNormalizationwith FP16 I/O, FP32 accumulation, constant unit scale, and absent bias, preserving intermediate rounding, signed zero, saved statistics, and shared promotions (#5652).Made
MeanVarianceNormalizationschema expansion dtype-aware for DOUBLE and FLOAT16/BFLOAT16 inputs using context-dependent function builders, and retained calls whose input types are insufficient for expansion (#5628).Prevented intermediate summation overflow in native
ReduceMeanwhen a finite mean is representable, while preserving existing finite results and NaN/Inf input behavior (#5606).Checked dimension arithmetic in
Tile,Reshape,Flatten,DepthToSpace, and attention output/cache shapes before integer overflow (#5632).Checked tensor byte counts, aggregate live allocations, and attention scratch estimates for overflow.
ComputeContext::Computenow explicitly rejects unsupported or unresolved allocations instead of silently omitting them (#5647).Preserved context-local shape-inference callbacks across resets and repeated inference, and inherited them in local functions without sharing mutable registration maps (#5648).
Preserved tensor names containing semicolons and percent signs in execution-plan lifetime metadata, with validated encoding and backward-compatible handling of unmarked metadata (#5643).
Released unused ordinary and shape-tagged outputs at their producer, keeping lifetime events, execution-plan deletes, and incremental memory accounting consistent (#5644).
Included affine quantization parameters and struct constants in external-data offset planning across nested graphs and functions, preserving serialization order and aligned or chunked exports (#5646).
Materialized graph-valued function arguments during undo tag restoration and preserved unknown tensor rank during nested-function memory estimation (#5588, #5589).
Rejected negative
Slicedimensions before clamp-bound arithmetic and rejected unsupported characters or repeated ellipses inEinsuminput equations (#5598, #5600).Preserved shared scales during
Upsampleopset-9-to-8 conversion and rejected overridable initializer defaults rather than freezing them into attributes (#5604).Fixed standalone
TensorProto.SerializeToFiledispatch and rejected unsupported output modes and size-limit failures before opening or truncating destination files (#5584).Honored metadata-only loading and payload thresholds for encrypted external tensors without reading or decrypting skipped shards, while retaining metadata, path, range, and resource-limit validation (#5564).
Deferred encrypted-model node, graph, and function callbacks until external shards resolve successfully, preserving callback replacements and nested ordering (#5563).
Included sparse initializer payloads in extracted-layer memory estimates (#5542).
Supported rank-2 real
STFTsignals in shape inference and represented omitted Qwen test weights as synthetic external tensors so strict verification and metadata refresh do not require materializing their payloads (#5520, #5510).
Documentation & CI#
Added 91 native backend operator/dtype cases, sub-byte
BitCastwidth and bit-preservation regressions, and negative-endShapecoverage (#5609, #5612, #5602).Compared sequential and parallel native pattern matching against onnxscript in the fusion benchmark, and preserved synthetic weight references when re-exporting the annotated Qwen3 memory example (#5623, #5621).
Kept four ONNX Runtime
ReduceMeanoverflow comparisons visible as explicit expected failures rather than broad exclusions (#5650).Removed external ir-py test execution while preserving mbext integration coverage and its dependencies (#5583).
Added tensor-statistics gallery examples and expanded the Python tensor-statistics API documentation (#5530, #5532).
Moved Sphinx and Doxygen builds to weekly schedules with manual dispatch and automatic failure issues (#5548).
Ran native shape inference on every backend case, added native
WhereInPlaceTypedand sequence-stateLoopreachability coverage, and corrected optional ONNX Runtime dependency handling and quantization selection in Pixi tests (#5522, #5577, #5575, #5581).Bumped the release version to
0.2.1.
[0.2.0] – 2026-10-22#
New Features#
Extracted the native ONNX proto implementation into a standalone C++ project that supports independent static/shared builds, installation, and
find_package(onnx_proto CONFIG REQUIRED)(#5348).Added
onnx_light.onnx.load_tensorandsave_tensorfor standaloneTensorProtofiles such as ONNX backendinput_0.pbandoutput_0.pb, with binary streams and explicit or inferred protobuf/textproto formats (#5368).Added explicit and lazy session prepacking that overlaps preparation with model payload loading (#5404).
Added serialized graph-rewriting plans with reusable function recipes and named model variants, plus
GraphBuilder.to_onnxexport modes for optimized or replayable bundled models (#5408, #5412, #5452, #5464).
Improvements#
Reduced graph-rewriting memory use by explicitly sharing unchanged tensor storage across import/export, canonical snapshots, capture, undo and replay, releasing temporary canonical exports promptly, and avoiding tensor-data-sized hashing and bounds-scan buffers. Ordinary proto copies retain their existing semantics (#5484).
Kept
GraphBuilderdependency order coherent during targeted mutations and rejected masked cycles before refreshing graph metadata (#5425, #5455).
Fixes#
Invalidated stale in-memory rewriting undo captures after root or nested builder mutations, including declaration-only changes, while preserving valid captures across moves (#5501).
Refreshed newly captured outer inputs and removed stale inherited shape entries during explicit nested rewrites, including parents without a shape function (#5503).
Disambiguated duplicate FLOAT16/BFLOAT16
GreaterOrEqualandLessOrEqualbackend-test names with a_2dsuffix, preserving all datasets and keeping ONNX Runtime CPU exclusions aligned with the renamed cases (#5502).Kept explicitly shared snapshots independent on mutation, preserved NumPy/DLPack export lifetimes, and fixed aliased raw-data assignment and aligned-buffer resize failure safety (#5484).
Rejected invalid
GatherNDindex dimensions and negativebatch_dims, including unknown-shape fallbacks, with bounds checks before potentially overflowing additions (#5488).Checked
SplitToSequencesplit-size sums for integer overflow during shape inference (#5490).Supported locale-independent, round-trip-exact floating-point printing on older macOS and iOS targets without floating-point
std::to_chars(#5492).Aligned negative axes in output-dimension expansion with
Unsqueezeoutput-rank semantics;dim_idx=-1now appends a trailing dimension (#5494).Avoided null-pointer
memcpycalls when constructing or assigning scalar runtime shapes from empty dimension vectors, fixing UBSan failures in downstream sanitizer builds (#5498).Validated tensor shape and payload consistency, rejected unknown tensor data types on validation fast paths, and prevented overflow in packed-payload size checks (#5389, #5436, #5438).
Corrected symbolic shape arithmetic for singleton-value broadcasting (#5385).
Rejected forward local-function calls instead of silently resolving them through native operator fallback (#5426).
Allowed external tensor data in one existing child directory while rejecting absolute paths, parent traversal, deeper paths, and statically resolved escapes (#5305).
Expanded scalar
SplitToSequencesplits into explicit lengths, including a final remainder, when rewriting toSplit, and ignoredkeepdimswhen a split input is present (#5300).Preserved symbolic dimensions for open-ended
Sliceinference by treatingINT64_MAXends as the input extent rather than a concrete output dimension (#5301).Omitted symbolic value bounds for floating-point tensors containing NaNs, avoiding platform-dependent extrema while retaining infinity and signed-zero behavior in constant-space scans (#5505).
Documentation & CI#
Adding
ParseOptions::graph_callbackandParseOptions::function_callbackchanges the C++ layout ofParseOptions. Rebuild downstream C++ libraries and extensions against matching onnx-light headers and binaries; mixing prebuilt consumers of the old structure with this release is unsupported (#5515).Removed the ORT plugin roadmap after moving it to the separate
xadupre/onnx-light-ortproject (#5499).Bumped the release version to
0.2.0.
[0.1.32] – 2026-10-15#
New Features#
Added
PipelineProtosupport for serializing generation models and options (#5286).Supported multi-graph generation with a shared CPU executor and persistent recurrent state consumed by multiple nodes (#5270, #5271).
Supported rank-3 multi-axis M-RoPE position IDs during native generation, including models with a dynamic axis count (#5289).
Added native
Castruntime support for complex outputs (#5183).
Fixes#
Resolved split-generation feeds against each receiving model’s quantization parameter catalogue while preserving shared model and tensor storage (#5287).
Preserved Phi-3 attention-mask values until their final consumer and rejected premature release annotations (#5288).
Rejected private value-name collisions between generation pipeline models (#5285).
Corrected symbolic shape inference for fused Qwen3 graphs, optimizer revalidation, and empty control-flow outputs (#5273, #5284).
Kept global runtime registries read-only while resolving explicit local registrations before global fallbacks (#5281).
Documentation & CI#
Created GitHub issues automatically when the shape-inference coverage workflow finds missing operators (#5277).
Bumped the release version to
0.1.32.
[0.1.31] – 2026-10-14#
New Features#
Improvements#
Parallelized DFT, STFT, global pooling, independent
ReduceSumandReduceMeanoutput slices, and normalization kernels with tunable thresholds (#5130, #5139, #5154, #5156, #5158, #5199).Made native variance-based normalization deterministic using Welford/Chan accumulation (#5205).
Kept
GraphBuildermetadata consistent after mutations while refreshing only affected values and consumers (#5162, #5242).Made the C++
ShapesContextAPI move-only to prevent accidental full context and expression-cache copies (#5245).Inlined local functions containing control-flow subgraphs without copying unchanged nodes (#5166, #5196).
Fused Slice-based half-rotary embeddings and made unused-node cleanup optional during graph optimization (#5202, #5194).
Removed locking from kernel prepacking and propagated immutable initializer provenance into nested runtime sessions (#5219, #5240).
Fixes#
Selected runtime kernels using model opset imports, including in nested execution (#5203).
Preserved anonymous dynamic dimensions and annotated custom-domain outputs during shape inference, and inferred
Squeezewith explicitly empty axes (#5179, #5204, #5182).Preserved subgraph-local functions during model extraction and rejected captured-only nested graph outputs (#5238, #5241).
Preserved classifier label flattening after
ArrayFeatureExtractorand supported string decision-path outputs in the native evaluator (#5180, #5181).Corrected FLOAT8E8M0 rounding for subnormal and float64 inputs and prevented FLOAT16
ReduceLogSumExpoverflow (#5213, #5234).Handled incompatible
Resizeconfigurations when converting from opset 12 to 13 and aligned the zero-inputDynamicQuantizeLinearfunction with ONNX (#5239, #5237).Supported string keys in
numpy_helper.from_dict, converted booleans in repeated integer attributes, and preserved typed-empty optional values asNone(#5141, #5224, #5233).Deferred stale execution-plan unlocks and fixed Windows serialized-size cache collisions (#5165, #5195).
Drained global custom-kernel callbacks registered during shutdown cleanup (#5185).
Checked serialization before saving inferred models and normalized empty external-data base directories for contained access (#5225, #5227).
Documentation & CI#
[0.1.30] – 2026-10-04#
Improvements#
Parallelized numeric
Whereover disjoint output ranges with typed runtime tuning, while preserving serial execution for strings and aliased outputs (#5127).Parallelized native convolution and attention kernels with typed tuning, partitioning independent output elements, planes, batches, or heads (#5104).
Parallelized
SoftmaxandLogSoftmaxover independent rows while preserving each row’s reduction order (#5124).Supported downgrading
Mulfrom opset 14 to 13 for compatible input types (#5106).
Fixes#
Supported INT64 inputs and outputs in the native
ReduceSumkernel, including wrapping integer accumulation (#5133).Accepted contiguous BFLOAT16 KV-cache feedback without a copy during generation (#5122).
Derived missing last-use releases and unlocks when execution-plan metadata is only partially annotated (#5120, #5125).
Corrected
Resizecoordinates for fractional-scalealign_cornersand singletonpytorch_half_pixeloutputs (#5110, #5114).Preserved input dtype for FLOAT16, BFLOAT16, and DOUBLE
Detoutputs (#5112).Handled variadic
Meaninputs whose broadcast shape expands after the first two inputs (#5116).
Documentation & CI#
[0.1.29] – 2026-10-02#
New Features#
Improvements#
Parallelized native
MatMulacross output ranges (#5083).Parallelized non-identity
Transposeover contiguous copy blocks while retaining a single-copy path for identity permutations (#5093).Parallelized supported
Castconversions with type-specific runtime tuning, while keeping packed-output writes serial to avoid byte-level races (#5097).Folded initializer-backed
TransposeandUnsqueeze–Castchains during optimization, preserving dtype, shape, output names, folding controls, and externally visible values (#5094, #5095).
Fixes#
Bounded symbolic broadcast-expression growth during graph construction (#5087).
Preserved symbolic shape values through statically known
Sliceoperations (#5086).Fixed native sklearn classifier execution for string
Reshape, binaryTreeEnsembleClassifiermargins, andSVMClassifierprobability calibration (#5088).Aligned
ReduceLogSumExpbehavior for non-finite inputs with upstream ONNX (#5072).
Documentation & CI#
Added a completion roadmap for native kernel parallelization, documented seeded random generators as intentionally serial, completed the custom/quantized/persistent-value roadmap, and retired the proposed split-wheel refactoring (#5099).
Added persistent-feedback decode validation and revision-stamped measurements, plus guidance to reduce wasted CI runs (#5070, #5078).
Bumped the release version to
0.1.29.
[0.1.28] – 2026-09-30#
New Features#
Added graph-declared persistent input/output bindings with zero-copy feedback state and contiguous KV-buffer reuse for eligible CPU Attention consumers (#5016, #5023).
Added autoregressive generation in C++ and Python with greedy or seeded temperature sampling and optional persistent-cache decoding; models without persistent bindings execute the full prefix (#5062).
Added portable tensor and encoded-value quantization codecs, native
ai.rtQuantize/Dequantizegraph kernels, and shared model-level quantization parameters (#5025, #5027, #5031).Added zero-copy
TensorProtoDLPack import/export and opt-in borrowed NumPy initializers with retained owners (#5015, #5021, #5022).Integrated structured values with
GraphBuilder, inference, and export (#5007).Added opt-in paged KV attention with independent per-page K/V formats,
PagedCacheProtoserialization, graph cache initializers, and persistent state integration (#5024).Added
ai.rt::QuantizePagedCacheto quantize selected pages into affine INT2/UINT2, INT4/UINT4, or INT8/UINT8 storage and dequantize them into FLOAT/FLOAT16/BFLOAT16. Conversions preserve valid lengths and page capacities, retain unselected payloads, and validate the complete cache before publication.Added native ORT FlatBuffers serialization and parsing through the C++ and Python memory, stream, and file APIs, without a FlatBuffers library or ONNX Runtime conversion dependency (#4990). The writer emits ORT version 4 for full ONNX Runtime builds; the reader accepts supported version 4, 5, and 6 models and reconstructs executable ONNX models.
Added ORT support for inline tensor payloads, nested control-flow graphs, serialization and parsing callbacks, payload alignment, and checked decoding limits. Formal node input counts are resolved from versioned schemas, including variadic and optional inputs. ORT decoding is sequential and copies tensor data into owned storage. Unsupported constructs and external tensor offsets are rejected explicitly; the writer does not support minimal ONNX Runtime builds or low-bit tensor types.
Improvements#
Fixes#
Fixed
IdentityandShapeBasedIdentityoptimization of constants and dynamicSlicebounds, and honored optional output arity inGraphBuilder(#5003, #5004, #5005).Preserved external tensor data on NumPy conversion and wrote external payloads in per-file offset order (#5035, #5045).
Enforced declared IR-version tensor types and corrected
GridSamplemode defaults and opset-10-to-11Resizeconversion (#5051, #5039, #5055).Fixed repeated-message
add(**kwargs)to populate repeated fields using the same logic as proto constructors, including repeated string values (#4989).Fixed attribute checking to recognize scalar and repeated
GraphProtovalues (#4988).Propagated upstream shape-inference fixes for
Split,SplitToSequence,LayerNormalization, andGatherND, covering invalid attributes, axis bounds, omitted optional inputs, and omitted trailing outputs (#4986).
Documentation & CI#
Added an executable Python gallery example for selected-page INT4/UINT4 quantization, FLOAT16/BFLOAT16 restoration, and mixed-format cache serialization in
docs/examples/runtime/plot_quantize_paged_cache.py.Replaced permanently skipped
TensorProto.SerializeToFiletests with round-trip coverage for the supportedSerializeToFileDescriptorandSerializeToOstreamAPIs (#4987).Added native ORT read/write documentation, an interoperability example, malformed-input regressions, and synchronization checks for the compact operator-input schema snapshot.
Updated proto-library binary-size budgets to account for the native ORT codec while retaining installed-size, code-size, dynamic-symbol, and shared-dependency checks.
Bumped the release version to
0.1.28.
[0.1.27] – 2026-09-16#
New Features#
Added the
StructTypeProto/EncodedValueProtocustom value representation (TypeProto.struct_type,GraphProto.encoded_initializerandModelProto.struct_typeson the reserved field number 1000), with serialization for typed and constant fields, arrays, bit-packed records and shared type references.Added built-in affine INT8/UINT8 and INT4/UINT4 encoded layouts, with per-value quantization parameters and inline or external payload metadata. Catalogue resolution, checked layout arithmetic and payload-derived record counts are validated through
onnx_light/onnx_proto/onnx_verify.hand integrated intoVerifyModel/VerifyGraph.Added ONNX
FLOAT6E2M3andFLOAT6E3M2support across schemas, serialization, validation, runtime tensors,Cast,QuantizeLinear, andDequantizeLinear.Added portable optimizer patterns for linear algebra, convolution, normalization, collection, padding, activation, STFT, gather propagation, shape simplification, and linear attention, together with peak-memory estimation for the latter.
Added context-local kernel factory registration through
RuntimeContext::RegisterKernelFn, with local factories overriding global registrations and inheriting into child contexts.Added kernel-usage recording to
RuntimeContext, shared across subgraph and function contexts, to track backend kernel selections independently of custom registrations.Added opt-in bounded nested parallelism in
CpuExecutor, allowing nested regions to borrow idle workers from the same pool without oversubscribing its participant limit.
Improvements#
Unified fixed-width element-size metadata across structured-value validation and
BitCastschemas, shape inference and runtime kernels.Synchronized the opset 28 schemas with ONNX weekly 1.24, including BF16 constraints and
SpaceToDepth/DepthToSpacefunction bodies.Aligned default CPU affinity with ONNX Runtime.
Extended
QuantizeLinearandDequantizeLinearwithFLOAT16rounding, per-axis, and blocked-quantization support.Closed native
GraphBuildercompatibility gaps for local functions, shape and lifetime analyses, optimization replay, and native data-type handling.Made
setup.py build_ext --inplacereject editable installs that redirect imports to another source tree while continuing to allow editable installs of the current tree.Required nanobind 3.0.1 or newer.
Improved
STFTshape inference for dynamic inputs, added validation for optional inputs, and aligned the runtime default for omitted frame lengths with the schema.Aligned reduction shape inference with the opset transitions for input-based axes and empty-axis semantics.
Used the public
TestCase.unload()API directly when processing backend test cases.Added negative-padding support to the
Padkernel.Added signed-integer support for
BitShiftin opset 28.Extended the
Optionaloperators to all IR version 14 types and propagated ONNX opset 29 metadata.Unified default CPU thread-count resolution across
ParallelFor, runtime parameters, and kernel tuning, preferring process-visible physical cores and respecting CPU affinity.Reduced warm thread-pool dispatch contention by publishing work without requiring spinning workers to acquire the state mutex.
Unified global and context-local kernel lifetimes: each resolved node retains its session-owned kernel across runs and input-shape changes. Replacing or removing a registration affects only future resolutions.
Separated the
parallel.minimum_elementsserial/parallel crossover threshold from block grain size, which is derived from the admitted participant count.
Fixes#
Fixed protobuf oneof resets with the legacy MSVC preprocessor, ensuring every backing field is cleared when switching or resetting alternatives.
Honored globally registered shape callbacks in custom domains during native shape inference and
GraphBuilderconstruction.Corrected variadic output bounds for
If,Loop,Scan, andSequenceMapso nativeGraphBuilderaccepts multi-output control flow, includingScaninside local functions.Added BF16
EinsumandUnique, floating-point floor remainder forMod, and CRD mode forSpaceToDepth; corrected dilatedAveragePoolpadding counts and explicitMaxUnpooloutput shapes.Aligned the ONNX schema determinism API and corrected schema synchronization tests to compare upstream metadata and resolve attributes declared by schema helpers.
Prevented crashes and invalid memory access on malformed models during function inlining, version conversion, and node-level shape inference.
Preserved the input type when propagating
Attentionmasks for low-precision inputs.Avoided redefining toolchain-provided
_FORTIFY_SOURCEsettings in release wheel builds.Fixed subprocess cleanup in the ONNX cold-start gallery example.
Prevented
Einsumshape inference crashes for inputs with mismatched ellipsis ranks.Added input validation to
GroupNormalizationshape inference.Restricted opset 28
ReduceLogSumto floating-point types and added version conversion support.Propagated upstream ONNX fixes for initializer handling,
Resize, and tensor diagnostics.Fixed signed
INT64raw-data decoding.Made the global thread pool fork-safe by replacing inherited state on first use in the child without joining vanished workers. Pool references obtained before
fork()must be reacquired in the child.Persisted the calibration execution descriptor, including the effective thread count, in the kernel-tuning cache.
Excluded calibration groups whose reference and candidate use the same execution path, including single-task
Gemmcases, and selected crossover thresholds from measured stable wins rather than extrapolating below measured sizes.Corrected parallel-region profiling to count threads that actually execute work rather than reporting the planned participant count.
Validated
AffineGridruntime dimensions and checked allocation sizes before constructing output tensors.Rejected invalid
TreeEnsembletopology before execution, with validation also integrated into shape inference, model verification, and nativeGraphBuilder.
Documentation & CI#
Increased core CI timeouts to 90 minutes on Windows x64 and 60 minutes on macOS, leaving room for tests after cold builds.
Bumped the release version to
0.1.27.Reduced the release wheel matrix while retaining CPython 3.12–3.14 coverage.
Refreshed the project goals, fuzzing, pattern optimization, and no-copy ownership documentation.
Consolidated the custom, quantized, prepared, and persistent-value roadmaps, separated prepacking concerns, and reordered next-step discussions ahead of completed work.
Centralized static ONNX operator schema documentation and documented the pattern-porting workflow.
Improved generated pattern diagrams and catalog links, restored ONNX introduction navigation, added gallery thumbnails, and graphed ONNX cold-start timings.
Corrected
Padreflect-mode examples and expanded theSTFToperator documentation.Added C++ backend coverage for 3D
GlobalMaxPooland stabilized the backend benchmark timing test on loaded CI runners.Added high-arity C++ backend cases for five-input
Max,Min,Mean,Sum, andConcat, three-inputEinsum, and five-outputSplit, with end-to-end model coverage forEinsumandSplit.Regenerated the published x86-64 calibration profile and added regression checks for compatibility with the current tuning schemas.
Added
TreeEnsembleSOFTMAX_ZERObackend regression coverage.Documented custom-kernel registration and lifetime guarantees, bounded nested parallelism, and measured calibration crossover bounds.
[0.1.21] – 2026-08-30#
New Features#
Added a prepared-execution pipeline with resolved fixtures, persistent prepared-object storage and arenas, constant-B GEMM packing, budgeted scheduling, asynchronous
PrepareAsync/RunAsynchandles, and readiness-aware execution.Added bounded prepared-object residency and packed-cache reload, including loading compatible prepared tensors before portable weights and overlapping preparation with first-token execution.
Added fixed-placement CUDA GEMM preparation variants.
Added bounded
ParallelForprofiling with run identity, CPU utilization, immutable C++ and Python reports, optional Linux hardware counters, and calibration diagnostics.Added compact
GraphBuilderauthoring APIs.Added an adaptive external-data I/O policy and an ORT-independent
MappedPayloadownership contract for fast model loading.
Improvements#
Made every collected C++ backend test case lazily materialized and unloadable, including manually assembled control-flow, sequence, and shape-analysis cases; Python collection and exhaustive processing APIs now unload native-backed payloads by default.
Removed compatibility-parser input staging and the external-data pre-scan, resolving descriptors in a single pass while freezing live payload manifests before materialization.
Cached runtime initializer tensors per session and reused compatible CPU executor pools.
Expanded kernel-tuning schema coverage, added bounded GEMM calibration, and published a verified x86-64 machine profile while retaining conservative portable defaults.
Added
Attentionopset 25 local windows and a lightweightPow15 schema from upstream ONNX changes.Replaced exception-driven C++ control flow with explicit precondition checks.
Fixes#
Based cost-aware CPU loop planning on recurring warm-pool dispatch and participant coordination instead of one-time executor startup.
Prevented a lost thread-pool completion notification from blocking parallel regions, especially during repeated small GEMM executions on Windows.
Fixed the Linux release build when the CPU helper is conditionally unused.
Matched persisted tuning profiles to the default session thread count on SMT systems.
Propagated upstream ONNX fixes for version-converter initializer lifetime, protobuf file loading, graph-use queries, unknown-rank metadata, and the Windows
OPTIONALmacro clash.Rejected zero scalar
SplitToSequencesplits and fixed ONNX printer handling of fixed-width raw tensor data.
Documentation & CI#
Bumped the release version to
0.1.21.Added runnable guides and galleries for
GraphBuilder, pattern optimization, runtime execution, kernel tuning, compute analyses, and ONNX Runtime benchmark comparisons.Documented CPU thread-pool dispatch, split the fast-loading work into ordered roadmaps, and clarified the next-step objectives and dependencies.
Reorganized the generated API catalogues under a
ByOppage, including pattern rewrites and registered peak-memory functions.Isolated and bounded benchmark gallery measurements.
Fixed macOS GoogleTest discovery by deferring it to
PRE_TESTmode.
[0.1.20] – 2026-08-20#
Improvements#
Treated C++ compiler warnings as errors on GCC/Clang too (
-Werror), controlled by the newONNX_LIGHT_WERRORCMake option which also gates the existing MSVC/WX.Made the requested degree of parallelism effective: a runtime session now leases a shared CPU executor matching its execution policy and every parallel region its kernels launch runs on exactly those participants instead of a process-wide thread pool.
Exposed typed CPU execution requests, immutable resolutions, executor sharing identities, and optional dispatch counters through the Python runtime and
ReferenceEvaluator.Made calibration use an explicitly selected CPU executor and reject execution descriptors that disagree with the active participants.
Tagged node runtime events with the exact shared CPU executor instance and its effective participants, and fixed future prepared execution to the same executor ownership contract.
Accepted runtime
Tensorobjects, and sequences mixing them with NumPy arrays, asReferenceEvaluatorinputs, borrowing their buffers zero-copy while keeping their owners alive.Ported the MatMul and normalization optimization patterns to C++:
MatMulAdd,GemmTranspose,TransposeMatMul, the MatMul reshape patterns,LayerNormalization,RMSNormalization,BatchNormalization,Gelu,LeakyReluand their variants.Ported the rotary embedding and attention optimization patterns to C++:
RotaryEmbedding,RotaryConcatPart, the causal mask and cos/sin cache function patterns,FunctionAttentionand the grouped-query attention patterns.Added
onnx_light.tools.translate, which converts an ONNX model or graph into Python code rebuilding it, either with the onnx-compactonnx.helperAPI or withGraphBuilder.
Fixes#
Removed the remaining unused lambda captures reported by Clang in the Python bindings and in the backend test cases.
Documentation & CI#
Standardized the python imports of the helper modules:
import onnx.helper as ohandimport onnx.numpy_helper as onh(and theironnx_light.onnxcounterparts) replace thefrom onnx import helper, numpy_helperform in the code base and the documentation.Made
setup.pyhonorCMAKE_BUILD_PARALLEL_LEVELexplicitly by forwarding it ascmake --build --parallel N, falling back to the number of available CPUs.Ported the upstream Python pattern tests, so the C++ patterns are checked against the same expectations as the original implementation.
Refreshed the quick tour, getting started, main page and README documentation to reflect the implemented features.
Documented the plans for session-owned CPU execution pools and for faster model loading, and closed the execution pool roadmap once every step was implemented.
Fixed a doxygen warning caused by the unexpanded
FIELD_BYTESmacro.Bumped the release version to
0.1.20.
[0.1.19] – 2026-08-18#
Improvements#
Kept
ReferenceEvaluatorNumPy inputs zero-copy across repeated runs, including non-contiguous inputs, while preserving their lifetime and allocator accounting.Improved element-wise steady-state performance with a persistent low-latency thread pool, physical-core-aware defaults, and calibration that matches the runtime thread count.
Optimized the
Abskernel for floating-point types with sign-bit masking and a lower, tunable parallel-execution threshold.
Documentation & CI#
Updated the
Absbenchmark to compare steady-state execution fairly across supported element types and omit incomparablebfloat16speed-ups.
[0.1.18] – 2026-08-18#
Improvements#
Kept backend benchmark models compatible with ONNX IR version 13.
Generated
BFLOAT16backend benchmark cases by default.Declared
ml_dtypes>=0.5.0as a package dependency.
Fixes#
Fixed release builds against older NumPy versions that do not expose
PyDataType_KIND.
Documentation & CI#
Bumped the release version to
0.1.18.Added a design page for buffer-reuse arenas and marked the I/O arena plan complete.
Reorganized the design documentation and runtime examples.
[0.1.17] – 2026-08-17#
New Features#
Added a pattern-based
GraphBuilderoptimizer: aGraphGraphread-only index, aPatternOptimizationengine that matches and rewrites subgraphs (recursively, including nested subgraphs), a pattern registry and dispatch table, a dedicated patterns library, and canonicalization patterns for redundantCast, binaryCast, andCast-op-Cast.Added a kernel auto-tuning framework: a
KernelTuningregistry and persistent tuning cache with atomic updates, shared unary/binary calibration, portable GEMM tuning, and per-session integration through the runtime session and kernel context, tuning logical and math kernels.Added constant folding to
GraphBuilder, backed by the read-onlyGraphGraphindex and build-time constant-information analysis.Added a
RunModelC++ helper for whole-model execution withTensorI/O and exposed it in Python.Exposed a public tensor comparison helper with
atol/rtol.Added persistent execution and I/O buffer-reuse arenas with independent retention controls, output leases that safely outlive a runtime context, and Python runtime integration.
Improvements#
Routed every built-in kernel output by output slot directly to its final arena and every workspace to the execution arena, eliminating the final execution-to-I/O copy on the normal runtime path, including for mixed-output nodes.
Improved runtime performance and expanded the Python NumPy kernel bindings.
Added a CPU descriptor exposing processor topology for processor-aware kernel thresholds.
Made the opaque type unconditional (propagated from onnx/onnx#8269).
Corrected optional input/output presence in
InferenceContextImpl(propagated from onnx/onnx#8271).Made
ScopedResourceuse aTraitstype to avoid a pointer non-type template parameter (propagated from onnx/onnx#8279).
Fixes#
Fixed a local build failure in
setup.py.Fixed a
cpp-testsinstall failure by disabling GMock in the fetched googletest.
Documentation & CI#
Bumped the release version to
0.1.17.Added next-steps design pages for profiling and async execution, parallel model initialization with prepacking, prepared execution, a buffer-reuse arena allocator, processor-aware kernel thresholds, and wheel packaging.
Documented the kernel tuning workflow and graph pattern integration.
Added a benchmark for cold kernel tuning resolution and characterized allocator-backed output lifetime.
Updated the formatting and typing tools.
Switched C++ backend tests to
RandnTensorinstead ofTensor::FromX+Randn.Improved schema-comparison coverage.
Removed the numpy
run_modelbenchmark from theplot_abs_benchmarkexample and asserted onnx-light is slower than ONNX Runtime at the smallest size.
[0.1.16] – 2026-08-10#
Improvements#
Stopped zero-initialising result buffers on allocation, zeroing explicitly only where kernels rely on it.
Reduced the binary size of
lib_onnx_protofurther across several passes.Exported
ParseLimitExceededin the proto public API.Fixed
get_cpp_build_infofor editable installs and static builds.
Documentation & CI#
Bumped the release version to
0.1.16.Added a next-steps design page for a C++ pattern-based
GraphBuilderoptimizer.Added last-updated dates to the gallery examples and split
plot_onnx_timeinto three separate figures.Added backend run-model tests for previously untested logical kernels.
Improved test coverage for
run_nodes.cc,simple_tensor.cc,node_helpers, andonnx_light_helpers.cc.Added a test verifying the serialized
raw_datasize matches the buffer size forQuantizedTensorProto.Enabled build caching in CI.
[0.1.15] – 2026-08-08#
New Features#
Added support for registering custom kernels globally or per session.
Gave every kernel a unique device- and library-qualified name, exposed through the session and Python.
Improvements#
Made dispatch-table overrides order-independent.
Spawned the load/save thread-pool workers lazily to fix slow small-model initialization.
Reduced the stripped
lib_onnx_protosize by hiding internal symbols and explicitly exporting its public cross-library ABI.
Documentation & CI#
Bumped the release version to
0.1.15.Annotated
onnx.hwith the canonical ONNX proto definitions.Added a gallery example benchmarking model initialization (ONNX Runtime vs onnx-light).
Added a
register_custom_kernelexample in both C++ and Python.Added quantization and next-steps documentation.
[0.1.14] – 2026-08-07#
New Features#
Added a
NodeProtocallback hook toParseOptionsandSerializeOptionsso callers can inspect or rewrite each node while a model is being parsed or serialized.
Improvements#
Propagated reverse and bidirectional
RNN/GRU/LSTMsupport (propagated from onnx/onnx#7935).Improved ONNX Runtime compatibility: added ordering operators and an implicit conversion to
const std::string&toOptionalString, madeadd_string_dataaccept anOptionalString, switchedAttributeProto.stringstoFIELD_REPEATED_STR, and stopped creating an empty shape inTypeProto::FromStringfor tensor types without a shape.Modernized the
ParseDataraw_datahandling (propagated from onnx/onnx#8109).Made
FileLoadMode.AUTOuse a buffered stream instead of memory mapping.Honored
file_load_mode="MMAP"when loading models with external data.Loaded deeply nested control-flow models by raising the default proto recursion limit.
Accepted the packed wire format for repeated integer proto fields.
Added an opt-in bypass for the external
TensorProtolocation error in the checker.Reduced the binary size of
onnx_protovia section garbage collection / dead-code elimination.
Fixes#
Fixed single-file mmap
no_copyzero-copy parsing.Added proto2-style presence tracking for
FIELD_BYTES.Fixed the
Attentionmode-3 fully-maskedNaNoutput.Stopped reading an optional message sub-field from auto-creating it.
Fixed a
ParseFromFileRuntimeErrorwhenfile_load_modeis set together with anexternal_data_file.Returned the real parse result from
TraditionalMLData::ParseFromArray.Refined the cyclic model-local function error message (propagated from onnx/onnx#8233).
Fixed compilation when OpenSSL is built without ChaCha20-Poly1305.
Fixed the
ScatterNDupdatesshape documentation (propagated from onnx/onnx#8212).
Security#
Added overflow-checked
int64arithmetic in shape inference (propagated from onnx/onnx#8031).Bounded external-data padding on serialization (propagated from onnx/onnx#8260).
Testing#
Made the upstream node backend-test consumers work when
onnxbuilds node test data on the fly (TestCase.model/TestCase.data_setsin memory withmodel_dirset toNone) instead of materialising it on disk underonnx/backend/test/data/node(propagated from onnx/onnx#7959). Both theschema_comparisonbackend-test counter and theImageDecodercase generator now prefer the in-memory model and fall back to the on-disk layout.Added a
TreeEnsembleLeafLikebackend test case (UINT8nodes_modesviaint32_data).Fixed the skipped external-data tests and a latent
Normalizerbenchmark count bug.Fixed unit tests failing due to the latest
onnx-weekly.Investigated and documented the known-missing ONNX backend tests.
Documentation & CI#
Added a benchmark tool measuring single-model load times across
onnx,onnxruntime, andonnx_light.Extended
plot_onnx_time.py: produced three graphs (all / Python / C++), used a single argument parser, added aReferenceEvaluatorload benchmark, and fixed the--modeloption for custom models and external weights.Added a descriptive-statistics-over-ND-initializers example and persisted the ONNX graphs built by gallery examples to disk.
Added a
--run-cpp-testsoption tosetup.pyto build and run the C++ tests, and ran the C++ tests in the Windows x86 CI job.Enabled the
modernize-concat-nested-namespacescheck (propagated from onnx/onnx#8150) and the clang-tidy math-parentheses and consistent-parameter-name checks (propagated from onnx/onnx#8259).Bumped the release version to
0.1.14.
[0.1.12] – 2026-08-05#
New Features#
Added
__setitem__(index assignment) to theRepeatedProtoFieldPython bindings, somodel.graph.node[i] = nodeworks; negative indices and bounds checks match__getitem__, and the assigned element is stored as a copy.
Improvements#
Added an opt-in
allow_external_output_allocatorsoption toRuntimeSession(C++RuntimeSessionOptionsand the Python constructors, with a matching read-only accessor/property) that relaxes the per-node output-allocator verification so kernels may legitimately return outputs allocated outside the session’s common allocator; the strict check remains the default.Added a
str_<name>()accessor to theFIELD_STRproto macro that returns the stored string as aconst std::string&(or a shared empty string when unset), avoiding theOptionalStringwrapper.Moved
SerializeOptions,ParseOptions, and their supporting types (TensorBufferOptions,FileLoadMode,SerializeFormat) out ofonnx_proto/stream_class.hinto a dedicatedonnx_proto/serialize_options.hheader.
Testing#
Asserted that untagged backend test cases carry no in-place-reuse,
shape_tag, or release metadata, checking every case strictly by tag.
Documentation & CI#
Split the
plot_onnx_timebenchmark chart into dedicated Python-API and C++-API graphs alongside the existing combined chart.Raised the Windows CI build timeout to 60 minutes.
Bumped the release version to
0.1.12.
[0.1.11] – 2026-08-03#
New Features#
Added recursive
RemoveUnusedNodes,RemoveIdentityNodes, andRemoveDuplicateInitializerspasses toGraphBuilder.Added recursive duplicate-node removal (common subexpression elimination) to
GraphBuilder.Added local-function inlining to
GraphBuilder.
Improvements#
Added an opt-in
stealparameter to thetensor_to_numpyruntime binding: when set and the tensor owns its bytes inline (not allocator-backed and not a borrowed view), the buffer’s ownership is transferred to NumPy through a DLPack-style capsule instead of borrowing it, so the source tensor can be released while the array lives on.ReferenceEvaluatoruses it when converting terminal graph outputs.Made
RuntimeSession::Rundetach borrowed graph outputs from the model: when a declared graph output is a borrowed view into the model (e.g. aConstantreading its value’sraw_dataor an initializer passed straight through), the session materializes it into an owned tensor before returning (newTensor::ToOwned()/Tensor::is_borrowed()). The output then owns its bytes and stays valid after the model is released. ExposedTensor.has_borrowed_data()to Python.Made
ReferenceEvaluatorimport standard-dtype runtimeTensoroutputs into NumPy through the DLPack exchange protocol (Tensor.__dlpack__/numpy.from_dlpack), keeping the zero-copy conversion while relying on the standard protocol; bfloat16/float8 and sub-byte/STRING tensors keep their existing fallbacks.Made the C++
RunNode/RuntimeSessiondispatch device-aware: aRuntimeContextpinned to a non-CPU device now resolves the device-qualified kernel and fails with a diagnostic naming the device when none is registered, instead of silently dispatching to the CPU kernel.Routed
Tensor::elem_num()andTensor::size_from_dim()through the newsafe_dim_producthelper so tensor dimension overflow and negative dimensions raisetensor_error(propagated from onnx/onnx#8220).Turned the
TensorProtodimsintoint64_t.Made
OptionalString::value()return aconst std::string&.Improved compatibility with ONNX Runtime.
Preserved unshaped
Scaninputs in theScan8 → 9 version-converter adapter.Validated
int32_datapayload sizes inVerifyTensor(propagated from onnx/onnx#8211).Preserved signed zero for zero-point-less
FLOAT4E2M1QuantizeLinear.Removed the remaining C++ compiler warnings under
-Wall/ONNX_HARDENING.
Testing#
Fixed the
-Wmissing-field-initializerswarning in the backend-testIoDatainitializers.
Documentation & CI#
Bumped the release version to
0.1.11.Fixed the macOS C++ release build by raising the deployment target to 13.3.
Dropped the Python 3.10 wheels and fixed the Windows release wheel repair.
Enabled ASan container-overflow detection in CI (propagated from onnx/onnx#8213).
Hardened the ASan CI options with
alloc_dealloc_mismatch=1andabort_on_error=1(propagated from onnx/onnx#7471).Disabled precompiled headers when an sccache/ccache launcher is active.
Fixed the C++ documentation namespace (
onnx::→onnx_light::).Refreshed the custom-kernel how-to for the current
ReferenceEvaluatorruntime APIs.Documented the core/extension registration design for shape, peak-memory, kernels, backend tests, and
LightOpSchema.
[0.1.10] – 2026-07-30#
New Features#
Added
ReferenceEvaluator.unregister_custom_kernelto restore a built-in kernel after a custom one has been registered.
Improvements#
Extended
ParallelForto the unary elementwise kernels and parallelized theAbskernel execution.Reused
RuntimeSessioninstances and made theMatMulkernel more cache-friendly after profilingRuntimeSessionontiny_llm.Fixed the O(N²)
GraphBuilderconstruction from aModelProto.Simplified
run_nodesand removed the unusedCallModelLocalFunctionhelper.Improved the Python bindings and the
collect_test_casebackend-test collection helpers.Removed the TIFF/WebP/JPEG2000
ImageDecodersupport and theONNX_LIGHT_BUILD_IMAGE_CODECSflag.
Testing#
Added the missing
Softmaxbackend test cases to match the ONNX node tests.Fixed the runtime coverage report to honor tolerances and flag missing reference outputs.
Documentation & CI#
Documented how to run and verify
clang-formatin the Copilot guidelines.Fixed the release wheel build by dropping the unsupported
cp313tcibuildwheel selector.Bumped the release version to
0.1.10.
[0.1.9] – 2026-07-29#
New Features#
Introduced a
RuntimeSessionthat separates one-time kernel initialization from execution, and extendedComputeContextto orchestrate graph analyses and build theExecutionPlan.Added an incremental
GraphBuilderinonnx_core/builderwith Python bindings, aModelProto-to-GraphBuilderimport path (with local-function/subgraph round-trip support), and an opt-incheck_shapesflag onRuntimeSessionto validate concrete against symbolic shapes.
Improvements#
Routed kernel intermediate and output buffers through the
RuntimeContextallocator instead of temporarystd::vectors (Attention,FlexAttention,Gather,GatherND,Range,Resize,Momentum,RegexFullMatch,RNN,LinearClassifier,SVMClassifier, and a direct-to-outputGemm).Migrated many kernels to the fixed-capacity
Shapetype for rank-sized working arrays instead ofstd::vector<int64_t>(conv/pool,Reduce*,Squeeze/Unsqueeze,Where,Pad,Slice,Compress,Expand,CenterCropPad,DequantizeLinear,QLinearConv,QLinearMatMul, and theRowMajorStrides/ResolveAxeshelpers).Cached the
Einsumcontraction plan, builtTreeEnsemble*structures in the kernel constructors, and reused per-row/per-sample scratch inTfIdfVectorizerandTreeEnsembleClassifier.Migrated repeated proto-message fields from
std::vector<T>toRepeatedProtoField<T>acrossNodeProto, theGraphBuilderinputs/outputs/initializers/attributes, and the shape-inference and schema APIs (includingTypeProto).Moved
DimSumandIsZeroDiminto theexpressionsmodule and renamed the_onnxpyoptimextension module to_onnxpycore.
Testing#
Added C++ and Python tests that run every backend model case through
RuntimeSession, plusGraphBuilderround-trip coverage over all backend test cases.
Documentation & CI#
Refreshed the design-page links and shape-inference docs to match the current library layout, showed all top-level navigation links, renamed “Operators” to “Ops” on the documentation main page, and bumped the release version to
0.1.9.Enabled
sccacheon the Ubuntu CI jobs, bumped the GitHub Actions versions, and enabled ASan container-overflow detection.
[0.1.8] – 2026-07-22#
New Features#
Added a
RuntimeParametersclass to control graph execution parallelism.Introduced a first-class
ExecuteActiondescribing every memory-management and execution step of anExecutionPlan(allocate/delete buffer, lock/unlock, transfer, execute node, create/delete shape), each tied to the owning allocator and exposed through the Python bindings with a concisesummary()helper.Added peak-memory annotations to the shape-inference pipeline and a
WritePeakMemoryToMetadatastep to persist the estimate.Added a
Resizeopset 18 → 17 version-converter adapter.
Improvements#
Refactored
ExecutionPlanaround theExecuteActionlist: every constructor now takes aRawBufferAllocator*and builds its actions through a single virtual extension point, and the per-node release schedule is derived entirely from that list (dropping the redundantannotated_/topology-fallback state) withRunNodesrelease routed through the action replay.Reorganized the C++ tree: moved execution primitives and annotations into
onnx_core/compute, splitComputeContextintocompute_context.h/compute_context.cc, movedExecuteActionKindNameout of the header, and switched switch-based enum→string helpers toinline constexpr const char *.Improved SVG readability by rendering edge labels smaller, staggered to reduce collisions, and without a highlight halo.
Fixes#
Validated
int32_datasize for non-packed types in the checker (propagate onnx/onnx#8211).Fixed a
run_add_node_testcompile break by aligning the backend-test namespace andTestCaseAPI usage.
Testing#
Extended the big Qwen3 shape-inference case with expected intermediate shapes and embedded/verified golden in-place-reuse metadata.
Added a
cc_releasetest case covering a graph initializer innot_used_aftermetadata and per-operator benchmark coverage to the C++ backend test suite.
Documentation & CI#
Synced the Python API docs with the current public modules, renamed the example galleries (
core→proto,optimization→core), refreshed documentation, and bumped the release version to0.1.8.
[0.1.7] – 2026-07-21#
New Features#
Added a
RuntimeContextallocator framework (SimpleRawBufferAllocator, allocator-backed kernel outputs) and custom-opshape_tagregistration hooks.Added a symbolic gradient framework (reverse-mode
Conv/normalization gradients with backend-test verification) and a peak-memory dispatch registry.Extended the Python/serialization API (
SaveToFileDescriptor,SerializeToOstream) and addedcp313/cp314wheels.
Improvements#
Reorganized the C++ tree around a new intermediate
lib_onnx_coreand anonnx_extensionslayout (onnx_backend_test/onnx_kernels/onnx_gradientmoves,onnx_optim→onnx_shapesrename,ExecutionPlansplit).Migrated kernels to the dedicated
Shapetype and routed their output allocation through theRuntimeContextallocator, preserving ownership and reusing shared empty-tensor fallbacks.Reduced string copies and allocations across parsing/graph paths (
RepeatedProtoField, moreconstexprhelpers, removedmemcpy/type-punning hotspots) and extended shape-tag metadata coverage.
Fixes#
Corrected in-place reuse and shape-tag propagation across many operators and preserved
doc_stringin the IR converter.Propagated upstream ONNX fixes (shape inference, locale-independent text parser/printer,
TopKsorted=0) and hardened version conversion for malformedScan/default-domain imports.Fixed expression-simplification, SVG rendering edge cases, and spelling across the codebase.
Security#
Fixed a
size_tunderflow inScanshape inference (GHSA-qrhj-v62m-vmpf) and hardened zero-copy ORT parsing and tar-extraction path validation.Prevented command injection/insecure I/O (
graphvizargs, temp files) and GitHub Actions code injection in workflows.Addressed external-data advisories, raised the ONNX minimum to 1.21.0, and added defense-in-depth checks (GHSA-3jf9-582g-jjmq, GHSA-xrch-8vh7-h656, GHSA-p893-rvq9-2xf9, GHSA-hqmj-h5c6-369m, GHSA-8qff-7g33-75mx).
Testing#
Extended C++/Python backend and shape-inference coverage (gradient verification, pooling, local functions, metadata/value-tag enforcement,
OpSchemaattribute parity).Delayed backend-test
ModelProtoconstruction viaTestCase::emplace_model()and forwardedTestModethrough the Python facade.
Documentation & CI#
Added the changelog and string-types documentation, bumped the release version to
0.1.7across canonical metadata.Sped up CI (
sccacheforclang-tidy, trimmed Windows jobs, parallel preflights, C++-build skips in style/typing jobs).
[0.1.4] – 2026-07-07#
Fixes#
Security#
Validate
raw_dataalignment inParseDatato prevent out-of-bounds copy (propagate ONNX #8032) (#3225)
[0.1.3] – 2026-07-06#
New Features#
Added serialization safety and diagnostics:
SerializeOptions.max_serialized_size_bytescap, node indexes inpretty_onnx, verbosefillshapeoutput/progress.Extended
fillshape/CLI tooling:--tokenbinding,--release-info,runsubcommand,--verbose [LEVEL],python -m onnx_light fillshape.Added shape/dimension utilities:
dim_ranges_from_expressions,make_random_input, C++/nanobind shape/axes/weight metadata tagging with tag-aware Mermaid/SVG rendering.Added
ai.rtDelayedInitializerschema/kernel/shape-inference, a pre-serialization weight rewrite callback, and ChaCha20-Poly1305 encrypted model I/O.Added parsing/graph-rendering features:
ParseFromIstream, parse callback support,include_inplace/include_releaserendering options, in-place reuse metadata recording, and a graph-input overwrite guard.
Improvements#
Updated onnxruntime integration and mirrored an upstream nanobind cross-compile CMake fix (onnx/onnx#8157).
Improved shape inference: Python
//floor-division semantics, symbolicReshape/Sliceexpressions, empty-axis broadcasting, half-precisionRMSNormalization.Propagated and reused shape-tag metadata through
Reshapeandfillshapewriting paths.Reorganized in-place reuse and value-tag helpers into
onnx_shapes.annotations.Miscellaneous: improved
to_svglayout,RepeatedFielditerable support,ByteSpan/TensorProtodeleter implementation, tiny external-tensor inlining moved intoParseOptions.
[0.1.1] – 2026-06-22#
New Features#
Added a pure-Python textproto parser/serializer and
format="textproto"support inload/save.Extended shape-expression support: exact-division operator (
/:),compare_expressions.Extended proto API surface:
WhichOneof, keyword-argument constructors,RepeatedProtoField.add()kwargs,String.decode().Added sub-byte dtype support (
int2/uint2/int4/uint4/float4) inmake_tensorand exposedOpSchema.Attribute.default_value.Added
PrintOptionsindentation/inline_threshold, GitHub Releases wheel publishing, and offset-awareAttentionis_causalmasking for external KV cache.
Improvements#
Brought
infer_shapesto parity with onnx (check_type,strict_mode,data_prop) and validatedConvTransposegroup divisibility.Registered repeated-field containers as
collections.abc.Sequencewith list/Stringcomparison support.Guessed in-place input reuse from
onnx_shapesshape inference and reduced Windows/macOS wheel size.Bumped mirrored ONNX to 1.23.0, enabled the ONNX backend optional-sequence loop case, and extended
Wherebackend coverage across dtypes.Replaced ad-hoc exception throws with
EXT_ENFORCE_INVALID/EXT_THROW_INVALID, fixed serialization/IOBinding gaps (TensorProto.segment, sub-byteCast, low-precision ORT backend tests), and passed non-null pointer params by reference (onnx#8105).
Testing#
Added unit tests for proto/numpy helpers, print helpers, and field-serialization helpers.
Added unit tests for sparse/sequence/optional helpers and
RunLoopWithSequenceState.Added unit tests for
get_total_memory_gb,get_cpu_topology,_schema_to_rst, andhide_stdout.Added C++ serialization tests and shape-inference examples (
MatMulwith an initializer weight, sequentialTopK).Added manual CI jobs validating onnx-light against ir-py, mbext, and yobx.
[0.1.0] – 2026-06-18#
Initial public release.