Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pip-out/
*.model
tokenizer.json
*.pte
*.ptd
!test_bpe_tokenizer.bin
!test_tiktoken_tokenizer.model

Expand Down
7 changes: 7 additions & 0 deletions extension/android/executorch_android/android_test_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ prepare_add() {
python3 -m test.models.export_program --modules "ModuleAdd" --outdir "${BASEDIR}/src/androidTest/resources/"
}

prepare_xor() {
python3 -m extension.training.examples.XOR.export_model --outdir "${BASEDIR}/src/androidTest/resources/"
mv "${BASEDIR}/src/androidTest/resources/xor.pte" "${BASEDIR}/src/androidTest/resources/xor_only.pte"
python3 -m extension.training.examples.XOR.export_model --outdir "${BASEDIR}/src/androidTest/resources/" --external
}

prepare_tinyllama() {
pushd "${BASEDIR}/../../../"
curl -C - -Ls "https://huggingface.co/karpathy/tinyllamas/resolve/main/stories15M.pt" --output stories15M.pt
Expand All @@ -43,5 +49,6 @@ prepare_vision() {
}

prepare_add
prepare_xor
prepare_tinyllama
prepare_vision
Loading