Qwen3.8-27B Business Rewriter v1.5
A post-trained Qwen/Qwen3.8-27B editorial model that strips LLM clichés, bold-bullet bloat, and stiff corporate framing from business writing—replacing them with concrete, plainspoken, authoritative human prose while keeping every number, name, date, and logical claim intact.
Full Technical Writeup: For architecture diagrams, corpus audits, ablation charts, all six iterative failure-mode postmortems, and four side-by-side before/after comparisons, open
how-it-was-built.html(self-contained offline HTML, 5 inline SVG diagrams).
Why Prompting Alone Fails
Ask a general-purpose model to "make this sound human," and it drops obvious offenders (delve, tapestry, evolving landscape) only to fall into a second machine voice: uniform 18-word sentences, thesaurus swapping, and robotic status-report headers.
Measured against actual human authors on 30 strictly unseen business passages, Base Qwen/Qwen3.8-27B collapsed sentence-length variation (burstiness CV 0.437 vs. human 0.567), pushed lexical diversity above natural prose (MATTR-50 0.854 vs. 0.818), kept 1.23 slop phrases per 1,000 words, and hallucinated novel numbers in 6.9% of passages. Fixing that distribution cleanly required changing the weights.
How It Was Built (Summary)
Full details in how-it-was-built.html:
- Full Hybrid DeltaNet Adaptation (§2):
Qwen/Qwen3.8-27B(Qwen3_5ForConditionalGeneration) interleaves three Gated DeltaNet layers per Gated Full Attention layer plus SwiGLU MLPs. Standard attention-only LoRA misses 75% of sequence mixing, so we adapted all 12 linear projection families (in_proj_qkv/z/a/b,out_proj,q/k/v/o_proj,gate/up/down_proj;233.5Mparams /0.85%) in full BF16 withenable_thinking=Falseandcompletion_only_loss=True. - Corpus Hygiene & Multi-Family Back-Translation (§4–§5): Built from 103 audited business nonfiction works (strict zero-author-overlap split: 93 train / 10 unseen eval), 385 short analytical paragraphs (80–170w), and 50 hand-crafted zero-slop modern business drafts across 10 everyday corporate formats. We synthesized realistic LLM slop inputs in reverse using 75% DeepSeek-V4.1-Flash + 25% GLM-5.3-Flash across 5 slop archetypes (two-pass clinical outline redraft, direct structural slop, and editorial restraint) and filtered every pair through deterministic numeric/quote-leak checks plus an LLM zero-hallucination gate (1,274 verified SFT pairs).
- Three-Stage Post-Training (§7):
- Stage E1 — Gentle CPT (
r=32, α=64, ~9.1M tokens, LR6e-6): absorbed human cadence and lexical restraint (eval_loss 2.385 → 2.341). - Stage E2 — Back-Translation SFT (
1,274pairs, 3 epochs, LR1.5e-5):eval_loss 0.5701(86.4%token accuracy). - Stage E3 — Surgical Anti-Slop LoRA DPO (
r=16, α=32,β=0.1, LR2e-6, 94 mined contrast pairs, KL anchored strictly to merged Stage E2 SFT):86.7%reward accuracy in 3m 25s; cut residual slop a further 33% and halved invented quotes.
- Stage E1 — Gentle CPT (
- What Iterative Auditing Caught (§6): Inspecting actual text after every stage surfaced and fixed six silent bugs—most notably quote-invention leaks (36% of v1 pairs paraphrased direct quotes to indirect speech; purging leaky pairs cut invented quotes 75% from
8/30 → 2/30), short-form LinkedIn cliché inertia, dropped opening bullets on long lists, and the greedy decoding trap (argmax decoding echoes input slop and jumps slop/1k from0.43 → 1.39).
Evaluation (30 Strictly Unseen-Author Passages)
Head-to-head under identical calibrated Min-P sampling (temperature=0.7, top_p=0.92, min_p=0.06, repetition_penalty=1.05):
| Metric | Input Slop | Base Qwen3.8-27B | v1.5 SFT Only | v1.5 SFT + DPO | Human Baseline |
|---|---|---|---|---|---|
| Slop phrases / 1k words ↓ | 4.73 | 1.23 | 0.64 | 0.43 (−65% vs Base) | 0.38 |
| Markdown bloat (%) ↓ | 23.3% | 6.7% | 0.0% | 0.0% | 10.0% |
| Sentence burstiness (CV) → human | 0.562 | 0.437 (flat) | 0.503 | 0.515 | 0.567 |
| Lexical diversity (MATTR-50) → human | 0.812 | 0.854 (inflated) | 0.818 | 0.816 | 0.818 |
| Novel number hallucination ↓ | — | 6.9% | 0.0% | 0.0% | 0.0% |
| Invented direct quotes (of 30) ↓ | — | — | 4 / 30 | 2 / 30 (−75% vs v1) | 0 / 30 |
Before & After Example (Out-of-Domain LinkedIn Draft)
Input (LLM Slop):
Most founders think pricing is a spreadsheet exercise. Here's the truth: it's not just a financial lever—it's a mirror of your product's true value. Last March, our team raised prices on our Pro tier from $49 to $79 per seat... In a crowded SaaS landscape, underpricing isn't generosity—it's a stark reminder that you don't yet trust the game-changer you've built. Ultimately, the bottom line is simple: charge what the outcome is worth.
Business Rewriter v1.5:
Most founders treat pricing like a spreadsheet exercise. In reality, it is a direct reflection of how much you believe in your product.
Last March we raised our Pro tier from $49 to $79 per seat. People warned us churn would spike. Conversion from free trials actually fell by only 4%, and our monthly gross margin expanded from 68% to 76% within ninety days. Support ticket volume per dollar of revenue dropped by nearly a third because price-sensitive tire-kickers self-selected out.
Underpricing is rarely generosity; it is usually a signal that you do not trust the thing you built. Charge what the outcome is worth.
(See how-it-was-built.html#examples for three more full comparisons: board email, Q3 SaaS bold-bullet unwinding, and a 637-word multi-section logistics report.)
Repository Contents & Formats
All formats live in this repository so you can download only what your hardware needs:
| Path | Format | Size | Best For |
|---|---|---|---|
bf16/ | Full-fidelity merged BF16 Safetensors (18 shards) | 51.8 GiB | vLLM, SGLang, transformers, further fine-tuning, custom quants |
mlx-8bit/ | Apple Silicon MLX 8-bit (group=64) | 27.5 GiB | M-series Macs (48 GB+ unified memory), near-lossless BF16 fidelity |
mlx-4bit/ | Apple Silicon MLX 4-bit (group=64) | 15.0 GiB | M-series Macs (24–32 GB unified memory) |
gguf/ | GGUF (Q8_0, Q6_K, Q4_K_M) + Ollama Modelfile | 15.8–27.1 GiB ea. | llama.cpp (qwen35), Ollama, LM Studio, 24 GB+ GPUs |
lora/combined_peft_r48/ | Exact single PEFT LoRA (r=48, α=48) | 0.67 GiB | Drop-in PEFT on Qwen/Qwen3.8-27B (1.46×10⁻¹⁰ exact block-matrix match to BF16 merge) |
lora/stages/ | Separated Stage E2 SFT (r=32) & Stage E3 DPO (r=16) | 1.34 GiB | Research & ablation reproducibility |
skill/business-prose-rewriter/ | Generic Agent Skill & Multi-Signal Audit CLI | 53 KB | Single passages, full Markdown essays, best-of-N --candidates, Pareto retry gate, & model-free --audit |
how-it-was-built.html | Full Technical Build Essay (offline HTML + 5 SVGs) | 81 KB | Complete methodology, diagrams, audit postmortems & examples |
RELEASE_MANIFEST.json | Machine-readable manifest & sampling specs | 1.4 KB | Automation & verification |
Recommended Inference Settings (Important)
- Disable thinking mode:
enable_thinking=False(trained without<think>traces). - Use calibrated Min-P sampling — avoid greedy (
temperature=0):temperature = 0.7,top_p = 0.92,min_p = 0.06,repetition_penalty = 1.05
System Prompt
You are a senior business editor who rewrites stiff, bloated, or AI-generated drafts into clear, concrete, authoritative human business prose. Preserve every single fact, number, date, entity, and logical claim from the input, maintain the input's tense unless instructed otherwise, never invent details or quotation marks, and strip corporate jargon, cliché transitions, and generic AI phrasing.
Quickstart
Download Only the Format You Need
# Example: Apple Silicon MLX 4-bit + generic skill CLI
hf download Ransom/Qwen3.8-27B-BusinessRewriter-v1.5 \
--include "mlx-4bit/*" "skill/*" "how-it-was-built.html" \
--local-dir ./BusinessRewriter
# Example: GGUF Q4_K_M + Ollama Modelfile
hf download Ransom/Qwen3.8-27B-BusinessRewriter-v1.5 \
--include "gguf/*Q4_K_M*" "gguf/Modelfile" "skill/*" \
--local-dir ./BusinessRewriter
Serve & Run
# vLLM (BF16)
vllm serve ./BusinessRewriter/bf16 --port 8000 --max-model-len 32768
# Apple Silicon MLX
mlx_lm.server --model ./BusinessRewriter/mlx-8bit --port 8080
# llama.cpp / Ollama (GGUF)
llama-server -m ./BusinessRewriter/gguf/Qwen3.8-27B-BusinessRewriter-v1.5-Q4_K_M.gguf --port 8080 --ctx-size 32768
Scale to Long Markdown Essays & Audits with the Bundled CLI
The bundled skill/business-prose-rewriter/ package chunks long Markdown reports into 220–460w windows while preserving code fences and pipe tables verbatim, threads continuity across chunks, supports best-of-N --candidates, runs a Pareto-gated multi-signal factual/certainty/slop audit, and works with any OpenAI-compatible server, direct MLX, or Transformers/PEFT:
# Rewrite a full Markdown essay with best-of-2 selection & audit report
python3 ./BusinessRewriter/skill/business-prose-rewriter/scripts/rewrite_business_prose.py \
--base-url http://127.0.0.1:8080/v1 \
--model business-rewriter \
--input my_long_draft.md \
--output my_clean_essay.md \
--mode document \
--style executive \
--clean-headings \
--candidates 2 \
--report
# Zero-inference audit of any draft/rewrite pair (strips Markdown tables & code fences)
python3 ./BusinessRewriter/skill/business-prose-rewriter/scripts/rewrite_business_prose.py \
--input my_long_draft.md \
--audit my_clean_essay.md
Load the Exact Combined PEFT LoRA (r=48)
import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer
from peft import PeftModel
base_id = "Qwen/Qwen3.8-27B"
tokenizer = AutoTokenizer.from_pretrained(base_id)
model = AutoModelForImageTextToText.from_pretrained(base_id, dtype=torch.bfloat16, device_map="auto")
model = PeftModel.from_pretrained(model, "./BusinessRewriter/lora/combined_peft_r48")
model.eval()
About Ambient
Ambient is a decentralized AI inference network, currently pre-mainnet and available on OpenRouter. GPU operators compete in a reverse auction to serve each inference request, so the lowest bidder wins the job and compute pricing is set by open competition rather than a single provider. Work on the network is secured by Proof of Logits—a proof-of-work design where the useful work is model inference itself, allowing any validator to recompute and verify a miner's outputs directly instead of taking them on trust.
We build open tooling around the models we serve. This release is one example: a fine-tuned Qwen model that strips filler, hedging, and stock phrasing out of LLM drafts so the output says what it means.
Learn more at ambient.xyz.
License & Attribution
Released under Apache 2.0 (see LICENSE), inheriting the license of base model Qwen/Qwen3.8-27B.