Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dynamic shape #1306

Merged
merged 149 commits into from
Mar 7, 2025
Merged

Support dynamic shape #1306

merged 149 commits into from
Mar 7, 2025

Conversation

sunnycase
Copy link
Member

  • Add shape expression
  • Support dynamic dimensions in type inferencers
  • Add range inference
  • Add optimize rules using range info
  • Pass Qwen 2.5 compilation

Sorry, something went wrong.

sunnycase and others added 30 commits March 8, 2024 14:40

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
This reverts commit 2498b1b.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* update faq

* update Homepage

* update link

* update gif link

* update gif link

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* add egraph-extract-constrains
* reorder SwapBinaryArgs

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* update faq

* update Homepage

* update link

* update gif link

* update gif link

* update FAQ

* update FAQ

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* Fix macos-latest doesn't support python 3.7 issue.

* Set macos version to 12(13 uses Xcode 15).

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* Load multiple characters at once

* Apply code-format changes

* fix build

---------

Co-authored-by: curioyang <curioyang@users.noreply.github.com>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* close non-equal split

* fix typeinfer of conv2d

* fix fold binary

* do not swap binary args

* update setup.py

* do not pre-preprocess onnx with external data

* imgnore .mono in git

* restore SwapBinaryArgs

* fix onnx test runner

---------

Co-authored-by: sunnycase <sunnycase@live.cn>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* fix reduce sum opset condition

* Update Reduce.cs

* fix reduce operators consisting of reduce_sum. fix #1193

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* support LayerNorm channel first

* fix review : https://github.com/kendryte/nncase/pull/1204\#discussion_r1599285210

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* update set dotnet env

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* no module constrain for fusion eval

* fix external data larger than 2GB

* power of 2 to square

* change buffer size from int to  long

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* update docs link

* update demo link

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* fix bug

* add reduce sum test

* update test

* add tips for bug in homepage

* fix condition

* fix MSVC_VERSION 1930-1949 = VS 17.0 (v143 toolset) link:https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html

* Update compiler-build.yml

* fix build: downgrade windows-os version to 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* fix dtype compare

* add linux runtime build toolchain and config

* split rtos and linux toolchains

* upgrade rvv code to rvv intrinsic v1.0

* rename toolchain

* format rvv memcpy

* Revert "upgrade rvv code to rvv intrinsic v1.0"

This reverts commit 414f749.

* gcc14+musl-kernel

* recover rvv code

* support linux runtime, clock() not correct 20240718

* use thead gcc-10.4. fix ci about pip version conflict with python3.7

* remove redundant code

* Apply code-format changes

* fix pip version for python3.7

* add LINUX_RUNTIME flag for op profile

---------

Co-authored-by: curioyang <curioyang@users.noreply.github.com>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* Add extra compile option to be compatible with k230 linux sdk.

* Try to remove cp37 and set auditwheel==6.0.0.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* fix numpy non-contiguous.

* replace rapidjson

* Apply code-format changes

---------

Co-authored-by: huochenghai <huochenghai@canaan-creative.com>
Co-authored-by: curioyang <curioyang@users.noreply.github.com>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* Upgrade conan2 (#1242)

* upgrade conan2

* update ci

* add install lib

* close vulkan

* update kernel tests

* test exclude win

* test kernel tests

* fix rv runtime build

* fix cmake cmd

* fix conan install args

* test

* fix python packages dependence

* Apply code-format changes

* fix python build

* fix python build

* fix python build

* fix python build

* fix python build

* fix python build

* only test linux python build

* only test linux python build

* only test linux python build

* only test linux python build

* only test linux python build

* only test linux python build

* only test linux python build

* only test linux python build

* only test linux python build

* only test linux python build

* only test linux python build

* only test linux python build

* only test linux python build

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* Apply code-format changes

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* debug dotnet

* downgrade python lib

* debug dotnet

* all test

* all test

* all test

* all test

* fix python build whl

* fix remove file

* fix error

* fix error

* fix error

* fix error

* close mac python whl

* fix error

* fix intrinsic args

* disable ctest

* enable mac build python whl

* try fix python build

* Revert "try fix python build"

This reverts commit b934f15.

* try fix python build

* Revert "try fix python build"

This reverts commit 233bad4.

* try fix macos python build

* check build dir with wrong macos

* fix cmd

* debug

* ssh debug

* fix mac build error

* remove debug code

* start to debug windows ci

* upgrade windows version

* debug ssh

* fix win build

* debug

* fix error in windows python build wheel

* fix ninja dependence

* fix ninja dependence

* fix ninja dependence

* fix ninja dependence

* fix lib miss

* fix path error

* fix ninja

* fix ninja

* fix ninja

* disable linux mac

* recover conanfile path replace

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* python build ok

* debug test compiler

* debug

* debug

* debug

* recover

* debug

* debug

* Revert "debug"

This reverts commit b666dae.

* change windows version

* disable windows test-compiler

* Use gcc-14

* Add missing files

* Fix dependencies

* Fix dependencies

* Fix dependencies

* Fix dependencies

* Fix dependencies

* Disable F.InterpolationMode.BILINEAR

* Apply code-format changes

* Disable tflite conv2d_transpose

* Disable tflite expand_dims

* Disable more tflite

* Fix CI

* Fix python build

* Apply code-format changes

* Fix

* Fix

* Enable macos

* Fix

* Enable win

* Fix

---------

Co-authored-by: curioyang <curioyang@users.noreply.github.com>
Co-authored-by: yanghaoqi <yanghaoqi_intern@canaan-creative.com>
Co-authored-by: sunnycase <sunnycase@live.cn>
Co-authored-by: sunnycase <sunnycase@users.noreply.github.com>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* fix cmake path

* support 230 build

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
* fix sat extractor

* update egraph extractor

---------

Co-authored-by: sunnycase <sunnycase@live.cn>

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…o feature/qwen
zhen8838 and others added 24 commits March 3, 2025 16:55
@sunnycase sunnycase closed this Mar 7, 2025
@sunnycase sunnycase reopened this Mar 7, 2025
@sunnycase sunnycase requested a review from zhen8838 March 7, 2025 08:43
Copy link

github-actions bot commented Mar 7, 2025

Test Results

5 033 tests   - 80   5 033 ✅  - 80   1h 21m 50s ⏱️ + 5m 28s
    5 suites ± 0       0 💤 ± 0 
    5 files   ± 0       0 ❌ ± 0 

Results for commit d5ab4c7. ± Comparison against base commit 54f6f46.

@sunnycase sunnycase merged commit 66b57f9 into dev/3.0 Mar 7, 2025
22 checks passed
@sunnycase sunnycase deleted the feature/dev3_qwen branch March 7, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants