Downloads · 30 days
0
cive202/humanize-ai-text-mistral-7b-lora
humanize-ai-text-mistral-7b-lora is a text generation model from cive202. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
LoRA/QLoRA adapter for AI → Human text rewriting (“humanization”) on top of mistralai/Mistral-7B-Instruct-v0.2.
Downloads · 30 days
0
Access
Public
Updated Apr 14, 2026
Repo size
54.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors54.6 MB · 97%
From the Hugging Face model README
LoRA/QLoRA adapter for AI → Human text rewriting (“humanization”) on top of mistralai/Mistral-7B-Instruct-v0.2.
peftGiven an AI-generated passage (x), the model generates a rewrite (\hat{y}) that aims to satisfy:
This repo is part of a broader comparison:
“Rewriting the Machine: Encoder-Decoder vs. Decoder-Only Transformers for AI-to-Human Text Style Transfer”
Authors: Utsav Paneru et al.
arXiv: https://arxiv.org/abs/2604.11687v1
Status: Preprint (2026)
@misc{paneru2026makesoundlikehuman,
title={Please Make it Sound like Human: Encoder-Decoder vs. Decoder-Only Transformers for AI-to-Human Text Style Transfer},
author={Utsav Paneru},
year={2026},
eprint={2604.11687},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2604.11687},
}
Mistral is a gated model. You may need to accept terms and run
huggingface-cli login.
pip install -U "transformers>=4.40.0" "peft>=0.10.0" accelerate bitsandbytes torch
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
base_id = "mistralai/Mistral-7B-Instruct-v0.2"
adapter_id = "cive202/humanize-ai-text-mistral-7b-lora"
tokenizer = AutoTokenizer.from_pretrained(base_id)
base = AutoModelForCausalLM.from_pretrained(
base_id,
device_map="auto",
torch_dtype=torch.float16,
load_in_4bit=True,
)
model = PeftModel.from_pretrained(base, adapter_id)
model.eval()
ai_text = "Large language models often produce fluent, structured prose with recognizable regularities..."
prompt = f"""### Instruction:
Rewrite the input so it sounds human-written while preserving meaning.
### Input:
{ai_text}
### Response:
"""
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
out = model.generate(
**inputs,
max_new_tokens=256,
do_sample=True,
temperature=0.7,
top_p=0.9,
repetition_penalty=1.1,
eos_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(out[0], skip_special_tokens=True))
mistralai/Mistral-7B-Instruct-v0.2### Response:)Parallel chunk pairs via sentence-aware chunking:
Metadata fields: doc_id, chunk_idx, ai, human, style, model, prompt_id.
Note: Very low perplexity may indicate overly predictable text, not necessarily human-like.
Highlights:
Training + evaluation pipeline comes from the unpublished BARTvsMistral project.
Evaluation outputs (e.g., summary.json) can be used to regenerate figures externally.
mistralai/Mistral-7B-Instruct-v0.2 license terms