File tree Expand file tree Collapse file tree 2 files changed +7
-24
lines changed
Expand file tree Collapse file tree 2 files changed +7
-24
lines changed Original file line number Diff line number Diff line change @@ -206,17 +206,11 @@ prepare_artifacts_upload() {
206206 fi
207207}
208208
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
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
220214
221215# Check dtype.
222216EXPORTED_MODEL_NAME=" tinyllama_${MODE} _${DTYPE} "
Original file line number Diff line number Diff line change 1313
1414which " ${PYTHON_EXECUTABLE} "
1515
16-
17- # Download and create artifacts.
18- PARAMS=" params.json"
19- CHECKPOINT_FILE_NAME=" "
20- touch " ${PARAMS} "
21- if [[ " ${MODEL_NAME} " == " llama" ]] || [[ " ${MODEL_NAME} " == " stories" * ]] || [[ " ${MODEL_NAME} " == " tinyllama" ]]; then
22- CHECKPOINT_FILE_NAME=" stories110M.pt"
23- download_stories_model_artifacts
24- else
25- echo " Unsupported model name ${MODEL_NAME} "
26- exit 1
27- fi
28-
16+ # Download stories llama110m artifacts
17+ download_stories_model_artifacts
2918# Create tokenizer.bin.
3019echo " Creating tokenizer.bin"
3120$PYTHON_EXECUTABLE -m extension.llm.tokenizer.tokenizer -t tokenizer.model -o tokenizer.bin
You can’t perform that action at this time.
0 commit comments