cx-cmu / repro-rephraser-4B

huggingface.co
Total runs: 151
24-hour runs: -1
7-day runs: -522
30-day runs: -414
Model's Last Updated: February 18 2026
text-generation

Introduction of repro-rephraser-4B

Model Details of repro-rephraser-4B

This is the 4B rephraser from RePro: Training Language Models to Faithfully Recycle the Web for Pretraining.

The model is trained with RL from Qwen3-4B to generate high-quality and faithful web rephrasings.

Example Usage
from vllm import LLM, SamplingParams
import re

# -----------------------
# 1. Define model and params
# -----------------------
llm = LLM(model="cx-cmu/repro-rephraser-4B")

sampling_params = SamplingParams(
    temperature=1.0,
    top_p=0.9,
    max_tokens=2048,
)

# -----------------------
# 2. Define the paraphrasing prompt
# -----------------------
template = """Your task is to read and paraphrase the provided text following these instructions:
- Delete clearly irrelevant content:
  - Website headers, navigation bars, or menu items (e.g., "Home | About | Contact")
  - Unrelated HTTP links (e.g., ads, trackers, developer tools)
  - Generic footers (e.g., contact info, privacy policies, unsubscribe links)
  - Empty lines or decorative elements (e.g., "---")
- Preserve all content that is relevant and meaningful:
  - Informative or independently useful
  - Related to the topic, even tangentially
  - Provides context, background, or supporting value
  - Includes technical terms, key concepts, factual details, reasoning, and examples
- Handle mixed-relevance sentences carefully:
  - Remove only the irrelevant fragment if the rest remains coherent
  - Delete the whole sentence if the remainder loses meaning
- Do not alter meaningful content unnecessarily:
  - Only delete or modify when content is clearly meaningless or off-topic
  - Preserve the original structure, logic, and depth of the text
- Do not add explanations, notes, assumptions, or claims not found in the original text
Here is the text:
{TEXT}
Task:
After thoroughly reading the above text, paraphrase it in high-quality and clear English following the instructions.
Start your response immediately with "Here is a paraphrased version:" and then provide the paraphrased text."""

# -----------------------
# 3. Prepare a sample conversation
# -----------------------
sample_text = """The Pittsburgh Steelers are a professional American football team based in Pittsburgh, Pennsylvania.
They were established in 1933 and are one of the oldest franchises in the NFL."""

conversation = [
    {
        "role": "system",
        "content": "A chat between a user and an assistant. The assistant paraphrases text faithfully and clearly. /no_think",
    },
    {
        "role": "user",
        "content": template.format(TEXT=sample_text),
    },
]

# -----------------------
# 4. Run vLLM inference
# -----------------------
output = llm.chat([conversation], sampling_params)
response_text = output[0].outputs[0].text

# -----------------------
# 5. Extract paraphrased text
# -----------------------
match = re.search(r"Here is a paraphrased version:(.*)", response_text, re.DOTALL)
if match:
    paraphrased = match.group(1).strip()
else:
    paraphrased = response_text.strip()

print("=== Paraphrased Output ===")
print(paraphrased)

Runs of cx-cmu repro-rephraser-4B on huggingface.co

151
Total runs
-1
24-hour runs
-223
3-day runs
-522
7-day runs
-414
30-day runs

More Information About repro-rephraser-4B huggingface.co Model

More repro-rephraser-4B license Visit here:

https://choosealicense.com/licenses/apache-2.0

repro-rephraser-4B huggingface.co

repro-rephraser-4B huggingface.co is an AI model on huggingface.co that provides repro-rephraser-4B's model effect (), which can be used instantly with this cx-cmu repro-rephraser-4B model. huggingface.co supports a free trial of the repro-rephraser-4B model, and also provides paid use of the repro-rephraser-4B. Support call repro-rephraser-4B model through api, including Node.js, Python, http.

repro-rephraser-4B huggingface.co Url

https://huggingface.co/cx-cmu/repro-rephraser-4B

cx-cmu repro-rephraser-4B online free

repro-rephraser-4B huggingface.co is an online trial and call api platform, which integrates repro-rephraser-4B's modeling effects, including api services, and provides a free online trial of repro-rephraser-4B, you can try repro-rephraser-4B online for free by clicking the link below.

cx-cmu repro-rephraser-4B online free url in huggingface.co:

https://huggingface.co/cx-cmu/repro-rephraser-4B

repro-rephraser-4B install

repro-rephraser-4B is an open source model from GitHub that offers a free installation service, and any user can find repro-rephraser-4B on GitHub to install. At the same time, huggingface.co provides the effect of repro-rephraser-4B install, users can directly use repro-rephraser-4B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

repro-rephraser-4B install url in huggingface.co:

https://huggingface.co/cx-cmu/repro-rephraser-4B

Url of repro-rephraser-4B

repro-rephraser-4B huggingface.co Url

Provider of repro-rephraser-4B huggingface.co

cx-cmu
ORGANIZATIONS

Other API from cx-cmu

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 28 2026