diff --git a/examples/benchmarking/run_benchmark.py b/examples/benchmarking/run_benchmark.py old mode 100644 new mode 100755 index f8ab1b3088..e2e7d4c5ea --- a/examples/benchmarking/run_benchmark.py +++ b/examples/benchmarking/run_benchmark.py @@ -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. diff --git a/examples/benchmarking/run_benchmark_tf.py b/examples/benchmarking/run_benchmark_tf.py old mode 100644 new mode 100755 index aa84865044..25aabc5f51 --- a/examples/benchmarking/run_benchmark_tf.py +++ b/examples/benchmarking/run_benchmark_tf.py @@ -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. diff --git a/examples/language-modeling/run_clm.py b/examples/language-modeling/run_clm.py old mode 100644 new mode 100755 index 0c655f08b4..c5a5bdd0cc --- a/examples/language-modeling/run_clm.py +++ b/examples/language-modeling/run_clm.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. All rights reserved. # diff --git a/examples/language-modeling/run_mlm.py b/examples/language-modeling/run_mlm.py old mode 100644 new mode 100755 index dd4c57c59d..626a70203e --- a/examples/language-modeling/run_mlm.py +++ b/examples/language-modeling/run_mlm.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Team All rights reserved. # diff --git a/examples/language-modeling/run_mlm_flax.py b/examples/language-modeling/run_mlm_flax.py old mode 100644 new mode 100755 index 83bf9bffeb..c2883118f7 --- a/examples/language-modeling/run_mlm_flax.py +++ b/examples/language-modeling/run_mlm_flax.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Team All rights reserved. # diff --git a/examples/language-modeling/run_plm.py b/examples/language-modeling/run_plm.py old mode 100644 new mode 100755 index 74023817a2..ebbea9f456 --- a/examples/language-modeling/run_plm.py +++ b/examples/language-modeling/run_plm.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Team All rights reserved. # diff --git a/examples/legacy/run_camembert.py b/examples/legacy/run_camembert.py old mode 100644 new mode 100755 index 05e36c2517..9651570b39 --- a/examples/legacy/run_camembert.py +++ b/examples/legacy/run_camembert.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python import torch from transformers import CamembertForMaskedLM, CamembertTokenizer diff --git a/examples/legacy/run_chinese_ref.py b/examples/legacy/run_chinese_ref.py old mode 100644 new mode 100755 index c5c3c8c871..f7c09e37ff --- a/examples/legacy/run_chinese_ref.py +++ b/examples/legacy/run_chinese_ref.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python import argparse import json from typing import List diff --git a/examples/legacy/run_language_modeling.py b/examples/legacy/run_language_modeling.py old mode 100644 new mode 100755 index 4b9f272a0a..20995f1bfa --- a/examples/legacy/run_language_modeling.py +++ b/examples/legacy/run_language_modeling.py @@ -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. diff --git a/examples/legacy/run_openai_gpt.py b/examples/legacy/run_openai_gpt.py old mode 100644 new mode 100755 index 7febad29b2..72314b5edb --- a/examples/legacy/run_openai_gpt.py +++ b/examples/legacy/run_openai_gpt.py @@ -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. diff --git a/examples/legacy/run_swag.py b/examples/legacy/run_swag.py old mode 100644 new mode 100755 index c699ffa606..ddce4d20e2 --- a/examples/legacy/run_swag.py +++ b/examples/legacy/run_swag.py @@ -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. diff --git a/examples/legacy/run_transfo_xl.py b/examples/legacy/run_transfo_xl.py old mode 100644 new mode 100755 index db3375a20a..71f3efa2a8 --- a/examples/legacy/run_transfo_xl.py +++ b/examples/legacy/run_transfo_xl.py @@ -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. diff --git a/examples/multiple-choice/run_swag.py b/examples/multiple-choice/run_swag.py old mode 100644 new mode 100755 index 60b25ae6aa..28b2605f0c --- a/examples/multiple-choice/run_swag.py +++ b/examples/multiple-choice/run_swag.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright The HuggingFace Team and The HuggingFace Inc. team. All rights reserved. # diff --git a/examples/multiple-choice/run_tf_multiple_choice.py b/examples/multiple-choice/run_tf_multiple_choice.py old mode 100644 new mode 100755 index 85d9f2127f..5ff4e384d9 --- a/examples/multiple-choice/run_tf_multiple_choice.py +++ b/examples/multiple-choice/run_tf_multiple_choice.py @@ -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. diff --git a/examples/question-answering/run_qa.py b/examples/question-answering/run_qa.py old mode 100644 new mode 100755 index 11e49d5ec4..2163f7fb71 --- a/examples/question-answering/run_qa.py +++ b/examples/question-answering/run_qa.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Team All rights reserved. # diff --git a/examples/question-answering/run_qa_beam_search.py b/examples/question-answering/run_qa_beam_search.py old mode 100644 new mode 100755 index 5c61a0fe0b..d81bff914b --- a/examples/question-answering/run_qa_beam_search.py +++ b/examples/question-answering/run_qa_beam_search.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Team All rights reserved. # diff --git a/examples/question-answering/run_tf_squad.py b/examples/question-answering/run_tf_squad.py old mode 100644 new mode 100755 index 1632d2d1d9..eb2f4089aa --- a/examples/question-answering/run_tf_squad.py +++ b/examples/question-answering/run_tf_squad.py @@ -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. diff --git a/examples/seq2seq/run_seq2seq.py b/examples/seq2seq/run_seq2seq.py old mode 100644 new mode 100755 index 7b423f6d0d..3b4ae5ef03 --- a/examples/seq2seq/run_seq2seq.py +++ b/examples/seq2seq/run_seq2seq.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright The HuggingFace Team and The HuggingFace Inc. team. All rights reserved. # diff --git a/examples/text-classification/run_glue.py b/examples/text-classification/run_glue.py old mode 100644 new mode 100755 index 19a700bf2a..9fb1fd774d --- a/examples/text-classification/run_glue.py +++ b/examples/text-classification/run_glue.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. All rights reserved. # diff --git a/examples/text-classification/run_tf_glue.py b/examples/text-classification/run_tf_glue.py old mode 100644 new mode 100755 index be49399b30..1e162a9f5b --- a/examples/text-classification/run_tf_glue.py +++ b/examples/text-classification/run_tf_glue.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # diff --git a/examples/text-classification/run_tf_text_classification.py b/examples/text-classification/run_tf_text_classification.py old mode 100644 new mode 100755 index b58e0bf28d..729e05229b --- a/examples/text-classification/run_tf_text_classification.py +++ b/examples/text-classification/run_tf_text_classification.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Team. All rights reserved. # diff --git a/examples/text-classification/run_xnli.py b/examples/text-classification/run_xnli.py old mode 100644 new mode 100755 index 19d3d040ed..e0375e53c3 --- a/examples/text-classification/run_xnli.py +++ b/examples/text-classification/run_xnli.py @@ -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. diff --git a/examples/text-generation/run_generation.py b/examples/text-generation/run_generation.py old mode 100644 new mode 100755 index ce43483253..56b1de051b --- a/examples/text-generation/run_generation.py +++ b/examples/text-generation/run_generation.py @@ -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. diff --git a/examples/token-classification/run_ner.py b/examples/token-classification/run_ner.py old mode 100644 new mode 100755 index bdfa3710b3..2a8e757c33 --- a/examples/token-classification/run_ner.py +++ b/examples/token-classification/run_ner.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Team All rights reserved. # diff --git a/examples/token-classification/run_tf_ner.py b/examples/token-classification/run_tf_ner.py old mode 100644 new mode 100755 index 7b5e0d1926..93fe93617f --- a/examples/token-classification/run_tf_ner.py +++ b/examples/token-classification/run_tf_ner.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # diff --git a/templates/adding_a_new_example_script/{{cookiecutter.directory_name}}/run_{{cookiecutter.example_shortcut}}.py b/templates/adding_a_new_example_script/{{cookiecutter.directory_name}}/run_{{cookiecutter.example_shortcut}}.py old mode 100644 new mode 100755 index 8e2c834b25..e6dc9ecc87 --- a/templates/adding_a_new_example_script/{{cookiecutter.directory_name}}/run_{{cookiecutter.example_shortcut}}.py +++ b/templates/adding_a_new_example_script/{{cookiecutter.directory_name}}/run_{{cookiecutter.example_shortcut}}.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # coding=utf-8 # Copyright {{cookiecutter.authors}} and The HuggingFace Inc. team. All rights reserved. #