From deded7dc726f05388a0705a2bdfe26d5fdf222d9 Mon Sep 17 00:00:00 2001 From: Xin Yang Date: Fri, 19 May 2023 11:01:39 -0700 Subject: [PATCH] Set MODEL_ID in sagemaker-entrypoint script --- sagemaker-entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sagemaker-entrypoint.sh b/sagemaker-entrypoint.sh index 711e3721b30..1340f55a77a 100755 --- a/sagemaker-entrypoint.sh +++ b/sagemaker-entrypoint.sh @@ -4,6 +4,7 @@ if [[ -z "${HF_MODEL_ID}" ]]; then echo "HF_MODEL_ID must be set" exit 1 fi +export MODEL_ID="${HF_MODEL_ID}" if [[ -n "${HF_MODEL_REVISION}" ]]; then export REVISION="${HF_MODEL_REVISION}" @@ -17,4 +18,4 @@ if [[ -n "${HF_MODEL_QUANTIZE}" ]]; then export QUANTIZE="${HF_MODEL_QUANTIZE}" fi -text-generation-launcher --port 8080 \ No newline at end of file +text-generation-launcher --port 8080