Spaces:
Running
on
T4
Running
on
T4
ARG CUDA_IMAGE="12.4.0-runtime-ubuntu22.04" | |
FROM nvidia/cuda:${CUDA_IMAGE} | |
RUN apt-get update && apt-get install --no-install-recommends -y \ | |
build-essential \ | |
git \ | |
ffmpeg && | |
apt-get clean && rm -rf /var/lib/apt/lists/* | |
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ | |
COPY . . | |
RUN useradd -m -u 1000 user | |
# Switch to the "user" user | |
USER user | |
ENV HOME=/home/user \ | |
PATH=/home/user/.local/bin:$PATH | |
WORKDIR $HOME/app | |
COPY --chown=user . $HOME/app | |
RUN uv sync --frozen --extra cu124 | |
CMD ["uv", "app.py","--strategy","cuda fp16","--model_title","RWKV-x070-World-0.1B-v2.8-20241210-ctx4096","--download_repo_id","BlinkDL/rwkv-7-world"] | |