-
Notifications
You must be signed in to change notification settings - Fork 101
fix: improve O6/O6N setup documentation and fix LFS model cloning #1304
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 3 additions & 110 deletions
113
docs/common/orion-common/app-dev/artificial-intelligence/_env-setup.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,116 +1,9 @@ | ||
| ## 前言 | ||
| 通过下面的命令安装相关依赖。 | ||
|
|
||
| 我们需要访问此芯开发者中心获取最新的此芯 AI 开发工具包 NOE SDK(NeuralONE AI SDK)。 | ||
|
|
||
| NOE SDK 通过 NPU 异构硬件加速,助力开发者高效开发并部署高能效的端侧 AI 推理应用。 | ||
|
|
||
| :::tip 此芯开发者中心 | ||
|
|
||
| 此芯开发者中心包含软件 SDK、芯片手册、开发文档等资源。 | ||
|
|
||
| ::: | ||
|
|
||
| ## 获取 SDK | ||
|
|
||
| 注册并登录[此芯开发者中心](https://developer.cixtech.com/),下拉找到软件 SDK 栏目,点击 NeuralONE AI SDK 的`了解详情`,会自动下载 SDK。 | ||
|
|
||
| 解压SDK: | ||
|
|
||
| <NewCodeBlock tip="Linux PC" type="PC"> | ||
|
|
||
| ```bash | ||
| tar -zxvf cix_noe_sdk_xxx_release.tar.gz | ||
| ``` | ||
|
|
||
| </NewCodeBlock> | ||
|
|
||
| 解压后的文件夹目录结构: | ||
|
|
||
| ```bash | ||
| . | ||
| ├── CixBuilder-6.1.3407.2-cp310-none-linux_x86_64.whl | ||
| ├── cix-noe-umd_2.0.2_arm64.deb | ||
| ├── cix-npu-driver_2.0.1_arm64.deb | ||
| ├── env_setup.sh | ||
| ├── npu_sdk_last_manifest_list.xml | ||
| └── requirements.txt | ||
| ``` | ||
|
|
||
| ## 配置主机环境 | ||
|
|
||
| ### 创建虚拟环境 | ||
|
|
||
| 推荐使用 [miniconda](https://www.anaconda.com/docs/getting-started/miniconda/main) 管理虚拟环境。 | ||
|
|
||
| :::warning[Python 版本] | ||
| SDK 只兼容 python3.10 。 | ||
| ::: | ||
|
|
||
| <NewCodeBlock tip="Linux PC" type="PC"> | ||
|
|
||
| ```bash | ||
| conda create -n noe python=3.10 | ||
| conda activate noe | ||
| ``` | ||
|
|
||
| </NewCodeBlock> | ||
|
|
||
| ### 使用脚本配置开发环境 | ||
|
|
||
| <NewCodeBlock tip="Linux PC" type="PC"> | ||
|
|
||
| ```bash | ||
| bash env_setup.sh | ||
| ``` | ||
|
|
||
| </NewCodeBlock> | ||
|
|
||
| ### 验证编译环境 | ||
|
|
||
| 终端执行 cixbuild -v 查看编译环境版本。 | ||
|
|
||
| <NewCodeBlock tip="Linux PC" type="PC"> | ||
|
|
||
| ```bash | ||
| cixbuild -v | ||
| ``` | ||
|
|
||
| </NewCodeBlock> | ||
|
|
||
| ## 配置板端环境 | ||
|
|
||
| ### 安装 NPU 驱动 | ||
|
|
||
| :::tip[NPU驱动] | ||
| 瑞莎星睿 O6 / O6N 的官方系统镜像已经预先安装好了NPU驱动,无需重复安装。 | ||
| ::: | ||
|
|
||
| 将 NPU 驱动安装包推送到板端,执行下面的命令进行安装。 | ||
|
|
||
| <NewCodeBlock tip="O6 / O6N" type="device"> | ||
|
|
||
| ```bash | ||
| sudo dpkg -i ./cix-npu-driver_xxx_arm64.deb | ||
| ``` | ||
|
|
||
| </NewCodeBlock> | ||
|
|
||
| ### 安装 NPU UMD | ||
|
|
||
| :::info[UMD] | ||
| UMD 即 User Mode Driver | ||
|
|
||
| UMD 以动态库形式提供标准 API,负责解析应用请求并协调 NPU 驱动实现资源分配与任务下发。 | ||
|
|
||
| 详细的 API 使用参考 [**API 手册**](../../../../orion/o6/app-development/artificial-intelligence/API-manual.md)。 | ||
| ::: | ||
|
|
||
| 将 UMD 安装包推送到板端,执行下面的命令安装。 | ||
|
|
||
| <NewCodeBlock tip="O6 / O6N" type="device"> | ||
| <NewCodeBlock tip="Device" type="device"> | ||
|
|
||
| ```bash | ||
| sudo dpkg -i ./cix-noe-umd_xxx_arm64.deb | ||
| sudo apt install cix-drivers-dkms cix-noe-umd cix-npu-onnxruntime task-cix-npu | ||
| ``` | ||
|
|
||
| </NewCodeBlock> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.