Skip to content

sparkrun logs

Terminal window
sparkrun logs <target> [options]

Show the logs of a running workload, with docker logs / journalctl semantics. TARGET can be a recipe name or a cluster ID (from sparkrun status output).

Called bare, it dumps the workload’s logs and exits. Use -f to stay attached and stream new output — Ctrl+C detaches and never kills the inference job.

OptionDescription
--hosts / -HComma-separated host list
--hosts-fileFile with hosts (one per line, # comments)
--clusterUse a saved cluster by name
--tp / --tensor-parallelMatch host trimming from run
--portOverride port (to match run-time override)
--served-model-nameOverride served model name (to match run-time override)
-n / --lines / --tailNumber of log lines to show (default: all). With -f, sets the scrollback shown before following.
-f / --followStay attached and stream new lines
-a / --all-sourcesRead every worker/rank, not just the head

By default sparkrun logs reads the head. -a / --all-sources adds every worker:

  • Without -f, each source is dumped in full — head first, then workers by rank.
  • With -f, the streams interleave in arrival order.
Terminal window
# Dump everything the head has logged
sparkrun logs qwen3-1.7b-vllm --cluster mylab
# Last 200 lines, then follow
sparkrun logs qwen3-1.7b-vllm --cluster mylab -n 200 -f
# Follow head and all workers together
sparkrun logs e5f6a7b8 -f -a