From b84e1ab35c8f0c16fca0579216817b8347c90afa Mon Sep 17 00:00:00 2001 From: regisss <15324346+regisss@users.noreply.github.com> Date: Thu, 21 Aug 2025 12:23:23 +0300 Subject: [PATCH] [Transformers 4.55] Remove UTF-8 coding header Co-authored-by: Piotr Bielak --- examples/audio-classification/run_audio_classification.py | 1 - examples/contrastive-image-text/run_bridgetower.py | 1 - examples/contrastive-image-text/run_clip.py | 1 - examples/image-classification/run_image_classification.py | 1 - examples/language-modeling/run_clm.py | 1 - examples/language-modeling/run_mlm.py | 1 - examples/question-answering/run_qa.py | 1 - examples/question-answering/run_seq2seq_qa.py | 1 - examples/question-answering/trainer_qa.py | 1 - examples/question-answering/trainer_seq2seq_qa.py | 1 - examples/question-answering/utils_qa.py | 1 - examples/speech-recognition/run_speech_recognition_ctc.py | 1 - examples/speech-recognition/run_speech_recognition_seq2seq.py | 1 - examples/summarization/run_summarization.py | 1 - examples/text-classification/run_glue.py | 1 - examples/translation/run_translation.py | 1 - tests/test_trainer.py | 1 - tests/test_trainer_seq2seq.py | 1 - 18 files changed, 18 deletions(-) diff --git a/examples/audio-classification/run_audio_classification.py b/examples/audio-classification/run_audio_classification.py index 073b8ad577..3030f9959a 100644 --- a/examples/audio-classification/run_audio_classification.py +++ b/examples/audio-classification/run_audio_classification.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/contrastive-image-text/run_bridgetower.py b/examples/contrastive-image-text/run_bridgetower.py index 0b98b7a0b2..f61b2c7906 100644 --- a/examples/contrastive-image-text/run_bridgetower.py +++ b/examples/contrastive-image-text/run_bridgetower.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright 2023 The HuggingFace Team All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/contrastive-image-text/run_clip.py b/examples/contrastive-image-text/run_clip.py index 2e928ec3d6..3d1f891d3d 100644 --- a/examples/contrastive-image-text/run_clip.py +++ b/examples/contrastive-image-text/run_clip.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright 2022 The HuggingFace Team All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/image-classification/run_image_classification.py b/examples/image-classification/run_image_classification.py index a82428eb94..6cf93fcd76 100644 --- a/examples/image-classification/run_image_classification.py +++ b/examples/image-classification/run_image_classification.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/language-modeling/run_clm.py b/examples/language-modeling/run_clm.py index 1c90b93ed3..52b2cc0536 100644 --- a/examples/language-modeling/run_clm.py +++ b/examples/language-modeling/run_clm.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/language-modeling/run_mlm.py b/examples/language-modeling/run_mlm.py index 98741f2b4b..ca1619d5f3 100644 --- a/examples/language-modeling/run_mlm.py +++ b/examples/language-modeling/run_mlm.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright 2020 The HuggingFace Team All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/question-answering/run_qa.py b/examples/question-answering/run_qa.py index 064717d80f..89814a8527 100644 --- a/examples/question-answering/run_qa.py +++ b/examples/question-answering/run_qa.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright 2022 The HuggingFace Team All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/question-answering/run_seq2seq_qa.py b/examples/question-answering/run_seq2seq_qa.py index 374ec915ca..de73a38ca1 100644 --- a/examples/question-answering/run_seq2seq_qa.py +++ b/examples/question-answering/run_seq2seq_qa.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright 2021 The HuggingFace Team All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/question-answering/trainer_qa.py b/examples/question-answering/trainer_qa.py index 3f684502a2..dd57d8f731 100644 --- a/examples/question-answering/trainer_qa.py +++ b/examples/question-answering/trainer_qa.py @@ -1,4 +1,3 @@ -# coding=utf-8 # Copyright 2022 The HuggingFace Team All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/question-answering/trainer_seq2seq_qa.py b/examples/question-answering/trainer_seq2seq_qa.py index 7a8a31c420..c52fb17e72 100644 --- a/examples/question-answering/trainer_seq2seq_qa.py +++ b/examples/question-answering/trainer_seq2seq_qa.py @@ -1,4 +1,3 @@ -# coding=utf-8 # Copyright 2021 The HuggingFace Team All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/question-answering/utils_qa.py b/examples/question-answering/utils_qa.py index c596bf98ef..066f8fbbab 100644 --- a/examples/question-answering/utils_qa.py +++ b/examples/question-answering/utils_qa.py @@ -1,4 +1,3 @@ -# coding=utf-8 # Copyright 2022 The HuggingFace Team All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/speech-recognition/run_speech_recognition_ctc.py b/examples/speech-recognition/run_speech_recognition_ctc.py index 3e40517af3..a11860cf29 100644 --- a/examples/speech-recognition/run_speech_recognition_ctc.py +++ b/examples/speech-recognition/run_speech_recognition_ctc.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/speech-recognition/run_speech_recognition_seq2seq.py b/examples/speech-recognition/run_speech_recognition_seq2seq.py index f52bd73887..ec4d0ff977 100755 --- a/examples/speech-recognition/run_speech_recognition_seq2seq.py +++ b/examples/speech-recognition/run_speech_recognition_seq2seq.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright 2021 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/summarization/run_summarization.py b/examples/summarization/run_summarization.py index 87e5faa9d1..82ec42bc36 100755 --- a/examples/summarization/run_summarization.py +++ b/examples/summarization/run_summarization.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright 2022 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/text-classification/run_glue.py b/examples/text-classification/run_glue.py index be36e601ad..60dd5edd2a 100755 --- a/examples/text-classification/run_glue.py +++ b/examples/text-classification/run_glue.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/examples/translation/run_translation.py b/examples/translation/run_translation.py index c1d8a07d1d..812a63e527 100644 --- a/examples/translation/run_translation.py +++ b/examples/translation/run_translation.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# coding=utf-8 # Copyright The HuggingFace Team and The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_trainer.py b/tests/test_trainer.py index 4ad2d23bf5..127d32c314 100644 --- a/tests/test_trainer.py +++ b/tests/test_trainer.py @@ -1,4 +1,3 @@ -# coding=utf-8 # Copyright 2022 the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/tests/test_trainer_seq2seq.py b/tests/test_trainer_seq2seq.py index f5866043a8..ca2df29b5a 100644 --- a/tests/test_trainer_seq2seq.py +++ b/tests/test_trainer_seq2seq.py @@ -1,4 +1,3 @@ -# coding=utf-8 # Copyright 2022 the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License");