Skip to content

Commit

Permalink
fix(cli): append model-id instruction to build (#590)
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
  • Loading branch information
aarnphm authored Nov 8, 2023
1 parent d47b985 commit 0ea025d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openllm-python/src/openllm/cli/_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def start_cmd(ctx: click.Context, /, server_timeout: int, model_id: str | None,

def next_step(model_name: str, adapter_map: DictStrAny | None) -> None:
cmd_name = f'openllm build {model_name}'
if not llm._local: cmd_name += f' --model-id {llm.model_id}'
if adapter_map is not None:
cmd_name += ' ' + ' '.join([f'--adapter-id {s}' for s in [f'{p}:{name}' if name not in (None, 'default') else p for p, name in adapter_map.items()]])
if not openllm.utils.get_quiet_mode():
Expand Down

0 comments on commit 0ea025d

Please sign in to comment.