m64_fbfd8ff7225c / Dockerfile
37 lines, 2.1 KBraw
1# sensenova-u1.5-8b-gb10.2# Base: nvcr.io/nvidia/pytorch:25.09-py3, pinned by digest (the same as kromoss-dmd2-gb10's).3FROM nvcr.io/nvidia/pytorch@sha256:f3b4a33fd60d5e0358287bb44d57e91eda45e8f1681fef1bfd6c96937141713045# Reproduces gx10's sensenova-u1:gb10 image (vlmtest/machines/gx10/docker/Dockerfile.sensenova-u1,6# built by build_sensenova_u1.sh) exactly: the packages its pip freeze adds to this NGC base, pinned,7# --no-deps (the vendor's torch/torchvision pins stay stripped: NGC's torch has the GB10 kernels),8# and the vendor package at the same commit of the feat/u1.5 branch, as a sha256-checked tarball.9RUN pip install --no-cache-dir --no-deps \10 accelerate==1.15.0 \11 annotated-doc==0.0.5 \12 click==8.5.0 \13 fastapi==0.142.2 \14 hf-xet==1.6.0 \15 huggingface_hub==1.33.0 \16 opentelemetry-api==1.45.0 \17 pillow==12.0.0 \18 regex==2026.9.29 \19 safetensors==0.8.0 \20 sentencepiece==0.2.1 \21 shellingham==1.5.4 \22 starlette==1.7.0 \23 tokenizers==0.23.2 \24 transformers==5.18.0 \25 typer==0.27.2 \26 typing-inspection==0.4.4 \27 uvicorn==0.54.0 \28 "https://github.com/OpenSenseNova/SenseNova-U1/archive/48bf8275478f2216d2e846f48bf7627bf56b1301.tar.gz#sha256=ddb385b98bbbf2b023b4a5253205b800a1aa2547c1ee6d907e5024ef8f826182" \29 && python3 -c "import torch, sensenova_u1; assert torch.__version__.startswith('2.9'), torch.__version__; print('ok')"3031# The server imports the vendor's engine wrapper from /opt/sensenova-u1/examples/t2i (the gx1032# image had the repo checked out there); the wheel above does not ship examples/, so the same33# sha256-checked tarball is also unpacked to /opt/sensenova-u1.34RUN python3 -c "import urllib.request as u; u.urlretrieve('https://github.com/OpenSenseNova/SenseNova-U1/archive/48bf8275478f2216d2e846f48bf7627bf56b1301.tar.gz', '/tmp/sn.tgz')" \35 && echo 'ddb385b98bbbf2b023b4a5253205b800a1aa2547c1ee6d907e5024ef8f826182 /tmp/sn.tgz' | sha256sum -c - \36 && mkdir -p /opt/sensenova-u1 && tar xzf /tmp/sn.tgz -C /opt/sensenova-u1 --strip-components=1 && rm /tmp/sn.tgz \37 && test -f /opt/sensenova-u1/examples/t2i/inference.py