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

LLM: Install CPU version torch with extras [all] #10868

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xiangyuT
Copy link
Contributor

Description

Set torch version in all_requirements to install cpu version torch instead of cuda version on CPU.

Copy link
Contributor

@Oscilloscope98 Oscilloscope98 left a comment

Choose a reason for hiding this comment

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

Could the torch==2.0.1+cpu be successfully installed without --index-url https://download.pytorch.org/whl/cpu? If not, we may also update the UT, documentation, examples, etc.

Besides, is there any difference between Windows and Linux?

@Oscilloscope98
Copy link
Contributor

@xiangyuT
Copy link
Contributor Author

Could the torch==2.0.1+cpu be successfully installed without --index-url https://download.pytorch.org/whl/cpu? If not, we may also update the UT, documentation, examples, etc.

Besides, is there any difference between Windows and Linux?

No, it needs to add --extra-index-url https://download.pytorch.org/whl/cpu during installation. And the UT's failure seems the same reason: the install action is missing --extra-index-url setting. (refer to here)

The installation on Windows is not tested yet.

@qiyuangong
Copy link
Contributor

qiyuangong commented May 6, 2024

Can we add -extra-index-url into setup.py or requirements.txt?

Just like https://github.com/OpenAccess-AI-Collective/axolotl/blob/main/requirements.txt#L1

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.

None yet

3 participants