unsloth/docker
Daniel Han 7606081ef6 docker: add unsloth-llama-update for in-place llama.cpp prebuilt updates
Parity with unsloth-studio-update: update the baked llama.cpp prebuilt in a
running container without pulling a new image.

    docker exec <container> unsloth-llama-update           # latest release
    docker exec <container> unsloth-llama-update --check   # report only

It reuses the build-time fetcher (fetch_llama_prebuilt.py, now baked at
/usr/local/lib/unsloth) rather than the host-probing installer behind the
in-app banner. The fetcher resolves the latest release via the GitHub
/releases/latest redirect (no API token, not rate-limited) and installs the
portable CUDA bundle that runs on CPU and every supported GPU, so it works the
same in a CPU-only or a --gpus container. The installer path, by contrast,
scans the GitHub API (rate-limited to 403 in practice) and probes the host GPU,
which falls back to a slow source build in a container started without --gpus.

The fetch lands in a sibling temp dir on the same filesystem and is swapped in
with an atomic rename; on any failure the existing install is left untouched.
The Studio ownership marker is preserved across the swap. Verified end to end
in a CPU-only container: b9596-mix-e6f2453 -> b9773-mix-1f1aaa4.
2026-06-24 06:41:33 +00:00
..
.dockerignore docker: add unsloth-llama-update for in-place llama.cpp prebuilt updates 2026-06-24 06:41:33 +00:00
build.sh docker: track latest llama.cpp release + show its update banner in Studio 2026-06-24 01:21:17 +00:00
docker_confirm.ps1 docker_confirm: accept locally built images when pull fails 2026-06-12 18:06:40 +00:00
docker_confirm.sh docker_confirm: accept locally built images when pull fails 2026-06-12 18:06:40 +00:00
Dockerfile docker: track latest llama.cpp release + show its update banner in Studio 2026-06-24 01:21:17 +00:00
Dockerfile.studio docker: add unsloth-llama-update for in-place llama.cpp prebuilt updates 2026-06-24 06:41:33 +00:00
entrypoint.sh docker: pre-load unslothai/notebooks into JupyterLab, edit-safe refresh 2026-06-15 06:35:08 +00:00
fetch_llama_prebuilt.py docker: track latest llama.cpp release + show its update banner in Studio 2026-06-24 01:21:17 +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: review fixes from the 8-reviewer pass and staging CI 2026-06-12 05:31:24 +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: second review pass fixes 2026-06-12 05:59:52 +00:00
supervisord.conf docker: review fixes from the 8-reviewer pass and staging CI 2026-06-12 05:31:24 +00:00
test_locally.sh docker: review fixes from the 8-reviewer pass and staging CI 2026-06-12 05:31:24 +00:00
unsloth_ipython_startup.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-06-15 03:13:48 +00:00
unsloth_llama_update.sh docker: add unsloth-llama-update for in-place llama.cpp prebuilt updates 2026-06-24 06:41:33 +00:00
unsloth_nb_compat.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-06-15 03:13:48 +00:00
unsloth_nb_content_sig.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-06-16 03:49:07 +00:00
unsloth_pip_shim.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-06-15 03:13:48 +00:00
unsloth_run.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2026-06-15 03:13:48 +00:00
unsloth_studio_update.sh docker: add unsloth-studio-update for in-place Studio updates 2026-06-24 06:16:54 +00:00
unsloth_sync_notebooks.sh docker: heal deleted notebooks on boot + fix notebooks helper dockerignore 2026-06-16 06:14:45 +00:00