mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-25 01:41:19 +08:00
fix max tokens (#275)
This commit is contained in:
parent
7cfda327fd
commit
841c8f7b30
@ -23,10 +23,11 @@ def build_parser():
|
|||||||
)
|
)
|
||||||
# Generation args
|
# Generation args
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--num-tokens", "-n", type=int, default=100, help="How many tokens to generate"
|
"--max-tokens",
|
||||||
)
|
"-m",
|
||||||
parser.add_argument(
|
type=int,
|
||||||
"--write-every", type=int, default=1, help="After how many tokens to detokenize"
|
default=100,
|
||||||
|
help="The maximum number of tokens to generate",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--temp", type=float, default=0.8, help="The sampling temperature"
|
"--temp", type=float, default=0.8, help="The sampling temperature"
|
||||||
|
Loading…
Reference in New Issue
Block a user