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

Commit 555a10e

Browse files
authored
Merge branch 'main' into multimodal_cli_pipeline
2 parents b86c77c + 6fae164 commit 555a10e

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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/*
1516
et-build/*
1617
runner-et/cmake-out/*
1718
runner-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/

torchchat/edge/docs/Android.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ In your app working directory (for example executorch/examples/demo-apps/android
3737
copy the AAR to your app libs:
3838
```bash
3939
mkdir -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
4646
dependencies {

torchchat/generate.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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 = []

0 commit comments

Comments
 (0)