"mmdet3d/vscode:/vscode.git/clone" did not exist on "97e4ed42ee3c5f5d43b1280d2eb0384688a49e3e"
Commit 3754ce00 authored by yoach@huggingface.co's avatar yoach@huggingface.co
Browse files

add temperature to args

parent 1652c372
......@@ -257,6 +257,10 @@ class ModelArguments:
default=False,
metadata={"help": "Whether to do sampling or greedy decoding."},
)
temperature: float = field(
default=0.4,
metadata={"help": "Temperature if sampling."},
)
max_length: int = field(
default=1500, # TODO
metadata={"help": "Whether to do sampling or greedy decoding."},
......@@ -756,6 +760,7 @@ def main():
"weight_decay": training_args.weight_decay,
"adam_beta1": training_args.adam_beta1,
"adam_beta2": training_args.adam_beta2,
"temperature": model_args.temperature,
})
......@@ -1310,6 +1315,7 @@ def main():
gen_kwargs = {
"do_sample": model_args.do_sample,
"temperature": model_args.temperature,
"max_length": model_args.max_length,
}
# TODO: add max_length
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment