Ari Assistant 1.5B (RewriteBot) — v2.0 Production Release
Ari Paraphraser 1.5B is an ultra-fast, production-grade text paraphrasing and rewriting engine fine-tuned and aligned with Direct Preference Optimization (DPO). It delivers QuillBot-grade stylistic versatility, zero semantic drift, and instant sub-2-second inference on standard laptop CPUs.
🌟 What's New in This Release (Loss: 0.6136)
- PAWS Integration (Google Research): Trained on Adversarial Paraphrase pairs to permanently eliminate cross-entity, subject, and gender swaps across clauses.
- Strict English ASCII Hygiene: Fully eliminates foreign glyph and training artifact leakages (zero Thai suffix leakage).
- 1:1 Length Ratio Calibration: Short inputs stay concise without runaway hallucination, while long multi-paragraph documents (up to 1,024 tokens) generate with full 100% coverage.
- 5 Stylistic Modes: Standard, Fluency, Academic, Creative, and Concise.
- Optimized for CPU Inference: Generates at 15–17 tokens/s on standard Intel/AMD consumer CPUs using AVX2.
📊 Benchmark Scorecard (100% Pass)
| Benchmark Test Case | In $\to$ Out Words | Ratio | Entity Preservation | Status |
|---|---|---|---|---|
| Cancer Fertility Benchmark (143 words) | $143 \to 134$ | 0.94 | 100% (Boys $\to$ Sperm/Testicular, Women $\to$ Oocytes) | PASS |
| PAWS Medical Swap Inversion | $14 \to 15$ | 1.07 | 100% (Girl $\to$ Appendectomy, Boy $\to$ Physical Exam) | PASS |
| PAWS Route/Flight Mapping | $18 \to 18$ | 1.00 | 100% (Flight 340 late, Flight 112 on schedule) | PASS |
| Short Sentence 1:1 Calibration | $7 \to 8$ | 1.14 | 100% (Zero paragraph bloat) | PASS |
| Academic Mode Tone Shift | $17 \to 16$ | 0.94 | 100% (Formal vocabulary enhancement) | PASS |
| Concise / Shorten Mode | $23 \to 16$ | 0.70 | 100% (Wordy filler removed) | PASS |
🎯 Supported Modes & Prompt Formats
Prefix your prompt with any of the following modes:
| Mode | Prefix Example | Purpose |
|---|---|---|
| Standard | [Mode: Standard] <text> | Natural stylistic rewrite preserving exact meaning. |
| Fluency | [Mode: Fluency] <text> | Corrects irregular verbs, plurals, idioms, and sentence rhythm. |
| Academic | [Mode: Academic] <text> | Scholarly, formal, and objective research tone. |
| Creative | [Mode: Creative] <text> | Expressive vocabulary with varied clause dynamics. |
| Concise | [Mode: Concise] <text> | Punchy, condensed summary eliminating filler words. |
🚀 Running with Ollama
- Download
ari_assistant_1.5b.ggufand theModelfileinto the same folder. - Build the local model:
ollama create ari-paraphraser -f Modelfile
- Run directly from the command line:
ollama run ari-paraphraser "The boy underwent a routine physical examination while the girl received an emergency appendectomy."
Or run via Hugging Face:
ollama run hf.co/sriyuth/ari-paraphraser-1.5b
💻 Running via Python (llama-cpp-python)
from llama_cpp import Llama
llm = Llama(
model_path="ari_assistant_1.5b.gguf",
n_ctx=2048,
n_threads=4
)
prompt = """<|im_start|>system
You are RewriteBot (ARI-1.5B), an expert editorial paraphrasing engine. Paraphrase the entire input text with complete coverage, authentic sentence variety, and strict factual preservation. Never swap, mix, or reassign subjects, genders, or medical procedures across clauses. Output ONLY the rewritten text.<|im_end|>
<|im_start|>user
She finished the test ahead of time.<|im_end|>
<|im_start|>assistant
"""
response = llm(prompt, max_tokens=256, temperature=0.3, stop=["<|im_end|>", "<|endoftext|>"])
print(response['choices'][0]['text'].strip())