Datasets:

Modalities:
Audio
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
Dask
License:
gallilmaimon commited on
Commit
120f1a8
·
verified ·
1 Parent(s): 8564c65

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +104 -36
README.md CHANGED
@@ -1,36 +1,104 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: speaker
5
- dtype: string
6
- - name: prompt_text
7
- dtype: string
8
- - name: chosen_text
9
- dtype: string
10
- - name: rejected_text
11
- dtype: string
12
- - name: prompt
13
- dtype: audio
14
- - name: chosen
15
- dtype: audio
16
- - name: rejected
17
- dtype: audio
18
- - name: auto_bleu2
19
- dtype: float64
20
- splits:
21
- - name: validation
22
- num_bytes: 12199479621.038
23
- num_examples: 20006
24
- - name: train
25
- num_bytes: 28797300145.392
26
- num_examples: 47928
27
- download_size: 36106016770
28
- dataset_size: 40996779766.43
29
- configs:
30
- - config_name: default
31
- data_files:
32
- - split: train
33
- path: data/train-*
34
- - split: validation
35
- path: data/validation-*
36
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: speaker
5
+ dtype: string
6
+ - name: prompt_text
7
+ dtype: string
8
+ - name: chosen_text
9
+ dtype: string
10
+ - name: rejected_text
11
+ dtype: string
12
+ - name: prompt
13
+ dtype: audio
14
+ - name: chosen
15
+ dtype: audio
16
+ - name: rejected
17
+ dtype: audio
18
+ - name: auto_bleu2
19
+ dtype: float64
20
+ splits:
21
+ - name: validation
22
+ num_bytes: 12199479621.038
23
+ num_examples: 20006
24
+ - name: train
25
+ num_bytes: 28797300145.392
26
+ num_examples: 47928
27
+ download_size: 36106016770
28
+ dataset_size: 40996779766.43
29
+ configs:
30
+ - config_name: default
31
+ data_files:
32
+ - split: train
33
+ path: data/train-*
34
+ - split: validation
35
+ path: data/validation-*
36
+ license: mit
37
+ task_categories:
38
+ - audio-to-audio
39
+ language:
40
+ - en
41
+ size_categories:
42
+ - 10K<n<100K
43
+ ---
44
+
45
+ # SpokenSwag
46
+ We present here SpokenSwag as described in the paper ["_Slamming_: Training a Speech Language Model on One GPU in a Day"](link).
47
+ This dataset is based on [allenai/swag](https://huggingface.co/datasets/allenai/swag) and synthetised with 4 speakers from [hexgrad/Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M).
48
+ We show that perfoming DPO over the dataset can really improve performance of Speech Language Models.
49
+ We encourage you to also see the following resources, for further information:
50
+
51
+ **Project Page:** https://pages.cs.huji.ac.il/adiyoss-lab/slamming/ \
52
+ **Paper:** Soon! \
53
+ **Code:** https://github.com/slp-rl/slam \
54
+
55
+
56
+ If you use our dataset, please cite the paper as follows:
57
+ ```
58
+ @article{maimon2024slamming,
59
+ soon!
60
+ }
61
+
62
+ ```
63
+
64
+
65
+ ## Dataset Summary
66
+
67
+ A dataset used for post-training spoken language models with DPO, which was showed to notably improve semantic abilities.
68
+ Specifically, the dataset is based on text only dataset [allenai/swag](https://huggingface.co/datasets/allenai/swag), and taking the correct
69
+ answer as the chosen contiuation and a random wrong answer as negative one. These were then synthesised using TTS by
70
+ [hexgrad/Kokoro-82M](https://huggingface.co/hexgrad/Kokoro-82M). We use 4 speakers - 2 male and 2 female. We generate both train and
71
+ validation splits from the original dataset.
72
+
73
+ ## Download
74
+
75
+ #### Using 🤗 Datasets
76
+
77
+ ```python
78
+ from datasets import load_dataset
79
+ # entire dataset
80
+ spoken_swag = load_dataset('slprl/SpokenSwag')
81
+ ```
82
+
83
+ We refer you to the _Slam_ [codebase](https://github.com/slp-rl/slam) to see how you can train a SpeechLM with DPO over the dataset.
84
+
85
+ ## Data Fields
86
+
87
+ The data has several fields:
88
+ - `speaker`: One of the Kokoro voices - https://huggingface.co/hexgrad/Kokoro-82M/blob/main/VOICES.md
89
+ - `prompt_text`: The text of the prompt recording.
90
+ - `chosen_text`: The text of the chosen recording.
91
+ - `rejected_text`: The text of the rejected recording.
92
+ - `prompt`: The prompt audio sample
93
+ - `array`: array of audio samples
94
+ - `sample_rate`: audio sampling rate
95
+ - `path`: path to the audio file saved location
96
+ - `chosen`: The chosen audio sample
97
+ - `array`: array of audio samples
98
+ - `sample_rate`: audio sampling rate
99
+ - `path`: path to the audio file saved location
100
+ - `rejected`: The rejected audio sample
101
+ - `array`: array of audio samples
102
+ - `sample_rate`: audio sampling rate
103
+ - `path`: path to the audio file saved location
104
+ - `auto_bleu2`: The Auto-Bleu score with bi-grams, used to detect and filter repetetive samples