Skip to content

feat: improved error messages#1452

Merged
akoumpa merged 5 commits intomainfrom
akoumparouli/feat_improved_error_messages
Mar 4, 2026
Merged

feat: improved error messages#1452
akoumpa merged 5 commits intomainfrom
akoumparouli/feat_improved_error_messages

Conversation

@akoumpa
Copy link
Copy Markdown
Contributor

@akoumpa akoumpa commented Mar 4, 2026

What does this PR do ?

Changes:

  • When from_config/from_pretrained fail, it adds a message to prompt users to upgrade their installed package.
  • make nemo_automodel.models alias of nemo_automodel.components.models

Sample error message:

<original HF error about unrecognized model type>

The checkpoint 'org/model' has a model type not recognized by the installed
version of NeMo Automodel. This usually means your installed package is out
of date.

To fix this, try upgrading:
  pip install --upgrade nemo_automodel
or install from source:
  pip install git+https://github.com/NVIDIA-NeMo/Automodel.git

Changelog

  • Add specific line by line info of high level changes in this PR.

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you add or update any necessary documentation?

If you haven't finished some of the above items you can still open "Draft" PR.

Additional Information

  • Related to # (issue)

akoumpa added 3 commits March 4, 2026 07:04
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Mar 4, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@akoumpa
Copy link
Copy Markdown
Contributor Author

akoumpa commented Mar 4, 2026

/ok to test 54a8dd7

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
@akoumpa
Copy link
Copy Markdown
Contributor Author

akoumpa commented Mar 4, 2026

/ok to test 1367cb3

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
@akoumpa
Copy link
Copy Markdown
Contributor Author

akoumpa commented Mar 4, 2026

/ok to test 26c3bd4

@akoumpa akoumpa merged commit 8352cb7 into main Mar 4, 2026
51 checks passed
@akoumpa akoumpa deleted the akoumparouli/feat_improved_error_messages branch March 4, 2026 19:41
SwekeR-463 pushed a commit to SwekeR-463/Automodel that referenced this pull request Mar 11, 2026
* add helpful message to upgrade package

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* add tests

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* add alias  nemo_automodel.models to nemo_automodel.components.models

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* fix

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* fix

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

---------

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
Signed-off-by: SwekeR-463 <swekerswasti@gmail.com>
linnanwang pushed a commit that referenced this pull request Apr 24, 2026
* add helpful message to upgrade package

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* add tests

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* add alias  nemo_automodel.models to nemo_automodel.components.models

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* fix

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

* fix

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>

---------

Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
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