Skip to content

Commit

Permalink
review(docker): unset MAX_INPUT_LENGTH when set
Browse files Browse the repository at this point in the history
  • Loading branch information
tengomucho committed Jan 6, 2025
1 parent cda63dd commit 21d5a1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions text-generation-inference/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export MAX_BATCH_SIZE="${MAX_BATCH_SIZE}"
# MAX_BATCH_PREFILL_TOKENS if not set)
if [[ -z "${MAX_INPUT_TOKENS}" && -n ${MAX_INPUT_LENGTH} ]]; then
MAX_INPUT_TOKENS=${MAX_INPUT_LENGTH}
fi
if [[ -n "${MAX_INPUT_LENGTH}" ]]; then
echo "MAX_INPUT_LENGTH is deprecated, please use MAX_INPUT_TOKENS instead. Variable will be unset."
unset MAX_INPUT_LENGTH
fi

Expand Down

0 comments on commit 21d5a1c

Please sign in to comment.