Koda

Kodafile

Configure model behavior with a YAML config file.

A Kodafile is a YAML config file that defines a model's behavior — useful for project-specific assistants or repeatable setups.

Create a Kodafile

koda create            # writes a Kodafile template in the current directory
koda run --kodafile Kodafile

Format

base: llama3.2
system: You are a concise coding assistant. Respond in plain text, no markdown.
parameters:
  n_ctx: 8192
  temperature: 0.7
  top_p: 0.9
  repeat_penalty: 1.1

Fields

FieldDescriptionDefault
baseModel name (required)
systemSystem prompt"You are a helpful assistant."
parameters.n_ctxContext window size (tokens)4096
parameters.temperatureSampling temperature0.8
parameters.top_pNucleus sampling
parameters.top_kTop-K sampling
parameters.repeat_penaltyRepetition penalty
parameters.max_tokensMax tokens to generate (-1 = unlimited)-1

On this page