Skip to content

Move generate compilation to the task model #804

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

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Minor fixes
  • Loading branch information
mattdangerw committed Mar 10, 2023
commit d885a009a4801d965a5dea57e9490240922e6162
2 changes: 1 addition & 1 deletion keras_nlp/models/gpt2/gpt2_causal_lm_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def test_gpt2_causal_lm_fit_no_preprocessing(self, jit_compile):
@parameterized.named_parameters(
("jit_compile_false", False), ("jit_compile_true", True)
)
def test_compilation(self, jit_compile):
def test_generate(self, jit_compile):
# Tensor input.
self.causal_lm.compile(jit_compile=jit_compile)
self.causal_lm.generate(
Expand Down
2 changes: 1 addition & 1 deletion keras_nlp/samplers/beam_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def __call__(
self,
next,
prompt,
index=0,
state=None,
index=0,
mask=None,
end_token_id=None,
):
Expand Down