Skip to content

Commit

Permalink
[djl-convert] Fix huggingface converter (#3505)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 authored Oct 24, 2024
1 parent 77f4226 commit 0bb604f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def save_onnx_model(self, model_info, task: str, args: Namespace,
sys.argv.extend(["--dtype", args.dtype])
if args.trust_remote_code:
sys.argv.append("--trust-remote-code")
if os.path.exists(model_id):
if task:
sys.argv.extend(["--task", task])
sys.argv.append(temp_dir)

Expand Down

0 comments on commit 0bb604f

Please sign in to comment.