Skip to content

Commit 57c5547

Browse files
committed
Use stories15m
1 parent 944b90b commit 57c5547

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

extension/android/executorch_android/android_test_setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ BASEDIR=$(dirname "$(realpath $0)")
1616
cp "${BASEDIR}/../../../extension/module/test/resources/add.pte" "${BASEDIR}/src/androidTest/resources"
1717

1818
pushd "${BASEDIR}/../../../"
19-
curl -C - -Ls "https://huggingface.co/karpathy/tinyllamas/resolve/main/stories110M.pt" --output stories110M.pt
19+
curl -C - -Ls "https://huggingface.co/karpathy/tinyllamas/resolve/main/stories15M.pt" --output stories15M.pt
2020
curl -C - -Ls "https://raw.githubusercontent.com/karpathy/llama2.c/master/tokenizer.model" --output tokenizer.model
2121
# Create params.json file
2222
touch params.json
23-
echo '{"dim": 768, "multiple_of": 32, "n_heads": 12, "n_layers": 12, "norm_eps": 1e-05, "vocab_size": 32000}' > params.json
24-
python -m examples.models.llama.export_llama -c stories110M.pt -p params.json -d fp16 -n stories110m_h.pte -kv
23+
echo '{"dim": 288, "multiple_of": 32, "n_heads": 6, "n_layers": 6, "norm_eps": 1e-05, "vocab_size": 32000}' > params.json
24+
python -m examples.models.llama.export_llama -c stories15M.pt -p params.json -d fp16 -n stories15m_h.pte -kv
2525
python -m pytorch_tokenizers.tools.llama2c.convert -t tokenizer.model -o tokenizer.bin
2626

27-
cp stories110m_h.pte "${BASEDIR}/src/androidTest/resources/stories.pte"
27+
cp stories15m_h.pte "${BASEDIR}/src/androidTest/resources/stories.pte"
2828
cp tokenizer.bin "${BASEDIR}/src/androidTest/resources/tokenizer.bin"
2929
popd

scripts/run_android_emulator.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ adb uninstall org.pytorch.executorch.test || true
2222
adb install -t android-test-debug-androidTest.apk
2323

2424
adb logcat -c
25-
adb shell am instrument -w -r -e class org.pytorch.executorch.ModuleInstrumentationTest \
26-
org.pytorch.executorch.test/androidx.test.runner.AndroidJUnitRunner >result.txt 2>&1
25+
adb shell am instrument -w -r -e class org.pytorch.executorch.ModuleInstrumentationTest >result.txt 2>&1
2726
adb logcat -d > logcat.txt
2827
cat logcat.txt
2928
grep -q FAILURES result.txt && cat result.txt

0 commit comments

Comments
 (0)