Skip to content

docs(examples): add env-refs example for PARAM and preset env references - #287

Merged
outofcoffee merged 1 commit into
mainfrom
example-env-refs
Nov 23, 2026
Merged

outofcoffee merged 1 commit into
mainfrom
example-env-refs

Conversation

@outofcoffee

Copy link
Copy Markdown
Collaborator

Adds examples/env-refs/, a runnable walkthrough of $FOO, ${FOO} and ${FOO:-default} references in PARAM lines and preset values, so the feature merged in #285 has an example of its own next to remote-spinloop.

Summary

  • Spinloop and preset.ini carry references with sensible defaults, so the dry run works on any machine with nothing exported.
  • The README shows the syntax table, the dry-run output with and without QUANT/PORT/NGL set, when references resolve (consumption, not reading; serve's shell vs the ENV/.env the deploy paths apply first), and the exact errors a malformed reference produces — every quoted output verified against the built binary.
  • Linked from the README guides list and the Spinloop-file doc's PARAM section.

Implementation details

No Go changes; the example deliberately pairs with the qwen3.8-27b walkthrough it borrows its model from, and every command is a --dry-run, so CI and readers need neither a GPU nor llama-server.

A dry-run-only walkthrough of $FOO, ${FOO} and ${FOO:-default}
resolution, with the Spinloop and preset carrying references and the
README's commands and output verified against the built binary. Linked
from the README guides list and the Spinloop-file doc.
@outofcoffee outofcoffee added the documentation Improvements or additions to documentation label Nov 23, 2026
@outofcoffee
outofcoffee merged commit 965fcfe into main Nov 23, 2026
5 checks passed
@outofcoffee
outofcoffee deleted the example-env-refs branch November 23, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant