Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perf megablox #694

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
MantaRay
  • Loading branch information
RissyRan committed Jun 19, 2024
commit 5823a14a4617ec6c2c1342acae42da39c9b82a4b
4 changes: 2 additions & 2 deletions MaxText/layers/linears.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ def unpermute(self, intermediate, sorted_selected_experts, weights):

def call_gmm(self, inputs, gate_logits, config, w0_kernel, w1_kernel, wo_kernel):
# TODO(ranran): update the static default tile_size
tile_size = (512, 512, 512)
# tile_size = None
# tile_size = (512, 512, 512)
tile_size = None
# replicated_sharding = jax.sharding.NamedSharding(self.mesh, PartitionSpec(None))

def gmm(inputs, kernel, group_sizes):
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ transformers
git+https://github.com/mlperf/logging.git
google-jetstream
jsonlines
google-cloud-aiplatform==1.50.0
shapely==1.8.5.post1
Loading