Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Awesome LLM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NetSys
Awesome LLM
Commits
c4dccf00
Commit
c4dccf00
authored
1 year ago
by
Alexandru-Mihai GHERGHESCU
Committed by
Vlad-Andrei BĂDOIU (78692)
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Add note about splitting a model's layers on multiple GPU's
parent
5f4899f0
No related branches found
Branches containing commit
No related tags found
1 merge request
!11
Add scripts folder, add memory requirements script
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/memory_compute_estimations/README.md
+11
-0
11 additions, 0 deletions
scripts/memory_compute_estimations/README.md
with
11 additions
and
0 deletions
scripts/memory_compute_estimations/README.md
+
11
−
0
View file @
c4dccf00
...
...
@@ -46,6 +46,17 @@ total number of GPUs of `32 (the base number of GPUs needed to hold the model,
consisting in 4x DGX) * 64 (data-parallel, each unit adds a model on top) = 2048
GPUs`
.
**Note:**
Keep in mind that splitting a model on multiple GPU's/clusters means
assigning layers to each GPU/cluster. You can't assign a layer and a half to one
GPU, and another layer and a half to another GPU. 3 layers would (depending on
model size etc.) most likely be split into 3 GPU's, leaving the cards
half-filled. Don't worry too much about the empty memory, as that can be easily
filled by increasing the batch size. The important thing to take away is that
splitting a model isn't just a simple mathematical division between the total
memory needed by the model and the memory available on a GPU (although that's
what the script does, for a lack of a better approximation method). Expect,
therefore, more GPU's to be needed for a correct partitioning of model layers.
For a more detailed overview of the above, see
[
Nvidia's great blog post on
scaling models using
Megatron
](
https://developer.nvidia.com/blog/scaling-language-model-training-to-a-trillion-parameters-using-megatron/
)
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment