Skip to content

v10.0: Large Prompts Timing Out #1364

Description

@korgano

OS: Windows 11 Pro
Lemonade version: 10.0

When using Lemonade as an LLM provider for another application (in this case, AnythingLLM), large prompts keep failing to generate output due to a Curl timeout:

2026-03-13 20:17:49.599 [Info] (Server) Model already loaded: user.Magidonia-v4.2.0
2026-03-13 20:17:49.599 [Info] (Server) POST /api/v1/chat/completions - Streaming
2026-03-13 20:17:49.663 [Info] (Process) srv  params_from_: Chat format: peg-native
2026-03-13 20:17:49.664 [Info] (Process) slot get_availabl: id  3 | task -1 | selected slot by LRU, t_last = -1
2026-03-13 20:17:49.664 [Info] (Process) slot launch_slot_: id  3 | task -1 | sampler chain: logits -> ?penalties -> ?dry -> ?top-n-sigma -> top-k -> ?typical -> top-p -> min-p -> ?xtc -> temp-ext -> dist 
2026-03-13 20:17:49.664 [Info] (Process) slot launch_slot_: id  3 | task 0 | processing task, is_child = 0
2026-03-13 20:17:49.664 [Info] (Process) slot update_slots: id  3 | task 0 | new prompt, n_ctx_slot = 32000, n_keep = 16, task.n_tokens = 15868
2026-03-13 20:17:49.664 [Info] (Process) slot update_slots: id  3 | task 0 | n_tokens = 0, memory_seq_rm [0, end)
2026-03-13 20:17:49.664 [Info] (Process) slot update_slots: id  3 | task 0 | prompt processing progress, n_tokens = 2048, batch.n_tokens = 2048, progress = 0.129065
2026-03-13 20:18:14.192 [Info] (Process) slot update_slots: id  3 | task 0 | n_tokens = 2048, memory_seq_rm [2048, end)
2026-03-13 20:18:14.192 [Info] (Process) slot update_slots: id  3 | task 0 | prompt processing progress, n_tokens = 4096, batch.n_tokens = 2048, progress = 0.258130
2026-03-13 20:18:47.901 [Info] (Process) slot update_slots: id  3 | task 0 | n_tokens = 4096, memory_seq_rm [4096, end)
2026-03-13 20:18:47.902 [Info] (Process) slot update_slots: id  3 | task 0 | prompt processing progress, n_tokens = 6144, batch.n_tokens = 2048, progress = 0.387194
2026-03-13 20:19:23.204 [Info] (Process) slot update_slots: id  3 | task 0 | n_tokens = 6144, memory_seq_rm [6144, end)
2026-03-13 20:19:23.204 [Info] (Process) slot update_slots: id  3 | task 0 | prompt processing progress, n_tokens = 8192, batch.n_tokens = 2048, progress = 0.516259
2026-03-13 20:20:00.208 [Info] (Process) slot update_slots: id  3 | task 0 | n_tokens = 8192, memory_seq_rm [8192, end)
2026-03-13 20:20:00.208 [Info] (Process) slot update_slots: id  3 | task 0 | prompt processing progress, n_tokens = 10240, batch.n_tokens = 2048, progress = 0.645324
2026-03-13 20:20:38.786 [Info] (Process) slot update_slots: id  3 | task 0 | n_tokens = 10240, memory_seq_rm [10240, end)
2026-03-13 20:20:38.786 [Info] (Process) slot update_slots: id  3 | task 0 | prompt processing progress, n_tokens = 12288, batch.n_tokens = 2048, progress = 0.774389
2026-03-13 20:21:18.840 [Info] (Process) slot update_slots: id  3 | task 0 | n_tokens = 12288, memory_seq_rm [12288, end)
2026-03-13 20:21:18.840 [Info] (Process) slot update_slots: id  3 | task 0 | prompt processing progress, n_tokens = 14336, batch.n_tokens = 2048, progress = 0.903453
2026-03-13 20:22:00.223 [Info] (Process) slot update_slots: id  3 | task 0 | n_tokens = 14336, memory_seq_rm [14336, end)
2026-03-13 20:22:00.226 [Info] (Process) slot init_sampler: id  3 | task 0 | init sampler, took 2.24 ms, tokens: text = 15868, total = 15868
2026-03-13 20:22:00.226 [Info] (Process) slot update_slots: id  3 | task 0 | prompt processing done, n_tokens = 15868, batch.n_tokens = 1532
2026-03-13 20:22:42.931 [Info] (Process) srv  log_server_r: done request: POST /v1/chat/completions 127.0.0.1 200
2026-03-13 20:22:49.680 [Info] (Process) srv          stop: cancel task, id_task = 0
2026-03-13 20:22:49.913 [Info] (Process) slot      release: id  3 | task 0 | stop processing: n_tokens = 15898, truncated = 0
2026-03-13 20:22:49.913 [Info] (Process) srv  update_slots: all slots are idle

This was not an issue with Lemonade v9.1+, and seems to be a reversion of the behavior from #572.

Proposed Solution: Surface the timeout value in the CLI and GUI, allowing the user to configure it as necessary when issues with long prompts occur.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area::apiHTTP REST API surface and route handlersbugSomething isn't workingpriority::🔥hot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions