Authorization notice. Humanizer Local Model is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA developer or team building an automated pipeline that rewrites many AI-drafted texts and needs a local, scriptable endpoint.
The problemRewriting many drafts by hand does not scale, and a cloud service may not suit private text.
The outcomeA local llama-server answering rewrite requests, with an agent looping over a folder of drafts and saving each rewrite.
What you need first
- A Mac with Apple silicon (M1 or newer) or a Windows x64 PC, for the app
- Enough free disk space and memory for the model; the app suggests a size for your machine, down to 8 GB machines
- Python 3.8 or newer for the hz command line tool
- llama.cpp (llama-server), curl and jq for the one-command server route
Steps
- Start the model with
llama-server --hf-repo jialinyyzz/humanizer --hf-file humanizer-12b-Q8_0.gguf -c 8192 -np 1 -ngl 99 --port 8080. On a 16 GB machine, use humanizer-12b-Q6_K.gguf instead. - Download the prompt format with
curl -sLO https://huggingface.co/jialinyyzz/humanizer/resolve/main/prompt_format.json. - Send each draft to
/completionusing the jq and curl pipeline in Option 2 of the README, not/v1/chat/completions. - Save each returned text to its own output file and keep the draft next to it for review.
- Read docs/USAGE.md for the folder script and the troubleshooting table before you scale up.
Prompt for your agent
Using the sgaofen/humanizer-local-model repo, start llama-server with the Q8_0 GGUF on port 8080 and rewrite every .txt file in <input-folder> through the /completion endpoint with the prompt format from prompt_format.json. Expected output: one rewritten .txt per input file in <output-folder>. Verify that a single test draft returns non-empty text from the .content field before running the whole folder.
Caveat. The README says this is a plain text-completion model, not a chat model, so it must be called through /completion with the stated prompt format.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for sgaofen/humanizer-local-model and "Let a coding agent batch-rewrite drafts through a local server"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer