diff --git a/mergekit/architecture.py b/mergekit/architecture.py index 08b66466..6e8492e8 100644 --- a/mergekit/architecture.py +++ b/mergekit/architecture.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/common.py b/mergekit/common.py index 908914d8..1bc3e713 100644 --- a/mergekit/common.py +++ b/mergekit/common.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/config.py b/mergekit/config.py index 66bf5f18..6391a5e1 100644 --- a/mergekit/config.py +++ b/mergekit/config.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/graph.py b/mergekit/graph.py index 8e702660..4a055a14 100644 --- a/mergekit/graph.py +++ b/mergekit/graph.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/io/__init__.py b/mergekit/io/__init__.py index 7277c603..bc9b2f0a 100644 --- a/mergekit/io/__init__.py +++ b/mergekit/io/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/io/lazy_tensor_loader.py b/mergekit/io/lazy_tensor_loader.py index 94931a08..8b945685 100644 --- a/mergekit/io/lazy_tensor_loader.py +++ b/mergekit/io/lazy_tensor_loader.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/io/lazy_unpickle.py b/mergekit/io/lazy_unpickle.py index 51c8f53b..a7b0905d 100644 --- a/mergekit/io/lazy_unpickle.py +++ b/mergekit/io/lazy_unpickle.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/io/loader.py b/mergekit/io/loader.py index d31b6a01..0f990166 100644 --- a/mergekit/io/loader.py +++ b/mergekit/io/loader.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/io/tensor_writer.py b/mergekit/io/tensor_writer.py index 9c346963..97a238da 100644 --- a/mergekit/io/tensor_writer.py +++ b/mergekit/io/tensor_writer.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/merge.py b/mergekit/merge.py index 3aaddcb6..09e5d744 100644 --- a/mergekit/merge.py +++ b/mergekit/merge.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/merge_methods/__init__.py b/mergekit/merge_methods/__init__.py index 8c47fcc2..b8df1b4c 100644 --- a/mergekit/merge_methods/__init__.py +++ b/mergekit/merge_methods/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/merge_methods/base.py b/mergekit/merge_methods/base.py index 549ca3d1..4a8bae18 100644 --- a/mergekit/merge_methods/base.py +++ b/mergekit/merge_methods/base.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/merge_methods/generalized_task_arithmetic.py b/mergekit/merge_methods/generalized_task_arithmetic.py index 77f66c56..ebaeee2b 100644 --- a/mergekit/merge_methods/generalized_task_arithmetic.py +++ b/mergekit/merge_methods/generalized_task_arithmetic.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/merge_methods/linear.py b/mergekit/merge_methods/linear.py index 7e268b06..4cc0660a 100644 --- a/mergekit/merge_methods/linear.py +++ b/mergekit/merge_methods/linear.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/merge_methods/passthrough.py b/mergekit/merge_methods/passthrough.py index d42a6b86..b5da48aa 100644 --- a/mergekit/merge_methods/passthrough.py +++ b/mergekit/merge_methods/passthrough.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/merge_methods/slerp.py b/mergekit/merge_methods/slerp.py index 46ff009e..1d72f4f2 100644 --- a/mergekit/merge_methods/slerp.py +++ b/mergekit/merge_methods/slerp.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/merge_methods/tokenizer_permute.py b/mergekit/merge_methods/tokenizer_permute.py index 81a1e477..ce154ed4 100644 --- a/mergekit/merge_methods/tokenizer_permute.py +++ b/mergekit/merge_methods/tokenizer_permute.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/plan.py b/mergekit/plan.py index c337b58a..2c26d2f8 100644 --- a/mergekit/plan.py +++ b/mergekit/plan.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/scripts/bakllama.py b/mergekit/scripts/bakllama.py index 140c023d..3e7ef8ac 100644 --- a/mergekit/scripts/bakllama.py +++ b/mergekit/scripts/bakllama.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/scripts/layershuffle.py b/mergekit/scripts/layershuffle.py index c0e48fd6..02fbb460 100644 --- a/mergekit/scripts/layershuffle.py +++ b/mergekit/scripts/layershuffle.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/scripts/legacy.py b/mergekit/scripts/legacy.py index ec988a57..aec35152 100644 --- a/mergekit/scripts/legacy.py +++ b/mergekit/scripts/legacy.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/scripts/run_yaml.py b/mergekit/scripts/run_yaml.py index aabf5892..f4586d72 100644 --- a/mergekit/scripts/run_yaml.py +++ b/mergekit/scripts/run_yaml.py @@ -1,4 +1,4 @@ -# Copyright (C) 2023 Charles O. Goddard +# Copyright (C) 2024 Charles O. Goddard # # This software is free software: you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License as diff --git a/mergekit/sparsify.py b/mergekit/sparsify.py index fa5cc192..df05d912 100644 --- a/mergekit/sparsify.py +++ b/mergekit/sparsify.py @@ -1,3 +1,18 @@ +# Copyright (C) 2024 Charles O. Goddard +# +# This software is free software: you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This software is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. + from enum import Enum import torch diff --git a/mergekit/tokenizer.py b/mergekit/tokenizer.py index 32e4f870..44e60a49 100644 --- a/mergekit/tokenizer.py +++ b/mergekit/tokenizer.py @@ -1,3 +1,18 @@ +# Copyright (C) 2024 Charles O. Goddard +# +# This software is free software: you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This software is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. + import logging from typing import Dict, Optional, Tuple