Skip to content

Commit

Permalink
[docs] update build docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhaode committed Jun 18, 2024
1 parent 96b26b8 commit b8abbe8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ CI构建状态:
./script/android_build.sh
# android apk
script/android_app_build.sh
./script/android_app_build.sh
# ios
./script/ios_build.sh
```

一些编译宏:
Expand Down
8 changes: 4 additions & 4 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ Current CI build status:
# linux
./script/build.sh
# macos
./script/build.sh
# windows msvc
./script/build.ps1
Expand All @@ -140,7 +137,10 @@ Current CI build status:
./script/android_build.sh
# android apk
script/android_app_build.sh
./script/android_app_build.sh
# ios
./script/ios_build.sh
```

The default backend used is `CPU`. If you want to use a different backend, you can add a MNN compilation macro within the script:
Expand Down
2 changes: 2 additions & 0 deletions ios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
3. 在xcode项目属性中`Signing & Capabilities` > `Team`输入自己的账号;`Bundle Identifier`可以重新命名;
4. 连接iPhone并编译执行,需要在手机端打开开发者模式,并在安装完成后在:`设置` > `通用` > `VPN与设备管理`中选择信任该账号;

备注:如测试其他模型,可以将`ios/mnn-llm/model/qwen1.5-0.5b-chat`替换为其他模型的文件夹;同时修改`LLMInferenceEngineWrapper.m +38`的模型路径;

## 测试
等待模型加载完成后即可发送信息,如下图所示:
![ios-app](./ios_app.jpg)

0 comments on commit b8abbe8

Please sign in to comment.