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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

**示例支持设备**

| 设备 | SoC |
| --------------------- | ------- |
| 设备 | SoC |
| -------------------- | ------- |
| Fogwise® AIRbox Q900 | QCS9075 |

## 安装 QAI AppBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

**示例支持设备**

| 设备 | SoC |
| --------------------- | ------- |
| 设备 | SoC |
| -------------------- | ------- |
| Fogwise® AIRbox Q900 | QCS9075 |

## 安装 QAI AppBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Real-ESRGAN AI 图像修复 APP, 可最高将图像超分辨率到 2048x2048
```

**Devices** 设备挂载,将 NPU 挂载进 Docker 容器中,建议全部挂载

- Host:
```bash
/dev
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

**示例支持设备**

| 设备 | SoC |
| --------------------- | ------- |
| 设备 | SoC |
| -------------------- | ------- |
| Fogwise® AIRbox Q900 | QCS9075 |

## 安装 QAI AppBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

**示例支持设备**

| 设备 | SoC |
| --------------------- | ------- |
| 设备 | SoC |
| -------------------- | ------- |
| Fogwise® AIRbox Q900 | QCS9075 |

## 安装 QAI AppBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

**示例支持设备**

| 设备 | SoC |
| --------------------- | ------- |
| 设备 | SoC |
| -------------------- | ------- |
| Fogwise® AIRbox Q900 | QCS9075 |

## 安装 QAI AppBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

**示例支持设备**

| 设备 | SoC |
| --------------------- | ------- |
| 设备 | SoC |
| -------------------- | ------- |
| Fogwise® AIRbox Q900 | QCS9075 |

## 安装 QAI AppBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,57 @@

- 运行设备

| 设备 | SoC | dsp_arch |
| --------------------- | ------- | -------- |
| 设备 | SoC | dsp_arch |
| -------------------- | ------- | -------- |
| Fogwise® AIRbox Q900 | QCS9075 | v73 |

## 下载 genie 工具包

:::info
敬请期待
:::
<NewCodeBlock tip="Device" type="device">

```bash
wget https://github.com/ZIFENG278/ai-engine-direct-helper/releases/download/qcom-genie-sdk-v73/qcom-genie-sdk-v73.tar.gz
tar -xvf qcom-genie-sdk-v73.tar.gz
```

</NewCodeBlock>

### 导入环境变量

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

```bash
cd qcom-genie-sdk-v73
export ADSP_LIBRARY_PATH=$(pwd)
```

</NewCodeBlock>

## 下载模型

:::info
敬请期待
:::tip
请在 python 虚拟环境中安装 modelscope python 包,虚拟环境使用请参考 [**Python 虚拟环境使用**](/rock5/rock5b/app-development/venv-usage)
:::

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

```bash
pip3 install modelscope
modelscope download --model radxa/DeepSeek-R1-Distill-Qwen-7B-w4a16-4096-v73 --local_dir ./DeepSeek-R1-Distill-Qwen-7B-w4a16-4096-v73
```

</NewCodeBlock>

## 推理模型

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

```bash
cd DeepSeek-R1-Distill-Qwen-7B-w4a16-4096-v73
```

</NewCodeBlock>

### 构建 prompt

prompt 支持以文件形式或者参数形式传入
Expand Down Expand Up @@ -137,7 +170,7 @@ Qualcomm is a leading global technology company founded in 1985, renowned for it
genie-t2t-run -c DeepSeek-R1-Distill-Qwen-7B-htp.json --prompt_file chat.txt --profile profile.txt
```

| Fogwise® AIRbox Q900 | |
| Fogwise® AIRbox Q900 | |
| -------------------------- | -------------------------- |
| **GenieDialog_create** | 1,952,585 us |
| **num-prompt-tokens** | 46 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,57 @@

- 运行设备

| 设备 | SoC | dsp_arch |
| --------------------- | ------- | -------- |
| 设备 | SoC | dsp_arch |
| -------------------- | ------- | -------- |
| Fogwise® AIRbox Q900 | QCS9075 | v73 |

## 下载 genie 工具包

:::info
敬请期待
:::
<NewCodeBlock tip="Device" type="device">

```bash
wget https://github.com/ZIFENG278/ai-engine-direct-helper/releases/download/qcom-genie-sdk-v73/qcom-genie-sdk-v73.tar.gz
tar -xvf qcom-genie-sdk-v73.tar.gz
```

</NewCodeBlock>

### 导入环境变量

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

```bash
cd qcom-genie-sdk-v73
export ADSP_LIBRARY_PATH=$(pwd)
```

</NewCodeBlock>

## 下载模型

:::info
敬请期待
:::tip
请在 python 虚拟环境中安装 modelscope python 包,虚拟环境使用请参考 [**Python 虚拟环境使用**](/rock5/rock5b/app-development/venv-usage)
:::

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

```bash
pip3 install modelscope
modelscope download --model radxa/Gemma-2-2B-it-w4a16-4096-v73 --local_dir ./Gemma-2-2B-it-w4a16-4096-v73
```

</NewCodeBlock>

## 推理模型

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

```bash
cd Gemma-2-2B-it-w4a16-4096-v73
```

</NewCodeBlock>

### 构建 prompt

prompt 支持以文件形式或者参数形式传入
Expand Down Expand Up @@ -136,7 +169,7 @@ I'm excited to see what we can create together! 😊
genie-t2t-run -c gemma-2-2b-it-htp.json --prompt_file chat.txt --profile profile.txt
```

| Fogwise® AIRbox Q900 | |
| Fogwise® AIRbox Q900 | |
| -------------------------- | --------------------------- |
| **GenieDialog_create** | 2,022,259 us |
| **num-prompt-tokens** | 14 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,57 @@

- 运行设备

| 设备 | SoC | dsp_arch |
| --------------------- | ------- | -------- |
| 设备 | SoC | dsp_arch |
| -------------------- | ------- | -------- |
| Fogwise® AIRbox Q900 | QCS9075 | v73 |

## 下载 genie 工具包

:::info
敬请期待
:::
<NewCodeBlock tip="Device" type="device">

```bash
wget https://github.com/ZIFENG278/ai-engine-direct-helper/releases/download/qcom-genie-sdk-v73/qcom-genie-sdk-v73.tar.gz
tar -xvf qcom-genie-sdk-v73.tar.gz
```

</NewCodeBlock>

### 导入环境变量

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

```bash
cd qcom-genie-sdk-v73
export ADSP_LIBRARY_PATH=$(pwd)
```

</NewCodeBlock>

## 下载模型

:::info
敬请期待
:::tip
请在 python 虚拟环境中安装 modelscope python 包,虚拟环境使用请参考 [**Python 虚拟环境使用**](/rock5/rock5b/app-development/venv-usage)
:::

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

```bash
pip3 install modelscope
modelscope download --model radxa/Llama-2-7B-Chat-w4a16-4096-v73 --local_dir ./Llama-2-7B-Chat-w4a16-4096-v73
```

</NewCodeBlock>

## 推理模型

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

```bash
cd Llama-2-7B-Chat-w4a16-4096-v73
```

</NewCodeBlock>

### 构建 prompt

prompt 支持以文件形式或者参数形式传入
Expand Down Expand Up @@ -125,7 +158,7 @@ Using libGenie.so version 1.14.0
genie-t2t-run -c Llama2-7B-Chat-htp.json --prompt_file chat.txt --profile profile.txt
```

| Fogwise® AIRbox Q900 | |
| Fogwise® AIRbox Q900 | |
| -------------------------- | ---------------------------- |
| **GenieDialog_create** | 3,305,162 us |
| **num-prompt-tokens** | 38 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,57 @@

- 运行设备

| 设备 | SoC | dsp_arch |
| --------------------- | ------- | -------- |
| 设备 | SoC | dsp_arch |
| -------------------- | ------- | -------- |
| Fogwise® AIRbox Q900 | QCS9075 | v73 |

## 下载 genie 工具包

:::info
敬请期待
:::
<NewCodeBlock tip="Device" type="device">

```bash
wget https://github.com/ZIFENG278/ai-engine-direct-helper/releases/download/qcom-genie-sdk-v73/qcom-genie-sdk-v73.tar.gz
tar -xvf qcom-genie-sdk-v73.tar.gz
```

</NewCodeBlock>

### 导入环境变量

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

```bash
cd qcom-genie-sdk-v73
export ADSP_LIBRARY_PATH=$(pwd)
```

</NewCodeBlock>

## 下载模型

:::info
敬请期待
:::tip
请在 python 虚拟环境中安装 modelscope python 包,虚拟环境使用请参考 [**Python 虚拟环境使用**](/rock5/rock5b/app-development/venv-usage)
:::

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

```bash
pip3 install modelscope
modelscope download --model radxa/Llama-3.1-8B-Instruct-w4a16-4096-v73 --local_dir ./Llama-3.1-8B-Instruct-w4a16-4096-v73
```

</NewCodeBlock>

## 推理模型

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

```bash
cd Llama-3.1-8B-Instruct-w4a16-4096-v73
```

</NewCodeBlock>

### 构建 prompt

prompt 支持以文件形式或者参数形式传入
Expand Down Expand Up @@ -125,7 +158,7 @@ Using libGenie.so version 1.14.0
genie-t2t-run -c Meta-Llama-3.1-8B-Instruct-htp.json --prompt_file chat.txt --profile profile.txt
```

| Fogwise® AIRbox Q900 | |
| Fogwise® AIRbox Q900 | |
| -------------------------- | -------------------------- |
| **GenieDialog_create** | 2,182,009 us |
| **num-prompt-tokens** | 32 |
Expand Down
Loading
Loading