{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "peonist-ai-halogen-server--resume-long-conversations-with-prompt-cache",
 "repo": "peonist-ai/halogen-server",
 "repo_url": "https://github.com/peonist-ai/halogen-server",
 "repo_slug": "peonist-ai-halogen-server",
 "title": "Continue long chats without re-processing the context",
 "page_title": "How to continue long chats without re-processing the context with Halogen Server",
 "summary": "Use the prompt cache so follow-up turns on a long document resume instead of re-prefilling.",
 "who": "A user or developer running long-document Q&A or a long multi-turn session on a local Strix Halo server.",
 "problem": "Each follow-up turn on a long context normally costs a full prefill, which dominates wait time at 32K tokens.",
 "outcome": "Follow-up turns on a long conversation start quickly, with answers that match a cold run.",
 "steps": [
  "Start the server with the default settings from the run command.",
  "Send the long document in the first chat request to /v1/chat/completions on port 8731.",
  "Send a follow-up request in the same conversation that reuses the same earlier messages.",
  "Compare time to first token for the first and follow-up requests.",
  "Set HALOGEN_CACHE_MB to 0 only if you want to disable the prompt cache for a comparison run."
 ],
 "agent_prompt": "In the repo peonist-ai/halogen-server, run the halogen:0.1.4 server, send a long document from <document_path> as the first chat turn, then send the follow-up question <question> in the same conversation. Expected output: a faster time to first token on the follow-up than on the first turn. Verify that the follow-up answer is the same as a cold run with the cache disabled.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "2 hours",
 "basis": "readme",
 "caveat": "The README gives roughly 20 times faster time to first token at 32K as a measured figure, so expect different gains on other prompt sizes.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "AMD Strix Halo machine (Radeon 8060S class GPU, gfx1151) with /dev/kfd and /dev/dri available",
  "Podman (or Docker with the video and render group flags described in the README)",
  "About 36 GB of free disk for the 35.9 GB checkpoint, plus the 3.5 GB image",
  "Python with pip to install the Hugging Face CLI"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/peonist-ai-halogen-server/resume-long-conversations-with-prompt-cache/",
 "md": "https://dedupedai.com/use-cases/peonist-ai-halogen-server/resume-long-conversations-with-prompt-cache/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/peonist-ai-halogen-server--resume-long-conversations-with-prompt-cache.json",
 "api_version": "v1"
}
