Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -443,11 +443,11 @@ Play with the parameters below to understand how beam search decoding works!
|
|
443 |
|
444 |
#### <span style='color:var(--primary-500)!important'>Parameters:</span>
|
445 |
- **Sentence to decode from** (`inputs`): the input sequence to your decoder.
|
446 |
-
- **Number of steps** (`max_new_tokens`): the number of tokens to generate
|
447 |
-
- **Number of beams** (`num_beams`): the number of beams to use
|
448 |
- **Length penalty** (`length_penalty`): the length penalty to apply to outputs. `length_penalty` > 0.0 promotes longer sequences, while `length_penalty` < 0.0 encourages shorter sequences.
|
449 |
This parameter will not impact the beam search paths, but only influence the choice of sequences in the end towards longer or shorter sequences.
|
450 |
-
- **Number of return sequences** (`num_return_sequences`): the number of sequences to be returned at the end of generation. Should be `<= num_beams
|
451 |
"""
|
452 |
)
|
453 |
text = gr.Textbox(
|
|
|
443 |
|
444 |
#### <span style='color:var(--primary-500)!important'>Parameters:</span>
|
445 |
- **Sentence to decode from** (`inputs`): the input sequence to your decoder.
|
446 |
+
- **Number of steps** (`max_new_tokens`): the number of tokens to generate.
|
447 |
+
- **Number of beams** (`num_beams`): the number of beams to use.
|
448 |
- **Length penalty** (`length_penalty`): the length penalty to apply to outputs. `length_penalty` > 0.0 promotes longer sequences, while `length_penalty` < 0.0 encourages shorter sequences.
|
449 |
This parameter will not impact the beam search paths, but only influence the choice of sequences in the end towards longer or shorter sequences.
|
450 |
+
- **Number of return sequences** (`num_return_sequences`): the number of sequences to be returned at the end of generation. Should be `<= num_beams`.
|
451 |
"""
|
452 |
)
|
453 |
text = gr.Textbox(
|