s-nlp / mt0-xl-detox-sdm-full

huggingface.co
Total runs: 4
24-hour runs: 0
7-day runs: 0
30-day runs: -4
Model's Last Updated: March 06 2025
text-generation

Introduction of mt0-xl-detox-sdm-full

Model Details of mt0-xl-detox-sdm-full

mT0-XL (SynthDetoxM Full)

image/png

This a fine-tune of bigscience/mt0-xl model on multilingual text detoxification dataset SynthDetoxM from the NAACL 2025 Main Track paper SynthDetoxM: Modern LLMs are Few-Shot Parallel Detoxification Data Annotators by Daniil Moskovskiy et al.

Usage

The usage is similar to the

from transformers import pipeline

toxic_text = "Your toxic text goes here."

pipe = pipeline("text2text-generation", model="s-nlp/mt0-xl-detox-sdm-full")
pipe(f"Detoxify: {toxic_text}")
Training Details

The model was fine-tuned for 2 epochs on s-nlp/synthdetoxm dataset with full precision (FP32) using Adafactor optimizer with 1e-4 learning rate and batch size of 4 with gradient checkpointing enabled. The full training configuration is available below:

{
    "do_train": true,
    "do_eval": true,
    "per_device_train_batch_size": 4,
    "per_device_eval_batch_size": 4,
    "learning_rate": 1e-4,
    "weight_decay": 0,
    "num_train_epochs": 2,
    "gradient_accumulation_steps": 1,
    "logging_strategy": "steps",
    "logging_steps": 1,
    "save_strategy": "epoch",
    "save_total_limit": 1,
    "warmup_steps": 1,
    "report_to": "wandb",
    "optim": "adafactor",
    "lr_scheduler_type": "linear",
    "predict_with_generate": true,
    "bf16": false,
    "gradient_checkpointing": true,
    "output_dir": "/path/",
    "seed": 42,
}
Metrics

We use the multilingual detoxification evaluation setup from TextDetox 2024 Multilingual Text Detoxification Shared Task . Specifically, we use the following metrics:

These metrics are aggregated in a final Joint metric ( J ):

J = 1 n ∑ i = 1 n STA ( y i ) ⋅ SIM ( x i , y i ) ⋅ FL ( x i , y i ) \textbf{J} = \frac{1}{n}\sum\limits_{i=1}^{n}\textbf{STA}(y_i) \cdot \textbf{SIM}(x_i,y_i) \cdot \textbf{FL}(x_i, y_i) ,

Evaluation Results

This model was evaluated on the test set of textdetox/multilingual_paradetox dataset from TextDetox 2024 Multilingual Text Detoxification Shared Task . The results of the evaluation are presented below.

German Spanish Russian
Human References 0.733 0.709 0.732
Baselines
Duplicate 0.287 0.090 0.048
Delete 0.362 0.319 0.255
Backtranslation 0.233 0.275 0.223
mT0-XL supervised fine-tuning
MultiParaDetox 0.446 0.344 0.472
SynthDetoxM (Subset AVG) 0.460 0.402 0.475
SynthDetoxM (this model) 0.482 0.470 0.546
Software

Code for replicating the results from the paper can be found on GitHub .

Citation

BibTeX:

@misc{moskovskiy2025synthdetoxmmodernllmsfewshot,
      title={SynthDetoxM: Modern LLMs are Few-Shot Parallel Detoxification Data Annotators}, 
      author={Daniil Moskovskiy and Nikita Sushko and Sergey Pletenev and Elena Tutubalina and Alexander Panchenko},
      year={2025},
      eprint={2502.06394},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2502.06394}, 
}
Model Card Authors [optional]

Daniil Moskovskiy

Model Card Contact

For any questions, please contact: Daniil Moskovskiy

Runs of s-nlp mt0-xl-detox-sdm-full on huggingface.co

4
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
-4
30-day runs

More Information About mt0-xl-detox-sdm-full huggingface.co Model

More mt0-xl-detox-sdm-full license Visit here:

https://choosealicense.com/licenses/openrail++

mt0-xl-detox-sdm-full huggingface.co

mt0-xl-detox-sdm-full huggingface.co is an AI model on huggingface.co that provides mt0-xl-detox-sdm-full's model effect (), which can be used instantly with this s-nlp mt0-xl-detox-sdm-full model. huggingface.co supports a free trial of the mt0-xl-detox-sdm-full model, and also provides paid use of the mt0-xl-detox-sdm-full. Support call mt0-xl-detox-sdm-full model through api, including Node.js, Python, http.

mt0-xl-detox-sdm-full huggingface.co Url

https://huggingface.co/s-nlp/mt0-xl-detox-sdm-full

s-nlp mt0-xl-detox-sdm-full online free

mt0-xl-detox-sdm-full huggingface.co is an online trial and call api platform, which integrates mt0-xl-detox-sdm-full's modeling effects, including api services, and provides a free online trial of mt0-xl-detox-sdm-full, you can try mt0-xl-detox-sdm-full online for free by clicking the link below.

s-nlp mt0-xl-detox-sdm-full online free url in huggingface.co:

https://huggingface.co/s-nlp/mt0-xl-detox-sdm-full

mt0-xl-detox-sdm-full install

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

mt0-xl-detox-sdm-full install url in huggingface.co:

https://huggingface.co/s-nlp/mt0-xl-detox-sdm-full

Url of mt0-xl-detox-sdm-full

mt0-xl-detox-sdm-full huggingface.co Url

Provider of mt0-xl-detox-sdm-full huggingface.co

s-nlp
ORGANIZATIONS

Other API from s-nlp

huggingface.co

Total runs: 23
Run Growth: 0
Growth Rate: 0.00%
Updated:September 08 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 25 2024