Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 698671368
  • Loading branch information
Martin Huschenbett authored and The gemma Authors committed Nov 21, 2024
1 parent 91c3739 commit 06364f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gemma/sampler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class SamplerTest(absltest.TestCase):
def test_samples(self):
vocab = MockVocab()

transformer_config = transformer_lib.TransformerConfig(
transformer_config = transformer_lib.TransformerConfig( # pytype: disable=wrong-arg-types
num_layers=1,
num_embed=vocab.GetPieceSize(),
embed_dim=768,
Expand Down Expand Up @@ -112,7 +112,7 @@ def test_samples(self):

def test_forbidden_tokens(self):
vocab = MockVocab()
transformer_config = transformer_lib.TransformerConfig(
transformer_config = transformer_lib.TransformerConfig( # pytype: disable=wrong-arg-types
num_layers=1,
num_embed=vocab.GetPieceSize(),
embed_dim=32,
Expand Down Expand Up @@ -168,7 +168,7 @@ def test_forbidden_tokens(self):

def test_forward_equivalence(self):
vocab = MockVocab()
transformer_config = transformer_lib.TransformerConfig(
transformer_config = transformer_lib.TransformerConfig( # pytype: disable=wrong-arg-types
num_layers=2,
num_embed=vocab.GetPieceSize(),
embed_dim=32,
Expand Down Expand Up @@ -228,7 +228,7 @@ def test_forward_equivalence(self):

def test_sampler_init_sample_state(self):
vocab = MockVocab()
transformer_config = transformer_lib.TransformerConfig(
transformer_config = transformer_lib.TransformerConfig( # pytype: disable=wrong-arg-types
num_layers=0,
num_embed=vocab.GetPieceSize(),
embed_dim=32,
Expand Down Expand Up @@ -272,7 +272,7 @@ def test_sampler_init_sample_state(self):

def test_sampler_mask_tokens_after_eos_ids(self):
vocab = MockVocab()
transformer_config = transformer_lib.TransformerConfig(
transformer_config = transformer_lib.TransformerConfig( # pytype: disable=wrong-arg-types
num_layers=0,
num_embed=vocab.GetPieceSize(),
embed_dim=32,
Expand Down

0 comments on commit 06364f7

Please sign in to comment.