Git pull old checkpoint:
Pull the whole project
# This will show you all the checkpoints
git log
# checkout the version you want
git checkout -b workingversion 92f56e5ee7227d490f6d85281c019e4c4e2dc393
Conda specify name and location vs default profile:
conda create --prefix ./program-env python=3.10.19
conda activate /path/to/program-env
Conda launch in DOS:
@echo off
call conda activate .\wan2gp_env
python wgp.py --i2v --theme gradio --open-browser
:done
pause
Conda launch in bash:
#!/bin/bash
cd /ai/comfyui
source /opt/miniconda3/bin/activate /ai/comfyui/comfyui-env
python main.py --listen 0.0.0.0 --enable-manager --enable-manager-legacy-ui
Docker build file for Wan2GP:
#Dockerfile for 14th of April 2026: WanGP v11.31, LTX-2 Mega Mix
FROM docker.io/mccorji/wan2gp-gb10:production
RUN add-apt-repository ppa:ubuntuhandbook1/ffmpeg7
RUN apt-get update && ACCEPT_EULA=Y apt-get install -y \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /workspace/requirements.txt
WORKDIR /workspace
RUN pip3 install -r /workspace/requirements.txt
RUN groupadd -g 9700001 myGroupID && \
useradd -m -u 9700009 -G myGroupID,root myUser
RUN chown myUser /workspace
EXPOSE 7860
CMD ["/bin/bash"]
File to build dockerfile:
#!/bin/bash
docker buildx build -t wan2gp:13.13 .
On demand launch docker container:
#!/usr/bin/env bash
set -euo pipefail
NAME="wan2gp-13.13"
#IMAGE="docker.io/mccorji/wan2gp-gb10:production"
IMAGE="wan2gp:13.13"
cleanup() {
echo "Signal received; stopping ${NAME}..."
docker stop "${NAME}" >/dev/null 2>&1 || true
sudo chown -R myUser:myGroupID "/docker/${NAME}"
exit 0
}
trap cleanup INT TERM HUP QUIT EXIT
# Ensure Docker CLI and daemon are available
if ! docker info >/dev/null 2>&1; then
echo "Error: Docker daemon not reachable." >&2
exit 1
fi
# Already running?
if [ -n "$(docker ps -q --filter "name=^${NAME}$" --filter "status=running")" ]; then
echo "Container ${NAME} is already running."
else
# Exists but stopped? Start it.
if [ -n "$(docker ps -aq --filter "name=^${NAME}$")" ]; then
echo "Starting existing container ${NAME}..."
docker start "${NAME}" >/dev/null
else
# Not present: create and start it.
echo "Creating and starting ${NAME}..."
docker run --name "${NAME}" \
--detach \
--gpus all \
-p 7860:7860 \
-v "/docker/${NAME}":/workspace/Wan2GP \
--shm-size=8g \
--memory=90g \
--memory-swap=100g \
-e PYTORCH_ALLOC_CONF="max_split_size_mb:512" \
-e PYTHONWARNINGS="ignore" \
-e ORT_TELEMETRY_DISABLED=1 \
"${IMAGE}" \
bash -c "
echo ''
echo '========================================='
echo ' Wan2GP on GB10'
echo '========================================='
echo ''
echo ''
echo 'NOTE: If you see an ONNX warning about GPU discovery,'
echo ' this is due to newness of GB10 and can be safely ignored'
echo ' ONXX is installed.'
echo ''
echo '========================================='
echo 'Starting application...'
echo '========================================='
echo ''
cd /workspace/Wan2GP
# python3 -m http.server
#pip3 install https://github.com/deepbeepmeep/smplfitter/releases/download/v0.2.10/smplfitter-0.2.10-py3-none-any.whl
#pip3 install mmgp==3.7.2
python3 -W ignore wgp.py --profile 1 --server-name 0.0.0.0 --server-port 7860
" >/dev/null
fi
fi
echo "Running. Press Ctrl+C to stop ${NAME}."
# Keep the script alive until a signal arrives
while :; do sleep 86400; done
What's Next:
Who knows?