Repository navigation
Add CI to export Paraformer to RKNN - #2692
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds a new GitHub Actions workflow to export Paraformer models to RKNN across platforms and frameworks, updates a shell script to download additional model assets and run RKNN exports, and adjusts ONNX encoder export code to load checkpoints whether they are raw or nested under "state_dict". Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant GH as GitHub Actions
participant Repo as Repository
participant Py as Python Env
participant DL as Model Store
participant RK as RKNN Toolkit
participant Rel as Release Service
GH->>Repo: Checkout code
GH->>Py: Setup Python, install deps (numpy/torch/onnx/onnxruntime/…)
GH->>RK: Install RKNN toolkit wheel
rect rgba(200,230,255,0.3)
note over GH: Matrix over platforms & frameworks
GH->>DL: Download models & test data (FunASR / WSChuan-ASR)
GH->>Py: Convert encoder/predictor/decoder to ONNX
Py->>RK: Build RKNN from ONNX per target
RK-->>GH: RKNN artifacts
end
GH->>GH: Package artifacts (tar.bz2)
alt Owner: csukuangfj or k2-fsa
GH->>Rel: Create release and upload tarballs
else Other owner
GH->>GH: Skip release
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Suggested labels
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
you can find them at
https://github.com/k2-fsa/sherpa-onnx/releases/tag/asr-models
you can use the following python code to test the exported rknn models on your board
test_on_rk3588_board_paraformer.py
(for the model with 15 seconds fixed input)
Summary by CodeRabbit