Add conda-free Docker setup for the Gradio demo (CUDA 12.1)#358
Open
kunci115 wants to merge 11 commits into
Open
Add conda-free Docker setup for the Gradio demo (CUDA 12.1)#358kunci115 wants to merge 11 commits into
kunci115 wants to merge 11 commits into
Conversation
Add conda-free setup: Dockerfile, docker-compose, venv script, README install docs for CUDA 12.1.
Author
|
@microsoft-github-policy-service agree |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a reproducible, conda-free way to run the image-to-3D Gradio demo (
app.py) on a Linux server with an NVIDIA GPU, plus a plainvenvscript for non-Docker users. Aimed at people who hit friction setting the project up today on modern dependency versions.Added
Dockerfile— CUDA 12.1 + PyTorch 2.4.0 (cu121), GPU arch pinned to8.9(Ada / RTX 40-series, configurable viaTORCH_CUDA_ARCH_LIST). Builds all required CUDA extensions (nvdiffrast, diffoctreerast, diff-gaussian-rasterization, kaolin, spconv, xformers) and uses thexformersattention backend (noflash-attnbuild needed).docker-compose.yml— GPU passthrough, port 7860, persistent HF model cache volume, GPU selection..dockerignoresetup_venv.sh— conda-freevenvinstall mirroring the Docker dependency set.Fixes folded in (needed to run on current dep versions)
--no-build-isolationso they compile against the installed PyTorch.transformers/huggingface_hubto versions compatible with gradio 4.44.1 (HfFolderimport).fastapi,starlette,pydantic) to gradio-4.44-era versions and patchgradio_clientfor tolerant JSON-schema parsing (fixes theAPIInfoParseError/unhashable type: 'dict'startup crashes).0.0.0.0:7860so it is reachable from outside the container.Verification
Built and verified serving on 2× RTX 4090 (CUDA 13.x driver):
The existing conda
setup.shis left untouched; this is purely additive.