Skip to content

Commit

Permalink
Merge pull request #544 from Paladinium/alltalkbeta
Browse files Browse the repository at this point in the history
Bugfixes for docker build and start scripts + readme
  • Loading branch information
Paladinium authored Feb 27, 2025
2 parents cef6d8c + 13db476 commit 7a59e9c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DOCKER_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ following optional arguments:
- Example: `docker-start.sh --rvc_voices /my/rvc/voices/dir`
- `--no_ui` allows you to not expose port 7852 for the gradio interface. Note that you still have to set `launch_gradio`
to `false` via JSON file passed to `--config`.
- `--tag` allows to choose the docker tag of the image to run. Defaults to `latest`.
- `--tag` allows to choose the docker tag of the image to run. Defaults to `latest-xtts`.
- Example: `docker-start.sh --tag mytag`
- `--docker-repository` allows to choose another Docker repository for pulling the image from. Use an empty
string for the local repo.
Expand All @@ -80,7 +80,7 @@ reason, you may want to use `docker-build.sh` with the following arguments:
- `--docker-repository` allows to choose another Docker repository for tagging the image from. Use an empty
string for the local repo.
- `--local-deepspeed-build` should only be used in rare cases where DeepSpeed needs to be rebuilt. Defaults to `false`.
- `--clean` allows remove existing dependency build like conda environment or DeepSpeed.
- `--clean` allows remove existing dependency build like conda environment or DeepSpeed. Defaults to `false`.
- Example: `docker-build.sh --clean`


3 changes: 3 additions & 0 deletions docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ while [ "$#" -gt 0 ]; do
shift
done

# Append slash if missing:
DOCKER_REPOSITORY=$(echo "$DOCKER_REPOSITORY" | sed 's![^/]$!&/!')

if [ "$CLEAN" = true ]; then
rm -rf ${SCRIPT_DIR=}/docker/deepspeed/build
# Recreate directories after clean
Expand Down
7 changes: 4 additions & 3 deletions docker-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
. ${SCRIPT_DIR=}/docker/variables.sh

WITH_UI=true
DOCKER_TAG=latest
DOCKER_TAG=latest-xtts
DOCKER_REPOSITORY=erew123
declare -a ADDITIONAL_ARGS=()

Expand Down Expand Up @@ -46,10 +46,11 @@ while [ "$#" -gt 0 ]; do
shift
done

# Append slash if missing:
DOCKER_REPOSITORY=$(echo "$DOCKER_REPOSITORY" | sed 's![^/]$!&/!')

# Compose docker arguments based on user input to the script:
declare -a DOCKER_ARGS=()
echo "REPO = $DOCKER_REPOSITORY"
exit 0

if [[ -n $CONFIG ]]; then
# Mount the config file to docker_confignew.json:
Expand Down
3 changes: 3 additions & 0 deletions docker/base/build-base-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ while [ "$#" -gt 0 ]; do
shift
done

# Append slash if missing:
DOCKER_REPOSITORY=$(echo "$DOCKER_REPOSITORY" | sed 's![^/]$!&/!')

echo "Building conda environment using python ${PYTHON_VERSION} with CUDA ${CUDA_VERSION}"

docker buildx \
Expand Down
5 changes: 4 additions & 1 deletion docker/deepspeed/build-deepspeed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ while [ "$#" -gt 0 ]; do
DOCKER_TAG="$2"
shift
;;
--github-repository)
--docker-repository)
if [ -n "$2" ] && ! [[ $2 =~ ^--.* ]]; then
DOCKER_REPOSITORY="$2"
shift
Expand All @@ -39,6 +39,9 @@ while [ "$#" -gt 0 ]; do
shift
done

# Append slash if missing:
DOCKER_REPOSITORY=$(echo "$DOCKER_REPOSITORY" | sed 's![^/]$!&/!')

PYTHON_SHORT_VERSION=${PYTHON_VERSION%.*}
PYTHON_VERSION_NO_DOT=${PYTHON_SHORT_VERSION//./}
if [[ -n $(find build -name "deepspeed-${DEEPSPEED_VERSION}*-cp${PYTHON_VERSION_NO_DOT}-cp${PYTHON_VERSION_NO_DOT}-*.whl") ]]
Expand Down

0 comments on commit 7a59e9c

Please sign in to comment.