GithubHelp home page GithubHelp logo

Comments (7)

csukuangfj avatar csukuangfj commented on July 3, 2024 1

for models published on huggingface

How can I figure out whether the model is published on huggingface or not?

I have been using https://catalog.ngc.nvidia.com/models to find models.

from nemo.

csukuangfj avatar csukuangfj commented on July 3, 2024

By the way,

import nemo.collections.asr as nemo_asr
asr_model = nemo_asr.models.EncDecHybridRNNTCTCBPEModel.from_pretrained(model_name="stt_ua_fastconformer_hybrid_large_pc")

from
https://catalog.ngc.nvidia.com/orgs/nvidia/teams/nemo/models/stt_ua_fastconformer_hybrid_large_pc

throws the following error:

[NeMo I 2024-05-09 02:22:17 nemo_logging:381] PADDING: 0
[NeMo E 2024-05-09 02:22:17 nemo_logging:405] Model instantiation failed!
    Target class:       nemo.collections.asr.models.hybrid_rnnt_ctc_bpe_models.EncDecHybridRNNTCTCBPEModel
    Error(s):   Error in call to target 'nemo.collections.asr.modules.conformer_encoder.ConformerEncoder':
    TypeError("ConformerEncoder.__init__() got an unexpected keyword argument 'conv_pointwise_type'")
    Traceback (most recent call last):
      File "/mnt/sdb/shared/py311/lib/python3.11/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 92, in _call_target
        return _target_(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: ConformerEncoder.__init__() got an unexpected keyword argument 'conv_pointwise_type'

    The above exception was the direct cause of the following exception:
    Traceback (most recent call last):
      File "/mnt/sdb/shared/py311/lib/python3.11/site-packages/nemo/core/classes/common.py", line 502, in from_config_dict
        instance = imported_cls(cfg=config, trainer=trainer)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/sdb/shared/py311/lib/python3.11/site-packages/nemo/collections/asr/models/hybrid_rnnt_ctc_bpe_models.py", line 94, in __init__
        super().__init__(cfg=cfg, trainer=trainer)
      File "/mnt/sdb/shared/py311/lib/python3.11/site-packages/nemo/collections/asr/models/hybrid_rnnt_ctc_models.py", line 45, in __init__
        super().__init__(cfg=cfg, trainer=trainer)
      File "/mnt/sdb/shared/py311/lib/python3.11/site-packages/nemo/collections/asr/models/rnnt_models.py", line 66, in __init__
        self.encoder = EncDecRNNTModel.from_config_dict(self.cfg.encoder)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/sdb/shared/py311/lib/python3.11/site-packages/nemo/core/classes/common.py", line 485, in from_config_dict
        instance = hydra.utils.instantiate(config=config)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/sdb/shared/py311/lib/python3.11/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 226, in instantiate
        return instantiate_node(
               ^^^^^^^^^^^^^^^^^
      File "/mnt/sdb/shared/py311/lib/python3.11/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 347, in instantiate_node
        return _call_target(_target_, partial, args, kwargs, full_key)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/mnt/sdb/shared/py311/lib/python3.11/site-packages/hydra/_internal/instantiate/_instantiate2.py", line 97, in _call_target
        raise InstantiationException(msg) from e
    hydra.errors.InstantiationException: Error in call to target 'nemo.collections.asr.modules.conformer_encoder.ConformerEncoder':
    TypeError("ConformerEncoder.__init__() got an unexpected keyword argument 'conv_pointwise_type'")

from nemo.

nithinraok avatar nithinraok commented on July 3, 2024

Hi @csukuangfj , for models published on huggingface you need to prepend nvidia name as well along with model name. so command would look like

import nemo.collections.asr as nemo_asr
asr_model = nemo_asr.models.EncDecHybridRNNTCTCBPEModel.from_pretrained(model_name="nvidia/stt_fa_fastconformer_hybrid_large")

from nemo.

nithinraok avatar nithinraok commented on July 3, 2024

I could load stt_ua_fastconformer_hybrid_large_pc fine, could you please try again with: (btw I am on main branch)

asr_model = nemo_asr.models.EncDecHybridRNNTCTCBPEModel.from_pretrained(model_name="nvidia/stt_ua_fastconformer_hybrid_large_pc")

from nemo.

csukuangfj avatar csukuangfj commented on July 3, 2024

@nithinraok

Thank you for your reply.

nvidia/stt_fa_fastconformer_hybrid_large does work!

I have been following the doc at
https://catalog.ngc.nvidia.com/orgs/nvidia/teams/nemo/models/stt_fa_fastconformer_hybrid_large

The doc says stt_fa_fastconformer_hybrid_large, not nvidia/stt_fa_fastconformer_hybrid_large.

I hope that you either fix the doc or fix the NeMo code to support the doc.

from nemo.

nithinraok avatar nithinraok commented on July 3, 2024

Looks like there is an issue with NGC model version, and hence I suggested huggingface model its just a copy of it.

from nemo.

github-actions avatar github-actions commented on July 3, 2024

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

from nemo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.