Skip to content

Commit 017e62c

Browse files
committed
Fix
1 parent a5aeaaf commit 017e62c

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

.ci/scripts/test_llama.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,17 @@ prepare_artifacts_upload() {
206206
fi
207207
}
208208

209-
# Download llama artifacts
210-
download_stories_model_artifacts
211-
# Create tokenizer.bin.
212-
echo "Creating tokenizer.bin"
213-
$PYTHON_EXECUTABLE -m extension.llm.tokenizer.tokenizer -t tokenizer.model -o tokenizer.bin
209+
# Download and create artifacts.
210+
PARAMS="params.json"
211+
CHECKPOINT_FILE_NAME=""
212+
touch "${PARAMS}"
213+
if [[ "${MODEL_NAME}" == "llama" ]] || [[ "${MODEL_NAME}" == "stories"* ]] || [[ "${MODEL_NAME}" == "tinyllama" ]]; then
214+
CHECKPOINT_FILE_NAME="stories110M.pt"
215+
download_stories_model_artifacts
216+
else
217+
echo "Unsupported model name ${MODEL_NAME}"
218+
exit 1
219+
fi
214220

215221
# Check dtype.
216222
EXPORTED_MODEL_NAME="tinyllama_${MODE}_${DTYPE}"

.ci/scripts/test_qnn_static_llama.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ echo "Creating tokenizer.bin"
2020
$PYTHON_EXECUTABLE -m extension.llm.tokenizer.tokenizer -t tokenizer.model -o tokenizer.bin
2121

2222
export EXECUTORCH_ROOT="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
23-
export QNN_SDK_ROOT=/tmp/qnn/2.28.0.241029
24-
export LD_LIBRARY_PATH="${QNN_SDK_ROOT}/lib/x86_64-linux-clang"
25-
export PYTHONPATH=".."
26-
cp schema/program.fbs exir/_serialize/program.fbs
27-
cp schema/scalar_type.fbs exir/_serialize/scalar_type.fbs
28-
cp -f build-x86/backends/qualcomm/PyQnnManagerAdaptor.cpython-310-x86_64-linux-gnu.so backends/qualcomm/python
29-
cp -f build-x86/backends/qualcomm/PyQnnWrapperAdaptor.cpython-310-x86_64-linux-gnu.so backends/qualcomm/python
23+
export QNN_SDK_ROOT=/tmp/qnn/2.28.0.241029
24+
export LD_LIBRARY_PATH="${QNN_SDK_ROOT}/lib/x86_64-linux-clang"
25+
export PYTHONPATH=".."
26+
cp schema/program.fbs exir/_serialize/program.fbs
27+
cp schema/scalar_type.fbs exir/_serialize/scalar_type.fbs
28+
cp -f build-x86/backends/qualcomm/PyQnnManagerAdaptor.cpython-310-x86_64-linux-gnu.so backends/qualcomm/python
29+
cp -f build-x86/backends/qualcomm/PyQnnWrapperAdaptor.cpython-310-x86_64-linux-gnu.so backends/qualcomm/python
3030

3131

3232
# Compile only as weight sharing is not applicable on x86

0 commit comments

Comments
 (0)