Downloads · 30 days
71
12% of all-time downloads
Heatw4ve/Qwen3-4B-Instruct-2507-rewriter-gguf
Qwen3-4B-Instruct-2507-rewriter-gguf is a text generation model from Heatw4ve. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as apache-2.0.
Downloads · 30 days
71
12% of all-time downloads
All-time downloads
603
Public
Repo size
2.7 GB
Likes
2
Public
Click a slice to open those files.
.gguf2.7 GB · 100%
From the Hugging Face model README
🔗Kaggle notebook here
This model is a fine-tuned version of Qwen3-4B-Instruct-2507, optimized specifically to rewrite AI-generated text into a more natural, human-like style. It was trained to reduce the "robotic" tone often found in LLM outputs while maintaining the original meaning and factual accuracy.
unsloth/Qwen3-4B-Instruct-2507-bnb-4bit)The model was fine-tuned using LoRA (Low-Rank Adaptation) on a custom dataset of 28,000+ pairs of AI vs. Human-rewritten text.
The model was fine-tuned with the following parameters:
This is a GGUF version, compatible with LM Studio, Ollama, and llama.cpp. Works best with inputs of length 15-150 words.
To achieve the intended rewriting style, use the following system prompt:
You are a helpful assistant that rewrites AI-toned text into natural, human-like writing.
Rewrite the following text to sound like a real human wrote it:
[INSERT TEXT HERE]
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="Heatw4ve/Qwen3-4B-Instruct-2507-rewriter-gguf",
filename="Qwen3-4B.gguf",
n_ctx=4096,
n_gpu_layers=16,
n_threads=4,
verbose=False,
chat_format="chatml",
)
text='''
William 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.
'''
messages = [
{"role": "system", "content": "You are a helpful assistant that rewrites AI-toned text into natural, human-like writing."},
{"role": "user", "content": f"Rewrite the following text to sound like a real human wrote it:\n\n{text}"}
]
output = llm.create_chat_completion(
messages=messages,
max_tokens=512,
temperature=random.uniform(0.9, 1.2),
top_p=random.uniform(0.87, 0.96),
seed=random.randint(2, 2**32),
stop=["<|im_end|>", "<|endoftext|>"]
)
print(output["choices"][0]["message"]["content"].strip())
🔗Connect with me on LinkedIn