[shardformer] add performance benchmark of shardformer#4169
Closed
flybird11111 wants to merge 0 commit intohpcaitech:feature/flash-attention-shardformerfrom
Closed
[shardformer] add performance benchmark of shardformer#4169flybird11111 wants to merge 0 commit intohpcaitech:feature/flash-attention-shardformerfrom
flybird11111 wants to merge 0 commit intohpcaitech:feature/flash-attention-shardformerfrom
Conversation
FrankLeeeee
reviewed
Jul 5, 2023
| We also conducted [benchmark tests](./examples/performance_benchmark.py) to evaluate the performance improvement of Shardformer. We compared the training time between the original model and the shard model. | ||
|
|
||
| In the case of using 2 GPUs, the training times are as follows: | ||
| | N_CTX | org_model | shard_model | |
Contributor
There was a problem hiding this comment.
You need to explain the meaning of N_CTX and what kind of configurations are turned on for benchmarking.
FrankLeeeee
reviewed
Jul 5, 2023
| | 2048 | 46.6ms | 30.0ms | | ||
| | 4096 | 160.4ms | 89.8ms | | ||
|
|
||
|  |
Contributor
There was a problem hiding this comment.
Don't put this image in this folder. Create a pull request to put all images in https://github.com/hpcaitech/public_assets/tree/main/colossalai/img/shardformer. Name your images clearly e.g. benchmark_gpus_2.png
68da7ec to
c77b3b1
Compare
This was referenced Jul 5, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Checklist before creating the PR
[doc/gemini/tensor/...]: A concise description🚨 Issue number
#4168
📝 What does this PR do?
add performance benchmark of shardformer。
💥 Checklist before requesting a review
⭐️ Do you enjoy contributing to Colossal-AI?
Tell us more if you don't enjoy contributing to Colossal-AI.