Skip to content

Commit 0f3035d

Browse files
committed
Fix tests
1 parent 96ba40b commit 0f3035d

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

.ci/scripts/test_eval_llama_mmlu.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ run_and_verify() {
3535
exit 1
3636
fi
3737
$PYTHON_EXECUTABLE -m examples.models.llama.eval_llama \
38+
--model llama2
3839
-c stories110M.pt \
3940
-p params.json \
4041
-t tokenizer.model \

.ci/scripts/test_eval_llama_wikitext.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ run_and_verify() {
3535
exit 1
3636
fi
3737
$PYTHON_EXECUTABLE -m examples.models.llama.eval_llama \
38+
--model llama2 \
3839
-c stories110M.pt \
3940
-p params.json \
4041
-t tokenizer.model \

.ci/scripts/test_llama.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ if [[ "${QNN}" == "ON" ]]; then
206206
EXPORT_ARGS="${EXPORT_ARGS} -kv -v --qnn --disable_dynamic_shape"
207207
fi
208208
# Add dynamically linked library location
209-
$PYTHON_EXECUTABLE -m examples.models.llama.export_llama ${EXPORT_ARGS}
209+
$PYTHON_EXECUTABLE -m examples.models.llama.export_llama --model llama3 ${EXPORT_ARGS}
210210

211211
# Create tokenizer.bin.
212212
echo "Creating tokenizer.bin"

.ci/scripts/test_llama_runner_eager.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ run_and_verify() {
3535
exit 1
3636
fi
3737
$PYTHON_EXECUTABLE -m examples.models.llama.runner.eager \
38+
--model llama2
3839
-c stories110M.pt \
3940
-p params.json \
4041
-t tokenizer.model \

.ci/scripts/test_model.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ test_model() {
7777
# Install requirements for export_llama
7878
bash examples/models/llama/install_requirements.sh
7979
# Test export_llama script: python3 -m examples.models.llama.export_llama
80-
"${PYTHON_EXECUTABLE}" -m examples.models.llama.export_llama -c examples/models/llama/params/demo_rand_params.pth -p examples/models/llama/params/demo_config.json
80+
"${PYTHON_EXECUTABLE}" -m examples.models.llama.export_llama --model llama2 -c examples/models/llama/params/demo_rand_params.pth -p examples/models/llama/params/demo_config.json
8181
run_portable_executor_runner
8282
rm "./${MODEL_NAME}.pte"
8383
fi

0 commit comments

Comments
 (0)