-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgemma-3-27b.json
More file actions
2199 lines (2199 loc) · 57.2 KB
/
Copy pathgemma-3-27b.json
File metadata and controls
2199 lines (2199 loc) · 57.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"machine_name": "Gemma 3 (27B)",
"assembly_instructions": [
"1. Bolt the thin base_floor plate to the ground plane; it is the root structural member and all other modules ultimately connect to it.",
"2. Install front_rail, rear_rail, left_rail, and right_rail on top of base_floor to mark the footprint of the open architecture frame.",
"3. Fasten post_front_left, post_front_right, post_back_left, and post_back_right to the rails, then attach top_bridge, top_rear_bridge, top_left_bridge, and top_right_bridge as perimeter rails rather than a roof.",
"4. Mount input_text_plate and embedding_table on the center front rail; text tokens enter the embedding table before rising through the residual spine.",
"5. Mount input_image_plate, pan_scan_turntable, siglip_encoder, crop_token_tiles, and vision_text_projector on the left branch, then connect the projector into embedding_table.",
"6. Install residual_pipe vertically through the open frame and connect embedding_table to it as the main inference data path.",
"7. Slide local_band_01 through local_band_10 and global_band_01 through global_band_02 onto the residual_pipe in the visible 5-local-to-1-global rhythm.",
"8. Bolt schedule_cartridge_01 through schedule_cartridge_12 to the rear-left service side; each cartridge represents one compact 5L+1G repeat, with the final cartridge noting the truncated 62-layer tail.",
"9. Attach layer_ruler_spine and the grouped 62_notch rail to the right service side so the total layer count is mechanically countable while the main stack remains open.",
"10. Attach the canonical exploded transformer cell around layer_window_slot: pre-attention norm, QKV projection, QK-Norm, RoPE, attention kernel, O-projection, attention post-norm, FFN pre-norm, SwiGLU FFN, and FFN post-norm.",
"11. Bolt kv_cache_window_column and kv_cache_global_column to the left service rail and connect both to attention_kernel to show the cheap local window cache and the smaller set of full-context global caches.",
"12. Mount prediction_head at the top of residual_pipe, then route student_logits_conduit from the head to loss_node.",
"13. Ground teacher_model, optimizer_adamw, training_data_pipe, and parallelism_plan on their own pedestals or rails.",
"14. Route teacher_logits_conduit into loss_node, loss_gradient_conduit from loss_node to optimizer_adamw, adamw_update_conduit from optimizer_adamw back to residual_pipe, and data_ingest_conduit from training_data_pipe to embedding_table."
],
"metadata": {
"domain": "ml-architecture",
"reference": "https://ai.google.dev/gemma/docs/core",
"thumbnail_camera": [
13,
9,
14
],
"info": {
"english_name": "Gemma 3 27B (Google DeepMind, 2025) — dense multimodal",
"summary": "27B-parameter DENSE decoder-only multimodal LM from Google DeepMind. 62 layers × 5376 hidden dim, 32 query heads / 16 KV heads (GQA, ratio 2), SwiGLU FFN, dual RMSNorm (pre + post) on every sublayer, QK-Norm, and the signature 5:1 LOCAL-to-GLOBAL attention pattern (sliding-window 1024 + full-context). Vision through a frozen SigLIP-400M encoder with Pan-and-Scan, 896×896 crops, 256 soft-tokens per image. 128K context (32K for the 1B variant), trained on ~14T tokens with knowledge distillation from a larger teacher.",
"description": "Gemma 3 is the third generation of Google's open Gemma family. Compared with Gemma 2 it (i) goes multimodal via SigLIP + Pan&Scan, (ii) extends context 8K → 128K, (iii) replaces attention soft-cap with QK-Norm, (iv) uses an extreme 5:1 ratio of LOCAL (sliding-window) to GLOBAL attention layers — local layers do almost all the work, global layers carry long-range information. Local layers use RoPE base 10,000 (standard); global layers use RoPE base 1,000,000 to keep extrapolation clean to 128K. Both pre-norm AND post-norm RMSNorm are applied to attention and FFN — empirically improves training stability of fp16/bf16 deep stacks. The model is DENSE (no MoE) — every parameter activates for every token. Trained on ~14 T tokens via large-batch SGD with knowledge distillation from a larger Gemini teacher.\n\nDesign rationale, in one line each:\n• 5:1 local:global: makes long-context KV cheap because 5/6 of layers only need a 1024-token window.\n• QK-Norm: removes attention-logit blow-ups at long context without the soft-cap's training instability.\n• Dual norm (pre+post): cheap stability win for very deep stacks.\n• SigLIP + Pan&Scan: handles non-square / high-resolution images without resize artefacts.\n• Distillation from teacher: smaller models inherit teacher knowledge cheaply.",
"facts": [
{
"label": "total parameters",
"value": "27 B (DENSE — no MoE)"
},
{
"label": "context length",
"value": "128 K (32 K for 1B variant)"
},
{
"label": "transformer layers (L)",
"value": "62"
},
{
"label": "hidden dimension (d)",
"value": "5376"
},
{
"label": "vocabulary size",
"value": "256,000 (multilingual SentencePiece)"
},
{
"label": "query heads (n_h)",
"value": "32"
},
{
"label": "KV heads (GQA groups)",
"value": "16 (ratio 2)"
},
{
"label": "head dimension",
"value": "128"
},
{
"label": "FFN intermediate dim",
"value": "21504 (SwiGLU, 4×d)"
},
{
"label": "attention pattern",
"value": "5 local : 1 global (sliding-window 1024 / full)"
},
{
"label": "RoPE base — local",
"value": "10,000"
},
{
"label": "RoPE base — global",
"value": "1,000,000"
},
{
"label": "QK norm",
"value": "RMSNorm on Q and K (replaces soft-cap)"
},
{
"label": "norm placement",
"value": "Pre-norm AND post-norm RMSNorm on each sublayer"
},
{
"label": "vision encoder",
"value": "SigLIP-400M, frozen, 896×896 input"
},
{
"label": "image tokens",
"value": "256 soft-tokens per image crop"
},
{
"label": "image input",
"value": "Pan-and-Scan: non-square images sliced into multiple crops"
},
{
"label": "training tokens",
"value": "~14 T"
},
{
"label": "distillation",
"value": "Knowledge distillation from a larger Gemini teacher"
},
{
"label": "optimiser",
"value": "AdamW + large batch"
},
{
"label": "precision",
"value": "BF16 weights, BF16 / FP8 GEMMs"
},
{
"label": "scaled frame footprint",
"value": "7.6 m × 4.2 m base, 6.45 m top rail height"
},
{
"label": "visible stack scale",
"value": "12 primary layer bands over 4.15 m with a 62-notch side ruler"
},
{
"label": "schedule cartridge scale",
"value": "12 cartridges, each 0.38 m wide, representing 5 local + 1 global layers"
},
{
"label": "cache column scale",
"value": "local cache radius 0.24 m, global cache radius 0.18 m, both 4.5 m tall"
},
{
"label": "training loop scale",
"value": "0.08 m radius conduits route teacher logits, student logits, loss gradient, and AdamW update"
}
],
"comparisons": [
{
"versus": "vs Gemma 2 (2024, 9B / 27B)",
"delta": "Gemma 2 was text-only with 8K context, alternating local-global attention at a milder ratio (1:1), used attention soft-cap (logit clipping) for stability, and pre-norm only. Gemma 3 keeps the dense architecture but adds vision (SigLIP + Pan&Scan), extends context to 128K, swaps soft-cap for QK-Norm, pushes the local:global ratio to 5:1 (massive KV win), and adds post-norm RMSNorm. Vocab 256K stays."
},
{
"versus": "vs Gemma 1 (2024, 2B / 7B)",
"delta": "Gemma 1 was vanilla text-only LLaMA-style: pre-norm RMSNorm, RoPE, SwiGLU, MHA. Gemma 3 keeps the surface but replaces literally every attention block with a 5:1 local-global GQA + QK-Norm + dual-norm hybrid, adds multimodal input via SigLIP, jumps from 8K to 128K context, uses distillation from a larger teacher, and is much wider/deeper at the 27B point."
},
{
"versus": "vs LLaMA-3 / Mistral-class peers",
"delta": "LLaMA-3 70B and Mistral-Large are GQA dense decoders with full-context attention and standard pre-norm. Gemma 3 trades width/depth for a smarter attention plan — 5/6 of its layers are local (1024-token window) so its KV cache is 5–10× smaller at 128K context for similar quality. It is also natively multimodal where most peers bolt vision on as a separate model."
},
{
"versus": "vs DeepSeek-V3 / GLM-4.5 (MoE peers)",
"delta": "Gemma 3 is fundamentally different: DENSE (every parameter active for every token) where V3/GLM are sparse MoE. Trade-off: at 27B Gemma 3 activates 27B per token (vs ~32B for GLM-4.5 at 355B total), so Gemma 3 hits more compute per token relative to capacity. Gemma 3 has no expert all-to-all bottleneck — single-node inference is dramatically simpler. It's also smaller in absolute capacity but matches MoE peers up to its size class because of the strong attention plan and distillation."
}
],
"sources": [
{
"title": "Gemma 3 Technical Report",
"url": "https://arxiv.org/abs/2503.19786"
},
{
"title": "Gemma 3 docs (ai.google.dev)",
"url": "https://ai.google.dev/gemma/docs/core"
},
{
"title": "Gemma 3 model card (HF)",
"url": "https://huggingface.co/google/gemma-3-27b-it"
},
{
"title": "SigLIP paper",
"url": "https://arxiv.org/abs/2303.15343"
}
]
}
},
"parts": [
{
"id": "base_floor",
"name": "Open Architecture Base Floor",
"shape": "box",
"position": [
0,
0.05,
0
],
"size": [
7.6,
0.1,
4.2
],
"material": "brushed steel",
"role": "Thin grounded floor plate that roots the entire explanatory machine and prevents hidden chassis volume.",
"connections": [
"front_rail",
"rear_rail",
"left_rail",
"right_rail",
"input_text_plate",
"input_image_plate",
"optimizer_adamw",
"training_data_pipe",
"parallelism_plan",
"teacher_pedestal"
]
},
{
"id": "front_rail",
"name": "Front Frame Rail",
"shape": "box",
"position": [
0,
0.18,
-1.9
],
"size": [
6.4,
0.16,
0.12
],
"material": "welded steel",
"role": "Front rail carrying the text input, embedding table, and the visible lower edge of the transformer frame.",
"connections": [
"base_floor",
"post_front_left",
"post_front_right",
"embedding_table"
]
},
{
"id": "rear_rail",
"name": "Rear Frame Rail",
"shape": "box",
"position": [
0,
0.18,
1.9
],
"size": [
6.4,
0.16,
0.12
],
"material": "welded steel",
"role": "Rear rail keeps the open frame square while leaving the center visible from isometric and side views.",
"connections": [
"base_floor",
"post_back_left",
"post_back_right",
"schedule_cartridge_01"
]
},
{
"id": "left_rail",
"name": "Left Service Rail",
"shape": "box",
"position": [
-3.2,
0.18,
0
],
"size": [
0.12,
0.16,
3.8
],
"material": "welded steel",
"role": "Left rail supports the vision branch, cache columns, and compact layer-schedule cartridges.",
"connections": [
"base_floor",
"post_front_left",
"post_back_left",
"kv_cache_window_column",
"kv_cache_global_column",
"schedule_cartridge_01"
]
},
{
"id": "right_rail",
"name": "Right Compute Rail",
"shape": "box",
"position": [
3.2,
0.18,
0
],
"size": [
0.12,
0.16,
3.8
],
"material": "welded steel",
"role": "Right rail supports the exploded FFN side and the 62-notch layer ruler.",
"connections": [
"base_floor",
"post_front_right",
"post_back_right",
"ffn_swiglu",
"layer_ruler_spine"
]
},
{
"id": "post_front_left",
"name": "Front Left Open-Frame Post",
"shape": "cylinder",
"position": [
-3.2,
3.3,
-1.9
],
"size": [
0.08,
6.2
],
"material": "welded steel",
"role": "Vertical post that holds the frame without forming an opaque wall over the internals.",
"connections": [
"front_rail",
"top_bridge",
"top_left_bridge"
]
},
{
"id": "post_front_right",
"name": "Front Right Open-Frame Post",
"shape": "cylinder",
"position": [
3.2,
3.3,
-1.9
],
"size": [
0.08,
6.2
],
"material": "welded steel",
"role": "Vertical post that makes the tower readable as a built assembly rather than a stack of floating blocks.",
"connections": [
"front_rail",
"top_bridge",
"top_right_bridge"
]
},
{
"id": "post_back_left",
"name": "Back Left Open-Frame Post",
"shape": "cylinder",
"position": [
-3.2,
3.3,
1.9
],
"size": [
0.08,
6.2
],
"material": "welded steel",
"role": "Rear post that braces the left service side while preserving X-ray visibility through the frame.",
"connections": [
"rear_rail",
"top_rear_bridge",
"top_left_bridge"
]
},
{
"id": "post_back_right",
"name": "Back Right Open-Frame Post",
"shape": "cylinder",
"position": [
3.2,
3.3,
1.9
],
"size": [
0.08,
6.2
],
"material": "welded steel",
"role": "Rear post that braces the compute side and gives the model a clear mechanical assembly boundary.",
"connections": [
"rear_rail",
"top_rear_bridge",
"top_right_bridge"
]
},
{
"id": "top_bridge",
"name": "Top Front Bridge Rail",
"shape": "box",
"position": [
0,
6.45,
-1.9
],
"size": [
6.6,
0.16,
0.12
],
"material": "welded steel",
"role": "Front upper rail ties the two front posts while leaving the prediction head visible from above and ISO.",
"connections": [
"post_front_left",
"post_front_right",
"prediction_head"
]
},
{
"id": "top_rear_bridge",
"name": "Top Rear Bridge Rail",
"shape": "box",
"position": [
0,
6.45,
1.9
],
"size": [
6.6,
0.16,
0.12
],
"material": "welded steel",
"role": "Rear upper rail completes the open top frame without making an opaque roof.",
"connections": [
"post_back_left",
"post_back_right",
"top_left_bridge",
"top_right_bridge"
]
},
{
"id": "top_left_bridge",
"name": "Top Left Side Rail",
"shape": "box",
"position": [
-3.2,
6.45,
0
],
"size": [
0.12,
0.16,
3.9
],
"material": "welded steel",
"role": "Left upper rail braces the cache and vision side while keeping the transformer interior exposed.",
"connections": [
"post_front_left",
"post_back_left",
"top_bridge",
"top_rear_bridge"
]
},
{
"id": "top_right_bridge",
"name": "Top Right Side Rail",
"shape": "box",
"position": [
3.2,
6.45,
0
],
"size": [
0.12,
0.16,
3.9
],
"material": "welded steel",
"role": "Right upper rail braces the FFN side and ruler without covering the stack.",
"connections": [
"post_front_right",
"post_back_right",
"top_bridge",
"top_rear_bridge"
]
},
{
"id": "input_text_plate",
"name": "Input Tokens Plate",
"shape": "box",
"position": [
0,
0.28,
-1.35
],
"size": [
2.6,
0.18,
0.5
],
"material": "dark anodized aluminum",
"role": "Grounded plate where multilingual SentencePiece text tokens with vocabulary size 256K enter the model.",
"compute_profile": "host-cpu",
"memory_footprint": "4 B / token",
"parallelism": "embarrassingly-parallel",
"algorithm": "tokens = sp.encode(text)",
"connections": [
"base_floor",
"embedding_table"
]
},
{
"id": "input_image_plate",
"name": "Input Image Plate",
"shape": "box",
"position": [
-4.8,
0.28,
-1
],
"size": [
1.1,
0.18,
0.85
],
"material": "white composite",
"role": "Grounded image input plate for variable-resolution RGB images before Pan-and-Scan cropping.",
"compute_profile": "host-cpu",
"parallelism": "embarrassingly-parallel",
"algorithm": "image: H x W x 3 RGB",
"connections": [
"base_floor",
"pan_scan_turntable"
]
},
{
"id": "pan_scan_turntable",
"name": "Pan-and-Scan Slicer",
"shape": "cylinder",
"position": [
-4.8,
0.65,
-1
],
"size": [
0.48,
0.22
],
"material": "brass",
"role": "Rotary slicer symbol showing non-square images split into overlapping 896 by 896 crops before encoding.",
"compute_profile": "host-cpu",
"parallelism": "embarrassingly-parallel",
"algorithm": "crops = pan_and_scan(img, tile=896, overlap=True)",
"connections": [
"input_image_plate",
"siglip_encoder",
"crop_tile_1",
"crop_tile_2",
"crop_tile_3"
]
},
{
"id": "crop_tile_1",
"name": "896 Crop Tile A",
"shape": "box",
"position": [
-5.35,
1.05,
-1.35
],
"size": [
0.5,
0.06,
0.5
],
"material": "glass display",
"role": "First visible 896 by 896 crop emitted by Pan-and-Scan for independent SigLIP processing.",
"connections": [
"pan_scan_turntable",
"siglip_encoder"
]
},
{
"id": "crop_tile_2",
"name": "896 Crop Tile B",
"shape": "box",
"position": [
-4.8,
1.15,
-1
],
"size": [
0.5,
0.06,
0.5
],
"material": "glass display",
"role": "Second visible 896 by 896 crop showing that multiple image windows can feed the same frozen encoder.",
"connections": [
"pan_scan_turntable",
"siglip_encoder"
]
},
{
"id": "crop_tile_3",
"name": "896 Crop Tile C",
"shape": "box",
"position": [
-4.25,
1.25,
-0.65
],
"size": [
0.5,
0.06,
0.5
],
"material": "glass display",
"role": "Third visible crop tile making the Pan-and-Scan fan-out legible in the isometric render.",
"connections": [
"pan_scan_turntable",
"siglip_encoder"
]
},
{
"id": "siglip_encoder",
"name": "SigLIP-400M Frozen Vision Encoder",
"shape": "box",
"position": [
-4.8,
1.7,
-1
],
"size": [
1.2,
0.8,
0.8
],
"material": "aluminum",
"role": "Frozen SigLIP ViT encoder that turns each 896 by 896 crop into features for 256 soft tokens.",
"compute_profile": "gpu-compute-bound",
"flops_per_token": "approximately 100 GFLOP per image crop",
"memory_footprint": "Frozen weights about 800 MB BF16",
"parallelism": "embarrassingly-parallel",
"algorithm": "features = vit(patchify(crop, 14)); soft_tokens = pool(features)",
"connections": [
"crop_tile_1",
"crop_tile_2",
"crop_tile_3",
"vision_text_projector"
]
},
{
"id": "vision_text_projector",
"name": "Vision-Text Projector",
"shape": "box",
"position": [
-3.4,
1.7,
-0.75
],
"size": [
0.55,
0.42,
0.55
],
"material": "aluminum",
"role": "Linear projector maps SigLIP crop features into the LLM hidden dimension d=5376.",
"compute_profile": "gpu-bandwidth-bound",
"flops_per_token": "about 11 MFLOP per soft token",
"parallelism": "tensor-parallel",
"algorithm": "soft_h = soft_tokens @ W_proj",
"connections": [
"siglip_encoder",
"embedding_table"
]
},
{
"id": "embedding_table",
"name": "Embedding Table V=256K d=5376",
"shape": "box",
"position": [
0,
0.62,
-1.05
],
"size": [
2.7,
0.38,
0.7
],
"material": "glass display",
"role": "Tied token embedding table that combines text embeddings and projected image soft tokens before the residual stream.",
"compute_profile": "gpu-bandwidth-bound",
"memory_footprint": "256000 x 5376 x BF16 is about 2.75 GiB",
"parallelism": "tensor-parallel",
"algorithm": "h_input = interleave(E[token_ids], h_image_soft)",
"connections": [
"front_rail",
"input_text_plate",
"vision_text_projector",
"residual_pipe",
"data_ingest_conduit"
]
},
{
"id": "residual_pipe",
"name": "Residual Stream d=5376",
"shape": "cylinder",
"position": [
0,
3.55,
0
],
"size": [
0.11,
5.8
],
"material": "brushed steel",
"role": "Central vertical residual bus carrying hidden state through 62 dense transformer layers.",
"compute_profile": "gpu-memory-bound",
"parallelism": "tensor-parallel",
"algorithm": "x = x + post_attn(attn(pre_attn(x))); x = x + post_ffn(ffn(pre_ffn(x)))",
"connections": [
"embedding_table",
"local_band_01",
"local_band_02",
"local_band_03",
"local_band_04",
"local_band_05",
"global_band_01",
"local_band_06",
"local_band_07",
"local_band_08",
"local_band_09",
"local_band_10",
"global_band_02",
"prediction_head",
"adamw_update_conduit"
]
},
{
"id": "layer_window_slot",
"name": "Exploded Canonical Transformer Slot",
"shape": "box",
"position": [
0,
3.45,
0
],
"size": [
0.18,
0.9,
1.7
],
"material": "glass display",
"role": "Transparent visual slot that marks one opened transformer layer so its submodules can be inspected around the residual pipe.",
"connections": [
"residual_pipe",
"attn_pre_norm",
"ffn_pre_norm"
]
},
{
"id": "local_band_01",
"name": "Local Layer Band 1",
"shape": "box",
"position": [
0,
1.15,
0
],
"size": [
2.4,
0.22,
1.1
],
"material": "white composite",
"role": "Visible local attention band representing a sliding-window layer with 1024-token context and RoPE base 10000.",
"compute_profile": "gpu-compute-bound",
"parallelism": "tensor-parallel",
"connections": [
"residual_pipe",
"local_tick_01"
]
},
{
"id": "local_band_02",
"name": "Local Layer Band 2",
"shape": "box",
"position": [
0,
1.52,
0
],
"size": [
2.4,
0.22,
1.1
],
"material": "white composite",
"role": "Second local band in the 5:1 local-to-global schedule; it caches only a 1024-token window.",
"compute_profile": "gpu-compute-bound",
"parallelism": "tensor-parallel",
"connections": [
"residual_pipe",
"local_tick_02"
]
},
{
"id": "local_band_03",
"name": "Local Layer Band 3",
"shape": "box",
"position": [
0,
1.89,
0
],
"size": [
2.4,
0.22,
1.1
],
"material": "white composite",
"role": "Third local band showing that most Gemma 3 layers avoid full-context attention cost.",
"compute_profile": "gpu-compute-bound",
"parallelism": "tensor-parallel",
"connections": [
"residual_pipe",
"local_tick_03"
]
},
{
"id": "local_band_04",
"name": "Local Layer Band 4",
"shape": "box",
"position": [
0,
2.26,
0
],
"size": [
2.4,
0.22,
1.1
],
"material": "white composite",
"role": "Fourth local band in the first visible 5-local group before a global layer appears.",
"compute_profile": "gpu-compute-bound",
"parallelism": "tensor-parallel",
"connections": [
"residual_pipe",
"local_tick_04"
]
},
{
"id": "local_band_05",
"name": "Local Layer Band 5",
"shape": "box",
"position": [
0,
2.63,
0
],
"size": [
2.4,
0.22,
1.1
],
"material": "white composite",
"role": "Fifth local band completing one local group before the full-context global band.",
"compute_profile": "gpu-compute-bound",
"parallelism": "tensor-parallel",
"connections": [
"residual_pipe",
"local_tick_05"
]
},
{
"id": "global_band_01",
"name": "Global Layer Band 6",
"shape": "box",
"position": [
0,
3,
0
],
"size": [
2.7,
0.28,
1.25
],
"material": "dark anodized aluminum",
"role": "Full-context attention band using RoPE base 1000000 to carry long-range information across the 128K context.",
"compute_profile": "gpu-compute-bound",
"parallelism": "tensor-parallel",
"connections": [
"residual_pipe",
"global_tick_01",
"layer_window_slot"
]
},
{
"id": "local_band_06",
"name": "Local Layer Band 7",
"shape": "box",
"position": [
0,
3.42,
0
],
"size": [
2.4,
0.22,
1.1
],
"material": "white composite",
"role": "Local band after the global layer showing that the 5:1 pattern resumes instead of switching to full attention.",
"compute_profile": "gpu-compute-bound",
"parallelism": "tensor-parallel",
"connections": [
"residual_pipe",
"local_tick_06"
]
},
{
"id": "local_band_07",
"name": "Local Layer Band 8",
"shape": "box",
"position": [
0,
3.79,
0
],
"size": [
2.4,
0.22,
1.1
],
"material": "white composite",
"role": "Visible local band representing another windowed attention layer in the dense stack.",
"compute_profile": "gpu-compute-bound",
"parallelism": "tensor-parallel",
"connections": [
"residual_pipe",
"local_tick_07"
]
},
{
"id": "local_band_08",
"name": "Local Layer Band 9",
"shape": "box",
"position": [
0,
4.16,
0
],
"size": [
2.4,
0.22,
1.1
],
"material": "white composite",
"role": "Local sliding-window band that keeps decode memory low for five-sixths of the transformer layers.",
"compute_profile": "gpu-compute-bound",
"parallelism": "tensor-parallel",
"connections": [
"residual_pipe",
"local_tick_08"
]
},
{
"id": "local_band_09",
"name": "Local Layer Band 10",
"shape": "box",
"position": [
0,
4.53,
0
],
"size": [
2.4,
0.22,
1.1
],
"material": "white composite",
"role": "Local band in the second visible 5-local group before the next full-context global layer.",
"compute_profile": "gpu-compute-bound",
"parallelism": "tensor-parallel",
"connections": [
"residual_pipe",
"local_tick_09"
]
},
{
"id": "local_band_10",
"name": "Local Layer Band 11",
"shape": "box",
"position": [
0,
4.9,
0
],
"size": [
2.4,
0.22,
1.1
],
"material": "white composite",
"role": "Fifth local band of the second visible group, making the 5:1 cadence countable by eye.",
"compute_profile": "gpu-compute-bound",
"parallelism": "tensor-parallel",