-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix GemmaBackbone.get_layout_map + test (#1669)
* fix to default GemmaBackbone.get_layout_map() to use fixed regexes as per keras-team/keras#19496 (comment) * fix to default GemmaBackbone.get_layout_map() to use fixed regexes as per keras-team/keras#19496 (comment) * Also fixing forgotten ffw_gating_2 in GemmaBackbone.get_layout_map. The sharding spec ("batch", "model") is the one that provides the best training performance. ("batch", "model") and (None, None) are slower (the first one by 40%, the second by 2%). Fixing test too, including typo ffw_linearl => ffw_linear * changed test_architecture_characteristics test to follow the 4->8 heads change necessary for the test to work on TPUs. Also fixed formatting. * Update gemma_backbone_test.py Better test messages --------- Co-authored-by: Matt Watson <1389937+mattdangerw@users.noreply.github.com>
- Loading branch information
1 parent
e0efbc8
commit b58b56e
Showing
2 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters