Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in
C
coderai
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • nexlab
  • coderai
  • Repository

Switch branch/tag
  • coderai
  • codai
  • cluster
  • ddp.py
Find file
BlameHistoryPermalink
  • Stefy Lanza (nextime / spora )'s avatar
    cluster: LoRA / QLoRA training over several machines · b0e7a66a
    Stefy Lanza (nextime / spora ) authored Sep 19, 2026
    Synchronous data parallel through torch.distributed with a hand-rolled
    all-reduce of the adapter gradients (codai/cluster/ddp.py): the engine that
    takes the job is rank 0, sends the same job with the images inlined to each
    node in 'nodes' (or the model's lora_train_nodes), all ranks start from rank
    0's init, average gradients every step, rank 0 saves. Peers write to scratch
    and are cancelled with the coordinator. All five in-process trainers (SD1.5,
    SDXL, Z-Image, flow DiT, Wan incl. 4-bit) take the hooks; two-process test.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01FKm7Z56iKjHgNkHc6VhWKz
    b0e7a66a
ddp.py 7.88 KB
EditWeb IDE

Replace ddp.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.