v0.3.0: training-crop provenance (fixed T=180 crops for the released weights; step-0 loss fingerprint; training_provenance block; variable_length_training aligned with the weights), TFLite EER CIs and re-measured latencies, flaxspeaker>=0.3.0 quickstart
Browse files- README.md +3 -1
- config.json +14 -2
README.md
CHANGED
|
@@ -41,7 +41,7 @@ metrics:
|
|
| 41 |
|
| 42 |
This model was trained for **400 gradient steps** with mini-batches of 32 utterances (8 speakers x 4 utterances), i.e. about 1.35 epochs over the 9,447-utterance universal corpus, on a CPU workstation, with a single seed (42). Losses are not converged at this budget. All EERs below are therefore far from state of the art and are only meaningful for *relative* comparisons between FlaxSpeaker checkpoints trained under the same budget.
|
| 43 |
|
| 44 |
-
**Training-
|
| 45 |
|
| 46 |
For orientation only: published ECAPA-TDNN systems trained on VoxCeleb2-dev reach about 0.9% EER on the full VoxCeleb1-O list (Desplanques et al., 2020), and sub-1M-parameter systems about 2% (Wang et al., EfficientTDNN, 2022). The 400-step checkpoints released here are 10-30x worse than that and are intended for relative comparisons within the FlaxSpeaker benchmark, not as state-of-the-art models.
|
| 47 |
|
|
@@ -75,6 +75,8 @@ For orientation only: published ECAPA-TDNN systems trained on VoxCeleb2-dev reac
|
|
| 75 |
|
| 76 |
### Python API (from Hugging Face Hub or Local Directory)
|
| 77 |
|
|
|
|
|
|
|
| 78 |
```python
|
| 79 |
from flaxspeaker import load_pretrained
|
| 80 |
|
|
|
|
| 41 |
|
| 42 |
This model was trained for **400 gradient steps** with mini-batches of 32 utterances (8 speakers x 4 utterances), i.e. about 1.35 epochs over the 9,447-utterance universal corpus, on a CPU workstation, with a single seed (42). Losses are not converged at this budget. All EERs below are therefore far from state of the art and are only meaningful for *relative* comparisons between FlaxSpeaker checkpoints trained under the same budget.
|
| 43 |
|
| 44 |
+
**Training-crop provenance.** This checkpoint was trained with **fixed 180-frame (1.8 s) crops and all-ones validity masks**, not with the `U(90, 180)` variable-length crops that are the current pipeline default: the training code in use at the time defaulted the batchers to `variable_length=False` and the benchmark driver did not pass the flag. The shipped `config.json` / YAML therefore set `variable_length_training: false`, which re-creates this regime. Step-0 loss fingerprint at the released seed (`scripts/fingerprint_released_checkpoints.py`, `pretrained_models/step0_fingerprints.json`): archived `2.0807`; current code with fixed 180-frame crops `2.0807`, with `U(90, 180)` crops `2.1163` (match: `fixed`). Evaluating the released weights with the current code reproduces the archived metrics in `eval_results.json`. The seed-to-seed standard deviation of pooled 1-utt EER at this budget is about 0.7-0.8 % absolute, so sub-1.5 % differences between checkpoints are not rankings.
|
| 45 |
|
| 46 |
For orientation only: published ECAPA-TDNN systems trained on VoxCeleb2-dev reach about 0.9% EER on the full VoxCeleb1-O list (Desplanques et al., 2020), and sub-1M-parameter systems about 2% (Wang et al., EfficientTDNN, 2022). The 400-step checkpoints released here are 10-30x worse than that and are intended for relative comparisons within the FlaxSpeaker benchmark, not as state-of-the-art models.
|
| 47 |
|
|
|
|
| 75 |
|
| 76 |
### Python API (from Hugging Face Hub or Local Directory)
|
| 77 |
|
| 78 |
+
Requires `flaxspeaker >= 0.3.0` (`pip install -U flaxspeaker`); the `0.2.0` wheel on PyPI predates the released checkpoints and cannot load them.
|
| 79 |
+
|
| 80 |
```python
|
| 81 |
from flaxspeaker import load_pretrained
|
| 82 |
|
config.json
CHANGED
|
@@ -213,7 +213,7 @@
|
|
| 213 |
"use_positional_encoding": false
|
| 214 |
},
|
| 215 |
"use_transformer": false,
|
| 216 |
-
"variable_length_training":
|
| 217 |
},
|
| 218 |
"train": {
|
| 219 |
"batch_size": 32,
|
|
@@ -306,5 +306,17 @@
|
|
| 306 |
"scoring_type": "cosine",
|
| 307 |
"seq_len": 180,
|
| 308 |
"size_variant": "base",
|
| 309 |
-
"transformers_version": "5.17.0"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
}
|
|
|
|
| 213 |
"use_positional_encoding": false
|
| 214 |
},
|
| 215 |
"use_transformer": false,
|
| 216 |
+
"variable_length_training": false
|
| 217 |
},
|
| 218 |
"train": {
|
| 219 |
"batch_size": 32,
|
|
|
|
| 306 |
"scoring_type": "cosine",
|
| 307 |
"seq_len": 180,
|
| 308 |
"size_variant": "base",
|
| 309 |
+
"transformers_version": "5.17.0",
|
| 310 |
+
"training_provenance": {
|
| 311 |
+
"variable_length_training_actual": false,
|
| 312 |
+
"crop_frames": 180,
|
| 313 |
+
"training_code": "uncommitted working tree before 1cb90c7 (2026-10-15): get_batched_nm_input / get_batched_classification_input defaulted to variable_length=False and run_research_benchmarks.py did not pass the flag, so crops were fixed seq_len=180 frames with all-ones masks although the serialized config said variable_length_training=True",
|
| 314 |
+
"step0_fingerprint_match": "fixed",
|
| 315 |
+
"released_initial_loss": 2.0807,
|
| 316 |
+
"head_fixed_step0_loss": 2.0807,
|
| 317 |
+
"head_variable_step0_loss": 2.1163,
|
| 318 |
+
"fingerprint_code_commit": "ea7ebcc+dirty",
|
| 319 |
+
"fingerprint_source": "pretrained_models/step0_fingerprints.json",
|
| 320 |
+
"note": "How the released weights were actually trained. Evaluating the released weights with the current code reproduces the archived metrics; re-training the shipped recipe reproduces the archived step-0 loss only under 'crop_frames'. See README.md 'Training-crop provenance'."
|
| 321 |
+
}
|
| 322 |
}
|