Simplify setup to one sourced Bash configuration
Browse files- README.md +26 -29
- SHA256SUMS +2 -2
- agora-model.json +1 -1
README.md
CHANGED
|
@@ -11,58 +11,55 @@ tags:
|
|
| 11 |
- aidem
|
| 12 |
---
|
| 13 |
|
| 14 |
-
# Audio8-ASR-Infinite-160ms
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
##
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
| 23 |
|
| 24 |
```bash
|
| 25 |
-
.venv/bin/hf download "$AGORA_MODEL_REPO"
|
| 26 |
-
--local-dir "$AGORA_MODELS_DIR" --include "${AGORA_MODEL_FILES[@]}"
|
| 27 |
```
|
| 28 |
|
| 29 |
-
|
| 30 |
|
| 31 |
-
##
|
| 32 |
-
|
| 33 |
-
- 一次 hf download 获取公共资源及 `targets/$AGORA_MODEL_TARGET/*`,不下载其它 SoC 图;命令见上述指南第四步。
|
| 34 |
-
- 资源直接保存到 `$AGORA_MODELS_DIR`,与代码分开,--models 指向含 models.json 的根目录。
|
| 35 |
-
- 每种时钟独立目录。单个目标约 **3.3 GiB / 3.55 GB**,workspace 建议至少 8 GiB 可用空间。
|
| 36 |
-
- 下载默认 main,不要求用户复制长 revision;需要固定版本时可用 HF 原生 --revision 并记录快照。
|
| 37 |
-
- SHA256SUMS 校验已下载文件。--ignore-missing 允许其它未选 SoC 缺席,不代表资源齐全;启动时还会按 models.json 检查必需文件。
|
| 38 |
|
| 39 |
```text
|
| 40 |
$AGORA_MODELS_DIR/
|
| 41 |
-
├── models.json # SDK
|
| 42 |
-
├── agora-model.json #
|
| 43 |
├── SHA256SUMS / README.md
|
| 44 |
├── embedding.bin / *.npy / tokenizer.json / token_bytes.json
|
| 45 |
├── frontend/ prefix/ semantic_vad/
|
| 46 |
-
├── targets/<
|
| 47 |
└── LICENSES/ NOTICE
|
| 48 |
```
|
| 49 |
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
-
| SoC | Ubuntu
|
| 53 |
| --- | --- | --- | --- |
|
| 54 |
-
| QCS8550 | 22.04 | targets/qcs8550_qnn248 |
|
| 55 |
-
| QCS8625 | 22.04 | targets/qcs8625_qnn248 |
|
| 56 |
-
| IQ8 / QCS8275 | 24.04 | targets/qcs8275_qnn248 |
|
| 57 |
-
| IQ9 / QCS9075 | 24.04 | targets/qcs9075_qnn248 |
|
| 58 |
|
| 59 |
-
|
| 60 |
|
| 61 |
-
##
|
| 62 |
|
| 63 |
-
|
| 64 |
|
| 65 |
-
[Python API](https://github.com/APLUX-Agora/audio8-asr-infinite-demo/blob/main/sdk/PYTHON_API.md) · [C/C++
|
| 66 |
|
| 67 |
## License
|
| 68 |
|
|
@@ -73,4 +70,4 @@ Full license texts are in [LICENSES/](LICENSES/): [Pandora agreement (Chinese)](
|
|
| 73 |
SDK CPU placement defaults to `inherit`; the official Demo chooses `default`.
|
| 74 |
Both Python and C accept an explicit CPU set without changing model resources.
|
| 75 |
See the [CPU interface and platform profiles](https://github.com/APLUX-Agora/audio8-asr-infinite-demo/blob/main/sdk/CPU_AFFINITY.md)
|
| 76 |
-
and [Demo running and inference SDK](https://github.com/APLUX-
|
|
|
|
| 11 |
- aidem
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# Audio8-ASR-Infinite-160ms for Agora
|
| 15 |
|
| 16 |
+
This public repository contains the **160ms** model package for Agora. Application code, the SDK, dependencies, and examples live in [APLUX-Agora/audio8-asr-infinite-demo](https://github.com/APLUX-Agora/audio8-asr-infinite-demo). The upstream model is [Edge0/Audio8-ASR-Infinite](https://huggingface.co/Edge0/Audio8-ASR-Infinite).
|
| 17 |
|
| 18 |
+
## Deployment
|
| 19 |
|
| 20 |
+
Follow the [shared deployment guide](https://github.com/APLUX-Agora/audio8-asr-infinite-demo/blob/main/docs/AGORA_DEPLOY.md). **Declare parameters once in agora.env, source it, then run normal commands.** Agora fills the configuration from your content and hardware selections; developers using GitHub can edit the same template themselves. No Agora CLI, credentials, or second generated parameter file is required.
|
| 21 |
|
| 22 |
+
For this variant, set AGORA_MODEL_REPO to `APLUX-Agora/Audio8-ASR-Infinite-160ms`, A8_CLOCK_MS to `160`, and AGORA_MODELS_DIR to `$AGORA_WORKSPACE/models/audio8-160ms`. The configuration's AGORA_MODEL_FILES array selects common files and one SoC target. After creating the project venv and installing huggingface_hub, download with the standard command:
|
| 23 |
|
| 24 |
```bash
|
| 25 |
+
.venv/bin/hf download "$AGORA_MODEL_REPO" --local-dir "$AGORA_MODELS_DIR" --include "${AGORA_MODEL_FILES[@]}"
|
|
|
|
| 26 |
```
|
| 27 |
|
| 28 |
+
Downloads are public and anonymous. Open a new terminal? Source your configuration again before continuing. Updating an existing checkout or model package remains your decision.
|
| 29 |
|
| 30 |
+
## Resource layout
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
```text
|
| 33 |
$AGORA_MODELS_DIR/
|
| 34 |
+
├── models.json # SDK package entry point
|
| 35 |
+
├── agora-model.json # Resource and compatibility metadata
|
| 36 |
├── SHA256SUMS / README.md
|
| 37 |
├── embedding.bin / *.npy / tokenizer.json / token_bytes.json
|
| 38 |
├── frontend/ prefix/ semantic_vad/
|
| 39 |
+
├── targets/<selected-soc>_qnn248/
|
| 40 |
└── LICENSES/ NOTICE
|
| 41 |
```
|
| 42 |
|
| 43 |
+
Download common files and only the selected target in one HF snapshot. No extraction or manual file moves are needed. --models takes the root containing models.json, not the targets directory. A single target is approximately **3.3 GiB / 3.55 GB**; allow at least 8 GiB for code, dependencies, and resources. Keep 80ms and 160ms in separate directories.
|
| 44 |
+
|
| 45 |
+
The default guide uses main. Use HF's native --revision option when you need an immutable snapshot. SHA256SUMS checks downloaded bytes; --ignore-missing permits intentionally absent other-SoC files but does not prove package completeness. Web startup also checks required resources and hashes.
|
| 46 |
+
|
| 47 |
+
## Targets and qualification
|
| 48 |
|
| 49 |
+
| SoC | Ubuntu selection | Target directory | Qualification |
|
| 50 |
| --- | --- | --- | --- |
|
| 51 |
+
| QCS8550 | 22.04 | targets/qcs8550_qnn248 | Validated |
|
| 52 |
+
| QCS8625 | 22.04 | targets/qcs8625_qnn248 | End-to-end validation pending |
|
| 53 |
+
| IQ8 / QCS8275 | 24.04 | targets/qcs8275_qnn248 | End-to-end validation pending |
|
| 54 |
+
| IQ9 / QCS9075 | 24.04 | targets/qcs9075_qnn248 | End-to-end validation pending |
|
| 55 |
|
| 56 |
+
Native SDK 0.9.0 is qualified on QCS8550 / Ubuntu22.04 / AidLite2.5.0.284 / QNN2.48 with CPython3.10/3.11/3.12. Resource availability does not qualify another BSP, SoC, or operating system. Ubuntu26.04 is unqualified. Model graphs, tensor bytes, and models.json format are unchanged by the Agora documentation work.
|
| 57 |
|
| 58 |
+
## First run
|
| 59 |
|
| 60 |
+
Start with the 20-second file example in the GitHub repository. It reports model loading, transcription, and completion before printing the result. Start the Web Demo separately when needed. On a cloud board, use the browser inside the full remote desktop at localhost:8765; on your own board, use the board's browser or its network address.
|
| 61 |
|
| 62 |
+
[Python API](https://github.com/APLUX-Agora/audio8-asr-infinite-demo/blob/main/sdk/PYTHON_API.md) · [C/C++ integration](https://github.com/APLUX-Agora/audio8-asr-infinite-demo/blob/main/sdk/NATIVE_INTEGRATION.md) · [Package contract](https://github.com/APLUX-Agora/audio8-asr-infinite-demo/blob/main/sdk/MODEL_PACKAGE.md)
|
| 63 |
|
| 64 |
## License
|
| 65 |
|
|
|
|
| 70 |
SDK CPU placement defaults to `inherit`; the official Demo chooses `default`.
|
| 71 |
Both Python and C accept an explicit CPU set without changing model resources.
|
| 72 |
See the [CPU interface and platform profiles](https://github.com/APLUX-Agora/audio8-asr-infinite-demo/blob/main/sdk/CPU_AFFINITY.md)
|
| 73 |
+
and [Demo running and inference SDK](https://github.com/APLUX-Agora/audio8-asr-infinite-demo) on GitHub.
|
SHA256SUMS
CHANGED
|
@@ -2,8 +2,8 @@ cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSES/Apach
|
|
| 2 |
2de3adf5d4afde83c75ddff3bfe596f9f769acfa746a51ae7ea7e949d2ff297c LICENSES/Pandora-Model-SDK.en.txt
|
| 3 |
2552f7a6eb20986f706e2512fabef6224b9304de8507b8b7896c24e56e5685a1 LICENSES/Pandora-Model-SDK.zh-CN.txt
|
| 4 |
47c5742e98d742e6d6a0e26a9b0707200ceb155434f05f150edb9b596cb68378 NOTICE
|
| 5 |
-
|
| 6 |
-
|
| 7 |
18f549e98fe991bd403b898a524df64467d9a7a9cdad1d3849bcbd91b95e37fe embedding.bin
|
| 8 |
ca85fbe03e0f351470fabbf8c5444693f35e1fc7ef472964e3fe7101db055c23 frontend/config.json
|
| 9 |
906bfb42b5f526dd4177739d29b5800de98cb448e8336d379da50bc90198278b frontend/rows_const.npy
|
|
|
|
| 2 |
2de3adf5d4afde83c75ddff3bfe596f9f769acfa746a51ae7ea7e949d2ff297c LICENSES/Pandora-Model-SDK.en.txt
|
| 3 |
2552f7a6eb20986f706e2512fabef6224b9304de8507b8b7896c24e56e5685a1 LICENSES/Pandora-Model-SDK.zh-CN.txt
|
| 4 |
47c5742e98d742e6d6a0e26a9b0707200ceb155434f05f150edb9b596cb68378 NOTICE
|
| 5 |
+
3c77b9db0847c0e4240c2af150b59af9034ee6d34a49c07317162ee5b572280f README.md
|
| 6 |
+
2021750fecb58e9901ca1af05061dcbf34f8a12732d4ca71de05f26acc6b2b2a agora-model.json
|
| 7 |
18f549e98fe991bd403b898a524df64467d9a7a9cdad1d3849bcbd91b95e37fe embedding.bin
|
| 8 |
ca85fbe03e0f351470fabbf8c5444693f35e1fc7ef472964e3fe7101db055c23 frontend/config.json
|
| 9 |
906bfb42b5f526dd4177739d29b5800de98cb448e8336d379da50bc90198278b frontend/rows_const.npy
|
agora-model.json
CHANGED
|
@@ -58,6 +58,6 @@
|
|
| 58 |
"approx_download_bytes": 3553730233
|
| 59 |
}
|
| 60 |
],
|
| 61 |
-
"notes": "Ubuntu
|
| 62 |
"configuration": "agora.env"
|
| 63 |
}
|
|
|
|
| 58 |
"approx_download_bytes": 3553730233
|
| 59 |
}
|
| 60 |
],
|
| 61 |
+
"notes": "Ubuntu fields describe Agora selection mappings. Only QCS8550/Ubuntu22.04 is qualified end-to-end with the current native SDK; other combinations require validation. This declaration is not an installation script.",
|
| 62 |
"configuration": "agora.env"
|
| 63 |
}
|