[examples] make run scripts executable (#10037)

* make executable

* make executable

* same for the template

* cleanup
This commit is contained in:
Stas Bekman 2021-02-05 15:51:18 -08:00 committed by GitHub
parent 1cd16512dc
commit 8ea412a86f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 26 additions and 1 deletions

1
examples/benchmarking/run_benchmark.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.

1
examples/benchmarking/run_benchmark_tf.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.

1
examples/language-modeling/run_clm.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team. All rights reserved.
#

1
examples/language-modeling/run_mlm.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Team All rights reserved.
#

1
examples/language-modeling/run_mlm_flax.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Team All rights reserved.
#

1
examples/language-modeling/run_plm.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Team All rights reserved.
#

1
examples/legacy/run_camembert.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
import torch
from transformers import CamembertForMaskedLM, CamembertTokenizer

1
examples/legacy/run_chinese_ref.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
import argparse
import json
from typing import List

1
examples/legacy/run_language_modeling.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.

1
examples/legacy/run_openai_gpt.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.

1
examples/legacy/run_swag.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.

1
examples/legacy/run_transfo_xl.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.

1
examples/multiple-choice/run_swag.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright The HuggingFace Team and The HuggingFace Inc. team. All rights reserved.
#

1
examples/multiple-choice/run_tf_multiple_choice.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.

1
examples/question-answering/run_qa.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Team All rights reserved.
#

1
examples/question-answering/run_qa_beam_search.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Team All rights reserved.
#

1
examples/question-answering/run_tf_squad.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.

1
examples/seq2seq/run_seq2seq.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright The HuggingFace Team and The HuggingFace Inc. team. All rights reserved.
#

1
examples/text-classification/run_glue.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team. All rights reserved.
#

1
examples/text-classification/run_tf_glue.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Team. All rights reserved.
#

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Team. All rights reserved.
#

1
examples/text-classification/run_xnli.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.

2
examples/text-generation/run_generation.py Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# coding=utf-8
# Copyright 2018 Google AI, Google Brain and Carnegie Mellon University Authors and the HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.

1
examples/token-classification/run_ner.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2020 The HuggingFace Team All rights reserved.
#

1
examples/token-classification/run_tf_ner.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#

View File

@ -1,3 +1,4 @@
#!/usr/bin/env python
# coding=utf-8
# Copyright {{cookiecutter.authors}} and The HuggingFace Inc. team. All rights reserved.
#