mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-12 04:50:39 +00:00
chore: remove unused build dir
Signed-off-by: reidliu <reid201711@gmail.com>
This commit is contained in:
parent
55668d3c5b
commit
42fb70319a
2 changed files with 1 additions and 15 deletions
|
@ -79,12 +79,8 @@ class StackRun(Subcommand):
|
||||||
def _run_stack_run_cmd(self, args: argparse.Namespace) -> None:
|
def _run_stack_run_cmd(self, args: argparse.Namespace) -> None:
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
from llama_stack.distribution.build import ImageType
|
|
||||||
from llama_stack.distribution.configure import parse_and_maybe_upgrade_config
|
from llama_stack.distribution.configure import parse_and_maybe_upgrade_config
|
||||||
from llama_stack.distribution.utils.config_dirs import (
|
from llama_stack.distribution.utils.config_dirs import DISTRIBS_BASE_DIR
|
||||||
BUILDS_BASE_DIR,
|
|
||||||
DISTRIBS_BASE_DIR,
|
|
||||||
)
|
|
||||||
from llama_stack.distribution.utils.exec import formulate_run_args, run_with_pty
|
from llama_stack.distribution.utils.exec import formulate_run_args, run_with_pty
|
||||||
|
|
||||||
config_file = Path(args.config)
|
config_file = Path(args.config)
|
||||||
|
@ -97,14 +93,6 @@ class StackRun(Subcommand):
|
||||||
if config_file.exists():
|
if config_file.exists():
|
||||||
template_name = args.config
|
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:
|
if not config_file.exists() and not has_yaml_suffix:
|
||||||
# check if it's a build config saved to ~/.llama dir
|
# 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")
|
config_file = Path(DISTRIBS_BASE_DIR / f"llamastack-{args.config}" / f"{args.config}-run.yaml")
|
||||||
|
|
|
@ -13,6 +13,4 @@ DISTRIBS_BASE_DIR = LLAMA_STACK_CONFIG_DIR / "distributions"
|
||||||
|
|
||||||
DEFAULT_CHECKPOINT_DIR = LLAMA_STACK_CONFIG_DIR / "checkpoints"
|
DEFAULT_CHECKPOINT_DIR = LLAMA_STACK_CONFIG_DIR / "checkpoints"
|
||||||
|
|
||||||
BUILDS_BASE_DIR = LLAMA_STACK_CONFIG_DIR / "builds"
|
|
||||||
|
|
||||||
RUNTIME_BASE_DIR = LLAMA_STACK_CONFIG_DIR / "runtime"
|
RUNTIME_BASE_DIR = LLAMA_STACK_CONFIG_DIR / "runtime"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue