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

Support multi-gpu inference #699

Merged
merged 3 commits into from
Mar 24, 2024
Merged

Support multi-gpu inference #699

merged 3 commits into from
Mar 24, 2024

Conversation

research4pan
Copy link
Contributor

Use accelerate to support multi-gpu chatbot

- Bug introduced by `transformers 4.38.0`, fixed a week ago and will appear in
  >4.38.2 (huggingface/transformers#29457)
- By restricting `transformers<4.38.0` in `requirements.txt`
Copy link
Collaborator

@wheresmyhair wheresmyhair left a comment

Choose a reason for hiding this comment

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

Perhaps change the token_per_step in examples/chatbot.py. Other changes LGTM.

- Set default to num_token_per_step=4
@research4pan research4pan merged commit 8cc21b8 into main Mar 24, 2024
0 of 2 checks passed
@research4pan research4pan deleted the rpan-batch-infer branch March 31, 2024 09:42
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.

2 participants