Update README.md
Browse files
README.md
CHANGED
|
@@ -1,11 +1,15 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# Model Card for Model ID
|
| 7 |
-
|
| 8 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
| 9 |
|
| 10 |
|
| 11 |
|
|
@@ -17,25 +21,19 @@ tags: []
|
|
| 17 |
|
| 18 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 19 |
|
| 20 |
-
- **Developed by:** [
|
| 21 |
-
- **
|
| 22 |
-
- **
|
| 23 |
-
- **
|
| 24 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 25 |
-
- **License:** [More Information Needed]
|
| 26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 27 |
-
|
| 28 |
-
### Model Sources [optional]
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
-
- **Repository:** [
|
| 33 |
-
- **Paper
|
| 34 |
-
- **Demo
|
| 35 |
|
| 36 |
## Uses
|
| 37 |
-
|
| 38 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 39 |
|
| 40 |
### Direct Use
|
| 41 |
|
|
@@ -43,17 +41,9 @@ This is the model card of a 🤗 transformers model that has been pushed on the
|
|
| 43 |
|
| 44 |
[More Information Needed]
|
| 45 |
|
| 46 |
-
### Downstream Use [optional]
|
| 47 |
-
|
| 48 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 49 |
-
|
| 50 |
-
[More Information Needed]
|
| 51 |
-
|
| 52 |
### Out-of-Scope Use
|
|
|
|
| 53 |
|
| 54 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 55 |
-
|
| 56 |
-
[More Information Needed]
|
| 57 |
|
| 58 |
## Bias, Risks, and Limitations
|
| 59 |
|
|
@@ -69,25 +59,25 @@ Users (both direct and downstream) should be made aware of the risks, biases and
|
|
| 69 |
|
| 70 |
## How to Get Started with the Model
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
-
[More Information Needed]
|
| 75 |
|
| 76 |
## Training Details
|
|
|
|
| 77 |
|
| 78 |
### Training Data
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
[More Information Needed]
|
| 83 |
|
| 84 |
### Training Procedure
|
| 85 |
|
| 86 |
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 87 |
|
| 88 |
-
#### Preprocessing
|
| 89 |
-
|
| 90 |
-
[
|
|
|
|
| 91 |
|
| 92 |
|
| 93 |
#### Training Hyperparameters
|
|
@@ -132,68 +122,24 @@ Use the code below to get started with the model.
|
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
-
## Model Examination [optional]
|
| 136 |
-
|
| 137 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 138 |
-
|
| 139 |
-
[More Information Needed]
|
| 140 |
-
|
| 141 |
-
## Environmental Impact
|
| 142 |
-
|
| 143 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 144 |
-
|
| 145 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 146 |
-
|
| 147 |
-
- **Hardware Type:** [More Information Needed]
|
| 148 |
-
- **Hours used:** [More Information Needed]
|
| 149 |
-
- **Cloud Provider:** [More Information Needed]
|
| 150 |
-
- **Compute Region:** [More Information Needed]
|
| 151 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 152 |
-
|
| 153 |
-
## Technical Specifications [optional]
|
| 154 |
|
| 155 |
### Model Architecture and Objective
|
| 156 |
|
| 157 |
[More Information Needed]
|
| 158 |
|
| 159 |
### Compute Infrastructure
|
| 160 |
-
|
| 161 |
-
[More Information Needed]
|
| 162 |
|
| 163 |
#### Hardware
|
| 164 |
-
|
| 165 |
-
[More Information Needed]
|
| 166 |
|
| 167 |
#### Software
|
|
|
|
|
|
|
| 168 |
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
## Citation [optional]
|
| 172 |
|
| 173 |
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 174 |
|
| 175 |
**BibTeX:**
|
| 176 |
-
|
| 177 |
-
[More Information Needed]
|
| 178 |
-
|
| 179 |
-
**APA:**
|
| 180 |
-
|
| 181 |
-
[More Information Needed]
|
| 182 |
-
|
| 183 |
-
## Glossary [optional]
|
| 184 |
-
|
| 185 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 186 |
-
|
| 187 |
-
[More Information Needed]
|
| 188 |
-
|
| 189 |
-
## More Information [optional]
|
| 190 |
-
|
| 191 |
-
[More Information Needed]
|
| 192 |
-
|
| 193 |
-
## Model Card Authors [optional]
|
| 194 |
-
|
| 195 |
-
[More Information Needed]
|
| 196 |
-
|
| 197 |
-
## Model Card Contact
|
| 198 |
-
|
| 199 |
-
[More Information Needed]
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
license: mit
|
| 4 |
+
datasets:
|
| 5 |
+
- openslr/librispeech_asr
|
| 6 |
+
- slprl/sTinyStories2
|
| 7 |
+
base_model:
|
| 8 |
+
- Qwen/Qwen2.5-0.5B
|
| 9 |
---
|
| 10 |
|
| 11 |
# Model Card for Model ID
|
| 12 |
+
This is a Speech Lanaguage Model trained for generating audio contiuations over discrete [Hubert tokens](https://huggingface.co/slprl/mhubert-base-25hz).
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
|
|
|
|
| 21 |
|
| 22 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 23 |
|
| 24 |
+
- **Developed by:** [SLP-RL](https://huggingface.co/slprl)
|
| 25 |
+
- **Model type:** SpeechLM
|
| 26 |
+
- **License:** MIT
|
| 27 |
+
- **Finetuned from model:** [Qwen/Qwen2.5-0.5B](https://huggingface.co/Qwen/Qwen2.5-0.5B)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
### Model Sources
|
| 30 |
|
| 31 |
+
- **Repository:** [https://github.com/slp-rl/slam](https://github.com/slp-rl/slam)
|
| 32 |
+
- **Paper:** [Soon!]
|
| 33 |
+
- **Demo:** [Link](https://pages.cs.huji.ac.il/adiyoss-lab/slamming/)
|
| 34 |
|
| 35 |
## Uses
|
| 36 |
+
This is a base SpeechLM and as such can be used to generate contiuations for speech segments, or as base for further tuning.
|
|
|
|
| 37 |
|
| 38 |
### Direct Use
|
| 39 |
|
|
|
|
| 41 |
|
| 42 |
[More Information Needed]
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
### Out-of-Scope Use
|
| 45 |
+
This model was trained on curated speech datasets which contain mainly audio-books and stories, as such the outputs should not be treated as factual in any way.
|
| 46 |
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
## Bias, Risks, and Limitations
|
| 49 |
|
|
|
|
| 59 |
|
| 60 |
## How to Get Started with the Model
|
| 61 |
|
| 62 |
+
We refer users to the official repository for full usage explainations - [github](https://github.com/slp-rl/slam).
|
| 63 |
|
|
|
|
| 64 |
|
| 65 |
## Training Details
|
| 66 |
+
We highly encourage users to read the full [paper](), for full training details.
|
| 67 |
|
| 68 |
### Training Data
|
| 69 |
+
This model was trained on a subset of [LibriSpeech] train, [Libri-Light]() and the synthetic dataset
|
| 70 |
+
[sTinyStories](https://huggingface.co/datasets/slprl/sTinyStories) for the pre-training phase. It was also trained with DPO on the synthetic
|
| 71 |
+
dataset [SpokenSwag](https://huggingface.co/datasets/slprl/SpokenSwag).
|
|
|
|
| 72 |
|
| 73 |
### Training Procedure
|
| 74 |
|
| 75 |
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 76 |
|
| 77 |
+
#### Preprocessing
|
| 78 |
+
Speech tokens are extracted from the audio using [Hubert-25hz](https://huggingface.co/slprl/mhubert-base-25hz), and quantised using the
|
| 79 |
+
official kmeans released with the model in [textlesslib](https://github.com/facebookresearch/textlesslib/tree/main). Units are de-duplicated.
|
| 80 |
+
We encourage you to explore the official repository for full details - [github](https://github.com/slp-rl/slam).
|
| 81 |
|
| 82 |
|
| 83 |
#### Training Hyperparameters
|
|
|
|
| 122 |
|
| 123 |
|
| 124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
|
| 126 |
### Model Architecture and Objective
|
| 127 |
|
| 128 |
[More Information Needed]
|
| 129 |
|
| 130 |
### Compute Infrastructure
|
| 131 |
+
This model was trained as part of ["*Slamming*: Training a Speech Language Model on One GPU in a Day"], focusing on efficient training.
|
|
|
|
| 132 |
|
| 133 |
#### Hardware
|
| 134 |
+
This model was trained using **only a single Nvidia A5000 GPU**, 16 CPU cores and 24 GB of RAM for **24 hours**.
|
|
|
|
| 135 |
|
| 136 |
#### Software
|
| 137 |
+
The model was trained using the [*Slam*](https://github.com/slp-rl/slam) codebase which builds upon transformers extending it to support easy and efficent training of
|
| 138 |
+
Speech Language Models.
|
| 139 |
|
| 140 |
+
## Citation
|
|
|
|
|
|
|
| 141 |
|
| 142 |
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 143 |
|
| 144 |
**BibTeX:**
|
| 145 |
+
Soon!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|