-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Refactor deepspeed-chat into a python package. #731
Conversation
Microsoft master fix merge conflicts
applications/DeepSpeed-Chat/setup.py
Outdated
url= | ||
"https://github.com/microsoft/DeepSpeedExamples/tree/master/applications/DeepSpeed-Chat", | ||
include_package_data=True, | ||
packages=setuptools.find_packages(include=['deepspeed_chat']), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's name the package deepspeed-chat (There is a package named deepspeed-mii) so let's follow the convention of hyphen instead of underscore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeffra and I discussed this a bit. Let me write what we decided here. PyPI name will be deepspeed-chat and the python package will be dschat since python imports won't work with hyphens
import setuptools | ||
|
||
setuptools.setup( | ||
name="deepspeed-chat", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mrwyattii - looks like we are thinking of making this into a python package, should we add scripts to publish this then?
install_requires=[ | ||
"datasets>=2.8.0", "sentencepiece>=0.1.97", "protobuf==3.20.3", | ||
"accelerate>=0.15.0", "torch>=1.12.0", "deepspeed>=0.9.2", | ||
"transformers", "tensorboard" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe our transformers
dependency here is not open, looking at the original requirements.txt that is:
transformers>=4.31.0,!=4.33.2 |
This PR updates the ds-chat workflow to work with the `deepspeed-chat` install once this PR completes in DeepSpeedExamples: microsoft/DeepSpeedExamples#731 Manual workflow run: https://github.com/microsoft/DeepSpeed/actions/runs/6738638809/job/18318636818
…4598) This PR updates the ds-chat workflow to work with the `deepspeed-chat` install once this PR completes in DeepSpeedExamples: microsoft/DeepSpeedExamples#731 Manual workflow run: https://github.com/microsoft/DeepSpeed/actions/runs/6738638809/job/18318636818
No description provided.