diff --git a/examples/bentoml-demo/bentofile.yaml b/examples/bentoml-demo/bentofile.yaml index 12902394..181a5d9d 100644 --- a/examples/bentoml-demo/bentofile.yaml +++ b/examples/bentoml-demo/bentofile.yaml @@ -1,17 +1,3 @@ -# Copyright 2023 BentoML Team. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - service: "service:svc" include: - "*.py" diff --git a/examples/langchain-tools-demo/bentofile.yaml b/examples/langchain-tools-demo/bentofile.yaml index 5d995ea7..cb1ed914 100644 --- a/examples/langchain-tools-demo/bentofile.yaml +++ b/examples/langchain-tools-demo/bentofile.yaml @@ -1,17 +1,3 @@ -# Copyright 2023 BentoML Team. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - service: "service:svc" include: - "*.py" diff --git a/examples/langchain-tools-demo/bentoml_configuration.yaml b/examples/langchain-tools-demo/bentoml_configuration.yaml index e1c2e537..e04c772e 100644 --- a/examples/langchain-tools-demo/bentoml_configuration.yaml +++ b/examples/langchain-tools-demo/bentoml_configuration.yaml @@ -1,17 +1,3 @@ -# Copyright 2023 BentoML Team. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - runners: llm-dolly-v2-runner: resources: diff --git a/openllm-python/src/openllm/bundle/oci/Dockerfile b/openllm-python/src/openllm/bundle/oci/Dockerfile index 17a8ecd0..6da9e17e 100644 --- a/openllm-python/src/openllm/bundle/oci/Dockerfile +++ b/openllm-python/src/openllm/bundle/oci/Dockerfile @@ -1,18 +1,4 @@ # syntax=docker/dockerfile-upstream:master -# Copyright 2023 BentoML Team. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - # Adapted from: https://github.com/pytorch/pytorch/blob/master/Dockerfile FROM debian:bullseye-slim as pytorch-install diff --git a/openllm-python/src/openllm/client/runtimes/base.py b/openllm-python/src/openllm/client/runtimes/base.py index 75fa46c4..52a85285 100644 --- a/openllm-python/src/openllm/client/runtimes/base.py +++ b/openllm-python/src/openllm/client/runtimes/base.py @@ -13,7 +13,7 @@ T_co = t.TypeVar("T_co", covariant=True) if t.TYPE_CHECKING: import transformers from openllm._typing_compat import DictStrAny, LiteralRuntime -transformers = openllm.utils.LazyLoader("transformers", globals(), "transformers") # noqa: F811 +else: transformers = openllm.utils.LazyLoader("transformers", globals(), "transformers") class AnnotatedClient(t.Protocol[T_co]): server_url: str diff --git a/openllm-python/src/openllm/playground/_meta.yml b/openllm-python/src/openllm/playground/_meta.yml index e314eb32..192aa3c3 100644 --- a/openllm-python/src/openllm/playground/_meta.yml +++ b/openllm-python/src/openllm/playground/_meta.yml @@ -1,17 +1,3 @@ -# Copyright 2023 BentoML Team. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - features: description: | ## General introduction to OpenLLM. diff --git a/pyproject.toml b/pyproject.toml index 874034b2..c0aee534 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -369,11 +369,15 @@ exclude = [ "openllm-python/src/openllm/utils/dummy_*.py", "openllm-python/src/openllm/_typing_compat.py", "openllm-python/tests", + "cz.py", + "hatch_build.py", "tools", "examples", + "typings", ] -include = ["openllm-python/src/openllm"] +executionEnvironments = [{ root = "openllm-python/src" }] pythonVersion = "3.12" +enableExperimentalFeatures = true reportMissingImports = "warning" reportMissingTypeStubs = false reportPrivateUsage = "warning" diff --git a/typings/cuda/cuda.pyi b/typings/cuda/cuda.pyi index 07ff7ab5..16d5ea39 100644 --- a/typings/cuda/cuda.pyi +++ b/typings/cuda/cuda.pyi @@ -1,17 +1,3 @@ -# Copyright 2023 BentoML Team. All rights reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - from enum import Enum class CUresult(Enum):