repo_name stringclasses 6
values | pr_number int64 99 20.3k | pr_title stringlengths 8 158 | pr_description stringlengths 0 6.54k | author stringlengths 4 18 | date_created timestamp[ns, tz=UTC] | date_merged timestamp[ns, tz=UTC] | previous_commit stringlengths 40 40 | pr_commit stringlengths 40 40 | query stringlengths 37 6.57k | filepath stringlengths 8 153 | before_content stringlengths 0 876M | after_content stringlengths 0 876M | label int64 -1 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/bert/convert_bert_original_tf_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./.git/objects/ca/ece4f6fdbb73a0c60074df3434b6bd08834251 | x+)JMU0d01 ļԢb7/(zv^^ޥ | x+)JMU0d01 ļԢb7/(zv^^ޥ | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/models/segformer/test_feature_extraction_segformer.py | # coding=utf-8
# Copyright 2021 HuggingFace Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | # coding=utf-8
# Copyright 2021 HuggingFace Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./docs/source/en/add_new_model.mdx | <!--Copyright 2020 The HuggingFace Team. All rights reserved.
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | <!--Copyright 2020 The HuggingFace Team. All rights reserved.
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/models/retribert/__init__.py | -1 | ||
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/models/splinter/test_modeling_splinter.py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./.git/objects/7f/ad55276d7a1ccfc5858da290033f5b26d5003b | xmLgcfIhP fT֖}KZ\a
(Lg6~h-,?D*`9`BudEֳYݿϓ'b( Ty>GFR !ۥnhNPUZ;GX
![ut3Jv,1J( =m\zP5DQ(cf6*L쭤ч-Uɂc@锅{uW<'U[h&&B)Bj~FHgGbaAE&nS+NQsO"Pc㴸[n&pt
OJP%Y_s"(}=P.I/Ie1Ax Z:\pVp^>Zu.rE3 |]gG일(:Uȝ$Z b0[k]q+كN"]Vw֑ݬjLY;jtZ2^r4/T;UE=[ac... | xmLgcfIhP fT֖}KZ\a
(Lg6~h-,?D*`9`BudEֳYݿϓ'b( Ty>GFR !ۥnhNPUZ;GX
![ut3Jv,1J( =m\zP5DQ(cf6*L쭤ч-Uɂc@锅{uW<'U[h&&B)Bj~FHgGbaAE&nS+NQsO"Pc㴸[n&pt
OJP%Y_s"(}=P.I/Ie1Ax Z:\pVp^>Zu.rE3 |]gG일(:Uȝ$Z b0[k]q+كN"]Vw֑ݬjLY;jtZ2^r4/T;UE=[ac... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./examples/pytorch/speech-pretraining/requirements.txt | datasets >= 1.12.0
torch >= 1.5
torchaudio
accelerate >= 0.12.0
librosa | datasets >= 1.12.0
torch >= 1.5
torchaudio
accelerate >= 0.12.0
librosa | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./examples/research_projects/visual_bert/requirements.txt | appdirs==1.4.3
argon2-cffi==20.1.0
async-generator==1.10
attrs==20.2.0
backcall==0.2.0
CacheControl==0.12.6
certifi==2020.6.20
cffi==1.14.2
chardet==3.0.4
click==7.1.2
colorama==0.4.3
contextlib2==0.6.0
cycler==0.10.0
datasets==1.0.0
decorator==4.4.2
defusedxml==0.6.0
dill==0.3.2
distlib==0.3.0
distro==1.4.0
entrypoint... | appdirs==1.4.3
argon2-cffi==20.1.0
async-generator==1.10
attrs==20.2.0
backcall==0.2.0
CacheControl==0.12.6
certifi==2020.6.20
cffi==1.14.2
chardet==3.0.4
click==7.1.2
colorama==0.4.3
contextlib2==0.6.0
cycler==0.10.0
datasets==1.0.0
decorator==4.4.2
defusedxml==0.6.0
dill==0.3.2
distlib==0.3.0
distro==1.4.0
entrypoint... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./examples/research_projects/deebert/src/modeling_highway_bert.py | import torch
from torch import nn
from torch.nn import CrossEntropyLoss, MSELoss
from transformers.file_utils import add_start_docstrings, add_start_docstrings_to_model_forward
from transformers.models.bert.modeling_bert import (
BERT_INPUTS_DOCSTRING,
BERT_START_DOCSTRING,
BertEmbeddings,
BertLayer,
... | import torch
from torch import nn
from torch.nn import CrossEntropyLoss, MSELoss
from transformers.file_utils import add_start_docstrings, add_start_docstrings_to_model_forward
from transformers.models.bert.modeling_bert import (
BERT_INPUTS_DOCSTRING,
BERT_START_DOCSTRING,
BertEmbeddings,
BertLayer,
... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./examples/flax/language-modeling/t5_tokenizer_model.py | #!/usr/bin/env python3
import json
from typing import Iterator, List, Union
from tokenizers import AddedToken, Regex, Tokenizer, decoders, normalizers, pre_tokenizers, trainers
from tokenizers.implementations.base_tokenizer import BaseTokenizer
from tokenizers.models import Unigram
from tokenizers.processors import Te... | #!/usr/bin/env python3
import json
from typing import Iterator, List, Union
from tokenizers import AddedToken, Regex, Tokenizer, decoders, normalizers, pre_tokenizers, trainers
from tokenizers.implementations.base_tokenizer import BaseTokenizer
from tokenizers.models import Unigram
from tokenizers.processors import Te... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./.git/objects/ee/eb4246c7440c4ad75a5695c66be38317274d0a | x+)JMU041`01 ̢LY[͇.ӵ4yZ 嗥%%3dޱޖQcC3Ǘ{^)K,I,))L*-I-fHeSwLwRwEj)PaFi[J*<zL/Je0t̨߳U輪ưhzO笠^?51Hf3Lk[Ks^n
&{ÀfT9~KzB<BC<AJ?#sbgqUl2Bz-6@G
oĚSdly%|<]]2_˙~-'^݅#
}*MNMIe1l<v2'TM+.]f>ænSCb({7g,++2R@ڏV6TmXR%US_͍P۩ŶЫ6y=Kϒ}9ݤ"?NtU
6i1{JTE uuv&'ʸTu% u'ٹ.١U9*C7#1>Ώ,)_7[:|cLna... | x+)JMU041`01 ̢LY[͇.ӵ4yZ 嗥%%3dޱޖQcC3Ǘ{^)K,I,))L*-I-fHeSwLwRwEj)PaFi[J*<zL/Je0t̨߳U輪ưhzO笠^?51Hf3Lk[Ks^n
&{ÀfT9~KzB<BC<AJ?#sbgqUl2Bz-6@G
oĚSdly%|<]]2_˙~-'^݅#
}*MNMIe1l<v2'TM+.]f>ænSCb({7g,++2R@ڏV6TmXR%US_͍P۩ŶЫ6y=Kϒ}9ݤ"?NtU
6i1{JTE uuv&'ʸTu% u'ٹ.١U9*C7#1>Ώ,)_7[:|cLna... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/luke/convert_luke_original_pytorch_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/trajectory_transformer/modeling_trajectory_transformer.py | # coding=utf-8
# Copyright 2022 The Trajectory Transformers paper authors and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://ww... | # coding=utf-8
# Copyright 2022 The Trajectory Transformers paper authors and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://ww... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/wav2vec2/modeling_flax_wav2vec2.py | # coding=utf-8
# Copyright 2021 The Fairseq Authors and the HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/... | # coding=utf-8
# Copyright 2021 The Fairseq Authors and the HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/utils/test_versions_utils.py | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/segformer/modeling_tf_segformer.py | # coding=utf-8
# Copyright 2022 NVIDIA The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | # coding=utf-8
# Copyright 2022 NVIDIA The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/utils/test_skip_decorators.py | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/vit/image_processing_vit.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/groupvit/modeling_groupvit.py | # coding=utf-8
# Copyright 2022 NVIDIA and The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | # coding=utf-8
# Copyright 2022 NVIDIA and The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/whisper/modeling_tf_whisper.py | # coding=utf-8
# Copyright 2022 The OpenAI Authors and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/L... | # coding=utf-8
# Copyright 2022 The OpenAI Authors and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/L... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./docs/source/en/main_classes/keras_callbacks.mdx | <!--Copyright 2021 The HuggingFace Team. All rights reserved.
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | <!--Copyright 2021 The HuggingFace Team. All rights reserved.
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./scripts/tatoeba/README.md | <!---
Copyright 2020 The HuggingFace Team. All rights reserved.
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ... | <!---
Copyright 2020 The HuggingFace Team. All rights reserved.
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/trainer/test_trainer_distributed.py | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./examples/research_projects/distillation/lm_seqs_dataset.py | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/models/ctrl/__init__.py | -1 | ||
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/gpt2/convert_gpt2_original_tf_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/bert_generation/modeling_bert_generation.py | # coding=utf-8
# Copyright 2020 The Google AI Language Team Authors and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICEN... | # coding=utf-8
# Copyright 2020 The Google AI Language Team Authors and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICEN... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/longt5/modeling_longt5.py | # coding=utf-8
# Copyright 2022 Google LLC., LongT5 Authors and HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | # coding=utf-8
# Copyright 2022 Google LLC., LongT5 Authors and HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/luke/modeling_luke.py | # coding=utf-8
# Copyright Studio Ousia and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | # coding=utf-8
# Copyright Studio Ousia and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/cpm/__init__.py | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/rag/retrieval_rag.py | # coding=utf-8
# Copyright 2020, The RAG Authors and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2020, The RAG Authors and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./examples/research_projects/seq2seq-distillation/finetune.sh | # the proper usage is documented in the README, you need to specify data_dir, output_dir and model_name_or_path
# run ./finetune.sh --help to see all the possible options
python finetune.py \
--learning_rate=3e-5 \
--fp16 \
--gpus 1 \
--do_train \
--do_predict \
--n_val 1000 \
--val_check_in... | # the proper usage is documented in the README, you need to specify data_dir, output_dir and model_name_or_path
# run ./finetune.sh --help to see all the possible options
python finetune.py \
--learning_rate=3e-5 \
--fp16 \
--gpus 1 \
--do_train \
--do_predict \
--n_val 1000 \
--val_check_in... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/models/imagegpt/test_modeling_imagegpt.py | # coding=utf-8
# Copyright 2021 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | # coding=utf-8
# Copyright 2021 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./examples/research_projects/wav2vec2/run_pretrain.py | #!/usr/bin/env python3
import logging
import sys
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional, Union
import torch
from datasets import DatasetDict, load_dataset
from packaging import version
from torch import nn
import librosa
from transformers import (
HfArgumentParser,
... | #!/usr/bin/env python3
import logging
import sys
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional, Union
import torch
from datasets import DatasetDict, load_dataset
from packaging import version
from torch import nn
import librosa
from transformers import (
HfArgumentParser,
... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/donut/__init__.py | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2022 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2022 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/mobilevit/modeling_mobilevit.py | # coding=utf-8
# Copyright 2022 Apple Inc. and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2... | # coding=utf-8
# Copyright 2022 Apple Inc. and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/mctct/configuration_mctct.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/mpnet/modeling_mpnet.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team, Microsoft Corporation.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 ... | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team, Microsoft Corporation.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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 ... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/maskformer/convert_maskformer_original_pytorch_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2022 Meta Platforms, Inc. and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses... | # coding=utf-8
# Copyright 2022 Meta Platforms, Inc. and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/models/owlvit/__init__.py | -1 | ||
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/models/cvt/test_modeling_tf_cvt.py | """ Testing suite for the Tensorflow CvT model. """
import inspect
import unittest
from math import floor
import numpy as np
from transformers import CvtConfig
from transformers.testing_utils import require_tf, require_vision, slow
from transformers.utils import cached_property, is_tf_available, is_vision_available... | """ Testing suite for the Tensorflow CvT model. """
import inspect
import unittest
from math import floor
import numpy as np
from transformers import CvtConfig
from transformers.testing_utils import require_tf, require_vision, slow
from transformers.utils import cached_property, is_tf_available, is_vision_available... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./examples/research_projects/distillation/distiller.py | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Un... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/fixtures/vocab.json | {"l": 0, "o": 1, "w": 2, "e": 3, "r": 4, "s": 5, "t": 6, "i": 7, "d": 8, "n": 9, "Ġ": 10, "Ġl": 11, "Ġn": 12, "Ġlo": 13, "Ġlow": 14, "er": 15, "Ġlowest": 16, "Ġnewer": 17, "Ġwider": 18, "<unk>": 19, "<|endoftext|>": 20}
| {"l": 0, "o": 1, "w": 2, "e": 3, "r": 4, "s": 5, "t": 6, "i": 7, "d": 8, "n": 9, "Ġ": 10, "Ġl": 11, "Ġn": 12, "Ġlo": 13, "Ġlow": 14, "er": 15, "Ġlowest": 16, "Ġnewer": 17, "Ġwider": 18, "<unk>": 19, "<|endoftext|>": 20}
| -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/longt5/convert_longt5x_checkpoint_to_flax.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/ibert/quant_modules.py | # coding=utf-8
# Copyright 2021 The I-BERT Authors (Sehoon Kim, Amir Gholami, Zhewei Yao,
# Michael Mahoney, Kurt Keutzer - UC Berkeley) and The HuggingFace Inc. team.
# Copyright (c) 20121, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use t... | # coding=utf-8
# Copyright 2021 The I-BERT Authors (Sehoon Kim, Amir Gholami, Zhewei Yao,
# Michael Mahoney, Kurt Keutzer - UC Berkeley) and The HuggingFace Inc. team.
# Copyright (c) 20121, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use t... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/models/mctct/test_feature_extraction_mctct.py | # coding=utf-8
# Copyright 2022 HuggingFace Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | # coding=utf-8
# Copyright 2022 HuggingFace Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./docs/source/en/model_doc/deberta.mdx | <!--Copyright 2020 The HuggingFace Team. All rights reserved.
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | <!--Copyright 2020 The HuggingFace Team. All rights reserved.
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/albert/modeling_tf_albert.py | # coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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... | # coding=utf-8
# Copyright 2018 The OpenAI Team Authors and HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# 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... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/models/marian/__init__.py | -1 | ||
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./.git/objects/3d/ece8e4239ae951a70edb6c3fa48d30878d0da5 | x}V{<Tyn.m(V0oҢ"%IY
33gfNfshƪMwTlXJxCauEF%Jn=gn$3?<yBF8:88; ,q 'P->iHJdJU0Q #DZ9nzb-e:[$Ip) Ev3ƭwmj#y
ِ靨ՐW;.nqv >HA4U\]rLKujOJ 2Р?uΎԈ88eMjL,Ғٍ)/"^ 1W͜0G*{|1el ^[#(
@ &`mDyC(
P#(0#,IM%]KorG㱕whýbb<d#p4lv;?ϯeXˮ5 #A'Ҩo.-,ɹ
ߧ9%<L g\HH0ȓ
#u5S/a:6¡b,)Wҭ\... | x}V{<Tyn.m(V0oҢ"%IY
33gfNfshƪMwTlXJxCauEF%Jn=gn$3?<yBF8:88; ,q 'P->iHJdJU0Q #DZ9nzb-e:[$Ip) Ev3ƭwmj#y
ِ靨ՐW;.nqv >HA4U\]rLKujOJ 2Р?uΎԈ88eMjL,Ғٍ)/"^ 1W͜0G*{|1el ^[#(
@ &`mDyC(
P#(0#,IM%]KorG㱕whýbb<d#p4lv;?ϯeXˮ5 #A'Ҩo.-,ɹ
ߧ9%<L g\HH0ȓ
#u5S/a:6¡b,)Wҭ\... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/models/encoder_decoder/test_modeling_tf_encoder_decoder.py | # coding=utf-8
# Copyright 2020 HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | # coding=utf-8
# Copyright 2020 HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/models/x_clip/__init__.py | -1 | ||
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./docs/source/en/community.mdx | # Community
This page regroups resources around 🤗 Transformers developed by the community.
## Community resources:
| Resource | Description | Author |
|:----------|:-------------|------:|
| [Hugging Face Transformers Glossary Flashcards](https://www.darigovresearch.com/huggingface-transform... | # Community
This page regroups resources around 🤗 Transformers developed by the community.
## Community resources:
| Resource | Description | Author |
|:----------|:-------------|------:|
| [Hugging Face Transformers Glossary Flashcards](https://www.darigovresearch.com/huggingface-transform... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./examples/tensorflow/token-classification/run_ner.py | #!/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");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | #!/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");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./.github/ISSUE_TEMPLATE/migration.yml | name: "\U0001F4DA Migration from pytorch-pretrained-bert or pytorch-transformers"
description: Report a problem when migrating from pytorch-pretrained-bert or pytorch-transformers to transformers
labels: [ "migration" ]
body:
- type: textarea
id: system-info
attributes:
label: System Info
descript... | name: "\U0001F4DA Migration from pytorch-pretrained-bert or pytorch-transformers"
description: Report a problem when migrating from pytorch-pretrained-bert or pytorch-transformers to transformers
labels: [ "migration" ]
body:
- type: textarea
id: system-info
attributes:
label: System Info
descript... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/pipelines/test_pipelines_object_detection.py | # Copyright 2021 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | # Copyright 2021 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./examples/research_projects/mlm_wwm/run_mlm_wwm.py | # coding=utf-8
# Copyright 2020 The HuggingFace Team All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | # coding=utf-8
# Copyright 2020 The HuggingFace Team All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/detr/configuration_detr.py | # coding=utf-8
# Copyright 2021 Facebook AI Research and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses... | # coding=utf-8
# Copyright 2021 Facebook AI Research and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./docker/transformers-pytorch-tpu/docker-entrypoint.sh | #!/bin/bash
source ~/.bashrc
echo "running docker-entrypoint.sh"
conda activate container
echo $KUBE_GOOGLE_CLOUD_TPU_ENDPOINTS
echo "printed TPU info"
export XRT_TPU_CONFIG="tpu_worker;0;${KUBE_GOOGLE_CLOUD_TPU_ENDPOINTS:7}"
exec "$@"#!/bin/bash
| #!/bin/bash
source ~/.bashrc
echo "running docker-entrypoint.sh"
conda activate container
echo $KUBE_GOOGLE_CLOUD_TPU_ENDPOINTS
echo "printed TPU info"
export XRT_TPU_CONFIG="tpu_worker;0;${KUBE_GOOGLE_CLOUD_TPU_ENDPOINTS:7}"
exec "$@"#!/bin/bash
| -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./tests/repo_utils/test_check_dummies.py | # Copyright 2022 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | # Copyright 2022 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/squeezebert/tokenization_squeezebert.py | # coding=utf-8
# Copyright 2020 The SqueezeBert authors and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | # coding=utf-8
# Copyright 2020 The SqueezeBert authors and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./docs/source/en/model_doc/xlnet.mdx | <!--Copyright 2020 The HuggingFace Team. All rights reserved.
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | <!--Copyright 2020 The HuggingFace Team. All rights reserved.
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./.git/objects/2b/1b9f5a50b6ef369085b756c0aab188e24b580a | x}rWS1#P&EmYT%D@DD vļכ';-3A@mU]̻{ٗQyWӃ`ֳz:<=g{;{;Y<{Ev8y_|{xVqfs<`e3k1
qZ|`~Zp]^fu6.Y6x+&l8
/&a>WLc1<9\g ~.gd{ꪝbt{[m?=|٫G[XxTfٴp\g'X(iN6/ޫpxmfr0ʧ<"Þ |=xZ˾}&/8~|gG^e_f?3|z=xٿ>n3+ *If2!X WA)g~Mp0a_N˟&b8aΰ>F
/|.G&,<B;w/giyͯ'{Ffݰ7T??6Δ6 aϟaǗ8|'y9}sۗh&lO~ьOgɃQ)X^8-~UL?3Gvo[8... | x}rWS1#P&EmYT%D@DD vļכ';-3A@mU]̻{ٗQyWӃ`ֳz:<=g{;{;Y<{Ev8y_|{xVqfs<`e3k1
qZ|`~Zp]^fu6.Y6x+&l8
/&a>WLc1<9\g ~.gd{ꪝbt{[m?=|٫G[XxTfٴp\g'X(iN6/ޫpxmfr0ʧ<"Þ |=xZ˾}&/8~|gG^e_f?3|z=xٿ>n3+ *If2!X WA)g~Mp0a_N˟&b8aΰ>F
/|.G&,<B;w/giyͯ'{Ffݰ7T??6Δ6 aϟaǗ8|'y9}sۗh&lO~ьOgɃQ)X^8-~UL?3Gvo[8... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./templates/adding_a_new_model/cookiecutter.json | {
"modelname": "BrandNewBERT",
"uppercase_modelname": "BRAND_NEW_BERT",
"lowercase_modelname": "brand_new_bert",
"camelcase_modelname": "BrandNewBert",
"authors": "The HuggingFace Team",
"checkpoint_identifier": "brand-new-bert-base-cased",
"tokenizer_type": ["Based on BERT", "Based on BART", "Standalone"... | {
"modelname": "BrandNewBERT",
"uppercase_modelname": "BRAND_NEW_BERT",
"lowercase_modelname": "brand_new_bert",
"camelcase_modelname": "BrandNewBert",
"authors": "The HuggingFace Team",
"checkpoint_identifier": "brand-new-bert-base-cased",
"tokenizer_type": ["Based on BERT", "Based on BART", "Standalone"... | -1 |
huggingface/transformers | 20,307 | Remove double brackets | Fixes a small typo in the pipeline docs where there were two brackets. | stevhliu | 2022-11-17T19:40:39Z | 2022-11-18T17:29:24Z | f10cdba22e1a91a8f0774b75de3d2a3826ecb8cc | b2c863a3196150850d17548f25ee0575bccb8224 | Remove double brackets. Fixes a small typo in the pipeline docs where there were two brackets. | ./src/transformers/models/rembert/convert_rembert_tf_checkpoint_to_pytorch.py | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | # coding=utf-8
# Copyright 2018 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/conditional_detr/feature_extraction_conditional_detr.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/deformable_detr/feature_extraction_deformable_detr.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/detr/feature_extraction_detr.py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/yolos/feature_extraction_yolos.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/models/conditional_detr/test_modeling_conditional_detr.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/models/deformable_detr/test_modeling_deformable_detr.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./examples/tensorflow/translation/run_translation.py | #!/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");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... | #!/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");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/mobilebert/tokenization_mobilebert.py | # coding=utf-8
#
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | # coding=utf-8
#
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/models/mobilevit/test_feature_extraction_mobilevit.py | # coding=utf-8
# Copyright 2022 HuggingFace Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | # coding=utf-8
# Copyright 2022 HuggingFace Inc.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/models/resnet/__init__.py | -1 | ||
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/bert/tokenization_bert.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICEN... | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICEN... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/models/rag/test_retrieval_rag.py | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/models/mobilevit/test_modeling_mobilevit.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/wav2vec2_conformer/__init__.py | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2022 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2022 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/fnet/__init__.py | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2021 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2021 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/layoutxlm/tokenization_layoutxlm.py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/mobilenet_v2/feature_extraction_mobilenet_v2.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/models/dpr/test_modeling_dpr.py | # coding=utf-8
# Copyright 2020 Huggingface
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | # coding=utf-8
# Copyright 2020 Huggingface
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/models/blenderbot_small/__init__.py | -1 | ||
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/models/xlm_roberta_xl/__init__.py | -1 | ||
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/models/t5/test_tokenization_t5.py | # coding=utf-8
# Copyright 2018 Google T5 Authors and HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | # coding=utf-8
# Copyright 2018 Google T5 Authors and HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/models/poolformer/test_modeling_poolformer.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/yoso/convert_yoso_pytorch_to_pytorch.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/realm/tokenization_realm_fast.py | # coding=utf-8
# Copyright 2022 The REALM authors and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | # coding=utf-8
# Copyright 2022 The REALM authors and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/nat/modeling_nat.py | # coding=utf-8
# Copyright 2022 SHI Labs and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0... | # coding=utf-8
# Copyright 2022 SHI Labs and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./examples/research_projects/jax-projects/big_bird/evaluate.py | from datasets import load_from_disk
import jax
import jax.numpy as jnp
from bigbird_flax import FlaxBigBirdForNaturalQuestions
from transformers import BigBirdTokenizerFast
CATEGORY_MAPPING = {0: "null", 1: "short", 2: "long", 3: "yes", 4: "no"}
PUNCTUATION_SET_TO_EXCLUDE = set("".join(["‘", "’", "´", "`", ".", ",",... | from datasets import load_from_disk
import jax
import jax.numpy as jnp
from bigbird_flax import FlaxBigBirdForNaturalQuestions
from transformers import BigBirdTokenizerFast
CATEGORY_MAPPING = {0: "null", 1: "short", 2: "long", 3: "yes", 4: "no"}
PUNCTUATION_SET_TO_EXCLUDE = set("".join(["‘", "’", "´", "`", ".", ",",... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/generation/test_utils.py | # coding=utf-8
# Copyright 2020 The HuggingFace Team Inc.
#
# 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 clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | # coding=utf-8
# Copyright 2020 The HuggingFace Team Inc.
#
# 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 clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./examples/pytorch/text-classification/run_glue.py | #!/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");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | #!/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");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/tapas/modeling_tf_tapas.py | # coding=utf-8
# Copyright 2021 Google Research and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | # coding=utf-8
# Copyright 2021 Google Research and The HuggingFace Inc. team.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless re... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/generation/test_beam_constraints.py | # coding=utf-8
# Copyright 2020 The HuggingFace Team Inc.
#
# 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 clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | # coding=utf-8
# Copyright 2020 The HuggingFace Team Inc.
#
# 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 clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/vit_msn/modeling_vit_msn.py | # coding=utf-8
# Copyright 2022 Facebook AI and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-... | # coding=utf-8
# Copyright 2022 Facebook AI and The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./tests/models/donut/__init__.py | -1 | ||
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./src/transformers/models/convnext/feature_extraction_convnext.py | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | # coding=utf-8
# Copyright 2022 The HuggingFace Inc. team. All rights reserved.
#
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | -1 |
huggingface/transformers | 20,304 | fix device issue | # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to put it on the pro... | ydshieh | 2022-11-17T17:48:16Z | 2022-11-21T09:12:26Z | d316037ad71f8748aac9045ffd96970826456a04 | 8503cc755050c6ed5bc771e3244c29b71be1841e | fix device issue. # What does this PR do?
When this block is run
```
if isinstance(target_sizes, List):
img_h = torch.Tensor([i[0] for i in target_sizes])
img_w = torch.Tensor([i[1] for i in target_sizes])
```
`scale_fct` (defined a few line below) is always on `cpu`. We need to... | ./examples/research_projects/seq2seq-distillation/run_eval.py | #!/usr/bin/env python
import argparse
import datetime
import json
import time
import warnings
from logging import getLogger
from pathlib import Path
from typing import Dict, List
import torch
from tqdm import tqdm
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
from utils import calculate_bleu, calcula... | #!/usr/bin/env python
import argparse
import datetime
import json
import time
import warnings
from logging import getLogger
from pathlib import Path
from typing import Dict, List
import torch
from tqdm import tqdm
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
from utils import calculate_bleu, calcula... | -1 |