huggingface / accelerate
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
Learn more...
Duplication Overall
system13% (2,729 lines)
dependency graphs: 2D graph | 3D graph | 3D graph (with duplicates)...
Duplication per Extension
py13% (2,729 lines)
Duplication per Component (primary)
benchmarks58% (1,069 lines)
src5% (1,000 lines)
manim_animations52% (660 lines)
utils0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 50 longest duplicates.
See data for all 475 duplicates...
Size#FoldersFilesLinesCode
54 x 2 src/accelerate/utils
src/accelerate/utils
219:277 (9%)
412:470 (9%)
view
52 x 2 manim_animations/dataloaders
manim_animations/dataloaders
33:88 (30%)
34:89 (32%)
view
51 x 2 benchmarks/fp8/ms_amp
benchmarks/fp8/transformer_engine
17:109 (86%)
17:109 (87%)
view
39 x 2 benchmarks/fp8/transformer_engine
benchmarks/fp8/transformer_engine
97:144 (46%)
114:161 (41%)
view
38 x 2 benchmarks/fp8/torchao
benchmarks/fp8/torchao
112:158 (38%)
127:173 (35%)
view
32 x 2 manim_animations/dataloaders
manim_animations/dataloaders
171:203 (18%)
161:193 (19%)
view
32 x 2 benchmarks/fp8/torchao
benchmarks/fp8/torchao
34:73 (32%)
33:73 (34%)
view
31 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
136:173 (28%)
124:161 (32%)
view
31 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
121:158 (31%)
107:144 (36%)
view
31 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
136:173 (28%)
107:144 (36%)
view
31 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
121:158 (31%)
124:161 (32%)
view
30 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
17:62 (51%)
17:62 (51%)
view
30 x 2 benchmarks/fp8/ms_amp
benchmarks/fp8/torchao
17:62 (50%)
17:62 (51%)
view
28 x 2 benchmarks/fp8/transformer_engine
benchmarks/fp8/transformer_engine
61:95 (33%)
73:107 (29%)
view
27 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
80:116 (46%)
80:116 (46%)
view
26 x 2 manim_animations/dataloaders
manim_animations/dataloaders
103:130 (15%)
92:119 (16%)
view
26 x 2 src/accelerate/commands/config
src/accelerate/commands/config
169:195 (3%)
174:200 (11%)
view
25 x 2 benchmarks/fp8/ms_amp
benchmarks/fp8/transformer_engine
71:102 (35%)
86:117 (32%)
view
25 x 2 manim_animations/big_model_inference
manim_animations/big_model_inference
18:46 (22%)
18:47 (15%)
view
23 x 2 manim_animations/big_model_inference
manim_animations/big_model_inference
23:49 (20%)
24:50 (14%)
view
22 x 2 benchmarks/fp8/transformer_engine
benchmarks/fp8/transformer_engine
134:159 (23%)
107:132 (28%)
view
22 x 2 manim_animations/big_model_inference
manim_animations/big_model_inference
20:45 (25%)
21:46 (19%)
view
22 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
146:171 (20%)
107:132 (28%)
view
22 x 2 benchmarks/fp8/transformer_engine
benchmarks/fp8/transformer_engine
117:142 (26%)
107:132 (28%)
view
22 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
131:156 (22%)
107:132 (28%)
view
21 x 2 manim_animations/big_model_inference
manim_animations/big_model_inference
23:46 (18%)
23:46 (18%)
view
21 x 2 manim_animations/big_model_inference
manim_animations/big_model_inference
22:45 (24%)
24:47 (13%)
view
21 x 2 manim_animations/dataloaders
manim_animations/dataloaders
131:152 (12%)
121:142 (12%)
view
21 x 2 manim_animations/big_model_inference
manim_animations/big_model_inference
22:45 (24%)
23:46 (18%)
view
21 x 2 benchmarks/fp8/torchao
benchmarks/fp8/torchao
84:110 (21%)
94:120 (19%)
view
20 x 2 benchmarks/fp8/ms_amp
benchmarks/fp8/torchao
80:109 (33%)
80:109 (34%)
view
19 x 2 src/accelerate/commands/config
src/accelerate/commands/config
197:215 (2%)
202:220 (8%)
view
19 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
191:211 (12%)
169:189 (14%)
view
18 x 2 src/accelerate/utils
src/accelerate/utils
175:193 (3%)
284:302 (3%)
view
18 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
84:102 (11%)
70:88 (14%)
view
17 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
88:109 (17%)
83:104 (18%)
view
17 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
88:109 (17%)
71:92 (20%)
view
17 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
98:119 (15%)
71:92 (20%)
view
17 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
98:119 (15%)
83:104 (18%)
view
17 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
171:188 (11%)
150:167 (13%)
view
17 x 2 src/accelerate
src/accelerate/utils
54:70 (<1%)
43:59 (6%)
view
16 x 2 benchmarks/fp8/transformer_engine
benchmarks/fp8/transformer_engine
82:100 (19%)
73:91 (20%)
view
16 x 2 src/accelerate/commands
src/accelerate/commands
806:822 (1%)
860:875 (1%)
view
16 x 2 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
118:134 (10%)
105:121 (12%)
view
15 x 2 benchmarks/fp8/ms_amp
benchmarks/fp8/torchao
89:108 (20%)
137:156 (13%)
view
15 x 2 benchmarks/fp8/ms_amp
benchmarks/fp8/transformer_engine
89:108 (20%)
125:144 (15%)
view
15 x 2 benchmarks/fp8/ms_amp
benchmarks/fp8/torchao
89:108 (20%)
122:141 (15%)
view
15 x 2 benchmarks/fp8/torchao
benchmarks/fp8/torchao
63:78 (15%)
69:84 (13%)
view
15 x 2 benchmarks/fp8/ms_amp
benchmarks/fp8/ms_amp
65:82 (20%)
59:76 (21%)
view
15 x 2 benchmarks/fp8/ms_amp
benchmarks/fp8/transformer_engine
89:108 (20%)
108:127 (17%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
37 x 3 benchmarks/fp8/torchao
benchmarks/fp8/transformer_engine
benchmarks/fp8/ms_amp
0:0 
0:0 
0:0 
view
12 x 2 manim_animations/dataloaders
manim_animations/dataloaders
0:0 
0:0 
view