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

Automated Code Change #58

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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