File size: 821 Bytes
6faf46c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Run Sedweave 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 sedweave-0.5b -f Modelfile
```

Generate a command with a request and representative input:

```bash
ollama run sedweave-0.5b $'Request:\nReplace every occurrence of amber with delta.\n\nSample input:\n```text\namber birch\ncobalt amber\n```'
```

Expected output:

```sed
sed s/amber/delta/g
```

Review generated commands before execution. To run that example with `sed` itself:

```bash
printf 'amber birch\ncobalt amber\n' | sed 's/amber/delta/g'
```

Expected result:

```text
delta birch
cobalt delta
```

For a local HTTP API, use `llama-server` with `sedweave-0.5b.Q4_K_M.gguf` or the larger Q8_0 build.