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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
1 |
+
|
2 |
+
<!DOCTYPE html>
|
3 |
+
<html lang="en">
|
4 |
+
<head>
|
5 |
+
<meta charset="UTF-8">
|
6 |
+
<title>Transformers Modular Model Dependencies</title>
|
7 |
+
<style>
|
8 |
+
body { font-family: sans-serif; background-color: #f8f9fa; margin: 0; overflow: hidden; }
|
9 |
+
svg { width: 100vw; height: 100vh; border: 1px solid #ccc; }
|
10 |
+
.link { stroke: #999; stroke-opacity: 0.6; }
|
11 |
+
.node-label { fill: #333; font-size: 12px; pointer-events: none; text-anchor: middle; dy: 2.5em; }
|
12 |
+
.link-label { fill: #555; font-size: 10px; pointer-events: none; text-anchor: middle; }
|
13 |
+
.node.base path { fill: #ffbe0b; }
|
14 |
+
.node.derived circle { fill: #1f77b4; }
|
15 |
+
</style>
|
16 |
+
</head>
|
17 |
+
<body>
|
18 |
+
<svg id="dependency-graph"></svg>
|
19 |
+
<script src="https://d3js.org/d3.v7.min.js"></script>
|
20 |
+
<script>
|
21 |
+
const graphData = {
|
22 |
+
"nodes": [
|
23 |
+
{
|
24 |
+
"id": "aria",
|
25 |
+
"is_base": false
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"id": "auto",
|
29 |
+
"is_base": true
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"id": "aya_vision",
|
33 |
+
"is_base": false
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"id": "bamba",
|
37 |
+
"is_base": false
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"id": "bitnet",
|
41 |
+
"is_base": false
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"id": "blip",
|
45 |
+
"is_base": true
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"id": "blip_2",
|
49 |
+
"is_base": true
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"id": "chameleon",
|
53 |
+
"is_base": true
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"id": "clip",
|
57 |
+
"is_base": true
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"id": "cohere",
|
61 |
+
"is_base": false
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"id": "cohere2",
|
65 |
+
"is_base": false
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"id": "colpali",
|
69 |
+
"is_base": false
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"id": "conditional_detr",
|
73 |
+
"is_base": false
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"id": "csm",
|
77 |
+
"is_base": false
|
78 |
+
},
|
79 |
+
{
|
80 |
+
"id": "d_fine",
|
81 |
+
"is_base": false
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"id": "data2vec",
|
85 |
+
"is_base": false
|
86 |
+
},
|
87 |
+
{
|
88 |
+
"id": "deepseek_v3",
|
89 |
+
"is_base": false
|
90 |
+
},
|
91 |
+
{
|
92 |
+
"id": "deformable_detr",
|
93 |
+
"is_base": false
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"id": "depth_anything",
|
97 |
+
"is_base": true
|
98 |
+
},
|
99 |
+
{
|
100 |
+
"id": "detr",
|
101 |
+
"is_base": true
|
102 |
+
},
|
103 |
+
{
|
104 |
+
"id": "diffllama",
|
105 |
+
"is_base": false
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"id": "dinov2",
|
109 |
+
"is_base": true
|
110 |
+
},
|
111 |
+
{
|
112 |
+
"id": "dinov2_with_registers",
|
113 |
+
"is_base": false
|
114 |
+
},
|
115 |
+
{
|
116 |
+
"id": "emu3",
|
117 |
+
"is_base": false
|
118 |
+
},
|
119 |
+
{
|
120 |
+
"id": "falcon_h1",
|
121 |
+
"is_base": false
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"id": "gemma",
|
125 |
+
"is_base": false
|
126 |
+
},
|
127 |
+
{
|
128 |
+
"id": "gemma2",
|
129 |
+
"is_base": false
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"id": "gemma3",
|
133 |
+
"is_base": false
|
134 |
+
},
|
135 |
+
{
|
136 |
+
"id": "glm",
|
137 |
+
"is_base": false
|
138 |
+
},
|
139 |
+
{
|
140 |
+
"id": "glm4",
|
141 |
+
"is_base": false
|
142 |
+
},
|
143 |
+
{
|
144 |
+
"id": "got_ocr2",
|
145 |
+
"is_base": false
|
146 |
+
},
|
147 |
+
{
|
148 |
+
"id": "gpt_neox",
|
149 |
+
"is_base": false
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"id": "granite",
|
153 |
+
"is_base": false
|
154 |
+
},
|
155 |
+
{
|
156 |
+
"id": "granitemoe",
|
157 |
+
"is_base": true
|
158 |
+
},
|
159 |
+
{
|
160 |
+
"id": "granitemoehybrid",
|
161 |
+
"is_base": false
|
162 |
+
},
|
163 |
+
{
|
164 |
+
"id": "granitemoeshared",
|
165 |
+
"is_base": false
|
166 |
+
},
|
167 |
+
{
|
168 |
+
"id": "grounding_dino",
|
169 |
+
"is_base": false
|
170 |
+
},
|
171 |
+
{
|
172 |
+
"id": "helium",
|
173 |
+
"is_base": false
|
174 |
+
},
|
175 |
+
{
|
176 |
+
"id": "hgnet_v2",
|
177 |
+
"is_base": false
|
178 |
+
},
|
179 |
+
{
|
180 |
+
"id": "hubert",
|
181 |
+
"is_base": false
|
182 |
+
},
|
183 |
+
{
|
184 |
+
"id": "idefics",
|
185 |
+
"is_base": true
|
186 |
+
},
|
187 |
+
{
|
188 |
+
"id": "idefics3",
|
189 |
+
"is_base": true
|
190 |
+
},
|
191 |
+
{
|
192 |
+
"id": "ijepa",
|
193 |
+
"is_base": false
|
194 |
+
},
|
195 |
+
{
|
196 |
+
"id": "instructblip",
|
197 |
+
"is_base": true
|
198 |
+
},
|
199 |
+
{
|
200 |
+
"id": "instructblipvideo",
|
201 |
+
"is_base": false
|
202 |
+
},
|
203 |
+
{
|
204 |
+
"id": "internvl",
|
205 |
+
"is_base": false
|
206 |
+
},
|
207 |
+
{
|
208 |
+
"id": "jamba",
|
209 |
+
"is_base": true
|
210 |
+
},
|
211 |
+
{
|
212 |
+
"id": "janus",
|
213 |
+
"is_base": false
|
214 |
+
},
|
215 |
+
{
|
216 |
+
"id": "llama",
|
217 |
+
"is_base": true
|
218 |
+
},
|
219 |
+
{
|
220 |
+
"id": "llava",
|
221 |
+
"is_base": true
|
222 |
+
},
|
223 |
+
{
|
224 |
+
"id": "llava_next",
|
225 |
+
"is_base": true
|
226 |
+
},
|
227 |
+
{
|
228 |
+
"id": "llava_next_video",
|
229 |
+
"is_base": false
|
230 |
+
},
|
231 |
+
{
|
232 |
+
"id": "llava_onevision",
|
233 |
+
"is_base": false
|
234 |
+
},
|
235 |
+
{
|
236 |
+
"id": "mamba2",
|
237 |
+
"is_base": true
|
238 |
+
},
|
239 |
+
{
|
240 |
+
"id": "mistral",
|
241 |
+
"is_base": false
|
242 |
+
},
|
243 |
+
{
|
244 |
+
"id": "mistral3",
|
245 |
+
"is_base": false
|
246 |
+
},
|
247 |
+
{
|
248 |
+
"id": "mixtral",
|
249 |
+
"is_base": false
|
250 |
+
},
|
251 |
+
{
|
252 |
+
"id": "mlcd",
|
253 |
+
"is_base": false
|
254 |
+
},
|
255 |
+
{
|
256 |
+
"id": "modeling_attn_mask_utils",
|
257 |
+
"is_base": true
|
258 |
+
},
|
259 |
+
{
|
260 |
+
"id": "modernbert",
|
261 |
+
"is_base": false
|
262 |
+
},
|
263 |
+
{
|
264 |
+
"id": "moonshine",
|
265 |
+
"is_base": false
|
266 |
+
},
|
267 |
+
{
|
268 |
+
"id": "olmo",
|
269 |
+
"is_base": false
|
270 |
+
},
|
271 |
+
{
|
272 |
+
"id": "olmo2",
|
273 |
+
"is_base": false
|
274 |
+
},
|
275 |
+
{
|
276 |
+
"id": "paligemma",
|
277 |
+
"is_base": true
|
278 |
+
},
|
279 |
+
{
|
280 |
+
"id": "phi",
|
281 |
+
"is_base": false
|
282 |
+
},
|
283 |
+
{
|
284 |
+
"id": "phi3",
|
285 |
+
"is_base": false
|
286 |
+
},
|
287 |
+
{
|
288 |
+
"id": "phi4_multimodal",
|
289 |
+
"is_base": false
|
290 |
+
},
|
291 |
+
{
|
292 |
+
"id": "prompt_depth_anything",
|
293 |
+
"is_base": false
|
294 |
+
},
|
295 |
+
{
|
296 |
+
"id": "qwen2",
|
297 |
+
"is_base": false
|
298 |
+
},
|
299 |
+
{
|
300 |
+
"id": "qwen2_5_omni",
|
301 |
+
"is_base": false
|
302 |
+
},
|
303 |
+
{
|
304 |
+
"id": "qwen2_5_vl",
|
305 |
+
"is_base": false
|
306 |
+
},
|
307 |
+
{
|
308 |
+
"id": "qwen2_audio",
|
309 |
+
"is_base": true
|
310 |
+
},
|
311 |
+
{
|
312 |
+
"id": "qwen2_moe",
|
313 |
+
"is_base": true
|
314 |
+
},
|
315 |
+
{
|
316 |
+
"id": "qwen2_vl",
|
317 |
+
"is_base": true
|
318 |
+
},
|
319 |
+
{
|
320 |
+
"id": "qwen3",
|
321 |
+
"is_base": false
|
322 |
+
},
|
323 |
+
{
|
324 |
+
"id": "qwen3_moe",
|
325 |
+
"is_base": false
|
326 |
+
},
|
327 |
+
{
|
328 |
+
"id": "rt_detr",
|
329 |
+
"is_base": false
|
330 |
+
},
|
331 |
+
{
|
332 |
+
"id": "rt_detr_v2",
|
333 |
+
"is_base": false
|
334 |
+
},
|
335 |
+
{
|
336 |
+
"id": "sam",
|
337 |
+
"is_base": true
|
338 |
+
},
|
339 |
+
{
|
340 |
+
"id": "sam_hq",
|
341 |
+
"is_base": false
|
342 |
+
},
|
343 |
+
{
|
344 |
+
"id": "siglip",
|
345 |
+
"is_base": true
|
346 |
+
},
|
347 |
+
{
|
348 |
+
"id": "siglip2",
|
349 |
+
"is_base": false
|
350 |
+
},
|
351 |
+
{
|
352 |
+
"id": "smolvlm",
|
353 |
+
"is_base": false
|
354 |
+
},
|
355 |
+
{
|
356 |
+
"id": "starcoder2",
|
357 |
+
"is_base": false
|
358 |
+
},
|
359 |
+
{
|
360 |
+
"id": "timesfm",
|
361 |
+
"is_base": false
|
362 |
+
},
|
363 |
+
{
|
364 |
+
"id": "unispeech",
|
365 |
+
"is_base": false
|
366 |
+
},
|
367 |
+
{
|
368 |
+
"id": "unispeech_sat",
|
369 |
+
"is_base": false
|
370 |
+
},
|
371 |
+
{
|
372 |
+
"id": "vipllava",
|
373 |
+
"is_base": false
|
374 |
+
},
|
375 |
+
{
|
376 |
+
"id": "vit",
|
377 |
+
"is_base": true
|
378 |
+
},
|
379 |
+
{
|
380 |
+
"id": "wav2vec2",
|
381 |
+
"is_base": true
|
382 |
+
},
|
383 |
+
{
|
384 |
+
"id": "wav2vec2_bert",
|
385 |
+
"is_base": false
|
386 |
+
},
|
387 |
+
{
|
388 |
+
"id": "wav2vec2_conformer",
|
389 |
+
"is_base": false
|
390 |
+
},
|
391 |
+
{
|
392 |
+
"id": "wavlm",
|
393 |
+
"is_base": false
|
394 |
+
},
|
395 |
+
{
|
396 |
+
"id": "whisper",
|
397 |
+
"is_base": true
|
398 |
+
},
|
399 |
+
{
|
400 |
+
"id": "yolos",
|
401 |
+
"is_base": false
|
402 |
+
},
|
403 |
+
{
|
404 |
+
"id": "zamba",
|
405 |
+
"is_base": true
|
406 |
+
},
|
407 |
+
{
|
408 |
+
"id": "zamba2",
|
409 |
+
"is_base": false
|
410 |
+
}
|
411 |
+
],
|
412 |
+
"links": [
|
413 |
+
{
|
414 |
+
"source": "siglip",
|
415 |
+
"target": "siglip2",
|
416 |
+
"label": "16 classes"
|
417 |
+
},
|
418 |
+
{
|
419 |
+
"source": "llava",
|
420 |
+
"target": "vipllava",
|
421 |
+
"label": "5 classes"
|
422 |
+
},
|
423 |
+
{
|
424 |
+
"source": "modeling_attn_mask_utils",
|
425 |
+
"target": "phi4_multimodal",
|
426 |
+
"label": "1 classes"
|
427 |
+
},
|
428 |
+
{
|
429 |
+
"source": "phi3",
|
430 |
+
"target": "phi4_multimodal",
|
431 |
+
"label": "7 classes"
|
432 |
+
},
|
433 |
+
{
|
434 |
+
"source": "siglip",
|
435 |
+
"target": "phi4_multimodal",
|
436 |
+
"label": "9 classes"
|
437 |
+
},
|
438 |
+
{
|
439 |
+
"source": "llama",
|
440 |
+
"target": "qwen3_moe",
|
441 |
+
"label": "4 classes"
|
442 |
+
},
|
443 |
+
{
|
444 |
+
"source": "mixtral",
|
445 |
+
"target": "qwen3_moe",
|
446 |
+
"label": "3 classes"
|
447 |
+
},
|
448 |
+
{
|
449 |
+
"source": "qwen2_moe",
|
450 |
+
"target": "qwen3_moe",
|
451 |
+
"label": "1 classes"
|
452 |
+
},
|
453 |
+
{
|
454 |
+
"source": "qwen3",
|
455 |
+
"target": "qwen3_moe",
|
456 |
+
"label": "1 classes"
|
457 |
+
},
|
458 |
+
{
|
459 |
+
"source": "detr",
|
460 |
+
"target": "grounding_dino",
|
461 |
+
"label": "1 classes"
|
462 |
+
},
|
463 |
+
{
|
464 |
+
"source": "llama",
|
465 |
+
"target": "deepseek_v3",
|
466 |
+
"label": "9 classes"
|
467 |
+
},
|
468 |
+
{
|
469 |
+
"source": "gemma",
|
470 |
+
"target": "helium",
|
471 |
+
"label": "3 classes"
|
472 |
+
},
|
473 |
+
{
|
474 |
+
"source": "granite",
|
475 |
+
"target": "helium",
|
476 |
+
"label": "1 classes"
|
477 |
+
},
|
478 |
+
{
|
479 |
+
"source": "llama",
|
480 |
+
"target": "helium",
|
481 |
+
"label": "5 classes"
|
482 |
+
},
|
483 |
+
{
|
484 |
+
"source": "llama",
|
485 |
+
"target": "olmo",
|
486 |
+
"label": "9 classes"
|
487 |
+
},
|
488 |
+
{
|
489 |
+
"source": "gemma",
|
490 |
+
"target": "bitnet",
|
491 |
+
"label": "1 classes"
|
492 |
+
},
|
493 |
+
{
|
494 |
+
"source": "llama",
|
495 |
+
"target": "bitnet",
|
496 |
+
"label": "7 classes"
|
497 |
+
},
|
498 |
+
{
|
499 |
+
"source": "wav2vec2",
|
500 |
+
"target": "data2vec",
|
501 |
+
"label": "11 classes"
|
502 |
+
},
|
503 |
+
{
|
504 |
+
"source": "depth_anything",
|
505 |
+
"target": "prompt_depth_anything",
|
506 |
+
"label": "7 classes"
|
507 |
+
},
|
508 |
+
{
|
509 |
+
"source": "llama",
|
510 |
+
"target": "qwen2",
|
511 |
+
"label": "10 classes"
|
512 |
+
},
|
513 |
+
{
|
514 |
+
"source": "mistral",
|
515 |
+
"target": "qwen2",
|
516 |
+
"label": "1 classes"
|
517 |
+
},
|
518 |
+
{
|
519 |
+
"source": "blip",
|
520 |
+
"target": "janus",
|
521 |
+
"label": "1 classes"
|
522 |
+
},
|
523 |
+
{
|
524 |
+
"source": "blip_2",
|
525 |
+
"target": "janus",
|
526 |
+
"label": "1 classes"
|
527 |
+
},
|
528 |
+
{
|
529 |
+
"source": "chameleon",
|
530 |
+
"target": "janus",
|
531 |
+
"label": "7 classes"
|
532 |
+
},
|
533 |
+
{
|
534 |
+
"source": "idefics",
|
535 |
+
"target": "janus",
|
536 |
+
"label": "2 classes"
|
537 |
+
},
|
538 |
+
{
|
539 |
+
"source": "llama",
|
540 |
+
"target": "janus",
|
541 |
+
"label": "1 classes"
|
542 |
+
},
|
543 |
+
{
|
544 |
+
"source": "siglip",
|
545 |
+
"target": "janus",
|
546 |
+
"label": "4 classes"
|
547 |
+
},
|
548 |
+
{
|
549 |
+
"source": "instructblip",
|
550 |
+
"target": "instructblipvideo",
|
551 |
+
"label": "9 classes"
|
552 |
+
},
|
553 |
+
{
|
554 |
+
"source": "auto",
|
555 |
+
"target": "instructblipvideo",
|
556 |
+
"label": "1 classes"
|
557 |
+
},
|
558 |
+
{
|
559 |
+
"source": "clip",
|
560 |
+
"target": "phi",
|
561 |
+
"label": "1 classes"
|
562 |
+
},
|
563 |
+
{
|
564 |
+
"source": "llama",
|
565 |
+
"target": "phi",
|
566 |
+
"label": "9 classes"
|
567 |
+
},
|
568 |
+
{
|
569 |
+
"source": "rt_detr",
|
570 |
+
"target": "rt_detr_v2",
|
571 |
+
"label": "6 classes"
|
572 |
+
},
|
573 |
+
{
|
574 |
+
"source": "llama",
|
575 |
+
"target": "mistral",
|
576 |
+
"label": "11 classes"
|
577 |
+
},
|
578 |
+
{
|
579 |
+
"source": "glm",
|
580 |
+
"target": "moonshine",
|
581 |
+
"label": "3 classes"
|
582 |
+
},
|
583 |
+
{
|
584 |
+
"source": "llama",
|
585 |
+
"target": "moonshine",
|
586 |
+
"label": "3 classes"
|
587 |
+
},
|
588 |
+
{
|
589 |
+
"source": "whisper",
|
590 |
+
"target": "moonshine",
|
591 |
+
"label": "2 classes"
|
592 |
+
},
|
593 |
+
{
|
594 |
+
"source": "llama",
|
595 |
+
"target": "zamba2",
|
596 |
+
"label": "2 classes"
|
597 |
+
},
|
598 |
+
{
|
599 |
+
"source": "mamba2",
|
600 |
+
"target": "zamba2",
|
601 |
+
"label": "3 classes"
|
602 |
+
},
|
603 |
+
{
|
604 |
+
"source": "zamba",
|
605 |
+
"target": "zamba2",
|
606 |
+
"label": "10 classes"
|
607 |
+
},
|
608 |
+
{
|
609 |
+
"source": "llama",
|
610 |
+
"target": "olmo2",
|
611 |
+
"label": "3 classes"
|
612 |
+
},
|
613 |
+
{
|
614 |
+
"source": "olmo",
|
615 |
+
"target": "olmo2",
|
616 |
+
"label": "7 classes"
|
617 |
+
},
|
618 |
+
{
|
619 |
+
"source": "gemma",
|
620 |
+
"target": "modernbert",
|
621 |
+
"label": "2 classes"
|
622 |
+
},
|
623 |
+
{
|
624 |
+
"source": "llama",
|
625 |
+
"target": "timesfm",
|
626 |
+
"label": "1 classes"
|
627 |
+
},
|
628 |
+
{
|
629 |
+
"source": "phi4_multimodal",
|
630 |
+
"target": "timesfm",
|
631 |
+
"label": "1 classes"
|
632 |
+
},
|
633 |
+
{
|
634 |
+
"source": "llama",
|
635 |
+
"target": "qwen2_5_omni",
|
636 |
+
"label": "1 classes"
|
637 |
+
},
|
638 |
+
{
|
639 |
+
"source": "qwen2",
|
640 |
+
"target": "qwen2_5_omni",
|
641 |
+
"label": "1 classes"
|
642 |
+
},
|
643 |
+
{
|
644 |
+
"source": "qwen2_5_vl",
|
645 |
+
"target": "qwen2_5_omni",
|
646 |
+
"label": "8 classes"
|
647 |
+
},
|
648 |
+
{
|
649 |
+
"source": "qwen2_audio",
|
650 |
+
"target": "qwen2_5_omni",
|
651 |
+
"label": "2 classes"
|
652 |
+
},
|
653 |
+
{
|
654 |
+
"source": "qwen2_vl",
|
655 |
+
"target": "qwen2_5_omni",
|
656 |
+
"label": "1 classes"
|
657 |
+
},
|
658 |
+
{
|
659 |
+
"source": "wav2vec2",
|
660 |
+
"target": "unispeech",
|
661 |
+
"label": "9 classes"
|
662 |
+
},
|
663 |
+
{
|
664 |
+
"source": "mistral",
|
665 |
+
"target": "phi3",
|
666 |
+
"label": "7 classes"
|
667 |
+
},
|
668 |
+
{
|
669 |
+
"source": "vit",
|
670 |
+
"target": "ijepa",
|
671 |
+
"label": "3 classes"
|
672 |
+
},
|
673 |
+
{
|
674 |
+
"source": "wav2vec2",
|
675 |
+
"target": "hubert",
|
676 |
+
"label": "7 classes"
|
677 |
+
},
|
678 |
+
{
|
679 |
+
"source": "glm",
|
680 |
+
"target": "glm4",
|
681 |
+
"label": "4 classes"
|
682 |
+
},
|
683 |
+
{
|
684 |
+
"source": "phi3",
|
685 |
+
"target": "glm4",
|
686 |
+
"label": "1 classes"
|
687 |
+
},
|
688 |
+
{
|
689 |
+
"source": "llama",
|
690 |
+
"target": "csm",
|
691 |
+
"label": "8 classes"
|
692 |
+
},
|
693 |
+
{
|
694 |
+
"source": "mistral",
|
695 |
+
"target": "mixtral",
|
696 |
+
"label": "9 classes"
|
697 |
+
},
|
698 |
+
{
|
699 |
+
"source": "llama",
|
700 |
+
"target": "gpt_neox",
|
701 |
+
"label": "4 classes"
|
702 |
+
},
|
703 |
+
{
|
704 |
+
"source": "wav2vec2",
|
705 |
+
"target": "wav2vec2_conformer",
|
706 |
+
"label": "13 classes"
|
707 |
+
},
|
708 |
+
{
|
709 |
+
"source": "clip",
|
710 |
+
"target": "internvl",
|
711 |
+
"label": "1 classes"
|
712 |
+
},
|
713 |
+
{
|
714 |
+
"source": "janus",
|
715 |
+
"target": "internvl",
|
716 |
+
"label": "1 classes"
|
717 |
+
},
|
718 |
+
{
|
719 |
+
"source": "llama",
|
720 |
+
"target": "internvl",
|
721 |
+
"label": "1 classes"
|
722 |
+
},
|
723 |
+
{
|
724 |
+
"source": "llava",
|
725 |
+
"target": "internvl",
|
726 |
+
"label": "4 classes"
|
727 |
+
},
|
728 |
+
{
|
729 |
+
"source": "mistral",
|
730 |
+
"target": "starcoder2",
|
731 |
+
"label": "10 classes"
|
732 |
+
},
|
733 |
+
{
|
734 |
+
"source": "gemma2",
|
735 |
+
"target": "gemma3",
|
736 |
+
"label": "10 classes"
|
737 |
+
},
|
738 |
+
{
|
739 |
+
"source": "paligemma",
|
740 |
+
"target": "gemma3",
|
741 |
+
"label": "4 classes"
|
742 |
+
},
|
743 |
+
{
|
744 |
+
"source": "cohere",
|
745 |
+
"target": "cohere2",
|
746 |
+
"label": "8 classes"
|
747 |
+
},
|
748 |
+
{
|
749 |
+
"source": "gemma2",
|
750 |
+
"target": "cohere2",
|
751 |
+
"label": "1 classes"
|
752 |
+
},
|
753 |
+
{
|
754 |
+
"source": "llama",
|
755 |
+
"target": "cohere",
|
756 |
+
"label": "7 classes"
|
757 |
+
},
|
758 |
+
{
|
759 |
+
"source": "sam",
|
760 |
+
"target": "sam_hq",
|
761 |
+
"label": "13 classes"
|
762 |
+
},
|
763 |
+
{
|
764 |
+
"source": "llava",
|
765 |
+
"target": "got_ocr2",
|
766 |
+
"label": "6 classes"
|
767 |
+
},
|
768 |
+
{
|
769 |
+
"source": "sam",
|
770 |
+
"target": "got_ocr2",
|
771 |
+
"label": "4 classes"
|
772 |
+
},
|
773 |
+
{
|
774 |
+
"source": "detr",
|
775 |
+
"target": "deformable_detr",
|
776 |
+
"label": "1 classes"
|
777 |
+
},
|
778 |
+
{
|
779 |
+
"source": "clip",
|
780 |
+
"target": "mlcd",
|
781 |
+
"label": "7 classes"
|
782 |
+
},
|
783 |
+
{
|
784 |
+
"source": "llama",
|
785 |
+
"target": "mlcd",
|
786 |
+
"label": "1 classes"
|
787 |
+
},
|
788 |
+
{
|
789 |
+
"source": "qwen2_vl",
|
790 |
+
"target": "mlcd",
|
791 |
+
"label": "2 classes"
|
792 |
+
},
|
793 |
+
{
|
794 |
+
"source": "llama",
|
795 |
+
"target": "granite",
|
796 |
+
"label": "5 classes"
|
797 |
+
},
|
798 |
+
{
|
799 |
+
"source": "jamba",
|
800 |
+
"target": "bamba",
|
801 |
+
"label": "1 classes"
|
802 |
+
},
|
803 |
+
{
|
804 |
+
"source": "llama",
|
805 |
+
"target": "bamba",
|
806 |
+
"label": "6 classes"
|
807 |
+
},
|
808 |
+
{
|
809 |
+
"source": "mamba2",
|
810 |
+
"target": "bamba",
|
811 |
+
"label": "4 classes"
|
812 |
+
},
|
813 |
+
{
|
814 |
+
"source": "llava_next",
|
815 |
+
"target": "llava_onevision",
|
816 |
+
"label": "1 classes"
|
817 |
+
},
|
818 |
+
{
|
819 |
+
"source": "llava_next_video",
|
820 |
+
"target": "llava_onevision",
|
821 |
+
"label": "9 classes"
|
822 |
+
},
|
823 |
+
{
|
824 |
+
"source": "gemma",
|
825 |
+
"target": "qwen3",
|
826 |
+
"label": "1 classes"
|
827 |
+
},
|
828 |
+
{
|
829 |
+
"source": "llama",
|
830 |
+
"target": "qwen3",
|
831 |
+
"label": "9 classes"
|
832 |
+
},
|
833 |
+
{
|
834 |
+
"source": "mistral",
|
835 |
+
"target": "qwen3",
|
836 |
+
"label": "1 classes"
|
837 |
+
},
|
838 |
+
{
|
839 |
+
"source": "llama",
|
840 |
+
"target": "aria",
|
841 |
+
"label": "7 classes"
|
842 |
+
},
|
843 |
+
{
|
844 |
+
"source": "llava",
|
845 |
+
"target": "aria",
|
846 |
+
"label": "4 classes"
|
847 |
+
},
|
848 |
+
{
|
849 |
+
"source": "llava_next",
|
850 |
+
"target": "aria",
|
851 |
+
"label": "1 classes"
|
852 |
+
},
|
853 |
+
{
|
854 |
+
"source": "wav2vec2",
|
855 |
+
"target": "unispeech_sat",
|
856 |
+
"label": "11 classes"
|
857 |
+
},
|
858 |
+
{
|
859 |
+
"source": "rt_detr",
|
860 |
+
"target": "hgnet_v2",
|
861 |
+
"label": "1 classes"
|
862 |
+
},
|
863 |
+
{
|
864 |
+
"source": "bamba",
|
865 |
+
"target": "granitemoehybrid",
|
866 |
+
"label": "4 classes"
|
867 |
+
},
|
868 |
+
{
|
869 |
+
"source": "granitemoeshared",
|
870 |
+
"target": "granitemoehybrid",
|
871 |
+
"label": "6 classes"
|
872 |
+
},
|
873 |
+
{
|
874 |
+
"source": "llava",
|
875 |
+
"target": "aya_vision",
|
876 |
+
"label": "5 classes"
|
877 |
+
},
|
878 |
+
{
|
879 |
+
"source": "gemma",
|
880 |
+
"target": "diffllama",
|
881 |
+
"label": "1 classes"
|
882 |
+
},
|
883 |
+
{
|
884 |
+
"source": "llama",
|
885 |
+
"target": "diffllama",
|
886 |
+
"label": "8 classes"
|
887 |
+
},
|
888 |
+
{
|
889 |
+
"source": "mistral",
|
890 |
+
"target": "diffllama",
|
891 |
+
"label": "1 classes"
|
892 |
+
},
|
893 |
+
{
|
894 |
+
"source": "wav2vec2",
|
895 |
+
"target": "wav2vec2_bert",
|
896 |
+
"label": "3 classes"
|
897 |
+
},
|
898 |
+
{
|
899 |
+
"source": "wav2vec2_conformer",
|
900 |
+
"target": "wav2vec2_bert",
|
901 |
+
"label": "6 classes"
|
902 |
+
},
|
903 |
+
{
|
904 |
+
"source": "wav2vec2",
|
905 |
+
"target": "wavlm",
|
906 |
+
"label": "9 classes"
|
907 |
+
},
|
908 |
+
{
|
909 |
+
"source": "llava",
|
910 |
+
"target": "mistral3",
|
911 |
+
"label": "6 classes"
|
912 |
+
},
|
913 |
+
{
|
914 |
+
"source": "mistral",
|
915 |
+
"target": "mistral3",
|
916 |
+
"label": "1 classes"
|
917 |
+
},
|
918 |
+
{
|
919 |
+
"source": "chameleon",
|
920 |
+
"target": "emu3",
|
921 |
+
"label": "2 classes"
|
922 |
+
},
|
923 |
+
{
|
924 |
+
"source": "llama",
|
925 |
+
"target": "emu3",
|
926 |
+
"label": "4 classes"
|
927 |
+
},
|
928 |
+
{
|
929 |
+
"source": "siglip",
|
930 |
+
"target": "emu3",
|
931 |
+
"label": "1 classes"
|
932 |
+
},
|
933 |
+
{
|
934 |
+
"source": "llama",
|
935 |
+
"target": "gemma",
|
936 |
+
"label": "5 classes"
|
937 |
+
},
|
938 |
+
{
|
939 |
+
"source": "detr",
|
940 |
+
"target": "rt_detr",
|
941 |
+
"label": "2 classes"
|
942 |
+
},
|
943 |
+
{
|
944 |
+
"source": "jamba",
|
945 |
+
"target": "falcon_h1",
|
946 |
+
"label": "1 classes"
|
947 |
+
},
|
948 |
+
{
|
949 |
+
"source": "llama",
|
950 |
+
"target": "falcon_h1",
|
951 |
+
"label": "7 classes"
|
952 |
+
},
|
953 |
+
{
|
954 |
+
"source": "mamba2",
|
955 |
+
"target": "falcon_h1",
|
956 |
+
"label": "4 classes"
|
957 |
+
},
|
958 |
+
{
|
959 |
+
"source": "detr",
|
960 |
+
"target": "yolos",
|
961 |
+
"label": "1 classes"
|
962 |
+
},
|
963 |
+
{
|
964 |
+
"source": "llama",
|
965 |
+
"target": "glm",
|
966 |
+
"label": "4 classes"
|
967 |
+
},
|
968 |
+
{
|
969 |
+
"source": "phi3",
|
970 |
+
"target": "glm",
|
971 |
+
"label": "1 classes"
|
972 |
+
},
|
973 |
+
{
|
974 |
+
"source": "gemma",
|
975 |
+
"target": "gemma2",
|
976 |
+
"label": "9 classes"
|
977 |
+
},
|
978 |
+
{
|
979 |
+
"source": "dinov2",
|
980 |
+
"target": "dinov2_with_registers",
|
981 |
+
"label": "6 classes"
|
982 |
+
},
|
983 |
+
{
|
984 |
+
"source": "detr",
|
985 |
+
"target": "conditional_detr",
|
986 |
+
"label": "1 classes"
|
987 |
+
},
|
988 |
+
{
|
989 |
+
"source": "granitemoe",
|
990 |
+
"target": "granitemoeshared",
|
991 |
+
"label": "4 classes"
|
992 |
+
},
|
993 |
+
{
|
994 |
+
"source": "qwen2_vl",
|
995 |
+
"target": "qwen2_5_vl",
|
996 |
+
"label": "15 classes"
|
997 |
+
},
|
998 |
+
{
|
999 |
+
"source": "idefics3",
|
1000 |
+
"target": "smolvlm",
|
1001 |
+
"label": "8 classes"
|
1002 |
+
},
|
1003 |
+
{
|
1004 |
+
"source": "llava_next",
|
1005 |
+
"target": "llava_next_video",
|
1006 |
+
"label": "7 classes"
|
1007 |
+
},
|
1008 |
+
{
|
1009 |
+
"source": "paligemma",
|
1010 |
+
"target": "colpali",
|
1011 |
+
"label": "3 classes"
|
1012 |
+
},
|
1013 |
+
{
|
1014 |
+
"source": "rt_detr",
|
1015 |
+
"target": "d_fine",
|
1016 |
+
"label": "12 classes"
|
1017 |
+
},
|
1018 |
+
{
|
1019 |
+
"source": "rt_detr_v2",
|
1020 |
+
"target": "d_fine",
|
1021 |
+
"label": "1 classes"
|
1022 |
+
}
|
1023 |
+
]
|
1024 |
+
};
|
1025 |
+
const hfLogoPath = "M21.2,6.7c-0.2-0.2-0.5-0.3-0.8-0.3H3.6C3.3,6.4,3,6.5,2.8,6.7s-0.3,0.5-0.3,0.8v10.8c0,0.3,0.1,0.5,0.3,0.8 c0.2,0.2,0.5,0.3,0.8,0.3h16.8c0.3,0,0.5-0.1,0.8-0.3c0.2-0.2,0.3-0.5,0.3-0.8V7.5C21.5,7.2,21.4,6.9,21.2,6.7z M12,17.8L5.9,9.4h3.1 V8.3h6v1.1h3.1L12,17.8z";
|
1026 |
+
|
1027 |
+
const width = window.innerWidth;
|
1028 |
+
const height = window.innerHeight;
|
1029 |
+
|
1030 |
+
const svg = d3.select("svg#dependency-graph")
|
1031 |
+
.call(d3.zoom().on("zoom", (event) => {
|
1032 |
+
g.attr("transform", event.transform);
|
1033 |
+
}));
|
1034 |
+
|
1035 |
+
const g = svg.append("g");
|
1036 |
+
|
1037 |
+
const simulation = d3.forceSimulation(graphData.nodes)
|
1038 |
+
.force("link", d3.forceLink(graphData.links).id(d => d.id).distance(250))
|
1039 |
+
.force("charge", d3.forceManyBody().strength(-500))
|
1040 |
+
.force("center", d3.forceCenter(width / 2, height / 2));
|
1041 |
+
|
1042 |
+
const link = g.append("g")
|
1043 |
+
.selectAll("line")
|
1044 |
+
.data(graphData.links)
|
1045 |
+
.join("line")
|
1046 |
+
.attr("class", "link")
|
1047 |
+
.attr("stroke-width", 1.5);
|
1048 |
+
|
1049 |
+
const linkLabel = g.append("g")
|
1050 |
+
.selectAll("text")
|
1051 |
+
.data(graphData.links)
|
1052 |
+
.join("text")
|
1053 |
+
.attr("class", "link-label")
|
1054 |
+
.text(d => d.label);
|
1055 |
+
|
1056 |
+
const node = g.append("g")
|
1057 |
+
.selectAll("g")
|
1058 |
+
.data(graphData.nodes)
|
1059 |
+
.join("g")
|
1060 |
+
.attr("class", d => d.is_base ? "node base" : "node derived")
|
1061 |
+
.call(d3.drag()
|
1062 |
+
.on("start", dragstarted)
|
1063 |
+
.on("drag", dragged)
|
1064 |
+
.on("end", dragended));
|
1065 |
+
|
1066 |
+
// Use custom path for base models, circle for derived
|
1067 |
+
node.filter(d => d.is_base).append("image")
|
1068 |
+
.attr("xlink:href", "hf-logo.svg")
|
1069 |
+
.attr("x", -20)
|
1070 |
+
.attr("y", -20)
|
1071 |
+
.attr("width", 40)
|
1072 |
+
.attr("height", 40);
|
1073 |
+
|
1074 |
+
node.filter(d => !d.is_base).append("circle")
|
1075 |
+
.attr("r", 20);
|
1076 |
+
|
1077 |
+
node.append("text")
|
1078 |
+
.attr("class", "node-label")
|
1079 |
+
.text(d => d.id);
|
1080 |
+
|
1081 |
+
simulation.on("tick", () => {
|
1082 |
+
link
|
1083 |
+
.attr("x1", d => d.source.x)
|
1084 |
+
.attr("y1", d => d.source.y)
|
1085 |
+
.attr("x2", d => d.target.x)
|
1086 |
+
.attr("y2", d => d.target.y);
|
1087 |
+
|
1088 |
+
linkLabel
|
1089 |
+
.attr("x", d => (d.source.x + d.target.x) / 2)
|
1090 |
+
.attr("y", d => (d.source.y + d.target.y) / 2);
|
1091 |
+
|
1092 |
+
node.attr("transform", d => `translate(${d.x}, ${d.y})`);
|
1093 |
+
});
|
1094 |
+
|
1095 |
+
function dragstarted(event, d) {
|
1096 |
+
if (!event.active) simulation.alphaTarget(0.3).restart();
|
1097 |
+
d.fx = d.x;
|
1098 |
+
d.fy = d.y;
|
1099 |
+
}
|
1100 |
+
|
1101 |
+
function dragged(event, d) {
|
1102 |
+
d.fx = event.x;
|
1103 |
+
d.fy = event.y;
|
1104 |
+
}
|
1105 |
+
|
1106 |
+
function dragended(event, d) {
|
1107 |
+
if (!event.active) simulation.alphaTarget(0);
|
1108 |
+
d.fx = null;
|
1109 |
+
d.fy = null;
|
1110 |
+
}
|
1111 |
+
</script>
|
1112 |
+
</body>
|
1113 |
</html>
|