transformers
tp plan should not be NONE
#38255
Merged

tp plan should not be NONE #38255

ArthurZucker merged 65 commits into main from nouamane/nanotron
ArthurZucker
nmntz accept custom device_mesh
3d90a99d
nmntz fix device_map
df1eaee8
nmntz assert that num_heads % tp_size == 0
b9298864
nmntz todo.
1df751bc
nmntz ReplicateParallel
5887ffc1
nmntz handle tied weights
924cceec
nmntz handle dtensor in save_pretrained with safe_serialization
cfacec55
nmntz tp test works
98333058
nmntz doesnt work
7d7b3636
nmntz fix shard_and_distribute_module's rank should be local_rank
11f02a59
nmntz tp=4 is correct
317c0276
nmntz dp+tp is broken
f3b4ae81
nmntz todo allreduce with dtensors on another dim is annoying
f6a49ee8
nmntz workaround to sync dp grads when using dtensors
eaa65921
nmntz loading a checkpoint works
7c6219bc
nmntz wandb and compare losses with different tp/dp
6ceabe01
nmntz cleaning
a9a15925
nmntz cleaning
4e323a51
nmntz .
7f327b13
nmntz .
c3e5c5ed
nmntz logs
810bd51a
nmntz CP2 DP2 no mask works after commenting attn_mask and is_causal from s…
82348732
nmntz DP=2 TP=2 now works even with tied embeddings
29c2a9ca
nmntz model.parameters() and model.module.parameters() are empty..
8fa760be
nmntz reformat sanity_check_tensor_sync
610e6bb0
nmntz set atol=1e-4 for CP to pass
75cad51d
nmntz try populate _parameters from named_modules
b816a3cc
nmntz refactors
688107c0
nmntz is_causal=True and pack sequences, no attn mask, and preshuffle dataset
cfe688b4
nmntz fix packing
83095210
nmntz CP=4 doesn't work
c0f616ee
nmntz fix labels and position_ids for CP
011d981e
nmntz DP CP works with transformers 🄳🄳🄳
265f90dc
ArthurZucker refactor
afa72e24
ArthurZucker add example cp
75176794
ArthurZucker fixup
835726da
ArthurZucker revert sdpa changes
0ad2a156
ArthurZucker example cleared
5b119645
ArthurZucker add CP, DP to the mesh init
7855d102
ArthurZucker nit
0b2bd157
nmntz clean
c82d39ce
ArthurZucker use `ALL_PARALLEL_STYLES`
957c351e
ArthurZucker Merge branch 'nouamane/nanotron' of github.com:huggingface/transforme…
6d462e9f
ArthurZucker style
43c175d0
nmntz FSDP works
378b2e7b
nmntz log on 1 rank
30752c63
nmntz .
9c1e1fc2
ArthurZucker fix?
3f683b6e
ArthurZucker Merge branch 'nouamane/nanotron' of github.com:huggingface/transforme…
d36acced
nmntz FSDP1 also has .parameters() bug
780d74d3
nmntz reported gradnorm when using FSDP1 is wrong, but loss is correct so i…
9e549694
nmntz .
ba01287a
ArthurZucker style and fixup
677ce533
ArthurZucker move stuff around
81c21de9
ArthurZucker Merge branch 'main' of github.com:huggingface/transformers into nouam…
656277c5
ArthurZucker fix tests
e27ddb85
ArthurZucker style
d702d94d
ArthurZucker let's make it a check
5083c0b0
ArthurZucker add missing licences
1bd83c48
ArthurZucker warning should be an info
67a81826
ArthurZucker Merge branch 'nouamane/nanotron' of github.com:huggingface/transforme…
48761eab
ArthurZucker tp plan should not be NONE
3beeb90d
ArthurZucker test all
4c9edcaf
HuggingFaceDocBuilderDev
ArthurZucker god damn it
7ee946a2
ArthurZucker test all
304be60e
ArthurZucker ArthurZucker enabled auto-merge (squash) 1 year ago
disabled auto-merge 1 year ago
Manually disabled by user
ArthurZucker ArthurZucker merged e288ee00 into main 1 year ago
ArthurZucker ArthurZucker deleted the nouamane/nanotron branch 1 year ago
pcuenca
pcuenca commented on 2025-05-21

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone