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 #4393

Merged
merged 1 commit into from
Nov 26, 2024
Merged
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 examples/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=6,
num_embed=vocab.GetPieceSize(),
embed_dim=768,
Expand Down Expand Up @@ -104,7 +104,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=0,
num_embed=vocab.GetPieceSize(),
embed_dim=32,
Expand Down Expand Up @@ -152,7 +152,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 @@ -211,7 +211,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 @@ -247,7 +247,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
Loading