Feature Request: cancel model loading from the web UI

Open Beginner friendly
#32,019 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@wenyuchen96 is already working on this.

Since Nov 13, 2026.

  • #32225 by @wenyuchen96 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp, typescript
Domain
backend, frontend

Research direction

Start with ModelsService.unload() in tools/ui/src/lib/services/models.service.ts, then find the model manager screen and inline model picker mentioned in the issue. Add a Cancel button in both loading contexts and call the existing unload API. Verify that canceling a loading model stops the load and that the existing unload behavior still works.

Written by the indexing model from the issue text.

Description

enhancement
Prerequisites
  • I am running the latest code. Mention the version if possible as well.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new and useful enhancement to share.
Feature Description

There is no way to cancel the loading of a model from the web UI. llama-server already supports it, since a POST to /models/unload kills the loading child. This issue requests a button to cancel a model while it is loading.

Motivation

A misclick requires waiting for the model to finish loading before it can be unloaded, which for a large model can be a long time.

Possible Implementation

The required API call is the same as the one already used by the web UI to unload models, ModelsService.unload() in tools/ui/src/lib/services/models.service.ts. It only needs to be wired into a Cancel button in the model manager screen and the inline model picker.

Dominant language
C++
Stars
134k
Forks
25.4k
Avg merge
2d 5h
Merged PRs (30d)
509

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ggml-org/llama.cpp

All issues in ggml-org/llama.cpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.