Skip to content

Commit e75cff5

Browse files
Myle Ottfacebook-github-bot
authored andcommitted
Relicense fairseq under MIT license (facebookresearch#786)
Summary: The previous BSD+PATENTS license was controversial. We have been approved to relicense fairseq under the MIT license. Pull Request resolved: fairinternal/fairseq-py#786 Differential Revision: D16560654 Pulled By: myleott fbshipit-source-id: f78b1beb4f2895dd7b9bfc79f5f952a2bfb94034
1 parent c132b9b commit e75cff5

File tree

199 files changed

+609
-1042
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+609
-1042
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to FAIR Sequence-to-Sequence Toolkit (PyTorch)
1+
# Contributing to Facebook AI Research Sequence-to-Sequence Toolkit (fairseq)
22
We want to make contributing to this project as easy and transparent as
33
possible.
44

@@ -22,9 +22,7 @@ Complete your CLA here: <https://code.facebook.com/cla>
2222
We use GitHub issues to track public bugs. Please ensure your description is
2323
clear and has sufficient instructions to be able to reproduce the issue.
2424

25-
## Coding Style
26-
We try to follow the PEP style guidelines and encourage you to as well.
27-
2825
## License
29-
By contributing to FAIR Sequence-to-Sequence Toolkit, you agree that your contributions will be licensed
30-
under the LICENSE file in the root directory of this source tree.
26+
By contributing to Facebook AI Research Sequence-to-Sequence Toolkit (fairseq),
27+
you agree that your contributions will be licensed under the LICENSE file in
28+
the root directory of this source tree.

LICENSE

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,21 @@
1-
BSD License
1+
MIT License
22

3-
For fairseq software
3+
Copyright (c) Facebook, Inc. and its affiliates.
44

5-
Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
611

7-
Redistribution and use in source and binary forms, with or without modification,
8-
are permitted provided that the following conditions are met:
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
914

10-
* Redistributions of source code must retain the above copyright notice, this
11-
list of conditions and the following disclaimer.
12-
13-
* Redistributions in binary form must reproduce the above copyright notice,
14-
this list of conditions and the following disclaimer in the documentation
15-
and/or other materials provided with the distribution.
16-
17-
* Neither the name Facebook nor the names of its contributors may be used to
18-
endorse or promote products derived from this software without specific
19-
prior written permission.
20-
21-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25-
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

PATENTS

Lines changed: 0 additions & 33 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ modeling and other text generation tasks.
66

77
### What's New:
88

9+
- July 2019: fairseq relicensed under MIT license
910
- July 2019: [RoBERTa models and code release](examples/roberta/README.md)
1011
- June 2019: [wav2vec models and code release](examples/wav2vec/README.md)
1112
- April 2019: [fairseq demo paper @ NAACL 2019](https://arxiv.org/abs/1904.01038)
@@ -109,9 +110,8 @@ We also have more detailed READMEs to reproduce results from specific papers:
109110
* Google group: https://groups.google.com/forum/#!forum/fairseq-users
110111

111112
# License
112-
fairseq(-py) is BSD-licensed.
113+
fairseq(-py) is MIT-licensed.
113114
The license applies to the pre-trained models as well.
114-
We also provide an additional patent grant.
115115

116116
# Citation
117117

eval_lm.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#!/usr/bin/env python3 -u
2-
# Copyright (c) 2017-present, Facebook, Inc.
3-
# All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
43
#
5-
# This source code is licensed under the license found in the LICENSE file in
6-
# the root directory of this source tree. An additional grant of patent rights
7-
# can be found in the PATENTS file in the same directory.
4+
# This source code is licensed under the MIT license found in the
5+
# LICENSE file in the root directory of this source tree.
86

97
"""
108
Evaluate the perplexity of a trained language model.

examples/roberta/preprocess_GLUE_tasks.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#!/bin/bash
2-
# Copyright (c) 2017-present, Facebook, Inc.
3-
# All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
43
#
5-
# This source code is licensed under the license found in the LICENSE file in
6-
# the root directory of this source tree. An additional grant of patent rights
7-
# can be found in the PATENTS file in the same directory.
4+
# This source code is licensed under the MIT license found in the
5+
# LICENSE file in the root directory of this source tree.
86

97

108
# raw glue data as downloaded by glue download script (https://gist.github.com/W4ngatang/60c2bdb54d156a41194446737ce03e2e)

examples/translation_moe/score.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) 2017-present, Facebook, Inc.
3-
# All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
43
#
5-
# This source code is licensed under the license found in the LICENSE file in
6-
# the root directory of this source tree. An additional grant of patent rights
7-
# can be found in the PATENTS file in the same directory.
4+
# This source code is licensed under the MIT license found in the
5+
# LICENSE file in the root directory of this source tree.
86
"""
97
Scoring script for computing pairwise BLEU and multi-ref BLEU over a set of
108
candidate hypotheses.

fairseq/__init__.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# Copyright (c) 2017-present, Facebook, Inc.
2-
# All rights reserved.
1+
# Copyright (c) Facebook, Inc. and its affiliates.
32
#
4-
# This source code is licensed under the license found in the LICENSE file in
5-
# the root directory of this source tree. An additional grant of patent rights
6-
# can be found in the PATENTS file in the same directory.
3+
# This source code is licensed under the MIT license found in the
4+
# LICENSE file in the root directory of this source tree.
75

86
__all__ = ['pdb']
97
__version__ = '0.7.2'

fairseq/binarizer.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# Copyright (c) 2017-present, Facebook, Inc.
2-
# All rights reserved.
1+
# Copyright (c) Facebook, Inc. and its affiliates.
32
#
4-
# This source code is licensed under the license found in the LICENSE file in
5-
# the root directory of this source tree. An additional grant of patent rights
6-
# can be found in the PATENTS file in the same directory.
3+
# This source code is licensed under the MIT license found in the
4+
# LICENSE file in the root directory of this source tree.
75

86
from collections import Counter
97
import os

fairseq/bleu.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# Copyright (c) 2017-present, Facebook, Inc.
2-
# All rights reserved.
1+
# Copyright (c) Facebook, Inc. and its affiliates.
32
#
4-
# This source code is licensed under the license found in the LICENSE file in
5-
# the root directory of this source tree. An additional grant of patent rights
6-
# can be found in the PATENTS file in the same directory.
3+
# This source code is licensed under the MIT license found in the
4+
# LICENSE file in the root directory of this source tree.
75

86
import ctypes
97
import math

0 commit comments

Comments
 (0)