awkweave-0.5b / OLLAMA.md
asterbraid's picture
Use verified prompt examples and document paraphrase sensitivity
ccdd20a verified
|
Raw History Blame Contribute Delete
1.15 kB

Run Awkweave 0.5B with Ollama

The included Modelfile selects the Q4_K_M build, applies the required system prompt, limits the context to 4,096 tokens, and uses deterministic generation.

ollama create awkweave-0.5b -f Modelfile

Generate a program with a request and representative input:

ollama run awkweave-0.5b $'Request:\nFor each record, print column 1 and the running sum of column 2, separated by a space.\n\nSample input:\n```text\nalice 10\nbruno 15\nchen 7\n```'

Expected output:

{s+=$2;print $1,s}

The model returns a bare awk program. Review it before execution. To run the example with awk itself:

printf 'alice 10\nbruno 15\nchen 7\n' | awk '{s+=$2;print $1,s}'

Expected result:

alice 10
bruno 25
chen 32

For a local HTTP API, use llama-server with awkweave-0.5b.Q4_K_M.gguf or the larger Q8_0 build. The 1.5B sibling model is more accurate on the frozen evaluation; choose based on your speed and accuracy needs.

Outputs can be sensitive to request phrasing. Prefer explicit field positions and operations, and review generated programs before execution.