Skip to content

Commit

Permalink
Set MODEL_ID in sagemaker-entrypoint script
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 committed May 19, 2023
1 parent 5a58226 commit deded7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sagemaker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -17,4 +18,4 @@ if [[ -n "${HF_MODEL_QUANTIZE}" ]]; then
export QUANTIZE="${HF_MODEL_QUANTIZE}"
fi

text-generation-launcher --port 8080
text-generation-launcher --port 8080

0 comments on commit deded7d

Please sign in to comment.