-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated phi-3 mobile android example #420
Conversation
TODO: still a couple commits might be pushed to this branch for clean up/minor updates. |
app crash when use chinese: |
Got this error
|
Are you trying this on an actual device or in android emulator? |
mobile/examples/phi-3/android/app/src/main/java/ai/onnxruntime/genai/demo/GenAIWrapper.java
Outdated
Show resolved
Hide resolved
mobile/examples/phi-3/android/app/src/main/java/ai/onnxruntime/genai/demo/GenAIWrapper.java
Show resolved
Hide resolved
mobile/examples/phi-3/android/app/src/main/java/ai/onnxruntime/genai/demo/GenAIWrapper.java
Show resolved
Hide resolved
mobile/examples/phi-3/android/app/src/main/java/ai/onnxruntime/genai/demo/MainActivity.java
Show resolved
Hide resolved
mobile/examples/phi-3/android/app/src/test/java/ai/onnxruntime/genai/demo/ExampleUnitTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Scott McKay <skottmckay@gmail.com>
Co-authored-by: Scott McKay <skottmckay@gmail.com>
Co-authored-by: Scott McKay <skottmckay@gmail.com>
Co-authored-by: Scott McKay <skottmckay@gmail.com>
…/genai/demo/GenAIWrapper.java Co-authored-by: Scott McKay <skottmckay@gmail.com>
…/genai/demo/GenAIWrapper.java Co-authored-by: Scott McKay <skottmckay@gmail.com>
…/genai/demo/GenAIWrapper.java Co-authored-by: Scott McKay <skottmckay@gmail.com>
This is based on the following two prs:
The GenAI lib used in the current version of this app is built from source code for android from onnxruntime-genai repo and uses the current main version of GenAI C API source code.
microsoft/onnxruntime-genai#227
microsoft/onnxruntime-genai#229