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

TGIS build requires PyTorch nightly #6

Open
Xaenalt opened this issue Jul 19, 2023 · 7 comments
Open

TGIS build requires PyTorch nightly #6

Xaenalt opened this issue Jul 19, 2023 · 7 comments

Comments

@Xaenalt
Copy link

Xaenalt commented Jul 19, 2023

So, as of the most recent code drop, the TGIS build requires PyTorch nightly
https://github.com/IBM/text-generation-inference/blob/main/Dockerfile#L145

This is likely not going to work with security, how tightly integrated is torth._dynamo?

@njhill
Copy link
Member

njhill commented Jul 19, 2023

@Xaenalt we currently require the nightly builds to be able to use PyTorch 2 compile. However, we could probably change the code so that it will work with earlier PT versions provided you don't enable PT2_COMPILE.

P.S. I think you pasted the wrong link

@Xaenalt
Copy link
Author

Xaenalt commented Jul 19, 2023

Oops, yeah updated that. So torch._dynamo is needed for PyTorch 2 compile? Without it, it's not possible to use any of PyTorch 2?

@njhill
Copy link
Member

njhill commented Jul 26, 2023

@Xaenalt pytorch 2 can be used but just not pytorch 2 compile.

@njhill
Copy link
Member

njhill commented Aug 1, 2023

@Xaenalt in the latest update, the nightly build is not required if you aren't using PyTorch 2 compile (it will still fail to start if PT2_COMPILE=true is set though).

@njhill
Copy link
Member

njhill commented Aug 7, 2023

@Xaenalt apologies, it turns out compile does work with the latest stable release of pytorch 2.0.1, we'll revert to that. I think it's 2.0.0 that we had a problem with and had switched to using nightlies prior to 2.0.1 being released.

@Xaenalt
Copy link
Author

Xaenalt commented Aug 7, 2023

Excellent, we'll pull that in then!

@njhill
Copy link
Member

njhill commented Sep 28, 2023

Just to close the loop on this, we do rely on fixes/capabilities in the latest pytorch nightlies after all, for example compile only works in a very limited way in 2.0.1 and has had lots of updates since. We may be able to switch to 2.1.0 when it's released next week, but I expect that we may need to move to nighties again at some point after that given how fast it is changing.

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

No branches or pull requests

2 participants