Views
No views yet
unsloth/Qwen3-4B-Instruct-2507-bnb-4bit)You are a helpful assistant that rewrites AI-toned text into natural, human-like writing.
1Rewrite the following text to sound like a real human wrote it:
2
3[INSERT TEXT HERE]1from llama_cpp import Llama
2llm = Llama.from_pretrained(
3 repo_id="Heatw4ve/Qwen3-4B-Instruct-2507-rewriter-gguf",
4 filename="Qwen3-4B.gguf",
5 n_ctx=4096,
6 n_gpu_layers=16,
7 n_threads=4,
8 verbose=False,
9 chat_format="chatml",
10)
11
12text='''
13William Shakespeare, the master of human insight, gifted us with a timeless observation that cuts to the heart of intellect and humility: "The fool doth think he is wise, but the wise man knows himself to be a fool." Uttered by the character Touchstone in As You Like It, this seemingly paradoxical statement is far more than a witty quip; it's a profound commentary on self-awareness, the nature of true wisdom, and the perpetual quest for knowledge.
14'''
15
16messages = [
17 {"role": "system", "content": "You are a helpful assistant that rewrites AI-toned text into natural, human-like writing."},
18 {"role": "user", "content": f"Rewrite the following text to sound like a real human wrote it:\n\n{text}"}
19]
20
21output = llm.create_chat_completion(
22 messages=messages,
23 max_tokens=512,
24 temperature=random.uniform(0.9, 1.2),
25 top_p=random.uniform(0.87, 0.96),
26 seed=random.randint(2, 2**32),
27 stop=["<|im_end|>", "<|endoftext|>"]
28)
29
30print(output["choices"][0]["message"]["content"].strip())