Skip to content

Commit

Permalink
feat(sagemaker): add trust remote code to entrypoint (huggingface#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierDehaene authored Jun 2, 2023
1 parent e7248fe commit 62fc401
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sagemaker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ if [[ -n "${HF_MODEL_QUANTIZE}" ]]; then
export QUANTIZE="${HF_MODEL_QUANTIZE}"
fi

if [[ -n "${HF_MODEL_TRUST_REMOTE_CODE}" ]]; then
export TRUST_REMOTE_CODE="${HF_MODEL_TRUST_REMOTE_CODE}"
fi

text-generation-launcher --port 8080

0 comments on commit 62fc401

Please sign in to comment.