transformers
Enhance Model Loading By Providing Parallelism, Uses Optional Env Flag
#36835
Merged

Enhance Model Loading By Providing Parallelism, Uses Optional Env Flag #36835

inf3rnus
inf3rnus Get parallel loader working. Include tests.
8fb9b187
inf3rnus Update the tests for parallel loading
27f36f24
inf3rnus Merge branch 'main' into 03-18-25-parallel-model-loading
7e5ecd89
inf3rnus Rename env variables.
e7c3ea52
inf3rnus Add docs for parallel model weight loading.
7599fe25
inf3rnus Touch up parallel model loading docs.
065e1022
inf3rnus Touch up parallel model loading docs again.
d31594a7
github-actions github-actions marked this pull request as draft 307 days ago
github-actions
inf3rnus Edit comment in test_modeling_utils_parallel_loading.py
33b3e0f0
inf3rnus Merge branch 'main' into 03-18-25-parallel-model-loading
3fb6b659
inf3rnus inf3rnus marked this pull request as ready for review 307 days ago
github-actions github-actions requested a review from ArthurZucker ArthurZucker 307 days ago
github-actions github-actions requested a review from Rocketknight1 Rocketknight1 307 days ago
inf3rnus Make sure HF_PARALLEL_LOADING_WORKERS is spelled correctly in modelin…
0e22c047
ArthurZucker
ArthurZucker commented on 2025-03-20
ArthurZucker ArthurZucker added Core: Modeling
ArthurZucker ArthurZucker added from_pretrained
inf3rnus
inf3rnus
inf3rnus Correct times for parallelized loading, previous times were for a "ho…
904bdaf6
inf3rnus Update parallel model loading so the spawn method is encapsulated. DR…
7e37ba4b
inf3rnus Update docs on model loading parallelism so that details on setting t…
a203f6a1
inf3rnus Fix style on model loading parallelism changes.
14e9eefb
inf3rnus
inf3rnus inf3rnus requested a review from ArthurZucker ArthurZucker 301 days ago
inf3rnus Merge remote-tracking branch 'upstream/main' into 03-18-25-parallel-m…
fe1fc0c5
inf3rnus Merge latest version of master's modeling_utils.
d5637e8b
inf3rnus Removed unused variable.
e0d37bb0
inf3rnus Fix argument packing for the parallel loader.
9b4165c1
inf3rnus Fix state dict being undefined in the parallel model loader.
1085461d
inf3rnus
ArthurZucker
ArthurZucker
inf3rnus
inf3rnus
Cyrilvallez
Cyrilvallez commented on 2025-04-25
Cyrilvallez
inf3rnus
inf3rnus Merge main.
82ab2ec5
inf3rnus Rename variables used in parallel model loading for clarity. Use get_…
7ae3db61
inf3rnus Switch to the use of threads for parallel model loading.
8d04325e
inf3rnus Update docs for parallel loading.
674ec373
inf3rnus
inf3rnus
ArthurZucker
ArthurZucker approved these changes on 2025-04-30
inf3rnus Remove the use of json.loads when evaluating HF_ENABLE_PARALLEL_LOADI…
b8a1470f
inf3rnus Move parallelized shard loading into its own function.
efb6605b
ArthurZucker
ArthurZucker approved these changes on 2025-05-01
inf3rnus Remove use of is_true(). Favor checking env var true values for HF_EN…
c66daef8
inf3rnus
inf3rnus
inf3rnus
Cyrilvallez
Cyrilvallez commented on 2025-05-14
Cyrilvallez
inf3rnus Update copyright to 2025 in readme for paralell model loading.
4566c5cc
inf3rnus Remove garbage collection line in load_shard_file, implicit garbage c…
610c5e31
inf3rnus Run formatter on modeling_utils.py
a9cb54b5
inf3rnus Merge branch 'main' into 03-18-25-parallel-model-loading
fc76fbbe
inf3rnus
inf3rnus
Cyrilvallez
github-actions[bot] Apply style fixes
16f3751a
github-actions
Cyrilvallez
Cyrilvallez commented on 2025-05-22
inf3rnus Merge main.
cd0f42ee
inf3rnus Delete tests/utils/test_modeling_utils_parallel_loading.py
3b9f4587
inf3rnus
Cyrilvallez Merge branch 'main' into 03-18-25-parallel-model-loading
b6bf4213
Cyrilvallez
Cyrilvallez Cyrilvallez enabled auto-merge (squash) 242 days ago
Cyrilvallez
Cyrilvallez approved these changes on 2025-05-23
Cyrilvallez Cyrilvallez merged d5f992f5 into main 242 days ago
HuggingFaceDocBuilderDev
inf3rnus

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone