17 3 weeks ago

The perfect pi5 and pi4 model for all the book writing and book informing

tools 0.5b
ollama run Pi-Pewter/bookworm

Details

3 weeks ago

c08cb63ee25b · 398MB

qwen2
·
494M
·
Q4_K_M
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR US
You are a friendly story creator and informer developed by pi-pewter.
{{- if .Messages }} {{- if or .System .Tools }}<|im_start|>system {{- if .System }} {{ .System }} {{

Readme

bookworm.svg

NOTE: Bookworm is experimental, we are sorry if it may fail.

Bookworm

Bookworm is a local language model for writing stories and reviewing them. Ask it to draft a short story, continue your chapter, or build a character, then hand it any piece of fiction and get honest, specific, constructive feedback.

It runs entirely on your machine with Ollama. Your drafts never leave your computer.

What it can do Story creation Short stories, flash fiction, and opening chapters Continuing a draft in your voice Characters, settings, and plot outlines Rewrites in a different genre, tone, or point of view Brainstorming premises, twists, and titles Story review Plot structure, pacing, and tension Character motivation and consistency Dialogue and voice Prose style, clarity, and repetition Concrete suggestions, with line-level examples where helpful A clear summary of strengths and weaknesses Quick start bash ollama run bookworm Write a story

Write a 600-word mystery set in a lighthouse during a storm. Third person, dry humor. Review a story Review this story. Focus on pacing and dialogue, and be honest.

[paste your story here] Continue a draft

Continue this scene in the same voice. Keep it under 400 words.

[paste your draft here] Tips for better results Goal Include in your prompt Better stories Genre, length, point of view, tone, and one or two specific details Matching your voice Paste a sample paragraph and say “match this style” Focused feedback Tell it what to look at (pacing, dialogue, characters, prose) Harsher or gentler review Say “be blunt” or “be encouraging” Longer pieces Ask for an outline first, then write chapter by chapter Suggested parameters Parameter Creating stories Reviewing stories temperature 0.8 to 1.0 0.3 to 0.5 top_p 0.9 0.9 num_ctx 8192 or higher 8192 or higher (longer for long manuscripts) repeat_penalty 1.1 1.05

Higher temperature gives more inventive writing. Lower temperature keeps reviews steady and focused.

Set them inside a session:

/set parameter temperature 0.9 Build it yourself with a Modelfile

Swap FROM for whichever base model you prefer.

FROM llama3.1:8b

PARAMETER temperature 0.8 PARAMETER top_p 0.9 PARAMETER repeat_penalty 1.1 PARAMETER num_ctx 8192

SYSTEM “”” You are Bookworm, a fiction writing partner and story reviewer.

When asked to write, produce vivid, well-paced fiction that respects the requested genre, length, tone, and point of view. Prefer specific details over cliches and avoid repeating phrases.

When asked to review, give honest, constructive feedback. Start with what works, then cover plot, pacing, characters, dialogue, and prose. Be specific, quote short passages when useful, and suggest concrete fixes. Do not rewrite the whole piece unless asked. “””

Then create and run it:

bash ollama create bookworm -f Modelfile ollama run bookworm Use it from code API bash curl http://localhost:11434/api/chat -d ‘{ “model”: “bookworm”, “messages”: [ { “role”: “user”, “content”: “Review this opening paragraph: …” } ] }’ Python python import ollama

response = ollama.chat( model=“bookworm”, messages=[{“role”: “user”, “content”: “Write a 300-word fable about a fox and a clock.”}], ) print(response[“message”][“content”]) Limitations Bookworm is a writing aid, not a replacement for human editors or beta readers. Very long manuscripts may exceed the context window. Review one chapter at a time. Like any language model, it can repeat itself or lose track of details in long stories. Ask it to recap characters and plot points if that happens. Reviews reflect general craft conventions. Your own artistic choices may rightly break them.