Repository navigation
Local Ollama setup keeps getting stuck during consolidation #6744
|
Everything works fine for me, except consolidation. I've turned consolidation off for now, and I've tried running it manually during idle times. But every time, it consolidates maybe 10 items, and then gets stuck. I can hear the GPU on my PC running, and it will just run for like an hour with nothing happening. Even if I quit the processing consolidation task in Hindsight and shutdown the Ollama LXC, the GPU just keeps running. I can't get it to stop until I actually reboot the host computer that's running Ollama. Here is my Hindsight docker compose. Note, I just added |
Replies: 3 comments 15 replies
|
I checked this against v1.2.3. Nothing in your config caps a consolidation reply's length, so one item where the model loops runs until the 1800 s timeout, then
What I'd set: HINDSIGHT_API_CONSOLIDATION_LLM_EXTRA_BODY: '{"options":{"num_predict":2048}}'These Check Hindsight only talks HTTP to Ollama and your compose gives it no GPU, so a GPU still busy after the LXC stops is a host-side question: check which process holds it. #6250 hit the same thing on another backend. |
|
For the remaining HINDSIGHT_API_CONSOLIDATION_LLM_EXTRA_BODY: '{"options":{"num_predict":4096}}'
HINDSIGHT_API_CONSOLIDATION_DEDUP_THRESHOLD: "1.0"The documented code gate disables that extra pass at 1.0. The main consolidation call still runs. Trade-off: similar observations can remain separate; this does not clean up existing duplicates. It is a server/worker setting, so consider other banks that worker serves. Recreate the service with the changed environment, then verify the value in the process actually running consolidation before your next manual attempt. Compose restart does not apply environment changes; Compose up can recreate with the changed configuration. I have not run Docker against your deployment. A private deterministic harness passed 14 tests against the pinned source: real batch/main parsing and Ollama provider code, with synthetic responses, embeddings, recall, storage and action-write doubles. For both CREATE and UPDATE, 0.97 propagated the dedup length error; 1.0 kept the main call and reached fake application/marking without a dedup request. Real engine/poller paths also requeued through a fake connection with worker caps 0/1 at retry counts 0/100. This verifies control flow, not real database persistence, model quality or completion of the remaining backlog. Your |
|
I have a new, related question: Instead of turning auto consolidate off, is there a config setting that tells consolidate to wait X amount of time after retaining so it doesn't try to do it simultaneously? |
I checked this against v1.2.3. Nothing in your config caps a consolidation reply's length, so one item where the model loops runs until the 1800 s timeout, then
LLM_MAX_RETRIES: 1resends it for another 1800 s. That fits your hour./api/chatwithstream: false,think: false, the schema informat, and onlynum_batch,num_ctxandtemperatureinoptions(openai_compatible_llm.py#L1764-L1798).CONSOLIDATION_MAX_TOKENSis the recall budget (consolidator.py#L3780); the output cap,CONSOLIDATION_MAX_COMPLETION_TOKENS, is unset by default, so nonum_predictgoes out. Ollama then bounds generation only at 10 ×num_ctx(llama_server.go#L124-L136): up to 1.3M tokens …