diff --git a/llama_stack/cli/stack/run.py b/llama_stack/cli/stack/run.py index e4337b8d0..d4e679e4b 100644 --- a/llama_stack/cli/stack/run.py +++ b/llama_stack/cli/stack/run.py @@ -79,12 +79,8 @@ class StackRun(Subcommand): def _run_stack_run_cmd(self, args: argparse.Namespace) -> None: import yaml - from llama_stack.distribution.build import ImageType from llama_stack.distribution.configure import parse_and_maybe_upgrade_config - from llama_stack.distribution.utils.config_dirs import ( - BUILDS_BASE_DIR, - DISTRIBS_BASE_DIR, - ) + from llama_stack.distribution.utils.config_dirs import DISTRIBS_BASE_DIR from llama_stack.distribution.utils.exec import formulate_run_args, run_with_pty config_file = Path(args.config) @@ -97,14 +93,6 @@ class StackRun(Subcommand): if config_file.exists(): template_name = args.config - if not config_file.exists() and not has_yaml_suffix: - # check if it's a build config saved to conda dir - config_file = Path(BUILDS_BASE_DIR / ImageType.conda.value / f"{args.config}-run.yaml") - - if not config_file.exists() and not has_yaml_suffix: - # check if it's a build config saved to container dir - config_file = Path(BUILDS_BASE_DIR / ImageType.container.value / f"{args.config}-run.yaml") - if not config_file.exists() and not has_yaml_suffix: # check if it's a build config saved to ~/.llama dir config_file = Path(DISTRIBS_BASE_DIR / f"llamastack-{args.config}" / f"{args.config}-run.yaml") diff --git a/llama_stack/distribution/utils/config_dirs.py b/llama_stack/distribution/utils/config_dirs.py index e512c3576..9b9a7ceb3 100644 --- a/llama_stack/distribution/utils/config_dirs.py +++ b/llama_stack/distribution/utils/config_dirs.py @@ -13,6 +13,4 @@ DISTRIBS_BASE_DIR = LLAMA_STACK_CONFIG_DIR / "distributions" DEFAULT_CHECKPOINT_DIR = LLAMA_STACK_CONFIG_DIR / "checkpoints" -BUILDS_BASE_DIR = LLAMA_STACK_CONFIG_DIR / "builds" - RUNTIME_BASE_DIR = LLAMA_STACK_CONFIG_DIR / "runtime"