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

How to use both deepspeed framework and tutel framework? #6684

Open
luuck opened this issue Oct 29, 2024 · 0 comments
Open

How to use both deepspeed framework and tutel framework? #6684

luuck opened this issue Oct 29, 2024 · 0 comments

Comments

@luuck
Copy link

luuck commented Oct 29, 2024

Hello,I use both your deepspeed and tutel framework, 4 experts and 4 gpus, both Data and Expert Parallelism.
To avoid expert parameters be managed by deepspeed allreduce, code :

deepspeed.initialize( args=self.args,
model=model,
model_parameters = [param for name,param in model.named_parameters() if not hasattr(param, "skip_allruduce")],
config=ds_config )

but it doesn't work,expert parameters cann't be updated correctly. how should I do ? Thanks!

If I use both DDP and tutel framework, it's ok like this:
microsoft/Tutel#204 (comment)

How to use deepspeed correctly like DDP?

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

No branches or pull requests

1 participant