Skip to content

Commit bdfbef4

Browse files
pcullitoncopybara-github
authored andcommitted
Support for Gemma 4 MoE 26B text model
PiperOrigin-RevId: 933258780
1 parent 9ba4dfe commit bdfbef4

24 files changed

Lines changed: 2094 additions & 100 deletions

BUILD.bazel

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,11 +727,13 @@ cc_library(
727727
name = "gemma_lib",
728728
srcs = [
729729
"gemma/gemma.cc",
730+
"gemma/gemma4_moe.cc",
730731
"gemma/tiled_attention.cc",
731732
"gemma/vit.cc",
732733
],
733734
hdrs = [
734735
"gemma/gemma.h",
736+
"gemma/gemma4_moe.h",
735737
"gemma/tiled_attention.h",
736738
"gemma/vit.h",
737739
],
@@ -879,6 +881,27 @@ cc_test(
879881
],
880882
)
881883

884+
cc_test(
885+
name = "model_health_test",
886+
srcs = ["evals/model_health_test.cc"],
887+
linkstatic = True,
888+
# Requires model files
889+
tags = [
890+
"local",
891+
"manual",
892+
"no_tap",
893+
],
894+
deps = [
895+
":benchmark_helper",
896+
":configs",
897+
":cross_entropy",
898+
":gemma_lib",
899+
"@googletest//:gtest_main", # buildcleaner: keep
900+
"@highway//:hwy",
901+
"@highway//:hwy_test_util",
902+
],
903+
)
904+
882905
cc_test(
883906
name = "gemma_batch_bench",
884907
srcs = ["evals/gemma_batch_bench.cc"],

0 commit comments

Comments
 (0)