From e83ce367800e1491236a1f67ae89db042ca49c90 Mon Sep 17 00:00:00 2001 From: Dinesh Yeduguru Date: Fri, 25 Oct 2024 11:03:05 -0700 Subject: [PATCH] fix precommit hook ci failure --- distributions/vllm/build.yaml | 2 +- llama_stack/distribution/build.py | 7 ++++--- .../inference/quantization/scripts/build_conda.sh | 6 ++++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/distributions/vllm/build.yaml b/distributions/vllm/build.yaml index f41352eb1..814fafd32 100644 --- a/distributions/vllm/build.yaml +++ b/distributions/vllm/build.yaml @@ -7,4 +7,4 @@ distribution_spec: safety: meta-reference agents: meta-reference telemetry: meta-reference -image_type: conda \ No newline at end of file +image_type: conda diff --git a/llama_stack/distribution/build.py b/llama_stack/distribution/build.py index 13c545723..e3a9d9186 100644 --- a/llama_stack/distribution/build.py +++ b/llama_stack/distribution/build.py @@ -8,18 +8,19 @@ from enum import Enum from typing import List, Optional import pkg_resources - -from llama_stack.distribution.utils.exec import run_with_pty from pydantic import BaseModel from termcolor import cprint +from llama_stack.distribution.utils.exec import run_with_pty + from llama_stack.distribution.datatypes import * # noqa: F403 from pathlib import Path -from llama_stack.distribution.utils.config_dirs import BUILDS_BASE_DIR from llama_stack.distribution.distribution import get_provider_registry +from llama_stack.distribution.utils.config_dirs import BUILDS_BASE_DIR + # These are the dependencies needed by the distribution server. # `llama-stack` is automatically installed by the installation script. diff --git a/llama_stack/providers/impls/meta_reference/inference/quantization/scripts/build_conda.sh b/llama_stack/providers/impls/meta_reference/inference/quantization/scripts/build_conda.sh index d3028f8e8..ae0ed0bac 100644 --- a/llama_stack/providers/impls/meta_reference/inference/quantization/scripts/build_conda.sh +++ b/llama_stack/providers/impls/meta_reference/inference/quantization/scripts/build_conda.sh @@ -1,5 +1,11 @@ #!/bin/bash +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the terms described in the LICENSE file in +# the root directory of this source tree. + if [[ $# -ne 1 ]]; then echo "Error: Please provide the name of CONDA environment you wish to create" exit 1