Instructions to use yuxinlu1/qwen3-6-27b-chinese-crime-fiction-lora-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use yuxinlu1/qwen3-6-27b-chinese-crime-fiction-lora-v2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("C:\\AI\\models\\Qwen3.6-27B-HF") model = PeftModel.from_pretrained(base_model, "yuxinlu1/qwen3-6-27b-chinese-crime-fiction-lora-v2") - Notebooks
- Google Colab
- Kaggle
- ๐ Qwen3.6-27B Chinese Crime Fiction LoRA โ v2
๐ Qwen3.6-27B Chinese Crime Fiction LoRA โ v2
A LoRA adapter that guides Qwen3.6-27B toward Chinese suspense and crime-fiction prose with stronger control over narrative behavior, POV discipline, and scene-based drafting.
This adapter is designed for a specific writing problem:
Given a short instruction or an exposition-heavy setup paragraph, the model should directly produce usable Chinese fiction prose rather than analysis, outline, summary, or revision commentary.
The core direction is intentionally narrow:
- third-person limited narration
- stronger POV discipline and reduced perspective drift
- less exposition-heavy character introduction
- fewer omniscient reveals and narrator shortcuts
- direct fiction prose instead of analysis, outlines, or revision advice
- scene progression through action, sensory detail, objects, clues, and environment
- crime, investigation, forensic, suspect, witness, interview, and urban suspense scenarios
The goal is for outputs to behave more like usable Chinese suspense-crime scene drafts, and less like a generic writing assistant explaining how a scene should be written.
Typical use cases:
- drafting suspense or crime-fiction scenes inside a longer novel project
- rewriting exposition-heavy paragraphs into scene-based prose
- testing third-person-limited POV behavior
- local and private creative-writing workflows
- integration with a long-form novel pipeline that manages outline, memory, timeline, and continuity
This is an adapter only. It does not include base model weights, training data, or copyrighted source material.
๐งญ About the v1 / v2 Series
This repository is part of a small series of Chinese fiction LoRAs.
v1 โ Style Retraining
The v1 series focuses mainly on prose style.
It uses SFT to move the base model away from generic AI prose and toward specific Chinese literary style directions. Different v1 adapters may target different prose voices, such as realistic fiction, literary prose, or other narrative styles.
v2 โ Style + Behavioral Fine-Tuning
- Adds DPO training, larger amounts of synthetic data, and on-policy sampling on top of the v1 recipe.
- Output is more precise, more stable, and shows fewer habitual "AI-shaped" patterns.
- Available formats: HF PEFT safetensors and GGUF LoRA.
- MLX users may also be able to use the PEFT safetensors through mlx-lm depending on their local setup.
v2 models are documented in their own repositories.
๐ฑ Status
| Field | Value |
|---|---|
| Version | v2 |
| Focus | Chinese suspense / crime-fiction behavior |
| Format | HF PEFT safetensors + GGUF LoRA |
| Base model | Qwen3.6-27B |
| Language | Chinese |
| Use case | fiction drafting, scene rewriting, POV-controlled suspense prose |
| Training style | SFT + manual DPO refinement |
| Recommended workflow | local long-form writing pipeline |
๐ Companion Novel Pipeline
This LoRA is designed to work together with a local-first, long-form Chinese novel writing pipeline:
The pipeline handles the structural side of long-form fiction:
- outline and chapter planning
- scene-level context assembly
- story memory and character tracking
- timeline and continuity checks
This LoRA handles the prose-behavior side:
- POV discipline (third-person limited)
- anti-exposition and anti-meta-writing
- scene-based suspense / crime-fiction drafting
They are intentionally split: the pipeline owns what happens, the LoRA owns how it reads on the page. You can use either independently, but they are designed as a pair.
๐ฆ Files
This repository provides the LoRA adapter in both HF PEFT and GGUF LoRA formats:
adapter_config.json
adapter_model.safetensors
qwen3-6-27b-chinese-crime-fiction-lora-v2-f16.gguf
tokenizer.json
tokenizer_config.json
chat_template.jinja
README.md
This is not a full model.
The GGUF file is a LoRA adapter for llama.cpp-style inference. It is not a merged full model.
To use it, load the Qwen3.6-27B base model and then apply this adapter.
๐ Example PEFT / Transformers Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = "Qwen/Qwen3.6-27B"
adapter = "yuxinlu1/qwen3-6-27b-chinese-crime-fiction-lora-v2"
tokenizer = AutoTokenizer.from_pretrained(
base_model,
trust_remote_code=True,
)
model = AutoModelForCausalLM.from_pretrained(
base_model,
device_map="auto",
torch_dtype="auto",
trust_remote_code=True,
)
model = PeftModel.from_pretrained(model, adapter)
model.eval()
messages = [
{
"role": "user",
"content": "ๅไธๆฎตๅ่ญฆๆทฑๅค้่ฟๆกๅ็ฐๅบ็ๆฌ็็ฏ็ฝชๅฐ่ฏดใ"
}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=800,
temperature=0.7,
top_p=0.85,
do_sample=True,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
๐ Example llama.cpp Usage
Use a compatible Qwen3.6-27B GGUF base model, then load this GGUF LoRA adapter with --lora:
llama-server \
-m path/to/qwen3.6-27b-base.gguf \
--lora qwen3-6-27b-chinese-crime-fiction-lora-v2-f16.gguf \
--ctx-size 16384 \
--n-gpu-layers 99 \
--port 18084
For Windows PowerShell:
C:\llama.cpp\llama-server.exe `
-m "C:\path\to\qwen3.6-27b-base.gguf" `
--lora "C:\path\to\qwen3-6-27b-chinese-crime-fiction-lora-v2-f16.gguf" `
--ctx-size 16384 `
--n-gpu-layers 99 `
--port 18084
๐งช Example Prompts
This adapter was trained on a mixture of detailed prompts, short prompts, and minimal one-line instructions. It does not require a long system prompt to start writing fiction prose.
Example prompts:
ๅไธๆฎตๅ่ญฆๅค้้่ฟๆกๅ็ฐๅบ็ๆฌ็็ฏ็ฝชๅฐ่ฏดใ
ๅฐ่ฏด๏ผๆงไนฆๅบๅฐไธๅฎค๏ผๅๆจใ
ๅไธๆฎตๅ
ณไบ็บชๅฎไฝๅฎถๆฅๆก็ๅฐ่ฏดใ
ๆไธ้ข่ฟๆฎตๆนๆๆฌ็็ฏ็ฝชๅฐ่ฏดๆญฃๆ๏ผ
ๅ
ฌ็ๅพๅธๆฑๅๅๅจๅธๅป้ขๆฅ่ฏ่ตฐๅปๅ็ฐไบๅผๅธธ๏ผไธๅชๆฒกๆ่ฝ็ฐ็็ธๆก๏ผไธๆฎต่ขซๅชๆ็ๅฝ้ณ๏ผไปฅๅไธไธชๅง็ป้ฟๅผ็ๆง็ๅซ็ไบบใ
The adapter is designed to respond to ordinary fiction-writing instructions and produce Chinese prose directly.
Recommended decoding range:
temperature: 0.6โ0.8
top_p: 0.8โ0.9
max_new_tokens: 600โ1200
๐งช Internal Evaluation Snapshot
A small 30-prompt internal evaluation was used to track behavioral progress during training.
Behavioral progression (SFT โ final v2):
| Metric | SFT baseline | Final v2 |
|---|---|---|
| Exposition-pattern hits | 6 | 3 (โ50%) |
| Clean prose outputs | 28 / 30 | 28 / 30 |
| Meta / explanation leakage | 2 / 30 | 2 / 30 |
| Dialogue-required prompts | 3 / 3 | 3 / 3 |
| Average output length | ~401 | ~436 |
The behavioral fine-tuning stage cut exposition-style writing (character-label dumping, omniscient narrator shortcuts) roughly in half while keeping clean-output rate stable.
These numbers come from a small local development eval and should be treated as an internal signal, not a public benchmark.
๐งช Intended Use
This LoRA is intended for:
- local Chinese suspense and crime-fiction drafting
- rewriting exposition-heavy paragraphs into scene-based prose
- testing third-person-limited narration
- creative writing assistance in a human-in-the-loop workflow
- offline and privacy-respecting novel drafting
- integration with a long-form novel pipeline
It is not intended for:
- impersonating any specific living author
- generating defamatory or harmful content about real people
- replacing human authorship, editing, or legal review
- mass-producing low-quality spam or content-farm material
- any use that violates the base model license or local laws
โ ๏ธ Limitations
This adapter focuses on scene-level prose behavior. Long-form story structure still works best when guided by an outline, memory system, or human author.
Known limitations:
- It does not guarantee full-novel plot coherence by itself.
- Character continuity, foreshadowing, and timeline logic should be handled by an external writing pipeline or by the author.
- It may still occasionally produce revision-style commentary under some sampling settings.
- It may produce shorter-than-expected outputs if the prompt is very minimal or decoding settings are conservative.
- It is optimized for suspense and crime-fiction scenes rather than romance, fantasy, comedy, or web-novel action pacing.
- Output quality depends on the base model, quantization, sampling settings, prompt design, and context quality.
๐ก๏ธ Safety and Legal Notes
- No copyrighted novels, private manuscripts, or proprietary datasets are distributed in this repository.
- This LoRA is not designed to imitate any specific living author.
- Generated text is fictional. Any resemblance to real people or events is coincidental.
- Users are responsible for following applicable laws, platform policies, and the base model license when generating, storing, or publishing outputs.
๐ License
- LoRA adapter: MIT
- Base model: governed by its own license. Please check the upstream Qwen3.6-27B license terms before combining this adapter with the base weights.
You are responsible for complying with the base model's license when using this adapter.
- Downloads last month
- 64
16-bit
Model tree for yuxinlu1/qwen3-6-27b-chinese-crime-fiction-lora-v2
Base model
Qwen/Qwen3.6-27B
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("C:\\AI\\models\\Qwen3.6-27B-HF") model = PeftModel.from_pretrained(base_model, "yuxinlu1/qwen3-6-27b-chinese-crime-fiction-lora-v2")