This repository was archived by the owner on Sep 10, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ __pycache__/
66# C extensions
77* .so
88
9+ .vscode
910.model-artifacts /
1011.venv
1112.torchchat
@@ -15,6 +16,7 @@ build/android/*
1516et-build /*
1617runner-et /cmake-out /*
1718runner-aoti /cmake-out /*
19+ cmake-out /
1820
1921# pte files
2022* .pte
@@ -24,3 +26,7 @@ system_info.txt
2426
2527# intermediate system file
2628.DS_Store
29+
30+ # build artifacts
31+ checkpoints /
32+ exportedModels /
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ In your app working directory (for example executorch/examples/demo-apps/android
3737copy the AAR to your app libs:
3838``` bash
3939mkdir -p app/libs
40- cp ${TORCHCHAT_ROOT} /android/torchchat/app/libs/executorch.aar ${YOUR_APP_ROOT} /app/libs/executorch.jar
40+ cp ${TORCHCHAT_ROOT} /android/torchchat/app/libs/executorch.aar ${YOUR_APP_ROOT} /app/libs/executorch.aar
4141```
4242
43- In your Java app, add the jar file path to your gradle build rule.
43+ In your Java app, add the aar file path to your gradle build rule.
4444```
4545# app/build.grardle.kts
4646dependencies {
Original file line number Diff line number Diff line change @@ -841,7 +841,7 @@ def chat(
841841 )
842842 for i in range (num_samples ):
843843 device_sync (device = self .builder_args .device )
844- if i >= 0 and generator_args .chat_mode :
844+ if generator_args .chat_mode :
845845 prompt = input ("User: " )
846846 if prompt == "/bye" :
847847 print ("Exiting Chat.\n " )
@@ -884,7 +884,6 @@ def chat(
884884 )
885885 break
886886
887- if generator_args .chat_mode and i >= 0 :
888887 print ("Model: " , end = "" )
889888
890889 buffer = []
You can’t perform that action at this time.
0 commit comments