File tree Expand file tree Collapse file tree 2 files changed +18
-12
lines changed
Expand file tree Collapse file tree 2 files changed +18
-12
lines changed Original file line number Diff line number Diff 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.
216222EXPORTED_MODEL_NAME=" tinyllama_${MODE} _${DTYPE} "
Original file line number Diff line number Diff 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
2222export 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
You can’t perform that action at this time.
0 commit comments