Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphviz fix #7843

Merged
merged 9 commits into from
Jan 10, 2024
Merged

Graphviz fix #7843

merged 9 commits into from
Jan 10, 2024

Conversation

GNroy
Copy link
Collaborator

@GNroy GNroy commented Nov 1, 2023

What does this PR do ?

  • Fixes graphviz cropped plots for notebooks
  • Fixes duplicated Megatron-LM installation
  • Fixes k2 library for compatibility with latest PyTorch

Collection: [ASR]

Changelog

  • Now graphviz is built and installed from sources.

Usage

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

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)

@github-actions github-actions bot added the CI label Nov 2, 2023
artbataev
artbataev previously approved these changes Nov 2, 2023
Copy link
Collaborator

@artbataev artbataev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for these fixes! I tested Docker build - everything is fine.

@artbataev artbataev requested a review from titu1994 November 2, 2023 15:17
Dockerfile Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
Dockerfile Show resolved Hide resolved
@GNroy
Copy link
Collaborator Author

GNroy commented Nov 14, 2023

Hi @titu1994, I've addressed your comments.
graphviz is for WFST visualization (k2, pynini, ...)
Its binary does not display plots correctly in notebooks.
I've added the correct installation (implying build from source).

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
@GNroy GNroy requested review from artbataev and titu1994 November 14, 2023 21:56
artbataev
artbataev previously approved these changes Nov 15, 2023
Copy link
Collaborator

@artbataev artbataev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Collaborator

@titu1994 titu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs discussing about license (non standard), necessity (why is a graph visualization library a required dependency for K2 ??) And whether it's realistic to bloat the apt get section wth so many libraries.

@GNroy
Copy link
Collaborator Author

GNroy commented Nov 16, 2023

The licence is Eclipse Public License - v 1.0: https://gitlab.com/graphviz/graphviz/-/blob/main/epl-v10.txt (weak copyleft).

Copy link
Contributor

github-actions bot commented Dec 1, 2023

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

@github-actions github-actions bot added the stale label Dec 1, 2023
Copy link
Contributor

github-actions bot commented Dec 9, 2023

This PR was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions bot closed this Dec 9, 2023
@GNroy GNroy reopened this Jan 9, 2024
@GNroy GNroy requested a review from titu1994 January 9, 2024 19:49
@GNroy
Copy link
Collaborator Author

GNroy commented Jan 9, 2024

Hi all!
I just re-opened this PR and addressed comments of @titu1994.
The legal has approved general use of graphviz (the container use included).

@titu1994
Copy link
Collaborator

titu1994 commented Jan 9, 2024

It's not been discussed yet - why is a graph visualization library being installed in the container ?

@github-actions github-actions bot removed the stale label Jan 10, 2024
@GNroy
Copy link
Collaborator Author

GNroy commented Jan 10, 2024

why is a graph visualization library being installed in the container?

Simply for convenient prototyping. I always work inside NeMo containers (maybe I'm not the only one in that) and I'd like to have graphviz already installed rather than having to manually install it every time I run a new image.

Copy link
Collaborator

@titu1994 titu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for all the clarification and legal review. Looks good to merge

@titu1994 titu1994 merged commit 0a1a5b1 into NVIDIA:main Jan 10, 2024
10 checks passed
minitu pushed a commit to minitu/NeMo that referenced this pull request Jan 19, 2024
* graphviz reinstallation added

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix comments

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* remove redundant installations

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* remove rebase glitch

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* remove rebase glitch

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* additional dependencies are put into a separate RUN

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
ssh-meister pushed a commit to ssh-meister/NeMo that referenced this pull request Feb 15, 2024
* graphviz reinstallation added

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix comments

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* remove redundant installations

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* remove rebase glitch

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* remove rebase glitch

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* additional dependencies are put into a separate RUN

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
Signed-off-by: Sasha Meister <ameister@nvidia.com>
rohitrango pushed a commit to rohitrango/NeMo that referenced this pull request Jun 25, 2024
* graphviz reinstallation added

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* fix comments

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* remove redundant installations

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* remove rebase glitch

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* remove rebase glitch

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

* additional dependencies are put into a separate RUN

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>

---------

Signed-off-by: Aleksandr Laptev <alaptev@nvidia.com>
Co-authored-by: Vladimir Bataev <vbataev@nvidia.com>
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.

3 participants