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 exl3 profile. 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-v1 checkpoint 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 for GatherND and ScatterND, and DequantizePacked with native decoding for 27 GGUF profiles. Packed tensor decoding does not add native .gguf container 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 PipelineProto generation and opt-in GenerationState pause/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 PrepareGenerationModel preparation 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-inputs overrides for constant-input limits in layer and mincut partitioning (#5885).

Improvements#

  • Added IfIdenticalBranchesPattern to 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 RepeatedLayer capture limits and exposed resource exhaustion rather than silently treating bounded searches as exhaustive (#5946).

Bug Fixes#

  • RepeatedLayer keeps constant weight-preparation chains (Cast, CastLike, Concat, Flatten, Identity, Reshape, Squeeze, Transpose, Unsqueeze on 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_models and GraphBuilder::DiffRewritings now 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_chars in bitsandbytes parsing, fixed ReduceMean nodiscard warnings 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#

  • RepeatedLayer caches value and node comparisons, encodes region topology and boundaries with integer value identifiers, and no longer repeats its whole-graph search in Apply. 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_models producer-name default (#5894, #5877, #5871).

  • Shipped NOTICE in Python and native packages alongside the new packed-weight decoder (#5941).

  • Updated Ruff from 0.17.3 to 0.17.4, pyrefly from 1.4.0 to 1.4.1, and clang-format from 23.1.3 to 23.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_e4m3 contracts remain unchanged; these codecs do not add accelerated matrix multiplication (#5800, #5803).

  • Added the explicit mxfp6_e2m3 profile with compressed-tensors-compatible E2M3 codes, group-32 E8M0 scales and packed-weight import/export, while preserving legacy mxfp6 and fp6_llm E3M2 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_0 and TQ2_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 .gguf container 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::DiffRewritings and Python diff_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 use Remove names without compatibility aliases (#5857).

  • Added prefill_only_inputs to 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 GeluPattern to recognize validated exact Erf-based decompositions and emit standard-domain Gelu(approximate="none") at opset 20+, preserving the existing tanh rewrite and rejecting numerically unsafe or shared intermediate layouts (#5809).

  • Added PadPoolPattern to 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_axes attributes 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.0 to 2.4.1 and prefix-dev/setup-pixi from 0.11.2 to 0.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_len to 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 PeakMemoryEstimate results with mandatory worst_case and optional justified average_case bounds, propagated through dispatch, memory profiles, metadata and Python bindings. Unknown workspace remains explicitly unresolved rather than zero. Native consumers must rebuild; Python callers now access estimate.worst_case.value() and the optional estimate.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 layers with onnx-light partition layer and added partition mincut for 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 REPLACEMENT arguments accepting inline ONNX function texts, with builder-local registration and optional --function-pattern-as-function replacements alongside default or explicitly selected patterns (#5755).

  • Added optimize --report PATH to 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 FdReadStream payload 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.cache and 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 FunctionPattern across 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.h to include the exported onnx_proto/onnx.h, restoring standalone C++ consumer builds (#5738).

Documentation & CI#

  • Added C++ QLinearMatMul backend 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.2 to 4.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 optimize with 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 layers extraction 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 NonMaxSuppression optional 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#

  • Added external-data fuzzing for overlapping writes and save/load round trips, and ported upstream schema-registry checks (#5710, #5708).

  • Displayed the package version on the documentation homepage (#5705).

  • Bumped the release version to 0.2.3.

[0.2.2] – Unreleased#

New Features#

  • Added C++ and Python FunctionPattern rewrites 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 FunctionPattern local-function replacements through as_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 OperatorRegistry schema histories and shape-inference callbacks through GraphBuilder(..., 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 FunctionPattern anchors (anchor=-1 retains the last-node default) and a focused matching-phase benchmark (#5684).

  • Deferred GraphBuilder numerical 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, and MatMulScaleFusion to 2, 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 GemmTransposePattern to absorb one or both rank-two input Transposes into the corresponding Gemm flags for dynamic or constant inputs, preserving scaling, bias, legacy broadcast, 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.0 across 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 GroupedMatMul schemas, 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 GroupedMatMulPattern to fuse batched, unrolled, and fixed-trip Loop expert-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, and released_bytes in 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_bytes budget, 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 native ParseOptions.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-onnx and .pipeline as binary PipelineProto extensions in onnx.load and supported pipeline objects in onnx.save (#5566).

Improvements#

  • Removed the per-pattern SupportsLocalFunctions and supports_local_functions hooks. Function calls resolve through model or GraphBuilder definitions, without changing the Match/Apply interfaces (#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; pass include_opt_in=True to 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::thread workers (#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 LayerNormalization and RMSNormalization with FP16 I/O, FP32 accumulation, constant unit scale, and absent bias, preserving intermediate rounding, signed zero, saved statistics, and shared promotions (#5652).

  • Made MeanVarianceNormalization schema 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 ReduceMean when 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::Compute now 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 Slice dimensions before clamp-bound arithmetic and rejected unsupported characters or repeated ellipses in Einsum input equations (#5598, #5600).

  • Preserved shared scales during Upsample opset-9-to-8 conversion and rejected overridable initializer defaults rather than freezing them into attributes (#5604).

  • Fixed standalone TensorProto.SerializeToFile dispatch 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 STFT signals 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 BitCast width and bit-preservation regressions, and negative-end Shape coverage (#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 ReduceMean overflow 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 WhereInPlaceTyped and sequence-state Loop reachability 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_tensor and save_tensor for standalone TensorProto files such as ONNX backend input_0.pb and output_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_onnx export 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 GraphBuilder dependency 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 GreaterOrEqual and LessOrEqual backend-test names with a _2d suffix, 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 GatherND index dimensions and negative batch_dims, including unknown-shape fallbacks, with bounds checks before potentially overflowing additions (#5488).

  • Checked SplitToSequence split-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 Unsqueeze output-rank semantics; dim_idx=-1 now appends a trailing dimension (#5494).

  • Avoided null-pointer memcpy calls 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 SplitToSequence splits into explicit lengths, including a final remainder, when rewriting to Split, and ignored keepdims when a split input is present (#5300).

  • Preserved symbolic dimensions for open-ended Slice inference by treating INT64_MAX ends 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_callback and ParseOptions::function_callback changes the C++ layout of ParseOptions. 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-ort project (#5499).

  • Bumped the release version to 0.2.0.

[0.1.32] – 2026-10-15#

New Features#

  • Added PipelineProto support 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 Cast runtime 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#

  • Added authenticated AES-256-GCM encrypted model saving and automatic format detection when loading (#5211).

  • Exposed kernel-usage information on Python runtime sessions and ReferenceEvaluator (#5197).

Improvements#

  • Parallelized DFT, STFT, global pooling, independent ReduceSum and ReduceMean output 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 GraphBuilder metadata consistent after mutations while refreshing only affected values and consumers (#5162, #5242).

  • Made the C++ ShapesContext API 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 Squeeze with 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 ArrayFeatureExtractor and supported string decision-path outputs in the native evaluator (#5180, #5181).

  • Corrected FLOAT8E8M0 rounding for subnormal and float64 inputs and prevented FLOAT16 ReduceLogSumExp overflow (#5213, #5234).

  • Handled incompatible Resize configurations when converting from opset 12 to 13 and aligned the zero-input DynamicQuantizeLinear function with ONNX (#5239, #5237).

  • Supported string keys in numpy_helper.from_dict, converted booleans in repeated integer attributes, and preserved typed-empty optional values as None (#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#

  • Documented Python ABI compatibility, added weekly Dependabot updates, gated free-threaded builds on preflight success, and propagated compiler hardening options (#5152, #5178, #5215, #5221).

  • Bumped the release version to 0.1.31.

[0.1.30] – 2026-10-04#

Improvements#

  • Parallelized numeric Where over 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 Softmax and LogSoftmax over independent rows while preserving each row’s reduction order (#5124).

  • Supported downgrading Mul from opset 14 to 13 for compatible input types (#5106).

Fixes#

  • Supported INT64 inputs and outputs in the native ReduceSum kernel, 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 Resize coordinates for fractional-scale align_corners and singleton pytorch_half_pixel outputs (#5110, #5114).

  • Preserved input dtype for FLOAT16, BFLOAT16, and DOUBLE Det outputs (#5112).

  • Handled variadic Mean inputs whose broadcast shape expands after the first two inputs (#5116).

Documentation & CI#

  • Made the Python stable ABI optional through ONNX_LIGHT_PYTHON_STABLE_ABI, retaining it as the default (#5128).

  • Added a gallery benchmark comparing GraphBuilder with onnxscript (#5119).

  • Bumped the release version to 0.1.30.

[0.1.29] – 2026-10-02#

New Features#

  • Added MixedReferenceEvaluator, which uses NumPy for Gemm, MatMul, Conv, and Attention and native kernels for other operators (#5082).

  • Added string-valued OneHot outputs (#5076).

Improvements#

  • Parallelized native MatMul across output ranges (#5083).

  • Parallelized non-identity Transpose over contiguous copy blocks while retaining a single-copy path for identity permutations (#5093).

  • Parallelized supported Cast conversions with type-specific runtime tuning, while keeping packed-output writes serial to avoid byte-level races (#5097).

  • Folded initializer-backed Transpose and Unsqueeze–Cast chains 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 Slice operations (#5086).

  • Fixed native sklearn classifier execution for string Reshape, binary TreeEnsembleClassifier margins, and SVMClassifier probability calibration (#5088).

  • Aligned ReduceLogSumExp behavior 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.rt Quantize/Dequantize graph kernels, and shared model-level quantization parameters (#5025, #5027, #5031).

  • Added zero-copy TensorProto DLPack 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, PagedCacheProto serialization, graph cache initializers, and persistent state integration (#5024).

  • Added ai.rt::QuantizePagedCache to 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#

  • Prepacked immutable Gemm weights per runtime session and added ownership-transferring initializer insertion to GraphBuilder (#5009, #5012).

  • Made graph-pattern selection device-aware and compared proto fields directly rather than comparing serialized representations (#5026, #5033).

Fixes#

  • Fixed Identity and ShapeBasedIdentity optimization of constants and dynamic Slice bounds, and honored optional output arity in GraphBuilder (#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 GridSample mode defaults and opset-10-to-11 Resize conversion (#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 GraphProto values (#4988).

  • Propagated upstream shape-inference fixes for Split, SplitToSequence, LayerNormalization, and GatherND, 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.SerializeToFile tests with round-trip coverage for the supported SerializeToFileDescriptor and SerializeToOstream APIs (#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 / EncodedValueProto custom value representation (TypeProto.struct_type, GraphProto.encoded_initializer and ModelProto.struct_types on 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.h and integrated into VerifyModel/VerifyGraph.

  • Added ONNX FLOAT6E2M3 and FLOAT6E3M2 support across schemas, serialization, validation, runtime tensors, Cast, QuantizeLinear, and DequantizeLinear.

  • 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 BitCast schemas, shape inference and runtime kernels.

  • Synchronized the opset 28 schemas with ONNX weekly 1.24, including BF16 constraints and SpaceToDepth/DepthToSpace function bodies.

  • Aligned default CPU affinity with ONNX Runtime.

  • Extended QuantizeLinear and DequantizeLinear with FLOAT16 rounding, per-axis, and blocked-quantization support.

  • Closed native GraphBuilder compatibility gaps for local functions, shape and lifetime analyses, optimization replay, and native data-type handling.

  • Made setup.py build_ext --inplace reject 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 STFT shape 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 Pad kernel.

  • Added signed-integer support for BitShift in opset 28.

  • Extended the Optional operators 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_elements serial/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 GraphBuilder construction.

  • Corrected variadic output bounds for If, Loop, Scan, and SequenceMap so native GraphBuilder accepts multi-output control flow, including Scan inside local functions.

  • Added BF16 Einsum and Unique, floating-point floor remainder for Mod, and CRD mode for SpaceToDepth; corrected dilated AveragePool padding counts and explicit MaxUnpool output 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 Attention masks for low-precision inputs.

  • Avoided redefining toolchain-provided _FORTIFY_SOURCE settings in release wheel builds.

  • Fixed subprocess cleanup in the ONNX cold-start gallery example.

  • Prevented Einsum shape inference crashes for inputs with mismatched ellipsis ranks.

  • Added input validation to GroupNormalization shape inference.

  • Restricted opset 28 ReduceLogSum to floating-point types and added version conversion support.

  • Propagated upstream ONNX fixes for initializer handling, Resize, and tensor diagnostics.

  • Fixed signed INT64 raw-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 Gemm cases, 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 AffineGrid runtime dimensions and checked allocation sizes before constructing output tensors.

  • Rejected invalid TreeEnsemble topology before execution, with validation also integrated into shape inference, model verification, and native GraphBuilder.

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 Pad reflect-mode examples and expanded the STFT operator documentation.

  • Added C++ backend coverage for 3D GlobalMaxPool and stabilized the backend benchmark timing test on loaded CI runners.

  • Added high-arity C++ backend cases for five-input Max, Min, Mean, Sum, and Concat, three-input Einsum, and five-output Split, with end-to-end model coverage for Einsum and Split.

  • Regenerated the published x86-64 calibration profile and added regression checks for compatibility with the current tuning schemas.

  • Added TreeEnsemble SOFTMAX_ZERO backend 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/RunAsync handles, 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 ParallelFor profiling with run identity, CPU utilization, immutable C++ and Python reports, optional Linux hardware counters, and calibration diagnostics.

  • Added compact GraphBuilder authoring APIs.

  • Added an adaptive external-data I/O policy and an ORT-independent MappedPayload ownership 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 Attention opset 25 local windows and a lightweight Pow 15 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 OPTIONAL macro clash.

  • Rejected zero scalar SplitToSequence splits 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 ByOp page, including pattern rewrites and registered peak-memory functions.

  • Isolated and bounded benchmark gallery measurements.

  • Fixed macOS GoogleTest discovery by deferring it to PRE_TEST mode.

[0.1.20] – 2026-08-20#

Improvements#

  • Treated C++ compiler warnings as errors on GCC/Clang too (-Werror), controlled by the new ONNX_LIGHT_WERROR CMake 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 Tensor objects, and sequences mixing them with NumPy arrays, as ReferenceEvaluator inputs, 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, LeakyRelu and their variants.

  • Ported the rotary embedding and attention optimization patterns to C++: RotaryEmbedding, RotaryConcatPart, the causal mask and cos/sin cache function patterns, FunctionAttention and 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-compact onnx.helper API or with GraphBuilder.

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 oh and import onnx.numpy_helper as onh (and their onnx_light.onnx counterparts) replace the from onnx import helper, numpy_helper form in the code base and the documentation.

  • Made setup.py honor CMAKE_BUILD_PARALLEL_LEVEL explicitly by forwarding it as cmake --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_BYTES macro.

  • Bumped the release version to 0.1.20.

[0.1.19] – 2026-08-18#

Improvements#

  • Kept ReferenceEvaluator NumPy 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 Abs kernel for floating-point types with sign-bit masking and a lower, tunable parallel-execution threshold.

Documentation & CI#

  • Updated the Abs benchmark to compare steady-state execution fairly across supported element types and omit incomparable bfloat16 speed-ups.

[0.1.18] – 2026-08-18#

Improvements#

  • Kept backend benchmark models compatible with ONNX IR version 13.

  • Generated BFLOAT16 backend benchmark cases by default.

  • Declared ml_dtypes>=0.5.0 as 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 GraphBuilder optimizer: a GraphGraph read-only index, a PatternOptimization engine that matches and rewrites subgraphs (recursively, including nested subgraphs), a pattern registry and dispatch table, a dedicated patterns library, and canonicalization patterns for redundant Cast, binary Cast, and Cast-op-Cast.

  • Added a kernel auto-tuning framework: a KernelTuning registry 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-only GraphGraph index and build-time constant-information analysis.

  • Added a RunModel C++ helper for whole-model execution with Tensor I/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 ScopedResource use a Traits type 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-tests install 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 RandnTensor instead of Tensor::FromX + Randn.

  • Improved schema-comparison coverage.

  • Removed the numpy run_model benchmark from the plot_abs_benchmark example 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_proto further across several passes.

  • Exported ParseLimitExceeded in the proto public API.

  • Fixed get_cpp_build_info for 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 GraphBuilder optimizer.

  • Added last-updated dates to the gallery examples and split plot_onnx_time into 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, and onnx_light_helpers.cc.

  • Added a test verifying the serialized raw_data size matches the buffer size for QuantizedTensorProto.

  • 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_proto size by hiding internal symbols and explicitly exporting its public cross-library ABI.

Documentation & CI#

  • Bumped the release version to 0.1.15.

  • Annotated onnx.h with the canonical ONNX proto definitions.

  • Added a gallery example benchmarking model initialization (ONNX Runtime vs onnx-light).

  • Added a register_custom_kernel example in both C++ and Python.

  • Added quantization and next-steps documentation.

[0.1.14] – 2026-08-07#

New Features#

  • Added a NodeProto callback hook to ParseOptions and SerializeOptions so callers can inspect or rewrite each node while a model is being parsed or serialized.

Improvements#

  • Propagated reverse and bidirectional RNN/GRU/LSTM support (propagated from onnx/onnx#7935).

  • Improved ONNX Runtime compatibility: added ordering operators and an implicit conversion to const std::string& to OptionalString, made add_string_data accept an OptionalString, switched AttributeProto.strings to FIELD_REPEATED_STR, and stopped creating an empty shape in TypeProto::FromString for tensor types without a shape.

  • Modernized the ParseData raw_data handling (propagated from onnx/onnx#8109).

  • Made FileLoadMode.AUTO use 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 TensorProto location error in the checker.

  • Reduced the binary size of onnx_proto via section garbage collection / dead-code elimination.

Fixes#

  • Fixed single-file mmap no_copy zero-copy parsing.

  • Added proto2-style presence tracking for FIELD_BYTES.

  • Fixed the Attention mode-3 fully-masked NaN output.

  • Stopped reading an optional message sub-field from auto-creating it.

  • Fixed a ParseFromFile RuntimeError when file_load_mode is set together with an external_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 ScatterND updates shape documentation (propagated from onnx/onnx#8212).

Security#

  • Added overflow-checked int64 arithmetic 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 onnx builds node test data on the fly (TestCase.model / TestCase.data_sets in memory with model_dir set to None) instead of materialising it on disk under onnx/backend/test/data/node (propagated from onnx/onnx#7959). Both the schema_comparison backend-test counter and the ImageDecoder case generator now prefer the in-memory model and fall back to the on-disk layout.

  • Added a TreeEnsembleLeafLike backend test case (UINT8 nodes_modes via int32_data).

  • Fixed the skipped external-data tests and a latent Normalizer benchmark 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, and onnx_light.

  • Extended plot_onnx_time.py: produced three graphs (all / Python / C++), used a single argument parser, added a ReferenceEvaluator load benchmark, and fixed the --model option 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-tests option to setup.py to build and run the C++ tests, and ran the C++ tests in the Windows x86 CI job.

  • Enabled the modernize-concat-nested-namespaces check (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 the RepeatedProtoField Python bindings, so model.graph.node[i] = node works; negative indices and bounds checks match __getitem__, and the assigned element is stored as a copy.

Improvements#

  • Added an opt-in allow_external_output_allocators option to RuntimeSession (C++ RuntimeSessionOptions and 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 the FIELD_STR proto macro that returns the stored string as a const std::string& (or a shared empty string when unset), avoiding the OptionalString wrapper.

  • Moved SerializeOptions, ParseOptions, and their supporting types (TensorBufferOptions, FileLoadMode, SerializeFormat) out of onnx_proto/stream_class.h into a dedicated onnx_proto/serialize_options.h header.

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_time benchmark 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, and RemoveDuplicateInitializers passes to GraphBuilder.

  • Added recursive duplicate-node removal (common subexpression elimination) to GraphBuilder.

  • Added local-function inlining to GraphBuilder.

Improvements#

  • Added an opt-in steal parameter to the tensor_to_numpy runtime 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. ReferenceEvaluator uses it when converting terminal graph outputs.

  • Made RuntimeSession::Run detach borrowed graph outputs from the model: when a declared graph output is a borrowed view into the model (e.g. a Constant reading its value’s raw_data or an initializer passed straight through), the session materializes it into an owned tensor before returning (new Tensor::ToOwned() / Tensor::is_borrowed()). The output then owns its bytes and stays valid after the model is released. Exposed Tensor.has_borrowed_data() to Python.

  • Made ReferenceEvaluator import standard-dtype runtime Tensor outputs 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 / RuntimeSession dispatch device-aware: a RuntimeContext pinned 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() and Tensor::size_from_dim() through the new safe_dim_product helper so tensor dimension overflow and negative dimensions raise tensor_error (propagated from onnx/onnx#8220).

  • Turned the TensorProto dims into int64_t.

  • Made OptionalString::value() return a const std::string&.

  • Improved compatibility with ONNX Runtime.

  • Preserved unshaped Scan inputs in the Scan 8 → 9 version-converter adapter.

  • Validated int32_data payload sizes in VerifyTensor (propagated from onnx/onnx#8211).

  • Preserved signed zero for zero-point-less FLOAT4E2M1 QuantizeLinear.

  • Removed the remaining C++ compiler warnings under -Wall / ONNX_HARDENING.

Testing#

  • Fixed the -Wmissing-field-initializers warning in the backend-test IoData initializers.

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=1 and abort_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 ReferenceEvaluator runtime 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_kernel to restore a built-in kernel after a custom one has been registered.

Improvements#

  • Extended ParallelFor to the unary elementwise kernels and parallelized the Abs kernel execution.

  • Reused RuntimeSession instances and made the MatMul kernel more cache-friendly after profiling RuntimeSession on tiny_llm.

  • Fixed the O(N²) GraphBuilder construction from a ModelProto.

  • Simplified run_nodes and removed the unused CallModelLocalFunction helper.

  • Improved the Python bindings and the collect_test_case backend-test collection helpers.

  • Removed the TIFF/WebP/JPEG2000 ImageDecoder support and the ONNX_LIGHT_BUILD_IMAGE_CODECS flag.

Testing#

  • Added the missing Softmax backend 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-format in the Copilot guidelines.

  • Fixed the release wheel build by dropping the unsupported cp313t cibuildwheel selector.

  • Bumped the release version to 0.1.10.

[0.1.9] – 2026-07-29#

New Features#

  • Introduced a RuntimeSession that separates one-time kernel initialization from execution, and extended ComputeContext to orchestrate graph analyses and build the ExecutionPlan.

  • Added an incremental GraphBuilder in onnx_core/builder with Python bindings, a ModelProto-to-GraphBuilder import path (with local-function/subgraph round-trip support), and an opt-in check_shapes flag on RuntimeSession to validate concrete against symbolic shapes.

Improvements#

  • Routed kernel intermediate and output buffers through the RuntimeContext allocator instead of temporary std::vectors (Attention, FlexAttention, Gather, GatherND, Range, Resize, Momentum, RegexFullMatch, RNN, LinearClassifier, SVMClassifier, and a direct-to-output Gemm).

  • Migrated many kernels to the fixed-capacity Shape type for rank-sized working arrays instead of std::vector<int64_t> (conv/pool, Reduce*, Squeeze/Unsqueeze, Where, Pad, Slice, Compress, Expand, CenterCropPad, DequantizeLinear, QLinearConv, QLinearMatMul, and the RowMajorStrides/ResolveAxes helpers).

  • Cached the Einsum contraction plan, built TreeEnsemble* structures in the kernel constructors, and reused per-row/per-sample scratch in TfIdfVectorizer and TreeEnsembleClassifier.

  • Migrated repeated proto-message fields from std::vector<T> to RepeatedProtoField<T> across NodeProto, the GraphBuilder inputs/outputs/initializers/attributes, and the shape-inference and schema APIs (including TypeProto).

  • Moved DimSum and IsZeroDim into the expressions module and renamed the _onnxpyoptim extension module to _onnxpycore.

Testing#

  • Added C++ and Python tests that run every backend model case through RuntimeSession, plus GraphBuilder round-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 sccache on 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 RuntimeParameters class to control graph execution parallelism.

  • Introduced a first-class ExecuteAction describing every memory-management and execution step of an ExecutionPlan (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 concise summary() helper.

  • Added peak-memory annotations to the shape-inference pipeline and a WritePeakMemoryToMetadata step to persist the estimate.

  • Added a Resize opset 18 → 17 version-converter adapter.

Improvements#

  • Refactored ExecutionPlan around the ExecuteAction list: every constructor now takes a RawBufferAllocator* and builds its actions through a single virtual extension point, and the per-node release schedule is derived entirely from that list (dropping the redundant annotated_/topology-fallback state) with RunNodes release routed through the action replay.

  • Reorganized the C++ tree: moved execution primitives and annotations into onnx_core/compute, split ComputeContext into compute_context.h/compute_context.cc, moved ExecuteActionKindName out of the header, and switched switch-based enum→string helpers to inline constexpr const char *.

  • Improved SVG readability by rendering edge labels smaller, staggered to reduce collisions, and without a highlight halo.

Fixes#

  • Validated int32_data size for non-packed types in the checker (propagate onnx/onnx#8211).

  • Fixed a run_add_node_test compile break by aligning the backend-test namespace and TestCase API usage.

Testing#

  • Extended the big Qwen3 shape-inference case with expected intermediate shapes and embedded/verified golden in-place-reuse metadata.

  • Added a cc_release test case covering a graph initializer in not_used_after metadata 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 to 0.1.8.

[0.1.7] – 2026-07-21#

New Features#

  • Added a RuntimeContext allocator framework (SimpleRawBufferAllocator, allocator-backed kernel outputs) and custom-op shape_tag registration 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 added cp313/cp314 wheels.

Improvements#

  • Reorganized the C++ tree around a new intermediate lib_onnx_core and an onnx_extensions layout (onnx_backend_test/onnx_kernels/onnx_gradient moves, onnx_optim→onnx_shapes rename, ExecutionPlan split).

  • Migrated kernels to the dedicated Shape type and routed their output allocation through the RuntimeContext allocator, preserving ownership and reusing shared empty-tensor fallbacks.

  • Reduced string copies and allocations across parsing/graph paths (RepeatedProtoField, more constexpr helpers, removed memcpy/type-punning hotspots) and extended shape-tag metadata coverage.

Fixes#

  • Corrected in-place reuse and shape-tag propagation across many operators and preserved doc_string in the IR converter.

  • Propagated upstream ONNX fixes (shape inference, locale-independent text parser/printer, TopK sorted=0) and hardened version conversion for malformed Scan/default-domain imports.

  • Fixed expression-simplification, SVG rendering edge cases, and spelling across the codebase.

Security#

  • Fixed a size_t underflow in Scan shape inference (GHSA-qrhj-v62m-vmpf) and hardened zero-copy ORT parsing and tar-extraction path validation.

  • Prevented command injection/insecure I/O (graphviz args, 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, OpSchema attribute parity).

  • Delayed backend-test ModelProto construction via TestCase::emplace_model() and forwarded TestMode through the Python facade.

Documentation & CI#

  • Added the changelog and string-types documentation, bumped the release version to 0.1.7 across canonical metadata.

  • Sped up CI (sccache for clang-tidy, trimmed Windows jobs, parallel preflights, C++-build skips in style/typing jobs).

[0.1.4] – 2026-07-07#

Fixes#

  • Fix Win32 narrowing in backend-test DLPack shape conversion (#3223)

  • Suppress GCC 13 false-positive -Wfree-nonheap-object in ComputeScaleIndex (#3227)

Security#

  • Validate raw_data alignment in ParseData to 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_bytes cap, node indexes in pretty_onnx, verbose fillshape output/progress.

  • Extended fillshape/CLI tooling: --token binding, --release-info, run subcommand, --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.rt DelayedInitializer schema/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_release rendering 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, symbolic Reshape/Slice expressions, empty-axis broadcasting, half-precision RMSNormalization.

  • Propagated and reused shape-tag metadata through Reshape and fillshape writing paths.

  • Reorganized in-place reuse and value-tag helpers into onnx_shapes.annotations.

  • Miscellaneous: improved to_svg layout, RepeatedField iterable support, ByteSpan/TensorProto deleter implementation, tiny external-tensor inlining moved into ParseOptions.

[0.1.1] – 2026-06-22#

New Features#

  • Added a pure-Python textproto parser/serializer and format="textproto" support in load/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) in make_tensor and exposed OpSchema.Attribute.default_value.

  • Added PrintOptions indentation/inline_threshold, GitHub Releases wheel publishing, and offset-aware Attention is_causal masking for external KV cache.

Improvements#

  • Brought infer_shapes to parity with onnx (check_type, strict_mode, data_prop) and validated ConvTranspose group divisibility.

  • Registered repeated-field containers as collections.abc.Sequence with list/String comparison support.

  • Guessed in-place input reuse from onnx_shapes shape inference and reduced Windows/macOS wheel size.

  • Bumped mirrored ONNX to 1.23.0, enabled the ONNX backend optional-sequence loop case, and extended Where backend coverage across dtypes.

  • Replaced ad-hoc exception throws with EXT_ENFORCE_INVALID/EXT_THROW_INVALID, fixed serialization/IOBinding gaps (TensorProto.segment, sub-byte Cast, 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, and hide_stdout.

  • Added C++ serialization tests and shape-inference examples (MatMul with an initializer weight, sequential TopK).

  • Added manual CI jobs validating onnx-light against ir-py, mbext, and yobx.

[0.1.0] – 2026-06-18#

Initial public release.