unsloth/docker
danielhanchen 9e9877e11e docker: pin the llama.cpp bake by target arch, add docker_confirm.sh
The first bake attempt reused studio/install_llama_prebuilt.py, but that
resolver selects a bundle for the CURRENT host: on a GPU build host
/proc/driver/nvidia leaks into docker build and the resolver goes down the
CUDA path with no readable driver runtime (chosen_asset=none, exit 2),
while on a GPU-less CI runner it would resolve a CPU bundle instead. Both
violate the image's build-host-independence rule.

fetch_llama_prebuilt.py pins by build target only: amd64 takes the
linux-x64-cuda12-portable bundle, arm64 the linux-arm64-cuda13-portable
bundle (DGX Spark / Grace), both sha256-verified against the release's
llama-prebuilt-sha256.json. convert_hf_to_gguf.py plus gguf-py/ are
hydrated from the same release's source tarball so the converter's tensor
mappings match the binaries, mirroring unsloth_zoo's
_hydrate_converter_sources layout. LLAMA_PREBUILT_TAG build-arg overrides
the pinned release.

docker_confirm.sh: one-command confirmation script for any machine
(Linux / WSL2 / macOS) following the staging confirm-script conventions:
host + docker + GPU detection with CPU-mode auto-fallback, image pulls,
in-container torch.cuda check, 5-step LoRA training smoke, baked llama.cpp
verification, full-image boot probing Studio /api/health and JupyterLab
/api, PASS/WARN/FAIL summary with RESULT line.
2026-06-12 05:06:51 +00:00
..
.dockerignore Add entrypoint with GPU pre-flight checks + opinionated run.sh wrapper 2026-05-24 07:04:48 +00:00
build.sh Add Docker build for Blackwell that runs on any NVIDIA GPU host 2026-05-24 06:52:58 +00:00
docker_confirm.sh docker: pin the llama.cpp bake by target arch, add docker_confirm.sh 2026-06-12 05:06:51 +00:00
Dockerfile docker: pin the llama.cpp bake by target arch, add docker_confirm.sh 2026-06-12 05:06:51 +00:00
Dockerfile.studio docker: ship Jupyter, Studio and prebuilt llama.cpp out of the box 2026-06-12 05:06:51 +00:00
entrypoint.sh docker: ship Jupyter, Studio and prebuilt llama.cpp out of the box 2026-06-12 05:06:51 +00:00
fetch_llama_prebuilt.py docker: pin the llama.cpp bake by target arch, add docker_confirm.sh 2026-06-12 05:06:51 +00:00
freeze.sh Add Docker build for Blackwell that runs on any NVIDIA GPU host 2026-05-24 06:52:58 +00:00
hf_pull.sh hf_{push,pull}.sh: use new hf CLI, fall back to deprecated huggingface-cli 2026-05-24 09:40:22 +00:00
hf_push.sh hf_{push,pull}.sh: use new hf CLI, fall back to deprecated huggingface-cli 2026-05-24 09:40:22 +00:00
run.sh docker: ship Jupyter, Studio and prebuilt llama.cpp out of the box 2026-06-12 05:06:51 +00:00
setup_qemu.sh Add linux/arm64 (DGX Spark / Grace) support via QEMU at build time 2026-05-24 10:34:59 +00:00
smoke_test.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-06-12 04:35:41 +00:00
studio_launch.sh docker: ship Jupyter, Studio and prebuilt llama.cpp out of the box 2026-06-12 05:06:51 +00:00
supervisord.conf docker: ship Jupyter, Studio and prebuilt llama.cpp out of the box 2026-06-12 05:06:51 +00:00
test_locally.sh docker/test_locally.sh: fail fast + pin notebook fetch to immutable SHA 2026-05-27 15:56:30 +00:00