Skip to content

Misc. bug: ui: "Stream connection lost and could not be resumed" with slow models after 1a87dcdc #25158

Description

@sdroege

Name and Version

./llama-cli --version
version: 9843 (86b94708f)
built with GNU 16.1.1 for Linux x86_64

Operating systems

Linux

Which llama.cpp modules do you know to be affected?

llama-server

Command line

./llama-server --port 8012 --models-max 1 --sleep-idle-seconds 600 --models-preset ./models.ini --host 0.0.0.0 --webui-mcp-proxy --threads-http 2 -np 1 --threads 8 --tools get_datetime

Relevant models.ini entry:

[unsloth/Mistral-Small-4-119B-2603-GGUF:Q4_K_M]
mmap = true
fit = on
fit-target = 0
no-mmproj = true
spec-type = ngram-mod

c = 131072
temp = 0.15

Problem description & steps to reproduce

When using slow models from the llama-server web UI, after 1a87dcd it errors out in the UI after a couple of seconds during prompt processing. For me this only happens with Mistral Small 4 or Qwen 3.5 122B-A10B.

Error message in the UI is "Stream connection lost and could not be resumed". Below some more details from the Firefox devtools.

Reverting 1a87dcd on latest git master makes the problem disappear again.

Firefox console:

[AgenticStore] Starting agentic flow with 12 tools [bundle.BibSbayV.js:226:12667](http://127.0.0.1:8012/_app/immutable/bundle.BibSbayV.js)
Failed to connect with service worker for getRuleList msg undefined [content.js:1:34437](moz-extension://d07b1982-a590-4189-90ef-886c3b98d90b/content.js)
XHR
GET
[http://127.0.0.1:8012/v1/stream/8635c7a5-73f8-44ff-acbf-ffe3f11572c3::unsloth/Mistral-Small-4-119B-2603-GGUF:Q4_K_M?from=563](http://127.0.0.1:8012/v1/stream/8635c7a5-73f8-44ff-acbf-ffe3f11572c3%3A%3Aunsloth%2FMistral-Small-4-119B-2603-GGUF%3AQ4_K_M?from=563)
[HTTP/1.1 404 Not Found 16000ms]

Error in sendMessage: Error: Stream connection lost and could not be resumed
    Immutable 32
[bundle.BibSbayV.js:181:20875](http://127.0.0.1:8012/_app/immutable/bundle.BibSbayV.js)
Streaming error: Error: Stream connection lost and could not be resumed
    Immutable 32
[bundle.BibSbayV.js:226:38847](http://127.0.0.1:8012/_app/immutable/bundle.BibSbayV.js)
XHR
GET
[http://127.0.0.1:8012/v1/stream/8635c7a5-73f8-44ff-acbf-ffe3f11572c3::unsloth/Mistral-Small-4-119B-2603-GGUF:Q4_K_M?from=0](http://127.0.0.1:8012/v1/stream/8635c7a5-73f8-44ff-acbf-ffe3f11572c3%3A%3Aunsloth%2FMistral-Small-4-119B-2603-GGUF%3AQ4_K_M?from=0)
[HTTP/1.1 404 Not Found 0ms]

attachServerStream replay got HTTP 404 for conv 8635c7a5-73f8-44ff-acbf-ffe3f11572c3 [bundle.BibSbayV.js:226:23762](http://127.0.0.1:8012/_app/immutable/bundle.BibSbayV.js)
XHR
GET
[http://127.0.0.1:8012/v1/stream/8635c7a5-73f8-44ff-acbf-ffe3f11572c3::unsloth/Mistral-Small-4-119B-2603-GGUF:Q4_K_M?from=0](http://127.0.0.1:8012/v1/stream/8635c7a5-73f8-44ff-acbf-ffe3f11572c3%3A%3Aunsloth%2FMistral-Small-4-119B-2603-GGUF%3AQ4_K_M?from=0)
[HTTP/1.1 404 Not Found 0ms]

attachServerStream replay got HTTP 404 for conv 8635c7a5-73f8-44ff-acbf-ffe3f11572c3 [bundle.BibSbayV.js:226:23762](http://127.0.0.1:8012/_app/immutable/bundle.BibSbayV.js)
XHR
GET
[http://127.0.0.1:8012/v1/stream/8635c7a5-73f8-44ff-acbf-ffe3f11572c3::unsloth/Mistral-Small-4-119B-2603-GGUF:Q4_K_M?from=0](http://127.0.0.1:8012/v1/stream/8635c7a5-73f8-44ff-acbf-ffe3f11572c3%3A%3Aunsloth%2FMistral-Small-4-119B-2603-GGUF%3AQ4_K_M?from=0)
[HTTP/1.1 404 Not Found 0ms]

attachServerStream replay got HTTP 404 for conv 8635c7a5-73f8-44ff-acbf-ffe3f11572c3 [bundle.BibSbayV.js:226:23762](http://127.0.0.1:8012/_app/immutable/bundle.BibSbayV.js)

​```

Firefox devtools network view:

Image

First Bad Commit

1a87dcd , i.e. #23226

Relevant log output

Details
[33837] cmd_child_to_router:state:{"state":"ready","payload":{"id":"unsloth/Mistral-Small-4-119B-2603-GGUF:Q4_K_M","aliases":["unsloth/Mistral-Small-4-119B-2603-GGUF:Q4_K_M"],"tags":[],"object":"model","created":1782798344,"owned_by":"llamacpp","meta":{"vocab_type":2,"n_vocab":131072,"n_ctx":131072,"n_ctx_train":1048576,"n_embd":4096,"n_params":118972826624,"size":73755267072}}}
0.44.639.211 I srv  proxy_reques: proxying request to model unsloth/Mistral-Small-4-119B-2603-GGUF:Q4_K_M on port 33837
[33837] 0.07.838.432 I slot get_availabl: id  0 | task -1 | selected slot by LRU, t_last = -1
[33837] 0.07.838.653 I slot launch_slot_: id  0 | task 0 | processing task, is_child = 0
[33837] 0.25.434.913 I slot print_timing: id  0 | task 0 | prompt processing, n_tokens =   2048, progress = 0.27, t =  17.60 s / 116.39 tokens per second
1.02.245.290 I srv  proxy_reques: proxying request to model unsloth/Mistral-Small-4-119B-2603-GGUF:Q4_K_M on port 33837
[33837] 0.41.149.423 I slot print_timing: id  0 | task 0 | prompt processing, n_tokens =   4096, progress = 0.54, t =  33.31 s / 122.96 tokens per second
1.17.958.880 E srv    operator(): http client error: Connection handling canceled
[33837] 0.56.458.303 I slot print_timing: id  0 | task 0 | prompt processing, n_tokens =   6144, progress = 0.81, t =  48.62 s / 126.37 tokens per second
[33837] 1.11.568.477 I slot print_timing: id  0 | task 0 | prompt eval time =   63158.38 ms /  7572 tokens (    8.34 ms per token,   119.89 tokens per second)
[33837] 1.11.568.480 I slot print_timing: id  0 | task 0 |        eval time =     571.41 ms /    10 tokens (   57.14 ms per token,    17.50 tokens per second)
[33837] 1.11.568.481 I slot print_timing: id  0 | task 0 |       total time =   63729.79 ms /  7582 tokens
[33837] 1.11.568.485 I slot print_timing: id  0 | task 0 |    graphs reused =          9
[33837] 1.11.568.817 I slot      release: id  0 | task 0 | stop processing: n_tokens = 7581, truncated = 0

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions