multi-smol_rewrite / README.md
dbaiamonte's picture
Update README.md
b76d332 verified
|
Raw History Blame Contribute Delete
9.77 kB
---
license: apache-2.0
configs:
- config_name: de
data_files:
- split: train
path: de/train-*
- config_name: en
default: true
data_files:
- split: train
path: en/train-*
- config_name: es
data_files:
- split: train
path: es/train-*
- config_name: fr
data_files:
- split: train
path: fr/train-*
- config_name: it
data_files:
- split: train
path: it/train-*
dataset_info:
- config_name: de
features:
- name: messages
list:
- name: content
dtype: string
- name: role
dtype: string
- name: chat_template_kwargs
struct:
- name: custom_instructions
dtype: string
- name: enable_thinking
dtype: bool
- name: python_tools
list: 'null'
- name: xml_tools
list: 'null'
- name: source
dtype: string
splits:
- name: train
num_bytes: 16804177
num_examples: 7990
download_size: 6887345
dataset_size: 16804177
- config_name: en
features:
- name: messages
list:
- name: content
dtype: string
- name: role
dtype: string
- name: chat_template_kwargs
struct:
- name: custom_instructions
dtype: string
- name: enable_thinking
dtype: bool
- name: python_tools
list: 'null'
- name: xml_tools
list: 'null'
- name: source
dtype: string
splits:
- name: train
num_bytes: 36217474
num_examples: 21305
download_size: 15900149
dataset_size: 36217474
- config_name: es
features:
- name: messages
list:
- name: content
dtype: string
- name: role
dtype: string
- name: chat_template_kwargs
struct:
- name: custom_instructions
dtype: string
- name: enable_thinking
dtype: bool
- name: python_tools
list: 'null'
- name: xml_tools
list: 'null'
- name: source
dtype: string
splits:
- name: train
num_bytes: 15688375
num_examples: 7989
download_size: 6409677
dataset_size: 15688375
- config_name: fr
features:
- name: messages
list:
- name: content
dtype: string
- name: role
dtype: string
- name: chat_template_kwargs
struct:
- name: custom_instructions
dtype: string
- name: enable_thinking
dtype: bool
- name: python_tools
list: 'null'
- name: xml_tools
list: 'null'
- name: source
dtype: string
splits:
- name: train
num_bytes: 16560460
num_examples: 7988
download_size: 6894115
dataset_size: 16560460
- config_name: it
features:
- name: messages
list:
- name: content
dtype: string
- name: role
dtype: string
- name: chat_template_kwargs
struct:
- name: custom_instructions
dtype: string
- name: enable_thinking
dtype: bool
- name: python_tools
list: 'null'
- name: xml_tools
list: 'null'
- name: source
dtype: string
splits:
- name: train
num_bytes: 15459294
num_examples: 7990
download_size: 6469209
dataset_size: 15459294
language:
- en
- it
- fr
- es
- de
tags:
- multilingual
- instruction-tuning
size_categories:
- 10K<n<100K
---
# Multi-Smol-Rewrite
**Multi-Smol-Rewrite** is the multilingual version of **Smol-rewrite**, the text-rewriting subset of [SmolTalk](https://huggingface.co/datasets/HuggingFaceTB/smoltalk). It is released in English, Italian, French, German and Spanish and contains about **53,000 rewriting samples** in total, distributed with 40% English and 15% for each of the other four languages.
The dataset is a supervised fine-tuning (SFT) resource: each sample is a three-turn chat (system prompt, input text, rewritten text) that teaches a model to rewrite a passage while following an explicit stylistic or content instruction, for example adjusting the tone to be more friendly or more professional.
## Source dataset
| | |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Dataset | Smol-rewrite (configuration `smol-rewrite` of SmolTalk) |
| Hugging Face | [HuggingFaceTB/smoltalk](https://huggingface.co/datasets/HuggingFaceTB/smoltalk) |
| Paper | [SmolLM2: When Smol Goes Big — Data-Centric Training of a Small Language Model](https://arxiv.org/abs/2502.02737) (Ben Allal et al., 2025) |
| License | Apache 2.0 |
Smol-rewrite is a 50k-sample synthetic collection built with [distilabel](https://github.com/argilla-io/distilabel). The source texts (emails, tweets, LinkedIn posts and notes) were generated with `Qwen2.5-72B-Instruct` conditioned on personas from PersonaHub and FinePersonas, so that they cover a wide range of writing styles, topics and registers; the same model was then prompted to rewrite them, and a subset of the resulting pairs was released. Samples cover operations such as shortening a text, changing its tone, or adapting it to a different audience, always paired with the system prompt that specifies the requested transformation. The release provides `train` (53,342 rows) and `test` (2,808 rows) splits, with a single `messages` column in chat format.
## How the dataset was built
The source samples were divided into five **disjoint language shares**: 40% of the samples were kept in English and 15% were assigned to each of the other four languages. The non-English shares were translated through an **automated translation and localization pipeline**, keeping the task definition intact:
- **Translated content:** the whole conversation, i.e. the system prompt, the input text and the rewritten reference text.
- **Light localization:** beyond translation, a light localization pass adapted culture-specific details, for example replacing English person names with names typical of the target language.
- **Translation model:** translation and localization were performed with `RedHatAI/Mistral-Small-3.1-24B-Instruct-2503-FP8-dynamic`.
## Dataset structure
### Configurations
| Config | Language | Entries | Share |
| --------------- | -------- | ---------------- | -------------- |
| `en` | English | 21,305 | 40% |
| `fr` | French | 7,988 | 15% |
| `de` | German | 7,990 | 15% |
| `it` | Italian | 7,990 | 15% |
| `es` | Spanish | 7,989 | 15% |
| **Total** | | **53,262** | **100%** |
### Fields
| Field | Description |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `messages` | List of chat messages: a `user` turn with the input text and an `assistant` turn with the rewritten text |
| `chat_template_kwargs` | Per-sample options for the chat template: `custom_instructions` (including the rewriting instruction), `enable_thinking`, `python_tools` and `xml_tools` |
| `source` | Provenance identifier of the source Smol-rewrite sample the row was derived from |
## Usage
```python
from datasets import load_dataset
ds = load_dataset("VillanovaAI/multi-smol_rewrite", "it", split="train")
sample = ds[0]
for message in sample["messages"]:
print(message["role"], "->", message["content"][:200])
```
## Limitations
- The translations are produced automatically and inherit both the characteristics of the synthetic source texts and any error introduced by the translation step.
- The source texts are synthetic and were generated from English-speaking personas; localization is limited to light adaptations such as person names, so other culture-specific references may still sound less natural in the target languages.
## Licensing and attribution
The upstream subset is released under **Apache 2.0** and this multilingual version is distributed under the same license. Content and pipeline are credited to the SmolTalk / SmolLM2 team at Hugging Face.
## Citation
If you use this dataset, please cite the Multi-SFT paper, which describes the whole SFT collection used to train the Villanova model family, together with the SmolLM2 paper and the original SmolTalk release.
```bibtex
@misc{baiamonte2026multisft,
title={Multi-SFT: Permissively-Licensed Multilingual Instruction-Following},
author={Baiamonte, Daniela and Zeinalipour, Kamyar and Fano, Elena and Simonazzi, Stefano and Zugarini, Andrea},
year={2026},
eprint={2610.22086},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2610.22086}
}
@misc{allal2025smollm2,
title={SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model},
author={Ben Allal, Loubna and Lozhkov, Anton and Bakouch, Elie and Mart{\'i}n Bl{\'a}zquez, Gabriel and Penedo, Guilherme and Tunstall, Lewis and others},
year={2025},
eprint={2502.02737},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2502.02737}
}
```