Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/common/ai/_casaos_app_install_qualcomm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ radxa 目前已将 `Real-ESRGAN 图像修复`、`StableDiffusion`、 `Genie` App
| App | Docker 镜像 | 容器端口 | 支持 SoC | 用途 |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------- | -------- | -------- |
| Real-ESRGAN AI 图像修复 | [radxazifeng278/qairt-imagerepair:v1.0](https://hub.docker.com/repository/docker/radxazifeng278/qairt-imagerepair/general) | 8977 | QCS6490 | 图像修复 |
| Real-ESRGAN AI 图像修复 | [radxazifeng278/qairt-imagerepair-9075:v1.1](https://hub.docker.com/repository/docker/radxazifeng278/qairt-imagerepair-9075/general) | 8977 | QCS9075 | 图像修复 |
| StableDiffusion v1.5 | [radxazifeng278/sd1.5-9075:v1.1](https://hub.docker.com/repository/docker/radxazifeng278/sd1.5-9075/general) | 8978 | QCS9075 | 文生图 |
| StableDiffusion v2.1 | [radxazifeng278/sd2.1-9075:v1.1](https://hub.docker.com/repository/docker/radxazifeng278/sd2.1-9075/general) | 8979 | QCS9075 | 文生图 |
| Genie APP | [radxazifeng278/genie-app-9075:v1.1](https://hub.docker.com/repository/docker/radxazifeng278/genie-app-9075/general) | 8976 | QCS9075 | LLM Chat |
| Real-ESRGAN AI 图像修复 | [radxazifeng278/qairt-imagerepair-9075:v1.3](https://hub.docker.com/repository/docker/radxazifeng278/qairt-imagerepair-9075/general) | 8977 | QCS9075 | 图像修复 |
| StableDiffusion v1.5 | [radxazifeng278/sd1.5-9075:v1.3](https://hub.docker.com/repository/docker/radxazifeng278/sd1.5-9075/general) | 8978 | QCS9075 | 文生图 |
| StableDiffusion v2.1 | [radxazifeng278/sd2.1-9075:v1.3](https://hub.docker.com/repository/docker/radxazifeng278/sd2.1-9075/general) | 8979 | QCS9075 | 文生图 |
| Genie APP | [radxazifeng278/genie-app-9075:v1.3](https://hub.docker.com/repository/docker/radxazifeng278/genie-app-9075/general) | 8976 | QCS9075 | LLM Chat |

- 点击 CasaOS App 栏的 "+" 标志,选择 Install a customized app

Expand Down Expand Up @@ -96,7 +96,7 @@ Real-ESRGAN AI 图像修复 APP, 可最高将图像超分辨率到 2048x2048

| | radxa Real-ESRGAN |
| --------------------- | ------------------------------------------ |
| **Docker Image** | radxazifeng278/qairt-imagerepair-9075:v1.1 |
| **Docker Image** | radxazifeng278/qairt-imagerepair-9075:v1.3 |
| **Title** | Image Repair |
| **Web UI port** | 9001 |
| **Host Port** | 9001 |
Expand All @@ -121,7 +121,7 @@ Real-ESRGAN AI 图像修复 APP, 可最高将图像超分辨率到 2048x2048

| | radxa StableDiffusion v1.5 |
| --------------------- | ------------------------------ |
| **Docker Image** | radxazifeng278/sd1.5-9075:v1.1 |
| **Docker Image** | radxazifeng278/sd1.5-9075:v1.3 |
| **Title** | StableDiffusion v1.5 |
| **Web UI port** | 9002 |
| **Host Port** | 9002 |
Expand All @@ -146,7 +146,7 @@ Real-ESRGAN AI 图像修复 APP, 可最高将图像超分辨率到 2048x2048

| | radxa StableDiffusion v2.1 |
| --------------------- | ------------------------------ |
| **Docker Image** | radxazifeng278/sd2.1-9075:v1.1 |
| **Docker Image** | radxazifeng278/sd2.1-9075:v1.3 |
| **Title** | StableDiffusion v2.1 |
| **Web UI port** | 9003 |
| **Host Port** | 9003 |
Expand All @@ -173,7 +173,7 @@ Genie APP 是集合 IBM Granite v3.1 8B 与 StableDiffusion v2.1 的多功能 LL

| | radxa genie-app |
| --------------------- | ---------------------------------- |
| **Docker Image** | radxazifeng278/genie-app-9075:v1.1 |
| **Docker Image** | radxazifeng278/genie-app-9075:v1.3 |
| **Title** | Genie-APP |
| **Web UI port** | 9004 |
| **Host Port** | 9004 |
Expand Down
37 changes: 29 additions & 8 deletions docs/common/ai/_fastrpc_setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,43 @@ NPU 环境配置清单

使用 radxa apt 源进行安装

<NewCodeBlock tip="Device" type="device">
<Tabs>
<TabItem value="QCS6490">

```bash
sudo apt update
sudo apt install fastrpc fastrpc-dev libcdsprpc1 radxa-firmware-qcs6490
sudo reboot
```
<NewCodeBlock tip="Device" type="device">

</NewCodeBlock>
```bash
sudo apt update
sudo apt install fastrpc fastrpc-dev libcdsprpc1 radxa-firmware-qcs6490
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original code included a sudo reboot command after installing the packages, but this has been removed in the new version. If a reboot is necessary after installing these packages to properly initialize the drivers and firmware, it should be added back to both tab sections.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't need reboot

Comment on lines +21 to +23
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original code included a sudo reboot command after installing the packages, but this has been removed in the new version. If a reboot is necessary after installation, this instruction should be preserved in both tabs.

Suggested change
sudo apt update
sudo apt install fastrpc fastrpc-dev libcdsprpc1 radxa-firmware-qcs6490
```
sudo apt update
sudo apt install fastrpc fastrpc-dev libcdsprpc1 radxa-firmware-qcs6490
sudo reboot

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't need reboot


</NewCodeBlock>


</TabItem>

<TabItem value="QCS9075">

<NewCodeBlock tip="Device" type="device">

```bash
sudo apt update
sudo apt install fastrpc fastrpc-dev libcdsprpc1 radxa-firmware-qcs9075
```

</NewCodeBlock>

</TabItem>

</Tabs>

对用户增加 fastrpc 设备权限

<NewCodeBlock tip="Device" type="device">

```bash
sudo chmod 666 /dev/fastrpc-*
sudo chmod 660 /dev/fastrpc-*
sudo chmod 660 /dev/dma_heap/system
```

</NewCodeBlock>
2 changes: 1 addition & 1 deletion docs/common/ai/_qairt-install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,5 @@ radxa 提供 docker 镜像方便用户在板端使用 QAIRT SDK,也可以参
- 拉取 docker 镜像

```bash
sudo docker run --privileged -it -v /dev:/dev -v $(pwd):/workspace --name qairt-sdk radxazifeng278/qairt-npu:v1.0 /bin/bash
sudo docker run --privileged -it -v /dev:/dev -v $(pwd):/workspace --name qairt-sdk radxazifeng278/qairt-npu-9075:v1.1 /bin/bash
```
9 changes: 9 additions & 0 deletions docs/fogwise/airbox-q900/ai-dev/fastrpc_setup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 0
---

# 板端启用 NPU

import FASTRPCSETUP from '../../../common/ai/\_fastrpc_setup.mdx';

<FASTRPCSETUP />
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ Radxa has already uploaded `Real-ESRGAN Image Restoration`, `StableDiffusion`, a
| App | Docker Image | Container Port | Supported SoC | Purpose |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------------- | ------------- | ----------------- |
| Real-ESRGAN AI Image Restoration | [radxazifeng278/qairt-imagerepair:v1.0](https://hub.docker.com/repository/docker/radxazifeng278/qairt-imagerepair/general) | 8977 | QCS6490 | Image Restoration |
| Real-ESRGAN AI Image Restoration | [radxazifeng278/qairt-imagerepair-9075:v1.1](https://hub.docker.com/repository/docker/radxazifeng278/qairt-imagerepair-9075/general) | 8977 | QCS9075 | Image Restoration |
| StableDiffusion v1.5 | [radxazifeng278/sd1.5-9075:v1.1](https://hub.docker.com/repository/docker/radxazifeng278/sd1.5-9075/general) | 8978 | QCS9075 | Text-to-Image |
| StableDiffusion v2.1 | [radxazifeng278/sd2.1-9075:v1.1](https://hub.docker.com/repository/docker/radxazifeng278/sd2.1-9075/general) | 8979 | QCS9075 | Text-to-Image |
| Genie APP | [radxazifeng278/genie-app-9075:v1.1](https://hub.docker.com/repository/docker/radxazifeng278/genie-app-9075/general) | 8976 | QCS9075 | LLM Chat |
| Real-ESRGAN AI Image Restoration | [radxazifeng278/qairt-imagerepair-9075:v1.3](https://hub.docker.com/repository/docker/radxazifeng278/qairt-imagerepair-9075/general) | 8977 | QCS9075 | Image Restoration |
| StableDiffusion v1.5 | [radxazifeng278/sd1.5-9075:v1.3](https://hub.docker.com/repository/docker/radxazifeng278/sd1.5-9075/general) | 8978 | QCS9075 | Text-to-Image |
| StableDiffusion v2.1 | [radxazifeng278/sd2.1-9075:v1.3](https://hub.docker.com/repository/docker/radxazifeng278/sd2.1-9075/general) | 8979 | QCS9075 | Text-to-Image |
| Genie APP | [radxazifeng278/genie-app-9075:v1.3](https://hub.docker.com/repository/docker/radxazifeng278/genie-app-9075/general) | 8976 | QCS9075 | LLM Chat |

- Click the "+" icon in the CasaOS App bar and select "Install a customized app"

Expand Down Expand Up @@ -103,9 +103,9 @@ The Real-ESRGAN AI Image Restoration app can upscale images to a maximum resolut

- Fill in the required information for installing the Radxa Real-ESRGAN (QCS9075) container

| | radxa Real-ESRGAN |
| | radxa Real-ESRGAN |
| --------------------- | ------------------------------------------ |
| **Docker Image** | radxazifeng278/qairt-imagerepair-9075:v1.1 |
| **Docker Image** | radxazifeng278/qairt-imagerepair-9075:v1.3 |
| **Title** | Image Repair |
| **Web UI port** | 9001 |
| **Host Port** | 9001 |
Expand All @@ -131,7 +131,7 @@ The Real-ESRGAN AI Image Restoration app can upscale images to a maximum resolut

| | radxa StableDiffusion v1.5 |
| --------------------- | ------------------------------ |
| **Docker Image** | radxazifeng278/sd1.5-9075:v1.1 |
| **Docker Image** | radxazifeng278/sd1.5-9075:v1.3 |
| **Title** | StableDiffusion v1.5 |
| **Web UI port** | 9002 |
| **Host Port** | 9002 |
Expand All @@ -156,7 +156,7 @@ The Real-ESRGAN AI Image Restoration app can upscale images to a maximum resolut

| | radxa StableDiffusion v2.1 |
| --------------------- | ------------------------------ |
| **Docker Image** | radxazifeng278/sd2.1-9075:v1.1 |
| **Docker Image** | radxazifeng278/sd2.1-9075:v1.3 |
| **Title** | StableDiffusion v2.1 |
| **Web UI port** | 9003 |
| **Host Port** | 9003 |
Expand All @@ -183,7 +183,7 @@ Genie APP is a versatile LLM chat software that integrates IBM Granite v3.1 8B w

| | radxa genie-app |
| --------------------- | ---------------------------------- |
| **Docker Image** | radxazifeng278/genie-app-9075:v1.1 |
| **Docker Image** | radxazifeng278/genie-app-9075:v1.3 |
| **Title** | Genie-APP |
| **Web UI port** | 9004 |
| **Host Port** | 9004 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,43 @@ NPU Environment Configuration Checklist

Install using radxa apt source

<NewCodeBlock tip="Device" type="device">
<Tabs>
<TabItem value="QCS6490">

```bash
sudo apt update
sudo apt install fastrpc fastrpc-dev libcdsprpc1 radxa-firmware-qcs6490
sudo reboot
```
<NewCodeBlock tip="Device" type="device">

</NewCodeBlock>
```bash
sudo apt update
sudo apt install fastrpc fastrpc-dev libcdsprpc1 radxa-firmware-qcs6490
```

</NewCodeBlock>


</TabItem>

<TabItem value="QCS9075">

<NewCodeBlock tip="Device" type="device">

```bash
sudo apt update
sudo apt install fastrpc fastrpc-dev libcdsprpc1 radxa-firmware-qcs9075
```

</NewCodeBlock>

</TabItem>

</Tabs>

Add fastrpc device permissions for user

<NewCodeBlock tip="Device" type="device">

```bash
sudo chmod 666 /dev/fastrpc-*
sudo chmod 660 /dev/fastrpc-*
sudo chmod 660 /dev/dma_heap/system
```

</NewCodeBlock>
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,5 @@ Radxa provides a Docker image for using the QAIRT SDK on the board. Alternativel
- Pull the Docker image

```bash
sudo docker run --privileged -it -v /dev:/dev -v $(pwd):/workspace --name qairt-sdk radxazifeng278/qairt-npu:v1.0 /bin/bash
sudo docker run --privileged -it -v /dev:/dev -v $(pwd):/workspace --name qairt-sdk radxazifeng278/qairt-npu-9075:v1.1 /bin/bash
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 0
---

# Enable NPU on Board

import FASTRPCSETUP from '../../../common/ai/\_fastrpc_setup.mdx';

<FASTRPCSETUP />