deepspeedai / deepspeedai/DeepSpeed

[BUG]not a bug, ask for solution:ppo zero3+offload generate too slow

Open
#4,354 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi, when I ran ppo with llama-13b (prompt_len=256, answer_len = 512) with zero stage 3 and offload (8*V100-32G), it seems the generation time is too slow (average about 20s-300s). Currently, I consider the reason of generating slowly is using zero stage 3 with open synced_gpus, but it consumes a lot of resource if I do not use this. Is there any solution for solving this problem? Thanks a lot!

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 PPO generation path and the ZeRO stage 3, offload, and synced_gpus configuration described in the report. Reproduce the llama-13b workload with the stated prompt and answer lengths, compare the relevant configurations, and document a verified way to avoid the excessive generation time without exhausting resources.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
distributed-systems, machine-learning, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.