Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gaudi support training #330

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Nov 12, 2024

  1. reorg main function; add 'hpu' option w/o implementation

    The `main` training function needed to be broken down into smaller
    functions for readability/testability.
    
    WORLD_SIZE, LOCAL_RANK, and RANK have also been extracted and made
    global constants since they are set by the administrating
    multiprocessing launcher (torchrun, in our case).
    
    HPU configuration options and checks are also added.
    
    Signed-off-by: James Kunstle <[email protected]>
    JamesKunstle committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    cbc6d41 View commit details
    Browse the repository at this point in the history
  2. implement training for HPU

    HPU cards (Gaudi 2 and 3) can't use Accelerate code path. This
    contribution adds the training setup and loop for FSDP-only training.
    
    Minor modifications required for HPUs specifically.
    
    Signed-off-by: James Kunstle <[email protected]>
    JamesKunstle committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    aa192e8 View commit details
    Browse the repository at this point in the history