Skip to content

[Minor Bug] llama.cpp update toast never completes and it stays pinned even after download is done #9196

Closed

Description

@ThomasEricB

Environment

Where are you using Unsloth?

  • Studio desktop application
  • Studio web UI (unsloth studio)
  • Unsloth CLI
  • Python package or notebook
  • Colab or Kaggle

Operating system and version:

  • CachyOS Linux x86_64 (Arch based)
  • Kernel: Linux 7.1.8-1-cachyos-bore
  • DE/WM: KDE Plasma 6.7.4 / KWin (Wayland)

System hardware:

  • CPU: AMD Ryzen 9 9950X3D 16-Core @ 5.76 GHz
  • Motherboard: Asus TUF GAMING X870-PLUS WIFI ATX AM5
  • RAM: Corsair Vengeance RGB 96 GB (2x48 GB) DDR5-6000
  • Cooler: Deepcool LE520
  • PSU: Corsair RM1200x SHIFT 1200W 80+ Gold

GPU model(s) and accelerator backend:

Asus GeForce RTX 5090 32 GB ROG Astral — NVIDIA CUDA (cuda13-newer prebuilt bundle)

Versions:

  • Desktop app: unsloth-desktop 1:0.1.800.beta-1
  • Python: 3.13.14
  • Torch: 2.11.0+cu130
  • Transformers: 5.5.0
  • torchao: 0.18.0+cu130
  • flash-attn: 2.8.1
  • llama.cpp before: b10360 — after: b10472-mix-4b653db (build 10472, commit 7a556b8f9)
  • whisper.cpp: v1.9.2-unsloth.11
  • Uptime: 22h 10m
  • Process memory: 248 MB

What happened?

The "Updating llama.cpp…" toast never completes. The update itself succeeds — the backend job reaches state: "success" with progress: 1.0, and the new binaries are installed and working — but the toast stays on screen with a partially filled progress bar indefinitely. It was still displayed more than 5 minutes after the job finished, and there is no way to dismiss it from the UI.

Steps to reproduce:

  1. Run a Studio desktop install whose llama.cpp is behind (here: b10360), so the update banner offers b10472 → b10472-mix-4b653db.
  2. Click Update. The toast appears and the bar animates normally.
  3. Wait for the update to finish. GET /api/llama/update-status reports job.state: "success" and job.progress: 1.0, and the binaries on disk are the new ones.

Expected behavior:

Once the job reports a terminal state, the toast shows the completed/success state and then dismisses itself (or at minimum becomes dismissable).

Actual behavior:

The toast stays pinned with an incomplete bar and the text b10472 → b10472-mix-4b653db / "No restart needed after update". It never resolves on its own and has no close affordance.

Image

Model and operation involved:

Not model-specific — this is the llama.cpp prebuilt installation/update path (chained llama.cpp + whisper.cpp update, CUDA backend, auto backend request).

Diagnostics and logs

Copy Diagnostics was not available — the pinned toast is the only update UI element on screen and it exposes no diagnostics button.

Backend job state, several minutes after the toast should have closed

GET /api/llama/update-status:

{
  "supported": true,
  "update_available": false,
  "llama_update_available": false,
  "installed_tag": "b10472",
  "latest_tag": "b10472-mix-4b653db",
  "published_repo": "unslothai/llama.cpp",
  "installed_at_utc": "2026-08-18T13:02:42Z",
  "source_build": false,
  "whisper": {
    "update_available": false,
    "installed_tag": "v1.9.2-unsloth.11",
    "latest_tag": "v1.9.2-unsloth.11",
    "skip_reason": "up_to_date"
  },
  "job": {
    "state": "success",
    "operation": "update",
    "message": "Updated llama.cpp to b10472-mix-4b653db. Updated whisper.cpp to v1.9.2-unsloth.11.",
    "from_tag": "b10360",
    "to_tag": "b10472-mix-4b653db",
    "reload_required": false,
    "error": null,
    "progress": 1.0,
    "started_at": "2026-08-18T13:02:21Z",
    "finished_at": "2026-08-18T13:02:50Z",
    "phases": {
      "llama":   { "state": "success", "progress": 1.0, "to_tag": "b10472-mix-4b653db", "error": null },
      "whisper": { "state": "success", "progress": 1.0, "to_tag": "v1.9.2-unsloth.11",  "error": null }
    }
  }
}

So the backend is clean: job succeeded, no error, no leftover lock, no in-flight reservation, and update_available is already false.

logs/backend-*.log (update window, trimmed)

13:02:27.335Z  request_completed  POST /api/llama/update  200  5751.98ms
13:02:27.339Z  llama_update_progress  percent=0
13:02:27.347Z  llama update: installing  install_llama_prebuilt.py --llama-tag latest
                 --published-repo unslothai/llama.cpp --published-release-tag b10472-mix-4b653db
