Files
mu/scripts
dc71c33042 ygg-models.sh setup and clean: the local model server in one command (#90)
* ygg-models.sh setup and clean; the example names its files and sources (local-models-setup LS-T3)

setup does the first-time setup and is safe to run again: the GPU, the list from
the example (--price required for a new one, refused before anything changes),
the missing download files (hf, else uvx), the image, start, load, and the chat
template when the list names a missing one (the first start leaves that line out
of the preset, then template, stop, start and load). clean removes the container,
the network (refused while another container is on it) and the image; --state
and --weights remove only the files they name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H5rHSQVuXrzFdTaNXZdSde

* ygg-models.sh clean decides first, and --weights removes hf's cache folder (local-models-setup LS-T3)

clean lists the other containers on the model network before it stops anything:
a refusal names them and leaves the server, the network and the image as they
are. --weights also removes <weights>/.cache/huggingface, the state hf download
leaves there, and no other path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H5rHSQVuXrzFdTaNXZdSde

* ygg-models.sh setup never restarts the server under a run; gungnir's patterns (local-models-setup LS-T3)

setup checks the model network before step 1 when making the template would stop
and start the server, and refuses, changing nothing, while a run is on it; it
checks again before the restart. A failed template step says the server runs
without the chat template. The download repo, revision and paths use gungnir's
patterns, so none starts with a dash. clean --weights refuses a symlinked
.cache or .cache/huggingface. The network refusal points at ygg-clean.sh, and
the example says to comment out chat-template-file until template has run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01H5rHSQVuXrzFdTaNXZdSde

---------

Co-authored-by: Bruno Guilhermo de Barros Valério <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-26 02:43:23 +00:00
..