Skip to content

Commit 05f7a72

Browse files
committed
Update Phi-3 iOS build instructions
1 parent 009920d commit 05f7a72

File tree

1 file changed

+2
-2
lines changed
  • mobile/examples/phi-3/ios/LocalLLM/LocalLLM

1 file changed

+2
-2
lines changed

mobile/examples/phi-3/ios/LocalLLM/LocalLLM/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ git clone https://github.com/microsoft/onnxruntime-genai
6565

6666
cd onnxruntime-genai
6767

68-
python3 build.py --parallel --build_dir ./build_iphoneos --ios --ios_sysroot iphoneos --ios_arch arm64 --ios_deployment_target 16.6 --cmake_generator Xcode
68+
python3 build.py --parallel --build_dir ./build_iphoneos --ios --apple_sysroot iphoneos --osx_arch arm64 --apple_deploy_target 16.6 --cmake_generator Xcode
6969

7070
```
7171

@@ -98,7 +98,7 @@ The app uses Objective-C/C++ since using Generative AI with ONNX Runtime C++ API
9898

9999
Download from hf repo: <https://huggingface.co/microsoft/Phi-3-mini-128k-instruct-onnx/tree/main/cpu_and_mobile/cpu-int4-rtn-block-32-acc-level-4>
100100

101-
After downloading completes, you need to copy files over to the `Resources` directory in the `Destination` column of `Target-LocalLLM`->`Build Phases`-> `New Copy File Phases` -> `Copy Files`.
101+
After downloading the files, Click on `LocalLLM` project from sidebar, go to `Targets > LocalLLM > Build Phases`. Find the Copy Files section, set the Destination to Resources, and add the downloaded files.
102102

103103
Upon app launching, Xcode will automatically copy and install the model files from Resources folder and directly download to the iOS device.
104104

0 commit comments

Comments
 (0)