Skip to content

Commit

Permalink
Merge pull request #157 from EleutherAI/apache_v2_license
Browse files Browse the repository at this point in the history
Change license to Apache v2
  • Loading branch information
StellaAthena committed Mar 20, 2021
2 parents 0d15295 + 059d8ed commit cd0f0b0
Show file tree
Hide file tree
Showing 20 changed files with 93 additions and 45 deletions.
31 changes: 15 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,21 +181,20 @@ We run our experiments on a Kubernetes cluster generously provided by [CoreWeave

## Licensing

This repository hosts code that is part of EleutherAI's GPT-NeoX project. Copyright (c) 2021 Stella Biderman, Sid Black, Eric Hallahan, Josh Levy-Kramer, Michael Pieler, Shivanshu Purohit.

GPT-NeoX is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program 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 General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.

This repository is based off code written by NVIDIA that is licensed under the Apache License, Version 2.0. In accordance with the Apache License, all files that are modifications of code originally written by NVIDIA maintain a NVIDIA copyright header. All files that do not contain such a header are original to EleutherAI. When the NVIDIA code has been modified from its original version, that fact is noted in the copyright header. All derivative works of this repository must preserve these headers under the terms of the Apache License.
This repository hosts code that is part of EleutherAI's GPT-NeoX project. Copyright (c) 2021, EleutherAI contributors (in alphabetical order): Stella Biderman, Sid Black, Eric Hallahan, Josh Levy-Kramer, Michael Pieler, Shivanshu Purohit. Licensed under the Apache License:

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

https://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.

This repository is based off code written by NVIDIA that is licensed under the Apache License, Version 2.0. In accordance with the Apache License, all files that are modifications of code originally written by NVIDIA maintain a NVIDIA copyright header. All files that do not contain such a header are original to EleutherAI contributors. When the NVIDIA code has been modified from its original version, that fact is noted in the copyright header. All derivative works of this repository must preserve these headers under the terms of the Apache License.

For full terms, see the `LICENSE` file. If you have any questions, comments, or concerns about licensing please email us at [email protected].
2 changes: 1 addition & 1 deletion configs/eleutherai_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
"tensorboard-dir": "/mnt/ssd-cluster/tensorboard",
"log-dir": "/mnt/ssd-cluster/logs",
"wandb_team": "eleutherai",
}
}
4 changes: 2 additions & 2 deletions deepy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

# Copyright 2021 (c) Josh Levy-Kramer <[email protected]>. All rights reserved.
# Copyright (c) 2021, EleutherAI contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -13,6 +12,7 @@
# 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 socket import gethostname

import shortuuid
Expand Down
4 changes: 2 additions & 2 deletions megatron/arguments.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding=utf-8
#
# Copyright 2021 Biderman et al. This file is based on code by the authors denoted below and has been modified from its original version.
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
Expand Down
4 changes: 2 additions & 2 deletions megatron/checkpointing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding=utf-8
#
# Copyright 2021 Biderman et al. This file is based on code by the authors denoted below and has been modified from its original version.
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
Expand Down
14 changes: 13 additions & 1 deletion megatron/config_monster.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# Copyright 2021 (c) Josh Levy-Kramer <[email protected]>. All rights reserved.
# Copyright (c) 2021, EleutherAI contributors
#
# 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
#
# https://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.

import argparse
import json
Expand Down
5 changes: 2 additions & 3 deletions megatron/data/dataset_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# coding=utf-8
#
# Copyright 2021 Biderman et al. This file is based in code by the authors denoted below and has been modified from its original version.
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright 2018 The Google AI Language Team Authors, and NVIDIA.
#
Expand Down
4 changes: 2 additions & 2 deletions megatron/data/gpt2_dataset.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding=utf-8
#
# Copyright 2021 Biderman et al. This file is based in code by the authors denoted below and has been modified from its original version.
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
Expand Down
3 changes: 2 additions & 1 deletion megatron/global_vars.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# coding=utf-8
# Copyright 2021 Josh Levy-Kramer <[email protected]> et al.
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
3 changes: 3 additions & 0 deletions megatron/initialize.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# coding=utf-8
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
16 changes: 16 additions & 0 deletions megatron/logging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# coding=utf-8
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# 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
#
# https://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.

import sys


Expand Down
4 changes: 2 additions & 2 deletions megatron/mpu/layers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding=utf-8
#
# Copyright 2021 Biderman et al. This file is based on code by the authors denoted below and has been modified from its original version.
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
Expand Down
4 changes: 2 additions & 2 deletions megatron/tokenizer/gpt2_tokenization.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding=utf-8
#
# Copyright 2021 Biderman et al. This file is based on code by the authors denoted below and has been modified from its original version.
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright 2018 The Open AI Team Authors and The HuggingFace Inc. team.
#
Expand Down
4 changes: 2 additions & 2 deletions megatron/tokenizer/tokenizer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding=utf-8
#
# Copyright 2021 Biderman et al. This file is based on code by the authors denoted below and has been modified from its original version.
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
Expand Down
4 changes: 2 additions & 2 deletions megatron/training.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding=utf-8
#
# Copyright 2021 Biderman et al. This file is based on code by the authors denoted below and has been modified from its original version.
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
Expand Down
3 changes: 1 addition & 2 deletions megatron/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# coding=utf-8

# Copyright (c) 2021 Josh Levy-Kramer <[email protected]>.
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
Expand Down
5 changes: 2 additions & 3 deletions pretrain_gpt2.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# coding=utf-8
#
# Copyright 2021 Biderman et al. This file is based on code by the authors denoted below and has been modified from its original version.
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
Expand Down
3 changes: 3 additions & 0 deletions tasks/finetune_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# coding=utf-8
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
4 changes: 2 additions & 2 deletions tasks/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding=utf-8
#
# Copyright 2021 Biderman et al. This file is based on code by the authors denoted below and has been modified from its original version.
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
Expand Down
17 changes: 17 additions & 0 deletions tools/corpora.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# coding=utf-8
# Copyright (c) 2021, EleutherAI contributors
# This file is based on code by the authors denoted below and has been modified from its original version.
#
# 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
#
# https://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.


import os
import tarfile
from abc import ABC, abstractmethod
Expand Down

0 comments on commit cd0f0b0

Please sign in to comment.