usage: ct2-opennmt-tf-converter [-h] [--config CONFIG] [--auto_config] [--model_path MODEL_PATH]
[--model_type MODEL_TYPE] [--src_vocab SRC_VOCAB]
[--tgt_vocab TGT_VOCAB] --output_dir OUTPUT_DIR
[--vocab_mapping VOCAB_MAPPING]
[--quantization {int8,int8_float32,int8_float16,int8_bfloat16,int16,float16,bfloat16,float32}]
[--force]
options:
-h, --help show this help message and exit
--config CONFIG Path to the YAML configuration. (default: None)
--auto_config Use the model automatic configuration values. (default: False)
--model_path MODEL_PATH
Path to the checkpoint or checkpoint directory to load. If not set, the
latest checkpoint from the model directory is loaded. (default: None)
--model_type MODEL_TYPE
If the model instance cannot be resolved from the model directory, this
argument can be set to either the name of the model in the catalog or the
path to the model configuration. (default: None)
--src_vocab SRC_VOCAB
Path to the source vocabulary (required if no configuration is set).
(default: None)
--tgt_vocab TGT_VOCAB
Path to the target vocabulary (required if no configuration is set).
(default: None)
--output_dir OUTPUT_DIR
Output model directory. (default: None)
--vocab_mapping VOCAB_MAPPING
Vocabulary mapping file (optional). (default: None)
--quantization {int8,int8_float32,int8_float16,int8_bfloat16,int16,float16,bfloat16,float32}
Weight quantization type. (default: None)
--force Force conversion even if the output directory already exists. (default:
False)
Options (11)
| Option | Description | Source |
|---|
-h, --help | show this help message and exit | help |
--config CONFIG | Path to the YAML configuration. | help |
--auto_config | Use the model automatic configuration values. | help |
--model_path MODEL_PATH | Path to the checkpoint or checkpoint directory to load. | help |
--model_type MODEL_TYPE | If the model instance cannot be resolved from the model directory, this argument can be set to either the name of the model in the catalog or the path to the model configuration. | help |
--src_vocab SRC_VOCAB | Path to the source vocabulary (required if no configuration is set). | help |
--tgt_vocab TGT_VOCAB | Path to the target vocabulary (required if no configuration is set). | help |
--output_dir OUTPUT_DIR | Output model directory. | help |
--vocab_mapping VOCAB_MAPPING | Vocabulary mapping file (optional). | help |
--quantization int8 | Weight quantization type. | help |
--force | Force conversion even if the output directory already exists. | help |
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.