CanWrite-Preview-31B: A specialized AI for prose and web novels
2 min read
This model is a fine-tuned version of the google/gemma-4-31B base model, created specifically for writing and expanding creative prose with high quality. Unlike general chatbots, it focuses not on generating stories from scratch, but on turning detailed outlines (synopses and plot anchors) into cohesive, lively text while taking into account physical constraints and scene logic. Training was conducted exclusively on human prose without using distilled outputs from other language models. The developers included support for two Gemma 4 operating modes: with and without reasoning.
Key features
- Specific dataset: Trained on human prose without synthetic LLM data, with the addition of logic tasks.
- Dual thinking mode: Supports
enable_thinkingparameters for scene planning and direct text output. - Cliché resistance: Preference optimization (DPO + RPO) was performed to combat artificial patterns.
- Accessible size: The
Q4_K_Mquantized version takes up about 19 GB and runs on a single graphics card with 24 GB of VRAM.
What you can do
- Draft expansion: Expand short outlines or detailed plans into full-fledged fiction chapters.
- Constrained scenes: Write dynamic action scenes and dialogues while strictly preserving character logic and environmental physics.
- Pipeline integration: Use via
transformers,vLLM, or local servers likellama.cpp.
Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "MochiC/CanWrite-Preview-31B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{
"role": "system",
"content": "请根据用户给出的细纲、粗纲或前文,扩写成连贯自然的中文小说正文。",
},
{
"role": "user",
"content": "在这里填入前文与细纲……",
},
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
enable_thinking=True,
)
Read more
DetailsBase model: google/gemma-4-31B (31.27 billion parameters).
Training architecture: LoRA (r=32, alpha=64) for the language layer in BF16 format.
System requirements: from 24 GB of VRAM for Q4_K_M quantization.
License: GNU Affero General Public License v3.0 (AGPL-3.0).










Comments