Skip to content

Commit 097812d

Browse files
feat: Adds option "download-only" to llmd-installer.sh #209 #294 (#296)
* feat: Adds option "download-only" to llmd-installer.sh #209 #294 This PR adds a new command line option to llmd-installer.sh, -b or --download-only. The rationale behind it is exposed on #295 Signed-off-by: maugustosilva <[email protected]> * Switched from `--download-only` to `--download-pvc-only` Signed-off-by: maugustosilva <[email protected]> --------- Signed-off-by: maugustosilva <[email protected]>
1 parent 538a7ad commit 097812d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

quickstart/llmd-installer.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ VALUES_FILE="values.yaml"
1919
DEBUG=""
2020
SKIP_INFRA=false
2121
INFRA_ONLY=false
22+
DOWNLOAD_ONLY=false
2223
DISABLE_METRICS=false
2324
MONITORING_NAMESPACE="llm-d-monitoring"
2425
DOWNLOAD_MODEL=""
@@ -46,6 +47,7 @@ Options:
4647
-d, --debug Add debug mode to the helm install
4748
-i, --skip-infra Skip the infrastructure components of the installation
4849
-e, --infra-only Only deploy infrastructure components
50+
-b, --download-pvc-only Only download model to a PVC
4951
-m, --disable-metrics-collection Disable metrics collection (Prometheus will not be installed)
5052
-D, --download-model Download the model to PVC from Hugging Face
5153
-t, --download-timeout Timeout for model download job
@@ -128,6 +130,7 @@ parse_args() {
128130
-d|--debug) DEBUG="--debug"; shift;;
129131
-i|--skip-infra) SKIP_INFRA=true; shift;;
130132
-e|--infra-only) INFRA_ONLY=true; shift;;
133+
-b|--download-pvc-only) DOWNLOAD_ONLY=true; shift;;
131134
-m|--disable-metrics-collection) DISABLE_METRICS=true; shift;;
132135
-D|--download-model) DOWNLOAD_MODEL="$2"; shift 2 ;;
133136
-t|--download-timeout) DOWNLOAD_TIMEOUT="$2"; shift 2 ;;
@@ -406,6 +409,10 @@ install() {
406409
log_success "ModelService CRD applied"
407410

408411
create_pvc_and_download_model_if_needed
412+
if [[ "${DOWNLOAD_ONLY}" == "true" ]]; then
413+
log_info "Option \"-b/--download-pvc-only\" specified, will end execution"
414+
return 0
415+
fi
409416

410417
helm repo add bitnami https://charts.bitnami.com/bitnami
411418
log_info "🛠️ Building Helm chart dependencies..."

0 commit comments

Comments
 (0)