sedweave-0.5b / OLLAMA.md
asterbraid's picture
Sedweave 0.5B: offline natural-language-to-sed with execution-verified data and GGUF
6faf46c verified
|
Raw History Blame Contribute Delete
821 Bytes
# 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.