Instructions to use avasil02/automated-humanizer-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use avasil02/automated-humanizer-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct") model = PeftModel.from_pretrained(base_model, "avasil02/automated-humanizer-lora") - Transformers
How to use avasil02/automated-humanizer-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="avasil02/automated-humanizer-lora") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("avasil02/automated-humanizer-lora", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use avasil02/automated-humanizer-lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "avasil02/automated-humanizer-lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "avasil02/automated-humanizer-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/avasil02/automated-humanizer-lora
- SGLang
How to use avasil02/automated-humanizer-lora with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "avasil02/automated-humanizer-lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "avasil02/automated-humanizer-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "avasil02/automated-humanizer-lora" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "avasil02/automated-humanizer-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use avasil02/automated-humanizer-lora with Docker Model Runner:
docker model run hf.co/avasil02/automated-humanizer-lora
Automated Humanizer β LoRA adapter
LoRA adapter for Qwen/Qwen2.5-3B-Instruct that rewrites LLM-drafted academic
text to read as human-authored, while preserving the scientific content. It is
the default local_lora backend of the
automated_humanizer
pipeline, which pairs each rewrite with an AI-detector gate and an LLM
academic-validity judge.
- Base model: Qwen/Qwen2.5-3B-Instruct (load the base separately; this repo contains only the adapter)
- Training data: synthetic (AI-draft, human-original) paragraph pairs
built from award-winning pre-2020 arXiv papers (see the project's
training/subsystem) - Hardware: trained and runs fully offline on an NVIDIA Jetson Orin (~6 GB GPU/unified RAM at inference)
Usage
Intended to be used through the pipeline β see the project README. Standalone:
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct")
model = PeftModel.from_pretrained(base, "avasil02/automated-humanizer-lora")
tokenizer = AutoTokenizer.from_pretrained("avasil02/automated-humanizer-lora")
Intended use & limitations
Edits style only; the surrounding pipeline verifies that the original results and claims are preserved. It is for making genuine research read naturally β not for misrepresenting authorship of the underlying work. Trained on English academic prose; quality outside that domain is untested.
Framework versions
- PEFT 0.19.1
- Downloads last month
- 19