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 using T-head-Semi/csi-nn2 for RISC-V #637

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

csukuangfj
Copy link
Collaborator

It uses

You can find the pre-compiled onnxruntime lib at
https://github.com/csukuangfj/onnxruntime-libs/releases/tag/v1.14.1
Screenshot 2024-03-06 at 17 33 39


We can use qemu-riscv64 in github actions to decode files with a streaming ASR model and a VITS model to convert text to speech.

Note

This may be the first open-source project that supports RISC-V for speech-to-text and text-to-speech with onnxruntime.

Usage

Please read the CI test file for usage.

We will add doc for it later.

@csukuangfj
Copy link
Collaborator Author

csukuangfj commented Mar 6, 2024

Screenshot 2024-03-06 at 17 45 12


(py38) kuangfangjun:onnxruntime-linux-riscv64-glibc2_17-Release-1.14.1$ ls -lh lib/
total 26M
-rwxr-xr-x 1 kuangfangjun root 13M Mar  6 12:06 libonnxruntime.so
-rwxr-xr-x 1 kuangfangjun root 13M Mar  6 12:06 libonnxruntime.so.1.14.1
(py38) kuangfangjun:onnxruntime-linux-riscv64-glibc2_17-Release-1.14.1$ ls -lh include/
total 336K
-rw-r--r-- 1 kuangfangjun root  397 Mar  6 12:06 cpu_provider_factory.h
-rw-r--r-- 1 kuangfangjun root 167K Mar  6 12:06 onnxruntime_c_api.h
-rw-r--r-- 1 kuangfangjun root  86K Mar  6 12:06 onnxruntime_cxx_api.h
-rw-r--r-- 1 kuangfangjun root  68K Mar  6 12:06 onnxruntime_cxx_inline.h
-rw-r--r-- 1 kuangfangjun root 1.6K Mar  6 12:06 onnxruntime_run_options_config_keys.h
-rw-r--r-- 1 kuangfangjun root  12K Mar  6 12:06 onnxruntime_session_options_config_keys.h
-rw-r--r-- 1 kuangfangjun root  481 Mar  6 12:06 provider_options.h
(py38) kuangfangjun:onnxruntime-linux-riscv64-glibc2_17-Release-1.14.1$ file lib/libonnxruntime.so
lib/libonnxruntime.so: ELF 64-bit LSB shared object, UCB RISC-V, version 1 (SYSV), dynamically linked, not stripped

@csukuangfj csukuangfj merged commit f70fdd1 into k2-fsa:master Mar 6, 2024
173 of 224 checks passed
@csukuangfj csukuangfj deleted the shl-riscv branch March 6, 2024 10:21
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.

1 participant