Skip to content

README: say UNSLOTH_LLAMA_CPP_BACKEND picks the GGUF chat build, not PyTorch - #14256

Merged
LeoBorcherding merged 3 commits into
unslothai:mainfrom
LeoBorcherding:docs/readme-llama-cpp-backend-scope
Nov 5, 2026
Merged

LeoBorcherding merged 3 commits into
unslothai:mainfrom
LeoBorcherding:docs/readme-llama-cpp-backend-scope

Conversation

@LeoBorcherding

Copy link
Copy Markdown
Collaborator

The "Vulkan, custom llama.cpp backends" section said "You can force the backend during installation", which reads as if UNSLOTH_LLAMA_CPP_BACKEND picks the whole stack. It only selects the llama.cpp bundle that GGUF chat runs on; the installer picks PyTorch separately from the detected GPU. A user on an integrated gfx90c set UNSLOTH_LLAMA_CPP_BACKEND=vulkan, saw ROCm PyTorch start installing, and took the variable as ignored. Reported in a Discord help thread.

This changes that sentence to say what the variable covers, and adds the two existing ways to control PyTorch directly:

  • UNSLOTH_TORCH_INDEX_FAMILY pins the PyTorch wheel index and skips GPU probing (install.sh get_torch_index_url)
  • --no-torch skips PyTorch for a GGUF-chat-only install

README only, no code changes.

@Imagineer99

Copy link
Copy Markdown
Member

The wording matches the installer logic, and the shell check confirms the flag works. One small suggestion is to separate the two install options so copying the whole block doesn’t install PyTorch before the GGUF-only setup. Looks good to merge with that tweak.

@LeoBorcherding
LeoBorcherding merged commit 59631d2 into unslothai:main Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants