Instructions to use Tdamre/LFM3-1.7B-Humanizer-Pro-V2-R2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Tdamre/LFM3-1.7B-Humanizer-Pro-V2-R2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("LiquidAI/LFM3-1.7B") model = PeftModel.from_pretrained(base_model, "Tdamre/LFM3-1.7B-Humanizer-Pro-V2-R2") - Notebooks
- Google Colab
- Kaggle
Humanizer Pro V2-R2 · LFM3-1.7B
This release contains the original lfm-v2 PEFT adapter used in the historical lfm-v2-r2 experiment. The checkpoint was trained once. R2 runs the same adapter twice, passing the first rewrite to the second pass. The original adapter tensors are 123,111,616 bytes with SHA-256 6b816dba81f7f38671be236ed8241192f0c818fb54c2fc99c99e19116da8cb36. Load them on LiquidAI/LFM3-1.7B at the trained revision.
Use the two-pass configuration
With the Humanizer-pro repository checked out and a CUDA build of PyTorch installed, run:
python -m pip install -r lfm3/requirements.txt
python lfm3/edit.py input.txt --candidate lfm-v2-r2
The archived run used CUDA BF16 inference with PyTorch 2.13.0+cu130, Transformers 5.22.2 and PEFT 0.21.2. Each pass formats the passage with source and target tags, uses sampling at temperature 1.0, top-p 0.95 and repetition penalty 1.0, and inherits the pinned base generation settings for other options. Seeds are 42 and 43 in order. The included decoder implements both passes. The historical CLI accepted 100–3,500 words. The nine public evaluation inputs were short English passages.
Training
Supervised fine-tuning used 3,072 paired examples from the HIP training split, with the machine paraphrase as input and the original passage as target. The selection excluded identical source-target pairs and duplicate targets, required a semantic score of at least 9, and capped prompt and response together at 1,024 tokens. Training used seed 20261125, 1,536 AdamW updates, batch size two, peak learning rate 0.00005 and target-only cross-entropy. Rank-32 LoRA with alpha 32 and dropout 0.05 trained 30,769,152 parameters. Training record · Pinned HIP dataset and terms · HIP paper
Recorded results and limitations
On the bus notice, Pangram 4.1 labelled the archived output 100% human-written, while GPTZero labelled it 100% AI. On the bakery notice, Pangram showed 39% human and 61% possibly AI. On the observatory notice, both services labelled the output entirely AI. The two-pass run reached the joint threshold in 0/6 development and 0/3 held-out cases. Detector readings describe those specific texts. The bus rewrite dropped Route 14. The bakery rewrite changed which party makes a phone call. Review generated passages against their sources. Nine public outputs and original dashboard readings
The model carries the LFM Open License v1.0. The HIP dataset card describes separate upstream data terms. Attribution and modifications
- Downloads last month
- 19