number of threads can be set

This commit is contained in:
Saifeddine ALOUI 2023-04-16 21:33:34 +02:00
parent f95a0c7930
commit 7c17c01ea5

6
app.py
View File

@ -407,6 +407,12 @@ if __name__ == "__main__":
default=None,
help="Number of tokens to predict at each step.",
)
parser.add_argument(
"--n_threads",
type=int,
default=None,
help="Number of threads to use.",
)
parser.add_argument(
"--top_k", type=int, default=None, help="Value for the top-k sampling."
)