Skip to content

Conversation

@blisc
Copy link
Collaborator

@blisc blisc commented Oct 23, 2019

No description provided.

@okuchaiev okuchaiev merged commit 129d3c9 into NVIDIA-NeMo:master Oct 24, 2019
@blisc blisc deleted the nemo_core_loss_tbwriter_update branch October 25, 2019 20:19
dcurran90 pushed a commit to dcurran90/NeMo that referenced this pull request Oct 15, 2024
blisc pushed a commit that referenced this pull request May 5, 2025
* Bugfix: num_audio_tokens_per_codebook

Make sure to reserve enough tokens for special uses like EOS/BOS.

WARNING: old models will be incompatible with the updated inference YAMLs
and will need to override the num_audio_tokens_per_codebook to the value they were
trained with.

* Rework how number of codes and codebooks are handled (WIP)

* Reorder the code a bit for clarity

* Refactor codebook configuration

* read codec parameters from codec checkpoint; remove corresponding configuration from Magpie YAML files
* add mechanism for backward compatibility with older checkpoints:
** If using `infer_and_evaluate.py`, just set the --legacy_codebooks command line flag
** If running training or inference with the Hydra command line, override using the following flags:
```
forced_num_all_tokens_per_codebook: 2048
forced_audio_bos_id: ${sum:${model.forced_num_all_tokens_per_codebook}, -1}           # 2047
forced_audio_eos_id: ${sum:${model.forced_num_all_tokens_per_codebook}, -2}           # 2046
forced_context_audio_bos_id: ${sum:${model.forced_num_all_tokens_per_codebook}, -4}   # 2044
forced_context_audio_eos_id: ${sum:${model.forced_num_all_tokens_per_codebook}, -3}   # 2045
```

* Add README on the codebook reorganization

... and how to load legacy checkpoints.

* Cleanup

* Cleanup and fixing typos

* Cleanup

* Cleanup

* Clarify the README on the embedding table layout

* README cleanup

* Rename an attritube for clarity

codec_model_downsample_factor --> codec_model_samples_per_frame
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants