awkweave-1.5b / OLLAMA.md
asterbraid's picture
Add Ollama Modelfile and local-run instructions
3dee8e4 verified
|
Raw History Blame Contribute Delete
973 Bytes
# Run Awkweave 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.
```bash
ollama create awkweave -f Modelfile
```
Generate a program by supplying a request and representative input in the same format used during training:
```bash
ollama run awkweave $'Request:\nPrint each name and the running total of column 2.\n\nSample input:\n```text\nalice 10\nbruno 15\nchen 7\n```'
```
Expected output:
```awk
{s+=$2;print $1,s}
```
The model returns a bare `awk` program, not a shell command. Review it before execution. To run that example with `awk` itself:
```bash
printf 'alice 10\nbruno 15\nchen 7\n' | awk '{s+=$2;print $1,s}'
```
Expected result:
```text
alice 10
bruno 25
chen 32
```
For a local HTTP API instead, use `llama-server` directly with `awkweave-1.5b.Q4_K_M.gguf` or the larger Q8_0 build. See the main model card for that command.