Skip to content

Commit b16bb30

Browse files
committed
fp32
1 parent 066a813 commit b16bb30

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

extension/android/executorch_android/android_test_setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ prepare_tinyllama() {
2525
# Create params.json file
2626
touch params.json
2727
echo '{"dim": 288, "multiple_of": 32, "n_heads": 6, "n_layers": 6, "norm_eps": 1e-05, "vocab_size": 32000}' > params.json
28-
python -m examples.models.llama.export_llama -c stories15M.pt -p params.json -d fp16 -n stories15m_h.pte -kv
28+
python -m examples.models.llama.export_llama -c stories15M.pt -p params.json -d fp32 -n stories15m_h.pte -kv
2929
python -m pytorch_tokenizers.tools.llama2c.convert -t tokenizer.model -o tokenizer.bin
3030

3131
cp stories15m_h.pte "${BASEDIR}/src/androidTest/resources/stories.pte"

extension/android/executorch_android/src/androidTest/java/org/pytorch/executorch/ModuleE2ETest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public void testStories() throws IOException, URISyntaxException{
9999

100100
Module module = Module.load(getTestFilePath(filePath));
101101
module.loadMethod("forward");
102+
module.forward();
102103
}
103104

104105
public void testMv2Fp32() throws IOException, URISyntaxException {

0 commit comments

Comments
 (0)