mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
lint
This commit is contained in:
parent
3ffe51052a
commit
0477b29ba9
1 changed files with 15 additions and 6 deletions
|
@ -69,14 +69,23 @@ class StackConfigure(Subcommand):
|
||||||
conda_dir = (
|
conda_dir = (
|
||||||
Path(os.getenv("CONDA_PREFIX")).parent / f"llamastack-{args.config}"
|
Path(os.getenv("CONDA_PREFIX")).parent / f"llamastack-{args.config}"
|
||||||
)
|
)
|
||||||
build_config_file = Path(conda_dir) / f"{args.config}-build.yaml"
|
else:
|
||||||
|
cprint(
|
||||||
|
"Cannot find CONDA_PREFIX. Trying default conda path ~/.conda/envs...",
|
||||||
|
color="green",
|
||||||
|
)
|
||||||
|
conda_dir = (
|
||||||
|
Path(os.path.expanduser("~/.conda/envs")) / f"llamastack-{args.config}"
|
||||||
|
)
|
||||||
|
|
||||||
if build_config_file.exists():
|
build_config_file = Path(conda_dir) / f"{args.config}-build.yaml"
|
||||||
with open(build_config_file, "r") as f:
|
|
||||||
build_config = BuildConfig(**yaml.safe_load(f))
|
|
||||||
|
|
||||||
self._configure_llama_distribution(build_config, args.output_dir)
|
if build_config_file.exists():
|
||||||
return
|
with open(build_config_file, "r") as f:
|
||||||
|
build_config = BuildConfig(**yaml.safe_load(f))
|
||||||
|
|
||||||
|
self._configure_llama_distribution(build_config, args.output_dir)
|
||||||
|
return
|
||||||
|
|
||||||
# if we get here, we need to try to find the docker image
|
# if we get here, we need to try to find the docker image
|
||||||
cprint(
|
cprint(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue