Skip to content

Commit 769aa0a

Browse files
biduanquic-zhanweiw
authored andcommitted
update readme.md
1 parent 96645d3 commit 769aa0a

File tree

1 file changed

+14
-38
lines changed

1 file changed

+14
-38
lines changed

samples/linux/README.md

Lines changed: 14 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,9 @@
22

33
## Overview
44

5-
This guide demonstrates how to develop AI applications on Qualcomm Dragonwing™ **IQ9075** and **QCS6490** platforms using QAI AppBuilder. Both SoCs are officially supported, and this guide covers three main areas:
5+
This guide demonstrates how to develop AI applications on Qualcomm Dragonwing™ **IQ9075** and **QCS6490** platforms using QAI AppBuilder. QAI AppBuilder provides both Python and C++ interfaces, allowing you to build AI applications with just a few lines of code.
66

7-
1. **Chat Application with OpenAI-Compatible API**: Build conversational chat WebUI applications using OpenAI-compatible APIs for seamless integration.
8-
9-
2. **LangFlow Low-Code Framework**: Deploy and run the LangFlow low-code framework on IQ9075 for rapid AI application development.
10-
11-
3. **AI Model Inference with Python API**: Use the QAI AppBuilder Python interface to perform AI model inference on both **IQ9075** and **QCS6490** platforms.
12-
13-
14-
## Platform Support
15-
16-
| Component | IQ9075 | QCS6490 |
17-
|-----------------------------------|-----------------|----------------|
18-
| Core SDK & Python API | Supported | Supported |
19-
| Chat Application (OpenAI API) | Supported | Not Supported |
20-
| LangFlow Low-Code Framework | Supported | Not Supported |
21-
22-
**Notes:**
23-
- Supported SoCs: Qualcomm Dragonwing™ IQ9075 and QCS6490
24-
- Chat and LangFlow samples currently support IQ9075 only
25-
- Python API and C++ API support both platforms
26-
27-
28-
## Getting Started
7+
## Quick Start
298

309
### Prerequisites
3110

@@ -50,13 +29,11 @@ https://softwarecenter.qualcomm.com/#/catalog/item/Qualcomm_AI_Runtime_SDK
5029
> **Important Notes:**
5130
> - **Required Version**: QNN SDK 2.39.x or higher is required.
5231
> - **Architecture Support**: Although the package is labeled for x86, it contains dynamic libraries for aarch64 architecture.
53-
> - **Library Selection**: Ensure you select the correct dynamic libraries matching your hardware platform during deployment to avoid compatibility issues.
54-
> - **File Format**: The downloaded file has a `*.qik` extension.
5532
> - **Installation Guide**: For detailed installation instructions, refer to the [official documentation](https://docs.qualcomm.com/bundle/publicresource/topics/80-77512-1/hexagon-dsp-sdk-install-addons-linux.html?product=1601111740010422).
5633
5734
### Set Environment Variables
5835

59-
Configure the following environment variables (replace `<path_to_qnn_sdk>` with your actual QNN SDK installation path):
36+
On the **IQ9075** and **QCS6490** device side, configure the following environment variables (replace `<path_to_qnn_sdk>` with your actual QNN SDK installation path):
6037

6138
**Common variables for both platforms:**
6239
```bash
@@ -76,16 +53,10 @@ export ADSP_LIBRARY_PATH=$QNN_SDK_ROOT/lib/hexagon-v68/unsigned
7653
export ADSP_LIBRARY_PATH=$QNN_SDK_ROOT/lib/hexagon-v73/unsigned
7754
```
7855

79-
### QAI AppBuilder Python API Samples
80-
81-
These examples demonstrate how to use the Python API for AI model inference on computer vision tasks. Models are automatically downloaded during the first run through network requests within the Python scripts.
82-
83-
#### Automatic Model Selection
56+
### Run Python API Samples
8457

85-
Models are automatically selected based on your device platform:
58+
QAI AppBuilder provides multiple examples of AI applications developed using Python, covering scenarios such as image super-resolution, object detection, and image classification. Follow the steps below to run the Python API examples and quickly get started with these applications.
8659

87-
- **QCS6490**: Downloads quantized INT8 models optimized for integer inference.
88-
- **IQ9075**: Downloads FP16 models optimized for half-precision floating-point inference.
8960

9061
#### 1. Install Python Dependencies
9162

@@ -118,7 +89,7 @@ pip install dist/qai_appbuilder-2.39.0-cp312-cp312-linux_aarch64.whl
11889

11990
> **Note:** The version number may vary based on your QNN SDK version.
12091
121-
#### 4. Run Sample Models
92+
#### 4. Run Python AI Sample
12293

12394
Navigate to the samples directory:
12495

@@ -205,10 +176,15 @@ libAppBuilder.ModelDestroy(model_name);
205176
206177
## Advanced Application Examples
207178
208-
In addition to the computer vision samples above, QAI AppBuilder provides advanced examples for building production-ready AI applications:
179+
In addition to the computer vision samples above, QAI AppBuilder provides advanced examples for building production-ready AI applications.
209180
181+
> **Note:** These advanced examples currently support **Qualcomm Dragonwing™ IQ9075** only.
182+
183+
1. **Chat Application with OpenAI-Compatible API**: Build conversational chat WebUI applications using OpenAI-compatible APIs for seamless integration.
184+
185+
2. **LangFlow Low-Code Framework**: Deploy and run the LangFlow low-code framework on IQ9075 for rapid AI application development.
210186
211-
### Example 1: Chat Application with OpenAI-Compatible API
187+
### Advanced Example 1: Chat Application with OpenAI-Compatible API
212188
213189
Build a chat application powered by large language models (LLMs) using OpenAI-compatible APIs.
214190
@@ -230,7 +206,7 @@ bash ./2.Install_LLM_Models.sh
230206
bash ./3.Start_WebUI.sh
231207
```
232208

233-
### Example 2: LangFlow Low-Code Framework
209+
### Advanced Example 2: LangFlow Low-Code Framework
234210

235211
Deploy LangFlow, a visual low-code framework for building AI applications with drag-and-drop components.
236212

0 commit comments

Comments
 (0)