KEMBAR78
Fix llava tokenizer caused nan issue by yaoyu-33 · Pull Request #13466 · NVIDIA-NeMo/NeMo · GitHub
Skip to content

Conversation

@yaoyu-33
Copy link
Collaborator

@yaoyu-33 yaoyu-33 commented May 6, 2025

Important

The Update branch button must only be pressed in very rare occassions.
An outdated branch is never blocking the merge of a PR.
Please reach out to the automation team before pressing that button.

What does this PR do ?

llava tokenizer was using default "use_fast=False". Due to a recent change, the default behavior changed. As a result. some of the tokens matching code no longer working. This is the main cause of the nans.

Collection: [vlm]

Changelog

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

Usage

  • You can potentially add a usage example below
# Add a code snippet demonstrating how to use this 

GitHub Actions CI

The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.

The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".

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?
  • Does the PR affect components that are optional to install? (Ex: Numba, Pynini, Apex etc)
    • Reviewer: Does the PR have correct import guards for all optional libraries?

PR Type:

  • New Feature
  • Bugfix
  • Documentation

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

Who can review?

Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.

Additional Information

  • Related to # (issue)

Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
@yaoyu-33 yaoyu-33 self-assigned this May 6, 2025
Signed-off-by: yaoyu-33 <yaoyu.094@gmail.com>
yaoyu-33 and others added 2 commits May 6, 2025 10:21
Signed-off-by: Yu Yao <54727607+yaoyu-33@users.noreply.github.com>
Signed-off-by: yaoyu-33 <yaoyu-33@users.noreply.github.com>
ko3n1g and others added 2 commits May 6, 2025 19:30
Signed-off-by: oliver könig <okoenig@nvidia.com>
Signed-off-by: ko3n1g <ko3n1g@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2025

[🤖]: Hi @yaoyu-33 👋,

We wanted to let you know that a CICD pipeline for this PR just finished successfully.

So it might be time to merge this PR or get some approvals.

Due to a major CI change, merges are currently handled by the automation team.
We will reach out to you quickly to merge this PR, but you can always reach us with the following handles:

//cc @chtruong814 @ko3n1g @pablo-garay @thomasdhc

@ko3n1g ko3n1g merged commit 70e3718 into main May 6, 2025
201 checks passed
@ko3n1g ko3n1g deleted the yuya/fix_llava_nan_issue branch May 6, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants