Skip to content

Instantly share code, notes, and snippets.

@mostlygeek
Last active May 30, 2026 23:18
Show Gist options
  • Select an option

  • Save mostlygeek/106f0145ff7d71136f4cfb1af58526ce to your computer and use it in GitHub Desktop.

Select an option

Save mostlygeek/106f0145ff7d71136f4cfb1af58526ce to your computer and use it in GitHub Desktop.
llama-swap config matrix demo
# yaml-language-server: $schema=https://raw.githubusercontent.com/mostlygeek/llama-swap/refs/heads/main/config-schema.json
sendLoadingState: true
models:
"load-1s-A":
cmd: build/fake-model -listen localhost:${PORT} -load 1s -tokens 50 -tps 25
"load-1s-B":
cmd: build/fake-model -listen localhost:${PORT} -load 1s -tokens 50 -tps 25
"load-1s-C":
cmd: build/fake-model -listen localhost:${PORT} -load 1s -tokens 50 -tps 25
"load-1s-D":
cmd: build/fake-model -listen localhost:${PORT} -load 1s -tokens 50 -tps 25
"load-1s-E":
cmd: build/fake-model -listen localhost:${PORT} -load 1s -tokens 50 -tps 25
"load-1s-F":
cmd: build/fake-model -listen localhost:${PORT} -load 1s -tokens 50 -tps 25
matrix:
vars:
A: load-1s-A
B: load-1s-B
C: load-1s-C
D: load-1s-D
E: load-1s-E
F: load-1s-F
sets:
s1: (A & B & C) | (D & E) | F
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment