From a93e3bca1229ca7239281630fa04b7fd121e1a95 Mon Sep 17 00:00:00 2001 From: tharapalanivel <130496890+tharapalanivel@users.noreply.github.com> Date: Tue, 5 Mar 2024 13:11:42 -0800 Subject: [PATCH] Adding copyright notices (#77) Signed-off-by: Thara Palanivel <130496890+tharapalanivel@users.noreply.github.com> --- build/Dockerfile | 14 ++++++++++++++ build/launch_training.py | 2 +- scripts/run_inference.py | 14 ++++++++++++++ setup.py | 14 ++++++++++++++ tests/utils/test_data_type_utils.py | 14 ++++++++++++++ tuning/__init__.py | 13 +++++++++++++ tuning/aim_loader.py | 14 ++++++++++++++ tuning/config/__init__.py | 13 +++++++++++++ tuning/config/configs.py | 14 ++++++++++++++ tuning/config/peft_config.py | 14 ++++++++++++++ tuning/data/__init__.py | 13 +++++++++++++ tuning/data/tokenizer_data_utils.py | 14 ++++++++++++++ tuning/sft_trainer.py | 14 ++++++++++++++ tuning/utils/__init__.py | 13 +++++++++++++ tuning/utils/config_utils.py | 14 ++++++++++++++ tuning/utils/data_type_utils.py | 14 ++++++++++++++ tuning/utils/merge_model_utils.py | 14 ++++++++++++++ 17 files changed, 221 insertions(+), 1 deletion(-) diff --git a/build/Dockerfile b/build/Dockerfile index d904ea0e..b41f5ff7 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,3 +1,17 @@ +# Copyright The IBM Tuning Team +# +# 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 registry.access.redhat.com/ubi9/ubi AS release ARG CUDA_VERSION=11.8.0 diff --git a/build/launch_training.py b/build/launch_training.py index 374e8402..05906dc9 100644 --- a/build/launch_training.py +++ b/build/launch_training.py @@ -1,4 +1,4 @@ -# Copyright The SFT Trainer Authors +# Copyright The IBM Tuning Team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/scripts/run_inference.py b/scripts/run_inference.py index 989aaa8c..b57f6fca 100644 --- a/scripts/run_inference.py +++ b/scripts/run_inference.py @@ -1,3 +1,16 @@ +# Copyright The IBM Tuning Team +# +# 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. """CLI for running loading a tuned model and running one or more inference calls on it. NOTE: For the moment, this script is intentionally written to contain all dependencies for two @@ -8,6 +21,7 @@ If these things change in the future, we should consider breaking it up. """ + # Standard import argparse import json diff --git a/setup.py b/setup.py index ae71369c..1fd2df90 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,17 @@ +# Copyright The IBM Tuning Team +# +# 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. + # Third Party from setuptools import find_packages, setup diff --git a/tests/utils/test_data_type_utils.py b/tests/utils/test_data_type_utils.py index 87c0005b..6a3c5bfd 100644 --- a/tests/utils/test_data_type_utils.py +++ b/tests/utils/test_data_type_utils.py @@ -1,3 +1,17 @@ +# Copyright The IBM Tuning Team +# +# 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. + # SPDX-License-Identifier: Apache-2.0 # https://spdx.dev/learn/handling-license-info/ diff --git a/tuning/__init__.py b/tuning/__init__.py index e69de29b..a211ad5c 100644 --- a/tuning/__init__.py +++ b/tuning/__init__.py @@ -0,0 +1,13 @@ +# Copyright The IBM Tuning Team +# +# 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. diff --git a/tuning/aim_loader.py b/tuning/aim_loader.py index 6ee617a4..b1a86f5f 100644 --- a/tuning/aim_loader.py +++ b/tuning/aim_loader.py @@ -1,3 +1,17 @@ +# Copyright The IBM Tuning Team +# +# 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. + # Standard import os diff --git a/tuning/config/__init__.py b/tuning/config/__init__.py index e69de29b..a211ad5c 100644 --- a/tuning/config/__init__.py +++ b/tuning/config/__init__.py @@ -0,0 +1,13 @@ +# Copyright The IBM Tuning Team +# +# 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. diff --git a/tuning/config/configs.py b/tuning/config/configs.py index 0b0a8fb6..daff0101 100644 --- a/tuning/config/configs.py +++ b/tuning/config/configs.py @@ -1,3 +1,17 @@ +# Copyright The IBM Tuning Team +# +# 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. + # Standard from dataclasses import dataclass, field from typing import Dict, Optional, Union diff --git a/tuning/config/peft_config.py b/tuning/config/peft_config.py index a3d30c76..a7ff6dbd 100644 --- a/tuning/config/peft_config.py +++ b/tuning/config/peft_config.py @@ -1,3 +1,17 @@ +# Copyright The IBM Tuning Team +# +# 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. + # Standard from dataclasses import dataclass, field from typing import List diff --git a/tuning/data/__init__.py b/tuning/data/__init__.py index e69de29b..a211ad5c 100644 --- a/tuning/data/__init__.py +++ b/tuning/data/__init__.py @@ -0,0 +1,13 @@ +# Copyright The IBM Tuning Team +# +# 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. diff --git a/tuning/data/tokenizer_data_utils.py b/tuning/data/tokenizer_data_utils.py index 3a8a288f..193e3af0 100644 --- a/tuning/data/tokenizer_data_utils.py +++ b/tuning/data/tokenizer_data_utils.py @@ -1,3 +1,17 @@ +# Copyright The IBM Tuning Team +# +# 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. + # Standard from typing import Dict, Sequence import copy diff --git a/tuning/sft_trainer.py b/tuning/sft_trainer.py index ce9e323e..7e605eaa 100644 --- a/tuning/sft_trainer.py +++ b/tuning/sft_trainer.py @@ -1,3 +1,17 @@ +# Copyright The IBM Tuning Team +# +# 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. + # Standard from datetime import datetime from typing import Optional, Union diff --git a/tuning/utils/__init__.py b/tuning/utils/__init__.py index e69de29b..a211ad5c 100644 --- a/tuning/utils/__init__.py +++ b/tuning/utils/__init__.py @@ -0,0 +1,13 @@ +# Copyright The IBM Tuning Team +# +# 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. diff --git a/tuning/utils/config_utils.py b/tuning/utils/config_utils.py index 58896c1f..0674b209 100644 --- a/tuning/utils/config_utils.py +++ b/tuning/utils/config_utils.py @@ -1,3 +1,17 @@ +# Copyright The IBM Tuning Team +# +# 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. + # Standard from dataclasses import asdict diff --git a/tuning/utils/data_type_utils.py b/tuning/utils/data_type_utils.py index a895c3a3..ea82d9af 100644 --- a/tuning/utils/data_type_utils.py +++ b/tuning/utils/data_type_utils.py @@ -1,3 +1,17 @@ +# Copyright The IBM Tuning Team +# +# 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. + # Standard from typing import Union diff --git a/tuning/utils/merge_model_utils.py b/tuning/utils/merge_model_utils.py index a8a41fec..3b0b2f6e 100644 --- a/tuning/utils/merge_model_utils.py +++ b/tuning/utils/merge_model_utils.py @@ -1,3 +1,17 @@ +# Copyright The IBM Tuning Team +# +# 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. + # Standard from typing import Union import argparse