Skip to content

v2.0.8

Choose a tag to compare

@alex-spacemit alex-spacemit released this 28 Oct 09:44

Features

  • Added the LSTM execution provider, covering LSTM and DynamicQuantizeLSTM. Quantized LSTM models now run on the accelerator instead of falling back, and ordinary LSTM accepts both fp32 and fp16 inputs and outputs.
  • Added RotaryEmbedding support for models that feed explicit position ids alongside the query and key tensors.
  • Added the whole-model performance and accuracy suites for K1 and K3 to CI, with per-case HTML and JUnit reporting.
  • Release packages on OHOS no longer bundle the internal SpeRT headers.

Fixes

  • Fixed SimplifiedLayerNormalization and SkipSimplifiedLayerNormalization being rejected by the accelerator. Models built on either operator previously ran every normalization layer on the CPU; those layers are now claimed by the device, which removes a full-device round trip per layer.
  • Fixed dilated depthwise convolution being computed with the wrong taps. Dilated depthwise convolution previously ran on a fast path that ignored the dilation factor, so the convolution pattern used by DeepLab-style segmentation heads produced incorrect results. These nodes now take the general convolution path and are numerically correct. Segmentation models with dilated depthwise stages run slower than in 2.0.7 as a direct consequence of this fix.
  • Fixed channel concatenation producing wrong output for N=1 NCHW tensors. A buffer-aliasing shortcut was applied when only the batch dimension was 1, which is not sufficient for the input to be laid out as a contiguous prefix of the output.
  • Fixed Transpose returning incorrect results on layouts that required a general permutation.
  • Fixed dynamic quantization legalization skipping subgraphs that contain only float operators, which caused encoder output regression on dynq models.
  • Fixed a crash when the execution provider library failed to load; the failure is now reported as an error instead of a null pointer dereference.
  • Fixed the EP not being safe to load with dlopen on OHOS.
  • Fixed rotary embedding binding its inputs by position rather than by data type.

Performance

  • Improved GEMM by reusing packed weights for the left-hand operand across the inner dimension, removing repeated packing for shapes that revisit the same tile.
  • Limited the intra-op thread count to the number of compute cores available, avoiding oversubscription on parts with fewer cores than the requested thread count.
  • Reached 6.4 ms for emotion_lstm_dynq at 8 threads on K3, a 20.8x improvement over 2.0.7, following the LSTM and normalization improvements.
  • Bumped spine-kernel to pick up the scalar-padding packing refactor.

Known limitations

  • Einsum is claimed only for 1-D outer products. Models using general multi-dimensional contractions, including action_stgcn, yolov8s_worldv2 and yoloe_v8s_seg, are not accelerated and run on the CPU.