Skip to content

[shardformer] support interleaved pipeline parallel for Bert finetune example#4834

Merged
ppt0011 merged 7 commits intohpcaitech:feature/shardformerfrom
ppt0011:bert-finetune
Nov 2, 2023
Merged

[shardformer] support interleaved pipeline parallel for Bert finetune example#4834
ppt0011 merged 7 commits intohpcaitech:feature/shardformerfrom
ppt0011:bert-finetune

Conversation

@ppt0011
Copy link
Copy Markdown
Contributor

@ppt0011 ppt0011 commented Sep 28, 2023

📌 Checklist before creating the PR

  • I have created an issue for this PR for traceability
  • The title follows the standard format: [doc/gemini/tensor/...]: A concise description
  • I have added relevant tags if possible for us to better distinguish different PRs

🚨 Issue number

#4833

Link this PR to your issue with words like fixed to automatically close the linked issue upon merge

e.g. fixed #1234, closed #1234, resolved #1234

📝 What does this PR do?

Summarize your work here.
if you have any plots/diagrams/screenshots/tables, please attach them here.

💥 Checklist before requesting a review

  • I have linked my PR to an issue (instruction)
  • My issue clearly describes the problem/feature/proposal, with diagrams/charts/table/code if possible
  • I have performed a self-review of my code
  • I have added thorough tests.
  • I have added docstrings for all the functions/methods I implemented

⭐️ Do you enjoy contributing to Colossal-AI?

  • 🌝 Yes, I do.
  • 🌚 No, I don't.

Tell us more if you don't enjoy contributing to Colossal-AI.

Comment thread colossalai/shardformer/policies/bert.py
…ward fn in shardformer remain unchanged for all models
Comment thread colossalai/booster/plugin/hybrid_parallel_plugin.py Outdated
Comment thread colossalai/pipeline/schedule/interleaved_pp.py
Comment thread colossalai/pipeline/stage_manager.py
Comment thread colossalai/shardformer/policies/base_policy.py
Comment thread colossalai/pipeline/stage_manager.py
Comment thread colossalai/shardformer/policies/bert.py Outdated
Comment thread colossalai/pipeline/schedule/interleaved_pp.py Outdated
Comment thread colossalai/shardformer/policies/bert.py Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 9, 2023

The code coverage for the changed files is 94%.

Click me to view the complete report
Name                                                    Stmts   Miss  Cover
---------------------------------------------------------------------------
colossalai/booster/plugin/hybrid_parallel_plugin.py       225     18    92%
colossalai/pipeline/schedule/interleaved_pp.py            188     17    91%
colossalai/pipeline/stage_manager.py                       55      0   100%
colossalai/shardformer/policies/base_policy.py             95     13    86%
colossalai/shardformer/policies/bert.py                   274      7    97%
colossalai/shardformer/shard/shard_config.py               42      3    93%
tests/test_pipeline/test_schedule/test_interleaved.py      99      1    99%
---------------------------------------------------------------------------
TOTAL                                                     978     59    94%

@github-actions
Copy link
Copy Markdown
Contributor

The code coverage for the changed files is 94%.

Click me to view the complete report
Name                                                    Stmts   Miss  Cover
---------------------------------------------------------------------------
colossalai/booster/plugin/hybrid_parallel_plugin.py       223     18    92%
colossalai/pipeline/schedule/interleaved_pp.py            187     17    91%
colossalai/pipeline/stage_manager.py                       60      1    98%
colossalai/shardformer/policies/base_policy.py             95     13    86%
colossalai/shardformer/policies/bert.py                   274      7    97%
colossalai/shardformer/shard/shard_config.py               42      3    93%
tests/test_pipeline/test_schedule/test_interleaved.py      99      1    99%
---------------------------------------------------------------------------
TOTAL                                                     980     60    94%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 1, 2023

The code coverage for the changed files is 94%.

Click me to view the complete report
Name                                                    Stmts   Miss  Cover
---------------------------------------------------------------------------
colossalai/booster/plugin/hybrid_parallel_plugin.py       223     18    92%
colossalai/pipeline/schedule/interleaved_pp.py            187     17    91%
colossalai/pipeline/stage_manager.py                       60      1    98%
colossalai/shardformer/policies/base_policy.py             95     13    86%
colossalai/shardformer/policies/bert.py                   274      7    97%
colossalai/shardformer/shard/shard_config.py               42      3    93%
tests/test_pipeline/test_schedule/test_interleaved.py      99      1    99%
---------------------------------------------------------------------------
TOTAL                                                     980     60    94%

@ppt0011 ppt0011 merged commit 0995bba into hpcaitech:feature/shardformer Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants