The changes made in this commit is causing the following issues.
Error logs
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/venv/lib/python3.9/site-packages/ts/llm_launcher.py", line 286, in
main(args)
File "/home/venv/lib/python3.9/site-packages/ts/llm_launcher.py", line 174, in main
with create_mar_file(args, model_snapshot_path):
UnboundLocalError: local variable 'model_snapshot_path' referenced before assignment
🐛 Describe the bug
The changes made in this commit is causing the following issues.
Error logs
Traceback (most recent call last): File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/venv/lib/python3.9/site-packages/ts/llm_launcher.py", line 286, in
main(args)
File "/home/venv/lib/python3.9/site-packages/ts/llm_launcher.py", line 174, in main
with create_mar_file(args, model_snapshot_path):
UnboundLocalError: local variable 'model_snapshot_path' referenced before assignment
Installation instructions
Model Packaging
I cloned the torchserve repo as is.
config.properties
No response
Versions
Repro instructions
Possible Solution
model_snapshot_path
should exist forvllm
runtime: https://github.com/pytorch/serve/blob/6bdb1baf7254c2bfc40a6669b0d922c08ba5f37a/ts/llm_launcher.py#L171-L174