Configuration#
The config file is ~/.config/dogfight/config.toml (or $XDG_CONFIG_HOME/dogfight/config.toml). Without one, the defaults below apply. dogfight config prints the default file, and dogfight status shows which file is in use.
mkdir -p ~/.config/dogfight
dogfight config > ~/.config/dogfight/config.toml
Command-line options win over the file for one run: --zorb, --krell and --backend replace the pair and the backend, and --fps, --lessons and --genetic replace those settings.
Every key#
The limits are the ones src/config.rs applies when it reads the file. A value outside the allowed set falls back to the default, and unknown keys are ignored.
key |
default |
allowed |
meaning |
|---|---|---|---|
|
|
|
|
|
|
a Hugging Face id, |
the commander of team ZORB |
|
|
a Hugging Face id, |
the commander of team KRELL |
|
|
|
GPU memory cap for the sidecar; |
|
|
|
bitsandbytes quantization on CUDA, for bigger pairs |
|
|
a path or command |
the interpreter that has torch or mlx-lm |
|
|
seconds |
the shortest pause between two sets of orders from one team |
|
|
|
write a lesson after each loss and keep it in the prompt ( |
|
|
|
evolve each team’s doctrine, the same as the |
|
|
1 to 4 |
saucers per team on screen; the loser of a game starts the next with one more |
|
|
0 to 500 |
reinforcements per team per game, then it is a fight to the death |
|
|
1 to 120 |
frames per second |
|
|
1 to 120 |
frames per second while the terminal window is unfocused |
|
|
|
|
|
|
0 to 32 |
colour change per channel ignored between frames; higher sends fewer bytes, and 3 to 8 is invisible |
|
|
|
who flies the |
The default file#
This is what dogfight config prints:
# dogfight — ~/.config/dogfight/config.toml
# Frames per second while animating, and while the window is unfocused.
fps = 30
unfocused_fps = 12
# "auto", "truecolor" or "256"
color = "auto"
# Colour change (0-255 per channel) ignored between frames. Higher = fewer bytes
# for the terminal to draw = lower CPU. 3-8 is invisible in practice.
tolerance = 5
# Who flies the "ufo" scene: "builtin" (heuristic pilots, no GPU) or "lm" (same as the
# "ufo-battle" scene: two small language models command the two teams; needs python3 with
# torch+transformers on a CUDA GPU, or mlx-lm on Apple silicon). Try `dogfight run cuda ufo-battle`;
# check the setup with `dogfight arena check --load`.
ufo_pilots = "builtin"
# Language-model commanders. Defaults are the smallest pair that plays well (2.2 GB together).
lm_backend = "auto" # auto = cuda, or mlx on Apple silicon; cpu = no GPU (tiny models); or `dogfight cuda|mlx|cpu`
lm_model_a = "Qwen/Qwen3-0.6B" # team ZORB
lm_model_b = "HuggingFaceTB/SmolLM2-360M-Instruct" # team KRELL
lm_vram_gb = "auto" # CUDA memory cap for the sidecar: auto = your card's memory
# minus 2 GB (6 GB on an 8 GB card), or a number of GB
lm_quant = "none" # cuda: none | 8bit | 4bit (bitsandbytes) for bigger models
lm_python = "python3" # interpreter that has the ML packages
lm_think_seconds = 1.0 # minimum pause between a team's orders
lm_evolve = true # learn from every destroyed saucer (lessons persist in
# ~/.local/state/dogfight/lessons; `dogfight reset model` clears)
lm_genetic = false # evolve each team's bounded doctrine with a genetic algorithm
# (same as the `evolve` word: `dogfight run ufo-battle evolve`)
lm_max_alive = 4 # saucers per team on screen (a game's loser restarts with +1)
lm_regens = 20 # reinforcements per team per game; then it is a fight to the death
Where files go#
folder |
default |
follows |
|---|---|---|
config |
|
|
state: lessons, doctrines, scores, logs |
|
|
data |
|
|
runtime, readable by you only |
|
|
downloaded models |
|
|
Hugging Face downloads#
Every catalogue model is ungated. Hugging Face slows anonymous downloads, so a free account and a read token lift the limit: run hf auth login, or set HF_TOKEN. The sidecar picks the token up on its own, and a download that hits the limit says so and retries.