help='Device mode for model inference, e.g., "cpu", "cuda", "cuda:0", "npu", "npu:0", "mps". Default is "cpu". Adapted only for the case where the backend is set to "pipeline". ',
help='Device mode for model inference, e.g., "cpu", "cuda", "cuda:0", "npu", "npu:0", "mps". Default is "cpu". Adapted only for the case where the backend is set to "pipeline". ',
default=None,
default=None,
)
)
@click.option(
'-r',
'--repo',
'model_source',
type=click.Choice(['huggingface','modelscope']),
help="""
The source of the model repository. Default is 'huggingface'.