mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #491] [CLOSED] docker: GGUF_DIR, RESIDENT_BUDGET_GIB and KV_STREAMING env vars; document the stop timeout #2664
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2664
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/491
Author: @mad9home
Created: 10/2/2026
Status: ❌ Closed
Base:
main← Head:docker/gguf-dir-and-stop-timeout📝 Commits (10+)
50c7d40Verify restored draft KV and fail incomplete state fingerprints6622371Refresh core validation record for upstream 0.1.272cc4e76Report actual draft residency in snapshot verification980b354Record linked 0.1.27 core build and host validationf9d99afRecord final Linux snapshot and RAM cache acceptance8d5f80bIgnore llama.cpp dependency directories and symlinks6bf9c68Remove planning documents from the core PRd9a02e6Compare cache-disabled engines against untouched upstreamcecf697Retain unchanged KV storage across repeated conversation parking8dddc9eBound incremental snapshot fragmentation and preserve cache admission📊 Changes
3 files changed (+22 additions, -2 deletions)
View changed files
📝
Dockerfile(+2 -1)📝
docker-entrypoint.sh(+11 -1)📝
docs/INSTALL.md(+9 -0)📄 Description
What
GGUF_DIRpasses setup's--gguf-dir, so a container can use model files the host already has. #252 and #444 answer this for the native setup; the entrypoint had no way to pass it, soFAMILY=unslothdownloaded 111 GB again.RESIDENT_BUDGET_GIBandKV_STREAMINGpass--resident-budget-giband--kv-streaming. Unset keeps setup's own defaults, so nothing changes for existing users.docs/INSTALL.md: the mounted GGUF folder has to be writable on the first start (the Unsloth SHA-256 result is kept as<shard>.donenext to each shard;:roworks afterwards), and a note on the stop timeout.Why the stop timeout: releasing ~56 GiB of page-locked RAM after SIGTERM takes ~20 s here, longer than Docker's 10 s default, so
docker stopkills the server (exit 137). With--stop-timeout 60it exits cleanly (exit 0).Tested on v0.1.35, RTX 3090, Linux, image built from this branch (
CUDA_ARCHITECTURES=86,BUILD_VISION=0):GGUF_DIR=/gguf(writable),FAMILY=unsloth MODEL=UD-Q4_K_XL--native /gguf/…, healthy, answersRESIDENT_BUDGET_GIB=60 KV_STREAMING=on CONTEXT=65536--resident-budget-gib 60,--kv-resident 32768in the config:rodocker stop -t 10/--stop-timeout 60No engine or setup.py change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.