-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some quality of life changes to API server. return number of tokens, token logprob and whether it finishes the request (in streaming). update dockerfile for better caching. formatting done with black. --------- Co-authored-by: hiworldwzj <[email protected]>
- Loading branch information
1 parent
87557d1
commit 82cb0a4
Showing
5 changed files
with
218 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# Build and push docker image to AWS ECR. | ||
|
||
set -eo pipefail | ||
|
||
if [ -z "$1" ]; then | ||
echo "Must supply AWS account ID" | ||
exit 1; | ||
fi | ||
|
||
if [ -z "$2" ]; then | ||
echo "Must supply the image tag" | ||
exit 1; | ||
fi | ||
|
||
IMAGE_TAG=$2 | ||
ACCOUNT=$1 | ||
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin $ACCOUNT.dkr.ecr.us-west-2.amazonaws.com | ||
DOCKER_BUILDKIT=1 docker build -t $ACCOUNT.dkr.ecr.us-west-2.amazonaws.com/lightllm:$IMAGE_TAG . | ||
docker push $ACCOUNT.dkr.ecr.us-west-2.amazonaws.com/lightllm:$IMAGE_TAG |
Oops, something went wrong.