Downloads · 30 days
11
4% of all-time downloads
chameleon-lizard/tox-mt0-xl
tox-mt0-xl is a text generation model from chameleon-lizard. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as openrail++.
Finetune of the mt0-xl model for text toxification task.
Downloads · 30 days
11
4% of all-time downloads
All-time downloads
282
Public
Parameters
3.7B
15 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors15 GB · 100%
From the Hugging Face model README
Finetune of the mt0-xl model for text toxification task.
This is a finetune of mt0-xl model for text toxification task. Can be used for synthetic data generation from non-toxic examples.
This model is intended to be used for synthetic data generation from non-toxic examples.
The model may be directly used for text toxification tasks.
The model may be used for generating toxic versions of sentences.
Since this model generates toxic versions of sentences, it may be used to increase toxicity of generated texts.
Use the code below to get started with the model.
import transformers
checkpoint = 'chameleon-lizard/tox-mt0-xl'
tokenizer = transformers.AutoTokenizer.from_pretrained(checkpoint)
model = transformers.AutoModelForSeq2SeqLM.from_pretrained(checkpoint, torch_dtype='auto', device_map="auto")
pipe = transformers.pipeline(
"text2text-generation",
model=model,
tokenizer=tokenizer,
max_length=512,
truncation=True,
)
language = 'English'
text = "That's dissapointing."
print(pipe('Rewrite the following text in {language} the most toxic and obscene version possible: {text}')[0]['generated_text'])
# Resulting text: "That's dissapointing, you stupid ass bitch."
Be sure to prompt with the provided prompt format for the best performance. Failure to include target language may result in model responses be in random language.