Sedweave 1.5B: text-to-sed command generator
2 min readupdated
Sedweave 1.5B turns an English text prompt and sample input data into a ready-to-use sed command (a stream text editor in Unix systems). The model is built on Qwen2.5-Coder-1.5B-Instruct using LoRA (a small add-on layer for the base model) followed by weight merging for local execution without API keys. It outputs clean commands without extra explanations or markup, making it convenient for text automation in the terminal.
Key features
- Precise generation of
sedsyntax based on a text description of the task. - Based on the lightweight Qwen2.5-Coder model with 1.5 billion parameters.
- Supports local execution via Python, the command line interface (CLI), as well as quantized versions for Ollama and llama.cpp.
- Includes built-in safety mechanisms for secure execution of generated commands.
What you can do
- Quickly create complex
sedcommands for batch text processing and scripts directly in the terminal. - Use the model in Python applications via the
generate_commandfunction for automated text transformations. - Deploy locally in Ollama or llama.cpp using pre-built Q4_K_M and Q8_0 files.
Example
from sedweave.model import generate_command
command = generate_command(
"Replace every occurrence of amber with delta.",
"amber birch\ncobalt amber\n",
"asterbraid/sedweave-1.5b",
)
print(command)Read more
DetailsBenchmarks: 100% valid responses on a synthetic test (1,700 examples) and up to 97.3% on real-world tasks from Stack Overflow.
Requirements: Python 3.10+, the
sed utility, and support for standard architectures for 1.5B parameter models.Limitations: English language only, supports a single input sequence without direct file handling or external pipelines.










Comments