Skip to content

Commit

Permalink
fix minor typos on keras_hub/getting_started.py (#2027)
Browse files Browse the repository at this point in the history
  • Loading branch information
JyotinderSingh authored Jan 13, 2025
1 parent cf019db commit d780ebb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guides/keras_hub/getting_started.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@
tokens vary per model and can be hard to track, the [Kaggle model
page](https://www.kaggle.com/models/keras/gemma2/) will contain details such as this.
`CausalLM` come with an extra function called `generate()` which can be used generate
predict tokens in a loop and decode them as a string.
`CausalLM` comes with an extra function called `generate()` which can be used generate
predicted tokens in a loop and decode them as a string.
"""

template = "<start_of_turn>user\n{question}<end_of_turn>\n<start_of_turn>model"
Expand All @@ -285,7 +285,7 @@
"""
Note that on the Jax and TensorFlow backends, this `generate()` function is compiled, so
the second time you call for the same `max_length`, it will actually be much faster.
KerasHub will use Jax an TensorFlow to compute an optimized version of the generation
KerasHub will use Jax and TensorFlow to compute an optimized version of the generation
computational graph that can be reused.
"""

Expand Down

0 comments on commit d780ebb

Please sign in to comment.