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

Harrison/hf pipeline #780

Merged
merged 2 commits into from
Jan 28, 2023
Merged

Harrison/hf pipeline #780

merged 2 commits into from
Jan 28, 2023

Conversation

hwchase17
Copy link
Contributor

No description provided.

parthchadha and others added 2 commits January 28, 2023 08:10
1. Allow HuggingFace pipeline to use local GPUs if available.
2. If `transformers` is installed but `torch` is not, the existing
`ImportError` still insisted that `transformers` is not installed.
@hwchase17 hwchase17 merged commit 5bb2952 into master Jan 28, 2023
@hwchase17 hwchase17 deleted the harrison/hf-pipeline branch January 28, 2023 16:24
@xloem
Copy link
Contributor

xloem commented Jan 30, 2023

I do this by installing accelerate with pip and passing device_map=‘auto’ to model_kwargs; then it allocates between devices automatically.

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.

3 participants