A voice adapter for cloudmark.github.io

A LoRA adapter for Qwen/Qwen3-14B-Base that rewrites plain, neutral prose in the voice of one author. It continues the training of YixuanEvenXu/Qwen3-14B-Base-HIP-adapter (Xu et al., "Base Models Look Human To AI Detectors", 2026).

This is the second version. The first was trained on 328 pairs; this one replaces it.

Training data

  • 1,259 pairs for training and 159 held back, built from documents the author wrote before chat models existed (79,367 words in the training pairs).
  • Each pair: a neutral paraphrase written by a chat model (input) and the author's original paragraph (target).
  • Paragraphs of 25 to 160 words. Longer ones were split at sentence boundaries. Paragraphs made mostly of formulas, references, captions or links were dropped.

Training

  • One pass, learning rate 5e-5, cosine schedule, 3% warm-up, effective batch 4, LoRA rank 128, 32-bit floats on an Apple GPU. 22 minutes.
  • Held-back loss on all 159 pairs: 1.014 before, 0.807 after pass 1, 0.823 after pass 2, 0.968 after pass 3. Pass 1 is published.
  • On the 50 held-back blog paragraphs used to test the first version: 0.797 (the first version scored 0.808).

How to use it

from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer

base = AutoModelForCausalLM.from_pretrained('Qwen/Qwen3-14B-Base', dtype='float16')
model = PeftModel.from_pretrained(base, 'cloudmark/cloudmark-voice-qwen3-14b').to('mps')    # or 'cuda'
tok = AutoTokenizer.from_pretrained('cloudmark/cloudmark-voice-qwen3-14b')

text = 'Kubernetes restarts a pod when its process fails. It cannot see inside the application.'
prompt = '<source_text>\n' + text + '\n</source_text>\n\n<target_text>\n'
ids = tok(prompt, return_tensors='pt').to(model.device)
out = model.generate(**ids, max_new_tokens=120, do_sample=True, temperature=1.0, top_p=0.95, num_return_sequences=5)
for o in out:
    print(tok.decode(o[ids['input_ids'].shape[1]:], skip_special_tokens=True).split('</target_text>')[0].strip())

What it does and does not do

  • On held-back paragraphs the word "we" appears 21.8 times per 1,000 words (source text 5.1, the author 29.5).
  • It changes facts. Check every number and claim against the source text.
  • One pass was scored 100% AI by GPTZero.
  • Used inside a guarded pipeline (ten passes, five candidates each, a candidate kept only if its numbers, length and key terms match the source; then every paragraph checked against the source and rolled back to an earlier pass if wrong), twelve paragraphs run five times from different random starts scored 89, 80, 66, 81 and 97% human on GPTZero: mean 83%, standard deviation 11.5, five runs of five rated human.
  • Ten passes without the final check scored 89, 74, 0 and 96% on four of those runs. Five passes scored 43 and 0%.
  • These figures come from one detector and one short text.

Intended use

Research and study of style transfer and AI-text detection. Following the request of the authors of the starting adapter, do not use it to evade academic-integrity, authorship or provenance systems, and do not use it to present machine text as written by you or by the author of the blog.

Downloads last month
42
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for cloudmark/cloudmark-voice-qwen3-14b

Adapter
(43)
this model
Quantizations
1 model