13:02:34.876Z  llama_update_progress  percent=50
13:02:35.380Z  llama_update_progress  percent=60
13:02:45.050Z  llama update: success  to_tag=b10472-mix-4b653db  backend=cuda
13:02:45.050Z  whisper update: installing  install_whisper_prebuilt.py --backend cuda
                 --published-release-tag v1.9.2-unsloth.11
13:02:48.416Z  llama_update_progress  percent=70
13:02:50.010Z  whisper update: success  to_tag=v1.9.2-unsloth.11
13:02:50.228Z  llama_update_progress  percent=90
<nothing further; only /api/liveness and /api/inference/monitor polls from here on>

The log stopping at 90% is expected, not the bug: _log_llama_update_progress() in studio/backend/routes/llama.py returns early once job.state != "running", so the final step is never logged after the job flips to success.

Installed marker — ~/.unsloth/llama.cpp/UNSLOTH_PREBUILT_INFO.json

{
  "requested_tag": "latest",
  "tag": "b10472",
  "release_tag": "b10472-mix-4b653db",
  "published_repo": "unslothai/llama.cpp",
  "asset": "app-b10472-mix-4b653db-linux-x64-cuda13-newer.tar.gz",
  "backend": "cuda",
  "backend_request": "auto",
  "source_commit_short": "7a556b8",
  "bundle_profile": "cuda13-newer",
  "prebuilt_fallback_used": false,
  "installed_at_utc": "2026-08-18T13:02:42Z"
}

llama-server --version confirms the new build is in place:

version: 0.1.1-dev (build 10472, commit 7a556b8f9)
built with GNU 11.4.0 for Linux x86_64 (Compiled by the Unsloth team)

Additional context

The toast state appears to live entirely in the frontend — the llama router exposes only GET /update-status, POST /update, GET /backend and POST /backend, with no dismiss/acknowledge endpoint — so nothing server-side can clear a toast that has missed its terminal state.

The backend is not at fault here, and the tag mismatch in the payload is intentional. studio/backend/utils/llama_cpp_freshness.py (in check_prebuilt_freshness) wires up two deliberately different tag readers:

display_tag = lambda marker: marker.get("tag") or marker.get("release_tag"),      # -> "b10472"
compare_tag = lambda marker: marker.get("release_tag") or marker.get("tag"),      # -> "b10472-mix-4b653db"

The comment directly above calls these "deliberately opposite fallbacks" and explains why: comparison must use the full release identity, because "comparing the normalized base against the full latest is what produced the permanent 'downgrade' banner on every mix release." llama_cpp_update.py cites #6219 for the same area, and get_installed_llama_version() there prefers release_tag precisely so a mix build "reads back in full rather than collapsing to its base."

That is correct, and is_behind() gets the right answer: b10472-mix-4b653db == b10472-mix-4b653db → not behind → update_available: false.

The problem is the shape of what reaches the client. The payload carries installed_tag and latest_tag adjacent to each other, in two different tag namespaces, with nothing marking one as display-only:

"installed_tag": "b10472",
"latest_tag": "b10472-mix-4b653db",
"update_available": false

Any consumer that does the obvious thing — compare the two tags it is already rendering — concludes the update has not landed, forever, on every -mix-<sha> release. The base tag can never grow the suffix. This is the same footgun as #6219, just relocated from the banner to the toast's completion check.

Suggested fixes, roughly in order of preference:

  1. Key the toast's terminal state off job.state / job.progress, which are already authoritative and were "success" / 1.0 the whole time the toast stayed pinned.
  2. Give the toast a close affordance, so no single wrong predicate can pin it indefinitely.
  3. Consider making the display-only nature of installed_tag explicit in the API — either rename it, or ship the comparable identity alongside it — so this footgun stops being re-discoverable by every new consumer.

Confirmed by restart

Restarting the desktop app clears the toast: on the fresh backend the job resets to state: "idle", progress: null, and the toast does not return. Note that after the restart installed_tag and latest_tag are still different (b10472 vs b10472-mix-4b653db) while update_available remains false — so the mismatch itself is the steady-state, and any UI predicate built on those two fields being equal will misfire on every mix release, not just transiently.

Not verified: whether this reproduces on releases whose tag carries no -mix-<sha> suffix. Based on the code path it should not, since display_tag and compare_tag collapse to the same string there.

Activity

  1. added
    feature request
    on Aug 18, 2026
  2. changed the title [-][Minor Bug] llama.cpp update toast never completes and stays pinned even after download is done[/-] [+][Minor Bug] llama.cpp update toast never completes and it stays pinned even after download is done[/+] on Aug 18, 2026
  3. danielhanchen commented on Sep 9, 2026

    @danielhanchen
    Member

    Fixed! Once the job reports success the toast clears on the next poll and the polling stops. If you can still reproduce on the current build please reopen!

    To update: the desktop app updates itself (Settings > General), otherwise unsloth studio update, or in Docker docker exec <container> unsloth-studio-update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions