repo stringlengths 2 99 | file stringlengths 13 225 | code stringlengths 0 18.3M | file_length int64 0 18.3M | avg_line_length float64 0 1.36M | max_line_length int64 0 4.26M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
robust-transformers | robust-transformers-main/tests/trainer/test_data_collator.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... | 41,956 | 47.505202 | 116 | py |
robust-transformers | robust-transformers-main/tests/mobilebert/test_modeling_tf_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 requir... | 15,144 | 43.283626 | 114 | py |
robust-transformers | robust-transformers-main/tests/mobilebert/test_modeling_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 requir... | 15,383 | 40.578378 | 119 | py |
robust-transformers | robust-transformers-main/tests/mobilebert/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/nystromformer/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/nystromformer/test_modeling_nystromformer.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... | 12,748 | 39.601911 | 117 | py |
robust-transformers | robust-transformers-main/tests/openai/test_modeling_tf_openai.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 requir... | 10,700 | 36.416084 | 117 | py |
robust-transformers | robust-transformers-main/tests/openai/test_tokenization_openai.py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# 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 ... | 5,018 | 33.613793 | 118 | py |
robust-transformers | robust-transformers-main/tests/openai/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/openai/test_modeling_openai.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 requir... | 10,041 | 36.470149 | 117 | py |
robust-transformers | robust-transformers-main/tests/cpm/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/cpm/test_tokenization_cpm.py | # coding=utf-8
# Copyright 2018 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 o... | 1,623 | 39.6 | 118 | py |
robust-transformers | robust-transformers-main/tests/xlnet/test_tokenization_xlnet.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 requir... | 10,493 | 47.809302 | 3,443 | py |
robust-transformers | robust-transformers-main/tests/xlnet/test_modeling_xlnet.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 requir... | 27,839 | 37.882682 | 1,006 | py |
robust-transformers | robust-transformers-main/tests/xlnet/test_modeling_tf_xlnet.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 requir... | 21,530 | 41.635644 | 1,006 | py |
robust-transformers | robust-transformers-main/tests/xlnet/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/deepspeed/test_deepspeed.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... | 41,699 | 39.802348 | 126 | py |
robust-transformers | robust-transformers-main/tests/deepspeed/test_model_zoo.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... | 8,171 | 29.721805 | 98 | py |
robust-transformers | robust-transformers-main/tests/unispeech/test_modeling_unispeech.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... | 22,791 | 37.960684 | 118 | py |
robust-transformers | robust-transformers-main/tests/unispeech/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/wav2vec2_phoneme/test_tokenization_wav2vec2_phoneme.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... | 18,998 | 46.379052 | 185 | py |
robust-transformers | robust-transformers-main/tests/wav2vec2_phoneme/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/mpnet/test_tokenization_mpnet.py | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team, Microsoft Corporation.
#
# 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... | 2,867 | 33.554217 | 92 | py |
robust-transformers | robust-transformers-main/tests/mpnet/test_modeling_mpnet.py | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team, Microsoft Corporation.
#
# 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... | 10,038 | 38.679842 | 117 | py |
robust-transformers | robust-transformers-main/tests/mpnet/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/mpnet/test_modeling_tf_mpnet.py | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team, Microsoft Corporation.
#
# 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... | 10,433 | 38.673004 | 117 | py |
robust-transformers | robust-transformers-main/tests/prophetnet/test_tokenization_prophetnet.py | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team, The Microsoft Research 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
#
# ... | 7,818 | 36.772947 | 116 | py |
robust-transformers | robust-transformers-main/tests/prophetnet/test_modeling_prophetnet.py | # coding=utf-8
# Copyright 2020 The HuggingFace Inc. team, The Microsoft Research 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
#
# ... | 52,594 | 39.645286 | 695 | py |
robust-transformers | robust-transformers-main/tests/prophetnet/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/bart/test_modeling_bart.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 ... | 82,256 | 83.888545 | 7,207 | py |
robust-transformers | robust-transformers-main/tests/bart/test_modeling_flax_bart.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... | 42,070 | 73.068662 | 7,207 | py |
robust-transformers | robust-transformers-main/tests/bart/test_modeling_tf_bart.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... | 63,661 | 132.1841 | 7,208 | py |
robust-transformers | robust-transformers-main/tests/bart/test_tokenization_bart.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... | 8,274 | 43.489247 | 117 | py |
robust-transformers | robust-transformers-main/tests/bart/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/deit/test_feature_extraction_deit.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... | 7,083 | 34.42 | 111 | py |
robust-transformers | robust-transformers-main/tests/deit/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/deit/test_modeling_deit.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... | 19,688 | 39.679752 | 119 | py |
robust-transformers | robust-transformers-main/tests/sew_d/test_modeling_sew_d.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... | 22,348 | 37.800347 | 128 | py |
robust-transformers | robust-transformers-main/tests/sew_d/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/rag/test_tokenization_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... | 7,364 | 42.323529 | 119 | py |
robust-transformers | robust-transformers-main/tests/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... | 17,510 | 44.96063 | 118 | py |
robust-transformers | robust-transformers-main/tests/rag/test_modeling_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... | 44,941 | 37.28109 | 347 | py |
robust-transformers | robust-transformers-main/tests/rag/test_modeling_tf_rag.py | import json
import os
import shutil
import tempfile
import unittest
from unittest.mock import patch
import numpy as np
from transformers import BartTokenizer
from transformers.file_utils import cached_property, is_datasets_available, is_faiss_available, is_tf_available
from transformers.models.bert.tokenization_bert ... | 40,212 | 36.547152 | 117 | py |
robust-transformers | robust-transformers-main/tests/rag/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/vision_text_dual_encoder/test_modeling_flax_vision_text_dual_encoder.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... | 16,034 | 39.492424 | 127 | py |
robust-transformers | robust-transformers-main/tests/vision_text_dual_encoder/test_processor_vision_text_dual_encoder.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... | 6,881 | 39.245614 | 146 | py |
robust-transformers | robust-transformers-main/tests/vision_text_dual_encoder/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/vision_text_dual_encoder/test_modeling_vision_text_dual_encoder.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... | 21,533 | 39.784091 | 127 | py |
robust-transformers | robust-transformers-main/tests/qdqbert/test_modeling_qdqbert.py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. All rights reserved.
# Copyright 2021 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 at
#
# ... | 22,352 | 38.703375 | 189 | py |
robust-transformers | robust-transformers-main/tests/qdqbert/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/tokenization/test_tokenization_utils.py | # coding=utf-8
# Copyright 2018 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 a... | 13,001 | 44.145833 | 119 | py |
robust-transformers | robust-transformers-main/tests/tokenization/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/tokenization/test_tokenization_fast.py | # coding=utf-8
# Copyright 2019 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... | 8,082 | 47.401198 | 119 | py |
robust-transformers | robust-transformers-main/tests/deberta/test_tokenization_deberta.py | # coding=utf-8
# Copyright 2019 Hugging Face 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 a... | 7,412 | 45.622642 | 251 | py |
robust-transformers | robust-transformers-main/tests/deberta/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/deberta/test_modeling_deberta.py | # coding=utf-8
# Copyright 2018 Microsoft 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 ... | 11,402 | 39.010526 | 119 | py |
robust-transformers | robust-transformers-main/tests/deberta/test_modeling_tf_deberta.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... | 10,319 | 35.466431 | 117 | py |
robust-transformers | robust-transformers-main/tests/poolformer/test_feature_extraction_poolformer.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... | 6,887 | 34.505155 | 111 | py |
robust-transformers | robust-transformers-main/tests/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... | 13,048 | 38.304217 | 315 | py |
robust-transformers | robust-transformers-main/tests/poolformer/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/clip/test_modeling_tf_clip.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... | 27,021 | 39.880484 | 130 | py |
robust-transformers | robust-transformers-main/tests/clip/test_modeling_clip.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... | 35,755 | 38.817372 | 130 | py |
robust-transformers | robust-transformers-main/tests/clip/test_feature_extraction_clip.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... | 8,438 | 35.691304 | 116 | py |
robust-transformers | robust-transformers-main/tests/clip/test_modeling_flax_clip.py | import inspect
import tempfile
import unittest
import numpy as np
import transformers
from transformers import CLIPConfig, CLIPTextConfig, CLIPVisionConfig, is_flax_available, is_torch_available
from transformers.testing_utils import is_pt_flax_cross_test, require_flax, slow
from ..test_modeling_flax_common import F... | 24,252 | 40.246599 | 119 | py |
robust-transformers | robust-transformers-main/tests/clip/test_processor_clip.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... | 8,043 | 41.336842 | 210 | py |
robust-transformers | robust-transformers-main/tests/clip/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/clip/test_tokenization_clip.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... | 8,533 | 44.636364 | 210 | py |
robust-transformers | robust-transformers-main/tests/longformer/test_modeling_longformer.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 requir... | 29,819 | 41.297872 | 119 | py |
robust-transformers | robust-transformers-main/tests/longformer/test_modeling_tf_longformer.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 requir... | 30,357 | 42.555237 | 119 | py |
robust-transformers | robust-transformers-main/tests/longformer/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/lxmert/test_modeling_tf_lxmert.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 requir... | 32,873 | 40.195489 | 130 | py |
robust-transformers | robust-transformers-main/tests/lxmert/test_tokenization_lxmert.py | # coding=utf-8
# Copyright 2018 LXMERT Authors, The Hugging Face 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... | 3,036 | 32.744444 | 90 | py |
robust-transformers | robust-transformers-main/tests/lxmert/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/lxmert/test_modeling_lxmert.py | # coding=utf-8
# Copyright 2018 LXMERT Authors, The Hugging Face 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... | 34,334 | 38.061433 | 130 | py |
robust-transformers | robust-transformers-main/tests/wav2vec2_with_lm/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/wav2vec2_with_lm/test_processor_wav2vec2_with_lm.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... | 18,853 | 40.256018 | 140 | py |
robust-transformers | robust-transformers-main/tests/data2vec/test_modeling_data2vec_text.py | # coding=utf-8
# 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 requir... | 20,511 | 39.457594 | 119 | py |
robust-transformers | robust-transformers-main/tests/data2vec/test_modeling_data2vec_audio.py | # coding=utf-8
# 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 requir... | 29,540 | 38.705645 | 196 | py |
robust-transformers | robust-transformers-main/tests/data2vec/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/vision_encoder_decoder/test_modeling_vision_encoder_decoder.py | # coding=utf-8
# Copyright 2021 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... | 27,993 | 40.59584 | 124 | py |
robust-transformers | robust-transformers-main/tests/vision_encoder_decoder/test_modeling_tf_vision_encoder_decoder.py | # coding=utf-8
# Copyright 2022 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... | 36,930 | 42.295428 | 126 | py |
robust-transformers | robust-transformers-main/tests/vision_encoder_decoder/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/vision_encoder_decoder/test_modeling_flax_vision_encoder_decoder.py | # coding=utf-8
# Copyright 2021 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... | 21,025 | 39.279693 | 115 | py |
robust-transformers | robust-transformers-main/tests/unispeech_sat/test_modeling_unispeech_sat.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... | 36,941 | 38.980519 | 119 | py |
robust-transformers | robust-transformers-main/tests/unispeech_sat/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/xglm/test_tokenization_xglm.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... | 8,373 | 40.04902 | 844 | py |
robust-transformers | robust-transformers-main/tests/xglm/test_modeling_flax_xglm.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... | 15,313 | 43.005747 | 118 | py |
robust-transformers | robust-transformers-main/tests/xglm/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/xglm/test_modeling_xglm.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... | 19,562 | 40.535032 | 135 | py |
robust-transformers | robust-transformers-main/tests/perceiver/test_tokenization_perceiver.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... | 13,147 | 44.49481 | 208 | py |
robust-transformers | robust-transformers-main/tests/perceiver/test_modeling_perceiver.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... | 43,553 | 43.038423 | 141 | py |
robust-transformers | robust-transformers-main/tests/perceiver/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/squeezebert/test_modeling_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... | 11,684 | 39.572917 | 117 | py |
robust-transformers | robust-transformers-main/tests/squeezebert/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/squeezebert/test_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... | 1,880 | 39.021277 | 102 | py |
robust-transformers | robust-transformers-main/tests/electra/test_modeling_tf_electra.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 requir... | 23,999 | 38.800995 | 117 | py |
robust-transformers | robust-transformers-main/tests/electra/test_modeling_flax_electra.py | import unittest
import numpy as np
from transformers import ElectraConfig, is_flax_available
from transformers.testing_utils import require_flax, slow
from ..test_modeling_flax_common import FlaxModelTesterMixin, ids_tensor, random_attention_mask
if is_flax_available():
from transformers.models.electra.modelin... | 4,872 | 34.830882 | 114 | py |
robust-transformers | robust-transformers-main/tests/electra/test_modeling_electra.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 requir... | 16,534 | 35.260965 | 119 | py |
robust-transformers | robust-transformers-main/tests/electra/__init__.py | 0 | 0 | 0 | py | |
robust-transformers | robust-transformers-main/tests/swin/test_modeling_swin.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... | 16,067 | 38.870968 | 117 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.