File size: 973 Bytes
3dee8e4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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.