Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 28770cb

Browse files
committed
Update to 0919
1 parent 031b61f commit 28770cb

File tree

4 files changed

+10128
-5
lines changed

4 files changed

+10128
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ The following assumes you've completed the steps for [Setting up ExecuTorch](#se
440440

441441
1. Download the AAR file, which contains the Java library and corresponding JNI library, to build and run the app.
442442

443-
- [executorch-240911.aar](https://ossci-android.s3.amazonaws.com/executorch/main/executorch-240911.aar) (SHASUM: 58d0f3501cc2112c0e7aad5f3d5c17fe6074a4e9)
443+
- [executorch-240919.aar](https://ossci-android.s3.amazonaws.com/executorch/main/executorch-240919.aar) (SHASUM: c8a5d38ead03bfa28ee8469f6355840ad0d182ba)
444444

445445
2. Rename the downloaded AAR file to `executorch.aar` and move the file to `android/torchchat/app/libs/`. You may need to create directory `android/torchchat/app/libs/` if it does not exist.
446446

torchchat/edge/android/torchchat/app/src/main/java/org/pytorch/torchchat/MainActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private void setLocalModel(String modelPath, String tokenizerPath) {
7979
mMessageAdapter.notifyDataSetChanged();
8080
});
8181
long runStartTime = System.currentTimeMillis();
82-
mModule = new LlamaModule(modelPath, tokenizerPath, 0.8f);
82+
mModule = new LlamaModule(modelPath, tokenizerPath, 0.0f);
8383
int loadResult = mModule.load();
8484
if (loadResult != 0) {
8585
AlertDialog.Builder builder = new AlertDialog.Builder(this);
@@ -222,7 +222,7 @@ public void run() {
222222
}
223223
});
224224

225-
mModule.generate(prompt, MainActivity.this);
225+
mModule.generate(prompt, 1000, MainActivity.this);
226226

227227
runOnUiThread(
228228
new Runnable() {

0 commit comments

Comments
 (0)