Skip to content

Commit

Permalink
global scale
Browse files Browse the repository at this point in the history
  • Loading branch information
RissyRan committed Jun 24, 2024
1 parent d520ced commit 9dd62c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MaxText/megablox/gmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,8 @@ def out_transform_indices(n_i, k_i, grid_id, group_metadata, group_offset):

def _gmm_tiling_lut(m: int, k: int, n: int) -> tuple[int, int, int] | None:
"""Get the best known tiling configuration for the given problem size."""
# return (512, 1024, 1024)

tiling_lut = {
# "14336_4096": (4096, 128, 128), # m=49152 81.81%
# "4096_14336": (4096, 128, 128), # m=49152 77.70%
Expand All @@ -819,6 +821,8 @@ def _gmm_tiling_lut(m: int, k: int, n: int) -> tuple[int, int, int] | None:

def _tgmm_tiling_lut(m: int, k: int, n: int) -> tuple[int, int, int] | None:
"""Get the best known tiling configuration for the given problem size."""
# return (128, 896, 2048)

tiling_lut = {
# "14336_4096": (4096, 128, 128), # m=49152 80.96%
# "4096_14336": (4096, 128, 128), # m=49152 79.80%
Expand Down

0 comments on commit 9dd62c6

Please sign in to comment.