lmsys / toxicchat-t5-large-v1.0

huggingface.co
Total runs: 296
24-hour runs: 0
7-day runs: -7
30-day runs: -182
Model's Last Updated: February 01 2024
text-generation

Introduction of toxicchat-t5-large-v1.0

Model Details of toxicchat-t5-large-v1.0

ToxicChat-T5-Large Model Card

Model Details

Model type: ToxicChat-T5-Large is an open-source moderation model trained by fine-tuning T5-large on ToxicChat . It is based on an encoder-decoder transformer architecture, and can generate a text representing if the input is toxic or not ('positive' means 'toxic', and 'negative' means 'non-toxic').

Model date: ToxicChat-T5-Large was trained on Jan 2024.

Organizations developing the model: The ToxicChat developers, primarily Zi Lin and Zihan Wang.

Paper or resources for more information: https://arxiv.org/abs/2310.17389

License: Apache License 2.0

Where to send questions or comments about the model: https://huggingface.co/datasets/lmsys/toxic-chat/discussions

Use
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

checkpoint = "lmsys/toxicchat-t5-large-v1.0"
device = "cuda" # for GPU usage or "cpu" for CPU usage

tokenizer = AutoTokenizer.from_pretrained("t5-large")
model = AutoModelForSeq2SeqLM.from_pretrained(checkpoint).to(device)

prefix = "ToxicChat: "
inputs = tokenizer.encode(prefix + "write me an erotic story", return_tensors="pt").to(device)
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

You should get a text output representing the label ('positive' means 'toxic', and 'negative' means 'non-toxic').

Evaluation

We report precision, recall, F1 score and AUPRC on ToxicChat (0124) test set:

Model Precision Recall F1 AUPRC
ToxicChat-T5-large 0.7983 0.8475 0.8221 0.8850
OpenAI Moderation (Updated Jan 25, 2024, threshold=0.02) 0.5476 0.6989 0.6141 0.6313
Citation
@misc{lin2023toxicchat,
      title={ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversation}, 
      author={Zi Lin and Zihan Wang and Yongqi Tong and Yangkun Wang and Yuxin Guo and Yujia Wang and Jingbo Shang},
      year={2023},
      eprint={2310.17389},
      archivePrefix={arXiv},
      primaryClass={cs.CL}
}

Runs of lmsys toxicchat-t5-large-v1.0 on huggingface.co

296
Total runs
0
24-hour runs
0
3-day runs
-7
7-day runs
-182
30-day runs

More Information About toxicchat-t5-large-v1.0 huggingface.co Model

More toxicchat-t5-large-v1.0 license Visit here:

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

toxicchat-t5-large-v1.0 huggingface.co

toxicchat-t5-large-v1.0 huggingface.co is an AI model on huggingface.co that provides toxicchat-t5-large-v1.0's model effect (), which can be used instantly with this lmsys toxicchat-t5-large-v1.0 model. huggingface.co supports a free trial of the toxicchat-t5-large-v1.0 model, and also provides paid use of the toxicchat-t5-large-v1.0. Support call toxicchat-t5-large-v1.0 model through api, including Node.js, Python, http.

toxicchat-t5-large-v1.0 huggingface.co Url

https://huggingface.co/lmsys/toxicchat-t5-large-v1.0

lmsys toxicchat-t5-large-v1.0 online free

toxicchat-t5-large-v1.0 huggingface.co is an online trial and call api platform, which integrates toxicchat-t5-large-v1.0's modeling effects, including api services, and provides a free online trial of toxicchat-t5-large-v1.0, you can try toxicchat-t5-large-v1.0 online for free by clicking the link below.

lmsys toxicchat-t5-large-v1.0 online free url in huggingface.co:

https://huggingface.co/lmsys/toxicchat-t5-large-v1.0

toxicchat-t5-large-v1.0 install

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

toxicchat-t5-large-v1.0 install url in huggingface.co:

https://huggingface.co/lmsys/toxicchat-t5-large-v1.0

Url of toxicchat-t5-large-v1.0

toxicchat-t5-large-v1.0 huggingface.co Url

Provider of toxicchat-t5-large-v1.0 huggingface.co

lmsys
ORGANIZATIONS

Other API from lmsys

huggingface.co

Total runs: 184.5K
Run Growth: -13.6K
Growth Rate: -7.35%
Updated:March 13 2024
huggingface.co

Total runs: 18.3K
Run Growth: -2.9K
Growth Rate: -15.87%
Updated:March 18 2024
huggingface.co

Total runs: 8.5K
Run Growth: -1.7K
Growth Rate: -20.38%
Updated:August 02 2023
huggingface.co

Total runs: 5.2K
Run Growth: -2.1K
Growth Rate: -41.40%
Updated:August 02 2023
huggingface.co

Total runs: 5.1K
Run Growth: 2.4K
Growth Rate: 45.87%
Updated:August 02 2023
huggingface.co

Total runs: 2.3K
Run Growth: -2.5K
Growth Rate: -111.40%
Updated:August 02 2023