File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
examples/demo-apps/react-native/rnllama Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ A React Native mobile application for running LLaMA language models using ExecuT
1010
1111- Run LLaMA models directly on device, build the UI using React Native
1212- Tested using Llama 3.2 SpinQuant 1B on iPhone 12 Pro
13+ - The setup is heavily inspired by the [ LLaMA iOS app example] ( https://github.com/pytorch/executorch/tree/main/examples/demo-apps/apple_ios/LLaMA )
1314
1415
1516## Prerequisites
@@ -29,13 +30,13 @@ A React Native mobile application for running LLaMA language models using ExecuT
2930
30316 . Navigate to the example: ` cd examples/demo-apps/react-native/rnllama `
3132
32- 7 . Install dependencies: ` npm install `
33+ 7 . Install dependencies: ` npm install && cd ios && pod install && cd .. `
3334
34358 . Run the app: ` npx expo run:ios --device ` and select a USB connected iOS device
3536
36379 . Find the device in finder, and place the exported ` .pte ` model and the downloaded tokenizer under the app.
3738
383910 . Select the model and tokenizer in the app to start chatting:
3940
40- ![ Select model ] ( ./ assets/images/select_model.png )
41+ [ ![ rnllama ]] ( https://github.com/user-attachments/ assets/0ca5a258-a248-4247-9e09-451945c1014b )
4142
Original file line number Diff line number Diff line change 1212 <scene sceneID =" EXPO-SCENE-1" >
1313 <objects >
1414 <viewController storyboardIdentifier =" SplashScreenViewController" id =" EXPO-VIEWCONTROLLER-1" sceneMemberID =" viewController" >
15- <viecw key =" view" userInteractionEnabled =" NO" contentMode =" scaleToFill" insetsLayoutMarginsFromSafeArea =" NO" id =" EXPO-ContainerView" userLabel =" ContainerView" >
15+ <view key =" view" userInteractionEnabled =" NO" contentMode =" scaleToFill" insetsLayoutMarginsFromSafeArea =" NO" id =" EXPO-ContainerView" userLabel =" ContainerView" >
1616 <rect key =" frame" x =" 0.0" y =" 0.0" width =" 393" height =" 852" />
1717 <autoresizingMask key =" autoresizingMask" flexibleMaxX =" YES" flexibleMaxY =" YES" />
1818 <subviews >
You can’t perform that action at this time.
0 commit comments