Text-to-Speech
Transformers
Safetensors
Bambara
vits
bambara
training-checkpoint
discriminator
low-resource
Instructions to use RobotsMali/bam-vits-train with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RobotsMali/bam-vits-train with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="RobotsMali/bam-vits-train")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("RobotsMali/bam-vits-train") model = AutoModelForPreTraining.from_pretrained("RobotsMali/bam-vits-train", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Document Bambara VITS experiment
Browse files
README.md
CHANGED
|
@@ -1,199 +1,73 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
-
#
|
| 7 |
|
| 8 |
-
|
| 9 |
|
|
|
|
| 10 |
|
|
|
|
| 11 |
|
| 12 |
-
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 27 |
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
|
| 36 |
-
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
-
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
| 45 |
|
| 46 |
-
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
-
|
| 51 |
|
| 52 |
-
|
| 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 |
-
|
| 60 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 61 |
-
|
| 62 |
-
[More Information Needed]
|
| 63 |
-
|
| 64 |
-
### Recommendations
|
| 65 |
-
|
| 66 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 67 |
-
|
| 68 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 69 |
-
|
| 70 |
-
## How to Get Started with the Model
|
| 71 |
-
|
| 72 |
-
Use the code below to get started with the model.
|
| 73 |
-
|
| 74 |
-
[More Information Needed]
|
| 75 |
-
|
| 76 |
-
## Training Details
|
| 77 |
-
|
| 78 |
-
### Training Data
|
| 79 |
-
|
| 80 |
-
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 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 [optional]
|
| 89 |
-
|
| 90 |
-
[More Information Needed]
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
#### Training Hyperparameters
|
| 94 |
-
|
| 95 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 96 |
-
|
| 97 |
-
#### Speeds, Sizes, Times [optional]
|
| 98 |
-
|
| 99 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 100 |
-
|
| 101 |
-
[More Information Needed]
|
| 102 |
-
|
| 103 |
-
## Evaluation
|
| 104 |
-
|
| 105 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 106 |
-
|
| 107 |
-
### Testing Data, Factors & Metrics
|
| 108 |
-
|
| 109 |
-
#### Testing Data
|
| 110 |
-
|
| 111 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 112 |
-
|
| 113 |
-
[More Information Needed]
|
| 114 |
-
|
| 115 |
-
#### Factors
|
| 116 |
-
|
| 117 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 118 |
-
|
| 119 |
-
[More Information Needed]
|
| 120 |
-
|
| 121 |
-
#### Metrics
|
| 122 |
-
|
| 123 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 124 |
-
|
| 125 |
-
[More Information Needed]
|
| 126 |
-
|
| 127 |
-
### Results
|
| 128 |
-
|
| 129 |
-
[More Information Needed]
|
| 130 |
-
|
| 131 |
-
#### Summary
|
| 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 |
-
[More Information Needed]
|
| 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 |
+
language: [bm]
|
| 3 |
library_name: transformers
|
| 4 |
+
license: cc-by-4.0
|
| 5 |
+
datasets: [RobotsMali/afvoices-notag]
|
| 6 |
+
base_model: ylacombe/vits-vctk-with-discriminator
|
| 7 |
+
tags: [vits, text-to-speech, bambara, training-checkpoint, discriminator, low-resource]
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# Bambara VITS — training checkpoint
|
| 11 |
|
| 12 |
+
`RobotsMali/bam-vits-train` is the continued-training counterpart of [`RobotsMali/bam-vits`](https://huggingface.co/RobotsMali/bam-vits). Its `VitsModelForPreTraining` weights retain both the generator and discriminator (about 323 MB rather than the inference export's 159 MB). Use this repository as `model_name_or_path` when fine-tuning; use `bam-vits` for ordinary inference.
|
| 13 |
|
| 14 |
+
> **Substantially undertrained.** The checkpoint received 200 epochs on a small experimental corpus and remains far below typical VITS budgets of hundreds of thousands of optimizer steps (approximately 200,000 is our reference). It is a starting point, not a converged base model.
|
| 15 |
|
| 16 |
+
## Continue training
|
| 17 |
|
| 18 |
+
Clone the RobotsMali training code, install its pinned dependencies, build monotonic alignment, then point a copied YAML config at this checkpoint and your dataset:
|
| 19 |
|
| 20 |
+
```bash
|
| 21 |
+
git clone https://github.com/RobotsMali-AI/vits-bam.git
|
| 22 |
+
cd vits-bam
|
| 23 |
+
python -m pip install -r requirements.txt
|
| 24 |
+
cd monotonic_align && python setup.py build_ext --inplace && cd ..
|
| 25 |
+
cp config/bam-vits.yaml config/my-experiment.yaml
|
| 26 |
+
```
|
| 27 |
|
| 28 |
+
At minimum, edit:
|
| 29 |
|
| 30 |
+
```yaml
|
| 31 |
+
model:
|
| 32 |
+
model_name_or_path: RobotsMali/bam-vits-train
|
| 33 |
+
tokenizer_name: RobotsMali/bam-vits-train
|
| 34 |
+
pseudo_ipa: false
|
| 35 |
+
override_speaker_embeddings: true
|
| 36 |
+
override_vocabulary_embeddings: false
|
| 37 |
|
| 38 |
+
data:
|
| 39 |
+
dataset_name: OWNER/DATASET
|
| 40 |
+
dataset_config_name: null
|
| 41 |
+
audio_column_name: audio
|
| 42 |
+
text_column_name: text
|
| 43 |
+
speaker_id_column_name: speaker_id
|
|
|
|
| 44 |
|
| 45 |
+
logging:
|
| 46 |
+
output_dir: ./tmp/my-experiment
|
| 47 |
+
hub_model_id: OWNER/MODEL
|
| 48 |
+
```
|
| 49 |
|
| 50 |
+
Then run:
|
| 51 |
|
| 52 |
+
```bash
|
| 53 |
+
accelerate launch run_vits_finetuning.py config/my-experiment.yaml
|
| 54 |
+
```
|
| 55 |
|
| 56 |
+
Review speaker and vocabulary settings for your data. This repository's custom training class and compiled monotonic-alignment extension are required. After training, `push_vits_model.py --inference_only` publishes a generator-only `VitsModel`; omitting the flag preserves the discriminator.
|
| 57 |
|
| 58 |
+
## Provenance
|
| 59 |
|
| 60 |
+
The model was initialized from the English VCTK [`ylacombe/vits-vctk-with-discriminator`](https://huggingface.co/ylacombe/vits-vctk-with-discriminator) and trained on `top20-speakers` from [`RobotsMali/afvoices-notag`](https://huggingface.co/datasets/RobotsMali/afvoices-notag): 21,253 training and 1,128 test examples from the 20 participants with the most utterances, excluding tagged transcripts. The corpus is spontaneous, noisy ASR data rather than studio TTS data.
|
| 61 |
|
| 62 |
+
The source config, [`config/bam-vits.yaml`](https://github.com/RobotsMali-AI/vits-bam/blob/main/config/bam-vits.yaml), specifies 200 epochs, per-device batch 80, learning rate 0.0005, FP16, 0.2–20-second audio, maximum 450 tokens, and seed 789. Text was lowercased; audio was resampled to 22.05 kHz.
|
| 63 |
|
| 64 |
+
## Limitations and responsible use
|
| 65 |
|
| 66 |
+
No MOS, intelligibility, pronunciation, speaker-similarity, or safety evaluation is reported. Any downstream model inherits risks from undertraining, noisy data, limited speaker coverage, minimal text normalization, and the English initialization. The source participant-to-model-index mapping was not saved. Evaluate convergence, pronunciation, memorization, bias, licensing, speaker consent, and voice similarity for every derivative.
|
| 67 |
|
| 68 |
+
This checkpoint is for research and fine-tuning. Do not use it to impersonate people, create deceptive audio, or support safety-critical speech without substantial additional training and evaluation. Clearly document downstream data and disclose synthetic audio.
|
| 69 |
|
| 70 |
+
## References
|
| 71 |
|
| 72 |
+
- [RobotsMali training repository](https://github.com/RobotsMali-AI/vits-bam), adapted from [ylacombe/finetune-hf-vits](https://github.com/ylacombe/finetune-hf-vits)
|
| 73 |
+
- [VITS paper](https://proceedings.mlr.press/v139/kim21f.html)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|