File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 272272tokens vary per model and can be hard to track, the [Kaggle model
273273page](https://www.kaggle.com/models/keras/gemma2/) will contain details such as this.
274274
275- `CausalLM` come with an extra function called `generate()` which can be used generate
276- predict tokens in a loop and decode them as a string.
275+ `CausalLM` comes with an extra function called `generate()` which can be used generate
276+ predicted tokens in a loop and decode them as a string.
277277"""
278278
279279template = "<start_of_turn>user\n {question}<end_of_turn>\n <start_of_turn>model"
285285"""
286286Note that on the Jax and TensorFlow backends, this `generate()` function is compiled, so
287287the second time you call for the same `max_length`, it will actually be much faster.
288- KerasHub will use Jax an TensorFlow to compute an optimized version of the generation
288+ KerasHub will use Jax and TensorFlow to compute an optimized version of the generation
289289computational graph that can be reused.
290290"""
291291
You can’t perform that action at this time.
0 commit comments