deepspeedai / deepspeedai/DeepSpeed

[REQUEST] Some comments on using deepspeed to know about the distributed effect

Open
#1,782 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
43.1k
Forks
5k
Avg merge
4d 15h
Merged PRs (30d)
112

Description

Is your feature request related to a problem? Please describe.

If I want to experiment with zero-3 to train 345m GPT model, how to set the relevant configuration of zero-3? At present, I use the default configuration and find that the training speed is not very fast.

model link: https://github.com/microsoft/DeepSpeedExamples/tree/174ae3bc8dbb688cfaccb4afa15d6e2cdbe19ce5/Megatron-LM-v1.1.5-ZeRO3

#ZeRO Configs
stage=3
reduce_scatter=true
contigious_gradients=true
rbs=50000000
agbs=5000000000

what's that mean?

{
  "train_batch_size": 64,
  "gradient_accumulation_steps": 1,
  "steps_per_print": 1,
  "zero_optimization": {
    "stage": 3,
    "stage3_max_live_parameters": 1e9,
    "stage3_max_reuse_distance": 1e9,
    "stage3_prefetch_bucket_size": 1e7,
    "stage3_param_persitence_threshold": 1e5,
    "reduce_bucket_size": 1e7,
    "contiguous_gradients": true
  },
  "gradient_clipping": 1.0,
  "fp16": {
    "enabled": true,
    "loss_scale": 0,
    "loss_scale_window": 1000,
    "hysteresis": 2,
    "min_loss_scale": 1
  },
  "wall_clock_breakdown": true,
  "zero_allow_untested_optimizer": false
}

what is stage3_max_live_parameters? Does it appear in the API introduction?

Describe the solution you'd like
I hope to give a classic configuration model, such as 345m GPT model of single 8-card, which can facilitate users to experience the algorithm effect of DeepSpeed.

Describe alternatives you've considered
In the released configuration information, you should give a classic configuration with the best performance, and then give your test performance, which can be used as a training reference.

Additional context
I hope to give the performance data of the classic 345m GPT model of single 8-card under zero-3 as a performance reference. For example, the GPT model can be adjusted under the default configuration of the GPT 345m model.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Megatron-LM-v1.1.5-ZeRO3 example and the ZeRO-3 configuration shown in the issue. Determine where configuration explanations and benchmark guidance belong, then document a 345M GPT single 8-card reference setup, explain settings such as stage3_max_live_parameters, and include measured performance data.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
distributed-systems, machine-learning, performance
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.