Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L llm.c - GPT2
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • tchatela
  • llm.c - GPT2
  • Wiki
  • Distributed Model

Distributed Model · Changes

Page history
Update Distributed Model authored Sep 18, 2024 by tchatela's avatar tchatela
Hide whitespace changes
Inline Side-by-side
Distributed-Model.md
View page @ 5edbce57
......@@ -125,10 +125,26 @@ Some traces, with 4 ranks, 1 rank/socket, B = 4, T=1024
![mpi_comms.code_legend](uploads/b2a0c1e1c7f98529751cbe14084768aa/mpi_comms.code_legend.png)
Communication cost with number of ranks :
Communication cost with number of ranks (1rank/socket, B=4*worldsize, T=1024) :
| Number of ranks | Communication time from last to first | Communication time from first to last |
| ------ | ------ | ------ |
| 2 | 100 ms | 180 ms |
| 4 | 70 ms | 100 ms |
| 8 | 150 ms | 300 ms |
| 16 | 175 ms | 300 ms |
\ No newline at end of file
| 16 | 175 ms | 300 ms |
As you can see, we have a better communication time with 4 ranks. This is because we can adjust the communication block's sizes. Currently, the size have been manually adjusted for 4 ranks, explaining why the best communications time have been set for 4 ranks.
# Increasing the number of ranks
With B=16, T=1024, 1 rank/socket
| Number of ranks | time/iteration |
| ------ | ------ |
| 1 | 67000 ms |
| 2 | 31500 ms |
| 4 | 150 ms | 15000 ms |
Clone repository

GPT2 Parallelization and Porting

  • Model Description
  • Runtime and Performances
  • Improvements
  • Traces
  • Fork Join Model
  • Task Based Model
  • Distributed Model