Skip to main content

voicepipe — a corpus-to-character pipeline

Models built with voicepipe

All three are public ollama tags — ollama run <name> to talk to any of them:

  • execxd/mistral-nemo-12b-marcus-aurelius — Mistral Nemo 12B QLoRA fine-tune, in the voice of Marcus Aurelius (121–180 CE), in the register of George Long's 1862 Meditations translation. Aphoristic Stoic self-address; cosmic perspective; second-person directives.
  • execxd/mistral-nemo-12b-oscar-wilde — Mistral Nemo 12B QLoRA fine-tune, in the voice of Oscar Wilde (1854–1900). End-to-end validation of the pipeline on a fresh character; the full project ships in examples/oscar-wilde/.
  • execxd/mistral-nemo-12b-francis-e-dec — Mistral Nemo 12B QLoRA fine-tune, in the voice of Francis E. Dec, Esq. (1926–1996). The original proof-of-concept that drove the engine's design.

Get it

Desktop app (recommended): grab the build for your OS (macOS .dmg, Windows .msi, Linux .AppImage/.deb) from the releases page, open it, and configure + run the pipeline in the window. It's self-contained — no Python or other setup needed. (macOS: the build is currently unsigned; notarization is on the roadmap. As a workaround you can either (a) run xattr -dr com.apple.quarantine /Applications/voicepipe.app after first launch — note that path translocation of an unsigned .app with a nested Mach-O sidecar can still break bundled-Python path resolution, and the quarantine attribute may return after macOS updates — or (b) build from source, see below.) On first run, open Settings (bottom-left of the sidebar) and paste your Ollama Cloud API key — synthesis, triage, and the category proposer need it.

Or from source (also gives you the CLI):

pip install -e ".[gui]"               # the engine + the web GUI/control server
voicepipe new my-character            # scaffold a project from a template (also: --template blank, --list-templates)
#   ...drop source texts in my-character/corpus/ , a few example pairs in my-character/seeds/seed_pairs.jsonl
export OLLAMA_API_KEY=ollama_...      # (or set it in the GUI's Settings)
voicepipe serve                       # http://127.0.0.1:8765 — configure + run the pipeline in the browser
# or on the CLI:
voicepipe synthesize --project my-character   # → dedup → triage → assemble → train → deploy

voicepipe train needs the CUDA-box extras: pip install --index-url https://download.pytorch.org/whl/cu128 torch==2.11.0 && pip install -e ".[train]" -c constraints-train.txt (the constraints file pins the Blackwell-sm_120 known-good set). voicepipe deploy needs [deploy]

  • a llama.cpp checkout. Both can run on a different machine than the GUI — set its address in the app's Settings → "Connect to a remote engine" (the box runs voicepipe serve --host 0.0.0.0 --auth-token …), and the GUI drives jobs there.

To build the desktop app yourself: desktop/build-sidecar.sh && (cd desktop && cargo tauri build) — see desktop/README.md.

Layout

pipeline/                  the generalized engine (a Python package)
  project.py               the Project config schema + load_project(dir)  ← the product's data model
  cli.py / __main__.py      `voicepipe <command>` / `python -m pipeline <command>`
  scaffold.py              create a project from a bundled template
  templates/               bundled project templates (character, blank)
  events.py                structured progress events (NDJSON; opt-in via env var; no-op for plain CLI)
  jobs.py                  process supervision — run a stage as a tracked subprocess
  server.py                FastAPI control server + the web GUI host  (`voicepipe serve`)
  webui/                   the web UI (dependency-free HTML/CSS/JS)
  synthesize.py            generate (user, response) pairs
  dedup.py                 cosine dedup + over-saturated-phrase caps
  triage.py                LLM-judge score 1-5 + policy flags
  assemble.py              combine kept synth + seeds + salvage → train/val
  train.py                 QLoRA fine-tune  ← config-driven, runs on a CUDA box
  deploy.py                LoRA → GGUF → Modelfile → ollama create → push  ← config-driven
  categorize.py            propose weighted prompt categories from a corpus (LLM)
  eval.py / infer.py       LLM-judge eval; quick inference test grid  (infer is --project-wired; eval not yet)
  providers/               LLM provider abstraction (Ollama Cloud; any OpenAI-compatible endpoint)
  serve/discord_bot.py     a Discord front-end (with an output moderation layer)
  GUI_API.md               the REST API + event schema (the GUI/CLI contract)
  REFACTOR_STATUS.md       what's config-driven, what isn't yet
desktop/                   Tauri (Rust) desktop shell — webview + a loopback `voicepipe serve` sidecar
deploy/                    the web-only deployment: a systemd unit + install script + PACKAGING.md
examples/                  shipped reference projects
  oscar-wilde/             a fully-worked configuration — corpus, seeds, prompts, project.toml
projects/                  per-project configs (your own go here)
scratch/                   .gitignored — working data, experiments, the dec-bot WIP
  dec-bot/
    project.toml           the dec-bot configuration (everything: modes, categories, hyperparams, ...)
    prompts/               long prose blocks referenced from project.toml
    corpus/ seeds/ dataset/  the dec-bot inputs and produced artifacts
    DEC_BOT_NOTES.md       project-specific guidance ; WRITEUP.md  the v1 runbook
pyproject.toml             package metadata; extras: [gui] [train] [serve] [deploy]

A project

A project is a directory with a project.toml plus its corpus/seeds. project.toml carries all the configuration — scalars and small lists inline, long prose blocks referenced by filename (prompts/*.md). pipeline.project.load_project(dir) reads it and fills every unspecified field with a default, so a minimal project is just name, a corpus, and a mode. voicepipe new <name> scaffolds one; the GUI's "New project" does the same; or copy examples/oscar-wilde/ (the fully-worked example). See pipeline/project.py for the schema.

Commands

voicepipe new NAME [--template character|blank] [--description ...]   # scaffold a project
voicepipe serve [--port 8765] [--host 0.0.0.0 --auth-token T] [--unix-socket PATH]   # control server + web GUI
voicepipe categorize  --project DIR [--n 12] [--adopt]               # propose prompt categories from the corpus
voicepipe synthesize  --project DIR                                  # generate (user, response) pairs
voicepipe dedup       --project DIR
voicepipe triage      --project DIR
voicepipe assemble    --project DIR
voicepipe train       --project DIR [--smoke] [--gpu N]              # QLoRA  (needs [train])
voicepipe deploy      --project DIR --adapter dataset/adapter/final --llama-cpp-dir PATH [--push]   # (needs [deploy])
voicepipe infer       --project DIR                                  # quick inference grid against the trained adapter

The GUI exposes exactly these — nothing it can do is unavailable on the CLI, and vice versa. Set VOICEPIPE_EVENTS_FILE=path (or pass --unix-socket/run via the GUI) to get a structured NDJSON progress stream out of any stage; without it the stages just print their usual human output.

The GUI / control server

voicepipe serve runs a small FastAPI app: a REST API under /v1/ (projects, config, stage runs, jobs, an SSE event stream) plus the web UI at /. Bound to 127.0.0.1 it needs no auth; bound to a public host it requires --auth-token (the web UI prompts for it). The desktop app (desktop/) wraps the same server on a loopback port — see deploy/PACKAGING.md for the two packaging stories (native app vs. web-only-with-systemd) and pipeline/GUI_API.md for the API.

Status

  • Config-driven, end-to-end: project.py (schema), synthesize, dedup, triage, assemble, train, deploy, categorize, cli, events, jobs, server, scaffold, providers. Each stage is --project DIR-driven and emits structured events. The examples/oscar-wilde/ project is the worked example; two models have been built end-to-end with the pipeline (see "Models built with voicepipe" above).
  • Partial: eval.py isn't --project-wired yet (infer.py is). serve/discord_bot.py is env-parametrized; its moderation patterns could become a project config block. The synthesis/triage stages call the Ollama Cloud client directly — generalizing them to honor a per-project provider entry is a small follow-up. The Tauri desktop scaffold builds against a PATH voicepipe; bundling a standalone Python (and the "bind a UDS, no TCP port" refinement) is TODO. See pipeline/REFACTOR_STATUS.md and pipeline/GUI_API.md.

Content note

Every project ships absolute content rules in prompts/content_rules.md (enforced at synthesis time) and the corresponding flags in prompts/triage_rubric.md (enforced at curation time): no slurs, no group-attributed villainy, no post-cutoff references for the character's era, no breaking frame, no serious real-world-harm instructions. These are the same rules the deployed model is held to. The character template seeds them as defaults for any new project; the examples/oscar-wilde/ project carries them verbatim.

For voices that touch sensitive material — like the dec-bot proof-of-concept, whose source corpus is paranoid-schizophrenic writing from the 1970s–80s — clean the corpus upstream and add a deploy-time output moderation layer (see serve/discord_bot.py for the dec-bot's).

Research applications

voicepipe is, primarily, a creative-writing pipeline. The same engine generalizes to a broader spectrum of research applications — detection ("is this text human-authored or voicepipe-emulated?"), watermarking and provenance, organizational and authorial style modeling, synthetic-data generation for red/blue exercises, and impersonation-defense tooling. We're intellectually honest that the technology is dual-use; the literary framing is where the project lives and is evaluated, but pretending the dual-use surface doesn't exist wouldn't change anything except the depth of the conversation.

A natural follow-up research question sits one step away from voicepipe: can ML adversaries reliably detect voicepipe-finetuned output from genuinely-authored or generic-LLM text, and on what features? If you're working on that question — or any of the others above — drop a note in issues; we'd love to compare findings.

Metadata

Release files for voicepipe-engine 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voicepipe-engine 0.2.2
File Size Uploaded Provenance Actions
voicepipe_engine-0.2.2.tar.gz 121.7 kB With provenance Details for voicepipe_engine-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for voicepipe-engine 0.2.2
File Interpreter ABI Platform Actions
voicepipe_engine-0.2.2-py3-none-any.whl Python 3 none any Details for voicepipe_engine-0.2.2-py3-none-any.whl

Total release size: 254.5 kB

Release files / voicepipe_engine-0.2.2.tar.gz

Download URL voicepipe_engine-0.2.2.tar.gz
Size 121.7 kB
Tags Source
SHA-256 checksum
How to use checksums
21653e13dfe924be0018bcf45d98522b9b0d59e0bf22c15874369e9cc1b248b2
BLAKE2b-256 checksum
How to use checksums
f440d6ed4d535553750f70d0e66bb78b10cba7cb13ac91a26390033dbb767357
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 17, 2026.

Transparency log

Release files / voicepipe_engine-0.2.2-py3-none-any.whl

Download URL voicepipe_engine-0.2.2-py3-none-any.whl
Size 132.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ff6d3e335e6bcb5aa49e61a53ae1543e3ce12740bb9d2133430255f9dc084c8
BLAKE2b-256 checksum
How to use checksums
9fd2d3bfeac3ffbb64478d4e701078816f5ac0834c10ad1f4c3cf054e7312827
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 17, 2026.

Transparency log

Security for voicepipe-engine 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for voicepipe_engine-0.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page