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

Can't seem to get latest version via pip #870

Closed
man-shar opened this issue Apr 25, 2024 · 2 comments
Closed

Can't seem to get latest version via pip #870

man-shar opened this issue Apr 25, 2024 · 2 comments

Comments

@man-shar
Copy link
Contributor

Hi,

I'm trying to install the latest (0.1.1 as of today) which adds support for passing chat_format=None for llama3 models.

pip install --upgrade torchtune

But I can't seem to get the latest source for the package. I still get the old stuff where chat_format was required.

I'm either doing something very stupid, or maybe the registry hasn't been updated or the build wheel might have an older build?

Any help appreciated!

Cheers,
Manas

@RdoubleA
Copy link
Contributor

RdoubleA commented Apr 25, 2024

Hi @man-shar, good question. pip install will only get our latest stable version, which does not include the chat format changes yet. You'll need to build from source:

git clone https://github.com/pytorch/torchtune.git
cd torchtune
pip install .

Edit: we should probably add some guidance on how to install the nightly version to the README (cc @joecummings)

@man-shar
Copy link
Contributor Author

Ahhh, got it. THANK YOU! Will close this issue now.

Btw, this is a truly awesome library. The modularization + native pytorch is very very helpful.

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