Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[djl-import] Fixes missing trust-remote-code arg for import model zoo #3427

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ def converter_args():
parser.add_argument(
"--trust-remote-code",
action="store_true",
help=
"Allows to use custom code for the modeling hosted in the model repository. This option should only be set for repositories you trust and in which you have read the code, as it will execute on your local machine arbitrary code present in the model repository."
)
help="Allows to use custom code for the modeling hosted in the model"
" repository. This option should only be set for repositories you trust and in which"
" you have read the code, as it will execute on your local machine arbitrary code"
" present in the model repository.")

args = parser.parse_args()
if args.output_dir is None:
Expand Down Expand Up @@ -84,6 +85,13 @@ def importer_args():
help="Model category to convert",
)
group.add_argument("-m", "--model-name", help="Model name to convert")
parser.add_argument(
"--trust-remote-code",
action="store_true",
help="Allows to use custom code for the modeling hosted in the model"
" repository. This option should only be set for repositories you trust and in which"
" you have read the code, as it will execute on your local machine arbitrary code"
" present in the model repository.")

args = parser.parse_args()
if args.output_dir is None:
Expand Down
Loading