deepspeedai / deepspeedai/DeepSpeed
[Question] How to control the parallelism way of modules
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 43.1k
- Forks
- 5k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 112
Description
Hi , I am new to deepspeed and have some questions about how to use it.
I want to apply tensor parallel to a huggingface model, and want to apply row parallelism to one module while column parallelism to another module, how can I realize it with configuration?
My way to parallel:
ds_inference_kwargs = {
"dtype": torch_dtype,
"tensor_parallel": {"tp_size": world_size},
}
model = deepspeed.init_inference(model, **ds_inference_kwargs)
Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the deepspeed.init_inference entry point and its tensor_parallel/tp_size configuration. Check the available documentation and configuration options for applying row and column parallelism to different modules. Done means providing a clear, verified usage answer or documenting that this module-level configuration is unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- huggingface, python, pytorch
- Domain
- distributed-systems, machine-learning
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100