CivArchive
    Ollama NSFW Prompt Enhancer for Minimax H3 - Gemma 4 - Gemma 4
    NSFW
    Preview 150601601

    Prompt Enhancer (Gemma 4 12B) — Heretic, GGUF for Ollama

    I fed in a character ref sheet and a background image into Batch Images, then into my Prompt Enhancer, all I entered was below, and it gave me prompt in the screenshot which resulted in this beauty that makes me look like a genius:

    use the man from <Picture 1>'s character reference sheet in the background shot of <Picture 2> and start with a tight face shot which rotates around to the rear shot with pants partially down like <Picture 1> then rotate back around to the frontal view of him stroking his hard cock making seductive faces at the camera throughout. he cums at 12 seconds.  

    A new prompt enhancer model came out last week and it turns out to be really good, but not the censored version shipped, and not with the native ComfyUI Generate Text node with the safetensors file - took about 20 minutes per prompt for me. Running this GGUF through Ollama takes only a minute or two and it is uncensored Heretic build as a Q8_0 GGUF with a vision projector, so it accepts reference images.

    I added some special NSFW handling system prompt language related to cum - feel free to revise or remove, but it helps reduce the pink cum that you get sometimes with H3. I've included the subgraph you can open then publish as your own subgraph to easily add it to your workflows

    Credits: Wuli-art trained the prompt enhancer and wrote the system prompts. tuanlai001 made the Heretic (uncensored) weights. I only converted them to GGUF and wired them into ComfyUI.

    Agent Instructions

    To make setting this up easier, I supplied a markdown file you can give your Claude or Codex and have them set it up for you. It is in the zip file with the subgraph JSON named SETUP-WITH-AI-AGENT.md

    Files

    Civitai doesn't accept the .gguf extension as a model file, so the download here is a zip. Unzip it first. Inside:

    FileSizeWhat it isgemma4-h3-pe-heretic-Q8_0.gguf11.8 GBThe model (Q8_0)gemma4-h3-pe-heretic-mmproj-F32.gguf0.2 GBVision projector. Needed for images; keep it F32 (an F16 version produced garbage output)

    The Modelfile (Ollama import recipe) is written out below, and is also in the Hugging Face repo, which has the files unzipped.

    Use it in Ollama

    You need a recent Ollama (built and tested on 0.40.19, Windows). The model file alone is 11.8 GB, so you need a GPU with more than that, plus room for the 16K context below.

    Option A: files from Civitai

    1. Unzip the download so both .gguf files end up together in one empty folder (not inside nested folders).

    2. In that folder, create a text file named Modelfile (no extension) with exactly this:

    FROM ./gemma4-h3-pe-heretic-Q8_0.gguf

    FROM ./gemma4-h3-pe-heretic-mmproj-F32.gguf

    TEMPLATE {{ .Prompt }}

    RENDERER gemma4

    PARSER gemma4

    PARAMETER temperature 1.0

    PARAMETER top_k 64

    PARAMETER top_p 0.95

    PARAMETER min_p 0

    PARAMETER repeat_penalty 1.0

    PARAMETER num_ctx 16384

    1. Open a terminal in that folder and run:

    ollama create gemma4-h3-pe-heretic:q8_0 -f Modelfile

    Option B: from Hugging Face

    hf download CoachBate/Wuli-art-Gemma4-for-MiniMax-H3-Prompt-Extend-Uncensored --local-dir h3-pe

    cd h3-pe

    ollama create gemma4-h3-pe-heretic:q8_0 -f Modelfile

    (hf comes from pip install -U huggingface_hub. Or download the three files by hand from the repo's Files tab.)

    Check it

    ollama list should show gemma4-h3-pe-heretic:q8_0, and ollama show gemma4-h3-pe-heretic:q8_0 should list vision under capabilities.

    Settings that matter

    • Run it with thinking OFF (think: false). With thinking on, most of my test runs used their entire token budget reasoning and never produced an answer. With it off they all finished. The upstream author also only tested the non-thinking path.

    • It expects Wuli's prompt format: their FL2VA or Ref2VA system prompt, then a "Rewrite request" message. The ComfyUI subgraph below builds this for you; the system prompts are embedded in it.

    • Wuli-art's repo explains the formats and has their original ComfyUI workflows.

    Use it in ComfyUI

    I made a ComfyUI subgraph, Enhance Prompt H3 Gemma 4 PE, that talks to this model through Ollama and handles all four task types (REF2AV, T2AV, I2AV, FL2AV). It's attached to this post along with a screenshot. It needs the comfyui-ollama, comfyui-kjnodes and rgthree-comfy node packs, plus my ComfyUI-CoachBate pack for two small helper nodes (Bypass If Empty and Text Preview and Edit), which you can replace with any pass-through and text-preview nodes. It also uses current ComfyUI core text nodes, so update ComfyUI if some show as missing.

    Short version of the subgraph inputs: set task, give it your prompt and an image batch (references for REF2AV, first frame for I2AV, first and last frame for FL2AV, nothing for T2AV), set duration, point node_id at your resolution selector node because the PE wants the aspect ratio, which I pull from that node, and the gemma4-h3-pe-heretic:q8_0 model should already be picked. The result output is the prompt for MiniMax-H3, and pretty is the same text with line breaks for reading.

    Once you have your prompt, or want to tweak it, just bypass the subgraph, and make changes in the Preview and Edit node shown in the screenshot that has its Any input connected to the subgraph's output. That node saves the dynamically generated prompt with your workflow so it returns when you open the mp4 in ComfyUI again. Second, you can edit it with a bypassed incoming node and use that on subsequent runs.

    Notes and limits

    • About 99/100 refusals on the original became 6/100 according to the upstream author, with a KL divergence of 0.08, a little above the usual "lossless" threshold. Expect some drift in prompt quality compared with Wuli's original. I only ran a small number of prompts myself; this is not a systematic evaluation.

    • Only Q8_0 is provided.

    • This is an uncensored model. It will write explicit or harmful text if asked. You are responsible for how you use it.

    • Licenses: Wuli-art declares Apache-2.0. The underlying google/gemma-4-12B-it is distributed under the Gemma Terms of Use, which apply to derivatives. Please review both before redistributing or deploying

    Description

    uses Gemma 4 Prompt Enhancer

    Workflows
    MiniMax H3

    Details

    Downloads
    25
    Platform
    CivitAI
    Platform Status
    Available
    Created
    11/29/2026
    Updated
    11/29/2026
    Deleted
    -

    Files

    gemma4-h3-pe-heretic-Q8_0.gguf.zip

    Mirrors

    Subgraph and Agent Instructions.zip

    Mirrors