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

Refactor deepspeed-chat into a python package. #731

Merged
merged 21 commits into from
Nov 6, 2023

Conversation

microsoft-fevieira
Copy link
Contributor

No description provided.

url=
"https://github.com/microsoft/DeepSpeedExamples/tree/master/applications/DeepSpeed-Chat",
include_package_data=True,
packages=setuptools.find_packages(include=['deepspeed_chat']),
Copy link
Contributor

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.

Copy link
Contributor

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",
Copy link
Contributor

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"
Copy link
Contributor

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:

@jeffra jeffra merged commit e86d0c6 into microsoft:master Nov 6, 2023
1 of 2 checks passed
mrwyattii pushed a commit to microsoft/DeepSpeed that referenced this pull request Nov 8, 2023
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
mauryaavinash95 pushed a commit to mauryaavinash95/DeepSpeed that referenced this pull request Feb 17, 2024
…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
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.

6 participants