alibaba / Pai-Megatron-Patch
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
Learn more...
Conditional Complexity Overall
3% | 18% | 27% | 15% | 35%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py3% | 18% | 27% | 15% | 35%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
toolkits10% | 37% | 13% | 9% | 28%
megatron_patch<1% | 8% | 34% | 18% | 38%
rlhf0% | 0% | 30% | 3% | 65%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
258 131 1
269 112 2
198 107 1
188 74 1
142 67 1
284 64 1
148 62 2
109 56 2
126 54 4
105 54 2
104 54 2
120 53 4
132 53 2
132 53 2
109 49 4
114 48 1
114 48 1
194 47 1
229 47 1
218 47 1
124 46 1
207 46 1
227 46 1
273 45 1
202 45 1
120 44 1
205 43 1
122 43 2
200 43 1
187 42 1
93 42 1
314 42 3
314 42 3
201 41 1
202 41 1
239 41 1
102 41 2
102 41 2
101 40 4
226 40 1
216 38 1
205 38 1
114 38 2
89 37 1
94 37 3
107 36 0
171 34 9
170 34 9
156 34 10
168 33 9