Downloads · 30 days
19
7% of all-time downloads
Shushant/ADAL_Paraphrasher
ADAL_Paraphrasher is a machine learning model from Shushant. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Adversarially trained paraphraser (Gσ) from the RADAR framework (Hu et al., NeurIPS 2023). Trained via Clipped PPO with Entropy Penalty (cppo-ep) to generate paraphrases that evade the companion RADAR detector.
Downloads · 30 days
19
7% of all-time downloads
All-time downloads
278
Public
Parameters
297M
4.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors707 MB · 100%
How the weights are stored.
F16240M · 81%
From the Hugging Face model README
Adversarially trained paraphraser (Gσ) from the RADAR framework (Hu et al., NeurIPS 2023). Trained via Clipped PPO with Entropy Penalty (cppo-ep) to generate paraphrases that evade the companion RADAR detector.
t5-largefrom transformers import T5Tokenizer, T5ForConditionalGeneration
tokenizer = T5Tokenizer.from_pretrained("Shushant/ADAL_Paraphrasher")
model = T5ForConditionalGeneration.from_pretrained("Shushant/ADAL_Paraphrasher")
text = "Paraphrase: " + "Your AI-generated text here."
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
outputs = model.generate(**inputs, max_new_tokens=128, do_sample=True,
top_k=50, top_p=0.95)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))