serve icon indicating copy to clipboard operation
serve copied to clipboard

when to use ArgumentParser, raise "unrecognized arguments: --sock-type unix --sock-name /tmp/.ts.sock.9000"

Open james-joobs opened this issue 6 months ago • 3 comments

🐛 Describe the bug

  1. when to use ArgumentParser in custom handler from Basehandler, raise an error "model_service_worker.py: error: unrecognized arguments: --sock-type unix --sock-name /tmp/.ts.sock.9000"

Error logs

model_service_worker.py: error: unrecognized arguments: --sock-type unix --sock-name /tmp/.ts.sock.9000

Installation instructions

python ./ts_scripts/install_dependencies.py --cuda=cu121

Model Packaging

Torchserve --start --ncs

config.properties

Nothing

Versions

torch 2.3.0+cu121 torch-model-archiver 0.11.1 torch-workflow-archiver 0.2.14 torchaudio 2.3.0+cu121 torchmetrics 1.4.1 torchserve 0.11.1

Repro instructions

torch --start

Possible Solution

To do exception when to use dependencies to read Argparse in model_service_worker.py, there're nothing to except to call Argparse classes.

Or replace Argparse class in model_service_worker.py to passing in arguments with some variables

james-joobs avatar Aug 23 '24 02:08 james-joobs