Skip to content

Broken backwards compatibility between nemo versions 2.5.0 and 2.7.X (NEMO ASR) #15658

@diarray-hub

Description

@diarray-hub

Hi,

It seems there was a change in the name of a parameter in decoding.greedy.boosting_tree between version 2.5.0 and 2.7.3 (I didn't try to pinpoint the specific version that introduces the change, it might have happened earlier). Specifically the the parameter "key_phrase_items_list" was changed to "key_phrases_list" resulting in the following error when you try to when you try to load a pretrained model:

omegaconf.errors.ConfigAttributeError: Key 'key_phrase_items_list' is not in struct full_key: decoding.greedy.boosting_tree.key_phrase_items_list object_type=dict. Did you mean: 'key_phrases_list'?

It seems the backwards compatibility was broken somewhere between these two versions, because I can load other checkpoints trained with version 2.3.0 with the latest nemo version without any error. But none of the models I trained with the 2.5.0 version can pass the .from_pretraining() method without encountering the above error in nemo-toolkit version 2.7.3.

If anyone encounters the same issue or has a fix to suggest, please help. I wanted to open an issues so this can be resolved for future versions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions