repo
stringlengths
1
99
file
stringlengths
13
215
code
stringlengths
12
59.2M
file_length
int64
12
59.2M
avg_line_length
float64
3.82
1.48M
max_line_length
int64
12
2.51M
extension_type
stringclasses
1 value
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/models/flaubert/modeling_flaubert.py
# coding=utf-8 # Copyright 2019-present CNRS, Facebook Inc. 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 #...
17,590
39.532258
120
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/models/flaubert/__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...
3,000
33.895349
94
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/models/mbart/convert_mbart_original_checkpoint_to_pytorch.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...
3,035
35.142857
117
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/models/mbart/modeling_flax_mbart.py
# coding=utf-8 # Copyright 2021, The Facebook AI Research Team 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.or...
74,350
41.486286
206
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/models/mbart/modeling_tf_mbart.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/...
72,804
46.678454
236
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/models/mbart/modeling_mbart.py
# coding=utf-8 # Copyright 2021, The Facebook AI Research Team 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.or...
84,451
45.224412
159
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/models/mbart/__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...
3,526
31.657407
108
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/models/bigbird_pegasus/modeling_bigbird_pegasus.py
# coding=utf-8 # Copyright 2021 Google Research 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-...
142,054
45.851913
201
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/models/bigbird_pegasus/__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...
2,072
34.741379
114
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/models/bigbird_pegasus/convert_bigbird_pegasus_tf_to_pytorch.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...
6,295
35.604651
109
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/sagemaker/training_args_sm.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...
4,926
36.325758
118
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/commands/add_new_model.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...
9,393
40.021834
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/commands/convert.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,871
41.322581
117
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/commands/train.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...
6,371
38.57764
117
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/commands/env.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...
3,223
34.822222
105
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/onnx/__main__.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...
5,822
37.562914
118
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/onnx/convert.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,976
37.527897
113
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/benchmark/benchmark.py
# coding=utf-8 # Copyright 2018 The 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 at # # http://www.a...
10,613
38.604478
181
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/benchmark/benchmark_utils.py
# This file is adapted from the AllenNLP library at https://github.com/allenai/allennlp # Copyright 2020 The HuggingFace Team and the AllenNLP authors. 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 o...
37,263
39.949451
204
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/benchmark/benchmark_args.py
# coding=utf-8 # Copyright 2018 The 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 at # # http://www.a...
3,777
31.568966
127
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/utils/dummy_pt_objects.py
# This file is autogenerated by the command `make fix-copies`, do not edit. from ..file_utils import requires_backends class PyTorchBenchmark: def __init__(self, *args, **kwargs): requires_backends(self, ["torch"]) class PyTorchBenchmarkArguments: def __init__(self, *args, **kwargs): require...
90,543
23.248527
84
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/utils/dummy_flax_objects.py
# This file is autogenerated by the command `make fix-copies`, do not edit. from ..file_utils import requires_backends class FlaxForcedBOSTokenLogitsProcessor: def __init__(self, *args, **kwargs): requires_backends(self, ["flax"]) @classmethod def from_pretrained(cls, *args, **kwargs): re...
19,181
23.466837
75
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/utils/imagenet_classes.py
# ImageNet 2012 id's to class names id2label = { 0: "tench, Tinca tinca", 1: "goldfish, Carassius auratus", 2: "great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias", 3: "tiger shark, Galeocerdo cuvieri", 4: "hammerhead, hammerhead shark", 5: "electric ray, crampfi...
33,616
32.483068
133
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/utils/fx.py
import copy import functools import inspect from typing import Any, Dict, List, Optional, Union import torch from packaging import version from torch import nn from torch.fx import Graph, GraphModule, Node, Proxy, Tracer from torch.fx.node import Argument from transformers.file_utils import TORCH_FX_REQUIRED_VERSION,...
14,860
38.005249
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/data/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...
36,343
49.33795
181
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/data/test_generation_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...
3,438
33.049505
94
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/data/metrics/__init__.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The 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 cop...
3,780
35.708738
118
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/data/datasets/glue.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...
6,136
36.882716
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/data/datasets/squad.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...
9,042
39.918552
129
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/data/datasets/language_modeling.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...
22,634
42.781431
123
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/data/processors/glue.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The 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 cop...
23,286
35.103876
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/data/processors/squad.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...
33,283
38.436019
125
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/data/processors/utils.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The 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 cop...
13,833
38.413105
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/pipelines/base.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...
31,133
37.723881
137
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/pipelines/token_classification.py
import warnings from typing import TYPE_CHECKING, List, Optional, Tuple, Union import numpy as np from ..file_utils import ExplicitEnum, add_end_docstrings, is_tf_available, is_torch_available from ..modelcard import ModelCard from ..models.bert.tokenization_bert import BasicTokenizer from ..tokenization_utils import...
20,285
43.389497
218
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/pipelines/text_classification.py
import numpy as np from ..file_utils import add_end_docstrings, is_tf_available, is_torch_available from .base import PIPELINE_INIT_ARGS, Pipeline if is_tf_available(): from ..models.auto.modeling_tf_auto import TF_MODEL_FOR_SEQUENCE_CLASSIFICATION_MAPPING if is_torch_available(): from ..models.auto.modelin...
3,194
38.9375
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/pipelines/fill_mask.py
from typing import TYPE_CHECKING, Optional, Union import numpy as np from ..file_utils import add_end_docstrings, is_tf_available, is_torch_available from ..modelcard import ModelCard from ..tokenization_utils import PreTrainedTokenizer from ..utils import logging from .base import PIPELINE_INIT_ARGS, ArgumentHandler...
8,780
38.733032
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/pipelines/question_answering.py
from collections.abc import Iterable from typing import TYPE_CHECKING, Dict, List, Optional, Tuple, Union import numpy as np from ..data import SquadExample, SquadFeatures, squad_convert_examples_to_features from ..file_utils import PaddingStrategy, add_end_docstrings, is_tf_available, is_torch_available from ..model...
24,463
47.928
128
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/pipelines/text2text_generation.py
from typing import Optional from ..file_utils import add_end_docstrings, is_tf_available, is_torch_available from ..tokenization_utils import TruncationStrategy from ..utils import logging from .base import PIPELINE_INIT_ARGS, Pipeline if is_tf_available(): import tensorflow as tf from ..models.auto.modelin...
14,756
44.829193
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/pipelines/conversational.py
import uuid from typing import Any, Dict, List, Optional, Union from ..file_utils import add_end_docstrings, is_tf_available, is_torch_available from ..utils import logging from .base import PIPELINE_INIT_ARGS, Pipeline if is_tf_available(): import tensorflow as tf if is_torch_available(): import torch lo...
14,841
42.271137
120
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/pipelines/table_question_answering.py
import collections import numpy as np from ..file_utils import add_end_docstrings, is_torch_available, requires_backends from .base import PIPELINE_INIT_ARGS, ArgumentHandler, Pipeline, PipelineException if is_torch_available(): import torch from ..models.auto.modeling_auto import MODEL_FOR_TABLE_QUESTION_...
14,037
47.912892
137
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/pipelines/__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. # coding=utf-8 # Copyright 2018 The HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
24,467
46.976471
129
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/pipelines/text_generation.py
from ..file_utils import add_end_docstrings from .base import PIPELINE_INIT_ARGS, Pipeline @add_end_docstrings(PIPELINE_INIT_ARGS) class TextGenerationPipeline(Pipeline): """ Language generation pipeline using any :obj:`ModelWithLMHead`. This pipeline predicts the words that will follow a specified text p...
8,974
45.744792
147
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/src/transformers/pipelines/image_classification.py
import os from typing import TYPE_CHECKING, List, Optional, Union import requests from ..feature_extraction_utils import PreTrainedFeatureExtractor from ..file_utils import add_end_docstrings, is_torch_available, is_vision_available, requires_backends from ..utils import logging from .base import PIPELINE_INIT_ARGS, ...
5,155
37.477612
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/to_replace_{{cookiecutter.lowercase_modelname}}.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 ...
16,812
40.823383
218
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/test_modeling_tf_{{cookiecutter.lowercase_modelname}}.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,916
40.419881
193
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/test_modeling_{{cookiecutter.lowercase_modelname}}.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...
44,197
40.267974
234
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/modeling_tf_{{cookiecutter.lowercase_modelname}}.py
# coding=utf-8 # Copyright 2021 {{cookiecutter.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/lice...
140,605
47.00478
236
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/__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...
8,306
52.941558
178
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/modeling_{{cookiecutter.lowercase_modelname}}.py
# coding=utf-8 # Copyright 2021 {{cookiecutter.authors}} 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...
154,802
45.655515
217
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/templates/adding_a_new_example_script/{{cookiecutter.directory_name}}/run_{{cookiecutter.example_shortcut}}.py
#!/usr/bin/env python # coding=utf-8 # Copyright {{cookiecutter.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...
36,921
40.299776
130
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/scripts/fsmt/gen-card-facebook-wmt19.py
#!/usr/bin/env python # 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...
5,476
32.193939
270
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_generation_flax_logits_process.py
# coding=utf-8 # Copyright 2021 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...
12,689
41.019868
122
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_tf_camembert.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...
1,996
35.309091
98
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_big_bird.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...
42,150
45.472988
1,570
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_tf_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...
45,205
66.572496
7,207
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_feature_extraction_wav2vec2.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...
6,683
39.26506
108
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_led.py
# coding=utf-8 # Copyright 2021 Iz Beltagy, Matthew E. Peters, Arman Cohan 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://w...
96,276
170.311388
43,042
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_tokenization_mbart50.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...
13,140
52.856557
2,407
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_bigbird_pegasus.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...
109,870
141.135834
43,043
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_flax_common.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...
26,513
42.18241
117
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_image_utils.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...
17,394
46.013514
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_tf_blenderbot.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...
13,548
40.182371
117
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_trainer.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...
60,585
41.249651
148
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_pipelines_translation.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...
4,257
41.158416
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/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...
5,068
34.201389
136
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_tokenization_wav2vec2.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...
23,495
40.585841
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_flax_mbart.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,934
39.72043
118
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_luke.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...
24,276
38.733224
199
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_generation_stopping_criteria.py
import time import unittest from transformers import is_torch_available from transformers.testing_utils import require_torch, torch_device from .test_modeling_common import ids_tensor if is_torch_available(): import torch from transformers.generation_stopping_criteria import ( MaxLengthCriteria, ...
3,006
30.652632
98
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_mt5.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...
2,195
39.666667
115
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/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...
30,169
41.492958
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_flax_vit.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...
9,892
39.880165
117
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_tokenization_m2m_100.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...
11,982
48.721992
2,493
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_megatron_bert.py
# 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 # # http://www.a...
15,902
40.63089
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_tf_led.py
# coding=utf-8 # Copyright Iz Beltagy, Matthew E. Peters, Arman Cohan 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.ap...
18,794
42.406467
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_distilbert.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...
11,012
39.638376
117
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/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,400
42.280702
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_wav2vec2.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...
37,160
39.568777
333
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/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,142
43.277778
114
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_tf_hubert.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,404
39.224417
200
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_pipelines_summarization.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,934
75.298077
3,645
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/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,104
84.171162
7,207
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_onnx_v2.py
from pathlib import Path from tempfile import NamedTemporaryFile from unittest import TestCase from unittest.mock import patch from transformers import ( # LongformerConfig,; T5Config, AlbertConfig, AutoTokenizer, BartConfig, DistilBertConfig, GPT2Config, RobertaConfig, XLMRobertaConfig, ...
11,296
40.840741
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_xlm_roberta.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...
3,061
42.742857
116
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_utils_check_copies.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...
4,971
39.422764
118
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_flax_auto.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...
3,073
37.911392
100
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/conftest.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...
2,420
38.048387
107
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/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...
21,241
35.878472
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_flax_roberta.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...
5,104
35.205674
114
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_pipelines_feature_extraction.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...
6,121
70.186047
1,454
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_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...
60,656
56.768571
7,207
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_tapas.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...
44,465
39.982488
129
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_modeling_flax_gpt2.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...
14,464
43.371166
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_pipelines_conversational.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...
18,210
41.950472
119
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_pipelines_text_classification.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...
3,980
41.806452
110
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_tokenization_common.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...
173,918
50.409696
276
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_trainer_callback.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...
10,167
41.016529
118
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/test_optimization.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...
6,080
35.413174
101
py
Match-Prompt
Match-Prompt-main/mytransformers_ptunning/tests/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,571
44.28866
118
py