From 8f9964f46b91f517f07d6aa3f0b605ed47ab808e Mon Sep 17 00:00:00 2001 From: Matthew Farrellee Date: Fri, 16 May 2025 17:32:02 -0400 Subject: [PATCH] fix: update llama stack build --run to use new start_stack.sh signature (#2191) # What does this PR do? fixes #2188 ## Test Plan `INFERENCE_MODEL=meta-llama/Llama-3.3-70B-Instruct llama stack build --image-name ollama --image-type conda --template ollama --run` without error --- llama_stack/cli/stack/_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama_stack/cli/stack/_build.py b/llama_stack/cli/stack/_build.py index 37147e905..c2a19c070 100644 --- a/llama_stack/cli/stack/_build.py +++ b/llama_stack/cli/stack/_build.py @@ -254,7 +254,7 @@ def run_stack_build_command(args: argparse.Namespace) -> None: if not os.path.exists(str(config.external_providers_dir)): os.makedirs(str(config.external_providers_dir), exist_ok=True) run_args = formulate_run_args(args.image_type, args.image_name, config, args.template) - run_args.extend([run_config, str(os.getenv("LLAMA_STACK_PORT", 8321))]) + run_args.extend([str(os.getenv("LLAMA_STACK_PORT", 8321)), "--config", run_config]) run_command(run_args)