mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Informative 2 (#34154)
* Informative * style * Informative 2 * Apply suggestions from code review Co-authored-by: lewtun <lewis.c.tunstall@gmail.com> --------- Co-authored-by: lewtun <lewis.c.tunstall@gmail.com>
This commit is contained in:
parent
0437d6cd03
commit
e95ea479ee
@ -704,7 +704,7 @@ if __name__ == "__main__":
|
||||
parser.add_argument(
|
||||
"--src",
|
||||
type=str,
|
||||
help="path to marian model sub dir. yaml.load will be used to load the configuration file, please be weary of which file you're loading.",
|
||||
help="path to marian model sub dir. yaml.load will be used to load the configuration file, please be wary of which file you're loading.",
|
||||
default="en-de",
|
||||
)
|
||||
parser.add_argument("--dest", type=str, default=None, help="Path to the output PyTorch model.")
|
||||
|
@ -641,7 +641,8 @@ if __name__ == "__main__":
|
||||
type=Path,
|
||||
help=(
|
||||
"A directory containing the model's checkpoints. The directory has to have the following structure:"
|
||||
" <DIR_NAME>/<DATASET_NAME>/<CONFIG_NAME>.pkl"
|
||||
" <DIR_NAME>/<DATASET_NAME>/<CONFIG_NAME>.pkl\n"
|
||||
"Given the files are in the pickle format, please be wary of passing it files you trust."
|
||||
),
|
||||
)
|
||||
parser.add_argument(
|
||||
|
@ -318,7 +318,7 @@ if __name__ == "__main__":
|
||||
"--orig_config_path",
|
||||
required=True,
|
||||
type=str,
|
||||
help="Path to the original config file. yaml.load will be used to load the file, please be weary of which file you're loading.",
|
||||
help="Path to the original config file. yaml.load will be used to load the file, please be wary of which file you're loading.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--pytorch_dump_folder_path", required=True, type=str, help="Path to the output PyTorch model directory."
|
||||
|
@ -202,7 +202,12 @@ if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser()
|
||||
# Required parameters
|
||||
parser.add_argument(
|
||||
"--trax_model_pkl_path", default=None, type=str, required=True, help="Path to the TensorFlow checkpoint path."
|
||||
"--trax_model_pkl_path",
|
||||
default=None,
|
||||
type=str,
|
||||
required=True,
|
||||
help="Path to the TensorFlow checkpoint path.\n"
|
||||
"Given the files are in the pickle format, please be wary of passing it files you trust.",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--config_file",
|
||||
|
Loading…
Reference in New Issue
Block a user