unsloth/docker
Daniel Han 6d0f184781 docker: strip VCS refs before the basename, bake the value-flag drift check into the build
A VCS @ref can itself contain a slash (@feature/foo), and the shim split the
last path segment BEFORE dropping the ref, so
git+https://github.com/unslothai/unsloth.git@feature/foo canonicalized as
"foo" and a protected repo installed from a branch dodged _KEEP. The ref is
now stripped from the path portion first (after the authority, so an SSH
userinfo @ is never mistaken for the ref separator, matching pip's own
last-@ parsing), with regressions for slash refs, SSH userinfo, plain tags
and the no-ref form.

The help-derived value-flag drift guards were version-sensitive: repo CI runs
whatever pip/uv are current, so the next tool release turned unrelated PRs
red (pip 26 added --all-releases/--only-final/--requirements-from-script/
--uploaded-prior-to, uv added --no-editable-package/--upgrade-group; all six
now classified). The guards are opt-in for local runs
(UNSLOTH_SHIM_FLAG_DRIFT_CHECK=1) and the authoritative check now runs at
image build time via a new --unsloth-selfcheck-value-flags mode wired into
the Dockerfile verify step, where the baked pip/uv are exactly the tools the
shim fronts, so a flag added by a future baked-tool bump fails the build
instead of a user's notebook cell.
2026-07-16 06:16:20 +00:00
..
jupyter docker: add the AGPL-3.0 SPDX header to the new Python files 2026-07-16 04:57:43 +00:00
.dockerignore docker: Colab-grade JupyterLab and Studio UX for the Unsloth image (#6681) 2026-07-06 08:27:00 -07:00
build.sh docker: track latest llama.cpp release + show its update banner in Studio 2026-06-24 01:21:17 +00:00
Dockerfile docker: strip VCS refs before the basename, bake the value-flag drift check into the build 2026-07-16 06:16:20 +00:00
Dockerfile.studio docker: dedupe repeated rationale comments and parametrize the pip-shim tests 2026-07-16 05:27:22 +00:00
entrypoint.sh docker: preflight every GPU, classify all uv/pip value flags, volume-safe llama update 2026-07-16 05:51:15 +00:00
fetch_llama_prebuilt.py docker: add the AGPL-3.0 SPDX header to the new Python files 2026-07-16 04:57:43 +00:00
NOTICE docker: Colab-grade JupyterLab and Studio UX for the Unsloth image (#6681) 2026-07-06 08:27:00 -07:00
run.sh docker: Colab-grade JupyterLab and Studio UX for the Unsloth image (#6681) 2026-07-06 08:27:00 -07:00
smoke_test.py docker: add the AGPL-3.0 SPDX header to the new Python files 2026-07-16 04:57:43 +00:00
studio_launch.sh docker: Colab-grade JupyterLab and Studio UX for the Unsloth image (#6681) 2026-07-06 08:27:00 -07:00
supervisord.conf docker: optional Cloudflare tunnel for JupyterLab (UNSLOTH_JUPYTER_CLOUDFLARE) 2026-06-24 09:55:11 +00:00
unsloth_colab_compat.py docker: add the AGPL-3.0 SPDX header to the new Python files 2026-07-16 04:57:43 +00:00
unsloth_ipython_startup.py docker: add the AGPL-3.0 SPDX header to the new Python files 2026-07-16 04:57:43 +00:00
unsloth_jupyter_tunnel.sh docker: optional Cloudflare tunnel for JupyterLab (UNSLOTH_JUPYTER_CLOUDFLARE) 2026-06-24 09:55:11 +00:00
unsloth_llama_update.sh docker: preflight every GPU, classify all uv/pip value flags, volume-safe llama update 2026-07-16 05:51:15 +00:00
unsloth_nb_compat.py docker: add the AGPL-3.0 SPDX header to the new Python files 2026-07-16 04:57:43 +00:00
unsloth_nb_content_sig.py docker: add the AGPL-3.0 SPDX header to the new Python files 2026-07-16 04:57:43 +00:00
unsloth_nb_pip_magic.py docker: add the AGPL-3.0 SPDX header to the new Python files 2026-07-16 04:57:43 +00:00
unsloth_nb_strip_colab.py docker: add the AGPL-3.0 SPDX header to the new Python files 2026-07-16 04:57:43 +00:00
unsloth_nb_view.py docker: add the AGPL-3.0 SPDX header to the new Python files 2026-07-16 04:57:43 +00:00
unsloth_pip_shim.py docker: strip VCS refs before the basename, bake the value-flag drift check into the build 2026-07-16 06:16:20 +00:00
unsloth_run.py docker: add the AGPL-3.0 SPDX header to the new Python files 2026-07-16 04:57:43 +00:00
unsloth_studio_update.sh docker: address review follow-ups (pip-shim flags, sync ownership, tags, zoo ref, arch list) 2026-06-26 09:06:39 +00:00
unsloth_sync_notebooks.sh docker: dedupe repeated rationale comments and parametrize the pip-shim tests 2026-07-16 05:27:22 +00:00