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,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./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,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./src/transformers/sagemaker/__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,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./scripts/fsmt/fsmt-make-super-tiny-model.py | #!/usr/bin/env python
# coding: utf-8
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | #!/usr/bin/env python
# coding: utf-8
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... | -1 |
huggingface/transformers | 20,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./tests/models/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... | # 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,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./src/transformers/generation_utils.py | # coding=utf-8
# Copyright 2020 The Google AI Language Team Authors, Facebook AI Research authors and The HuggingFace Inc. team.
# Copyright (c) 2020, 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 L... | # coding=utf-8
# Copyright 2020 The Google AI Language Team Authors, Facebook AI Research authors and The HuggingFace Inc. team.
# Copyright (c) 2020, 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 L... | -1 |
huggingface/transformers | 20,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./src/transformers/models/deberta_v2/modeling_tf_deberta_v2.py | # coding=utf-8
# Copyright 2021 Microsoft 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 2021 Microsoft 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,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./.circleci/create_circleci_config.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,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./tests/sagemaker/conftest.py | # we define a fixture function below and it will be "used" by
# referencing its name from tests
import os
import pytest
from attr import dataclass
os.environ["AWS_DEFAULT_REGION"] = "us-east-1" # defaults region
@dataclass
class SageMakerTestEnvironment:
framework: str
role = "arn:aws:iam::558105141721:... | # we define a fixture function below and it will be "used" by
# referencing its name from tests
import os
import pytest
from attr import dataclass
os.environ["AWS_DEFAULT_REGION"] = "us-east-1" # defaults region
@dataclass
class SageMakerTestEnvironment:
framework: str
role = "arn:aws:iam::558105141721:... | -1 |
huggingface/transformers | 20,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./src/transformers/models/trocr/modeling_trocr.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,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./tests/models/data2vec/__init__.py | -1 | ||
huggingface/transformers | 20,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./docs/source/en/perf_train_tpu.mdx | <!--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 applicable law or agreed... | <!--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 applicable law or agreed... | -1 |
huggingface/transformers | 20,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./examples/legacy/seq2seq/save_randomly_initialized_model.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... | #!/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... | -1 |
huggingface/transformers | 20,218 | Generate: add generation config class | # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, which matches this implementation.
Thr... | gante | 2022-11-14T19:59:29Z | 2022-11-21T13:30:16Z | 8503cc755050c6ed5bc771e3244c29b71be1841e | 3de07473da448d207eaed331e3b690eac9fc0d88 | Generate: add generation config class. # What does this PR do?
Adds the class that handles generation configurations. From this class, we can then start working on the interaction with other parts of the Hugging Face 🤗 ecosystem. See https://github.com/huggingface/transformers/issues/18655 for the original plan, wh... | ./src/transformers/utils/dummy_pt_objects.py | # This file is autogenerated by the command `make fix-copies`, do not edit.
# flake8: noqa
from ..utils import DummyObject, requires_backends
class PyTorchBenchmark(metaclass=DummyObject):
_backends = ["torch"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["torch"])
class PyTorchBen... | # This file is autogenerated by the command `make fix-copies`, do not edit.
# flake8: noqa
from ..utils import DummyObject, requires_backends
class PyTorchBenchmark(metaclass=DummyObject):
_backends = ["torch"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["torch"])
class PyTorchBen... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/flava/modeling_flava.py | # coding=utf-8
# Copyright 2022 Meta Platforms authors 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/LI... | # coding=utf-8
# Copyright 2022 Meta Platforms authors 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/LI... | 1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/glpn/modeling_glpn.py | # coding=utf-8
# Copyright 2022 KAIST 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 KAIST 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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/jukebox/modeling_jukebox.py | # coding=utf-8
# Copyright 2022 The OpenAI Team 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
#
# Unles... | # coding=utf-8
# Copyright 2022 The OpenAI Team 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
#
# Unles... | 1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/markuplm/modeling_markuplm.py | # coding=utf-8
# Copyright 2022 Microsoft Research Asia 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 2022 Microsoft Research Asia 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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/roc_bert/modeling_roc_bert.py | # coding=utf-8
# Copyright 2022 WeChatAI 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 WeChatAI 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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/segformer/modeling_segformer.py | # coding=utf-8
# Copyright 2021 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 2021 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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/tapas/modeling_tapas.py | # coding=utf-8
# Copyright 2020 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 2020 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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/trocr/modeling_trocr.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/videomae/modeling_videomae.py | # coding=utf-8
# Copyright 2022 Multimedia Computing Group, Nanjing University 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... | # coding=utf-8
# Copyright 2022 Multimedia Computing Group, Nanjing University 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... | 1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/wav2vec2/modeling_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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/yolos/modeling_yolos.py | # coding=utf-8
# Copyright 2022 School of EIC, Huazhong University of Science & Technology 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
... | # coding=utf-8
# Copyright 2022 School of EIC, Huazhong University of Science & Technology 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
... | 1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/vision_text_dual_encoder/configuration_vision_text_dual_encoder.py | # coding=utf-8
# Copyright 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 requir... | # coding=utf-8
# Copyright 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 requir... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./examples/research_projects/lxmert/extracting_data.py | import getopt
import json
import os
# import numpy as np
import sys
from collections import OrderedDict
import datasets
import numpy as np
import torch
from modeling_frcnn import GeneralizedRCNN
from processing_image import Preprocess
from utils import Config
"""
USAGE:
``python extracting_data.py -i <img_dir> -o ... | import getopt
import json
import os
# import numpy as np
import sys
from collections import OrderedDict
import datasets
import numpy as np
import torch
from modeling_frcnn import GeneralizedRCNN
from processing_image import Preprocess
from utils import Config
"""
USAGE:
``python extracting_data.py -i <img_dir> -o ... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./utils/check_doc_toc.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/deberta_v2/test_modeling_deberta_v2.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 ... | # 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 ... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/pipelines/test_pipelines_fill_mask.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/qdqbert/__init__.py | -1 | ||
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/phobert/tokenization_phobert.py | # coding=utf-8
# Copyright (c) 2020, VinAI Research and the HuggingFace Inc. team.
# Copyright 2018 The Open AI 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 th... | # coding=utf-8
# Copyright (c) 2020, VinAI Research and the HuggingFace Inc. team.
# Copyright 2018 The Open AI 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 th... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/bart/configuration_bart.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/lxmert/__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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/bert_generation/test_modeling_bert_generation.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... | # 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 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/esm/openfold_utils/data_transforms.py | # Copyright 2021 AlQuraishi Laboratory
# Copyright 2021 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may 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... | # Copyright 2021 AlQuraishi Laboratory
# Copyright 2021 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may 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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/reformer/modeling_reformer.py | # coding=utf-8
# Copyright 2020 The Trax 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 copy of the License at... | # coding=utf-8
# Copyright 2020 The Trax 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 copy of the License at... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/esm/openfold_utils/rigid_utils.py | # Copyright 2021 AlQuraishi Laboratory
# Copyright 2021 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may 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... | # Copyright 2021 AlQuraishi Laboratory
# Copyright 2021 DeepMind Technologies Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may 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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/nezha/__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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/gptj/test_modeling_tf_gptj.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... | # 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 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/marian/test_modeling_marian.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 ... | # 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 ... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/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... | # 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... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./examples/research_projects/jax-projects/big_bird/bigbird_flax.py | import json
import os
from dataclasses import dataclass
from functools import partial
from typing import Callable
from tqdm.auto import tqdm
import flax.linen as nn
import jax
import jax.numpy as jnp
import joblib
import optax
import wandb
from flax import jax_utils, struct, traverse_util
from flax.serialization impo... | import json
import os
from dataclasses import dataclass
from functools import partial
from typing import Callable
from tqdm.auto import tqdm
import flax.linen as nn
import jax
import jax.numpy as jnp
import joblib
import optax
import wandb
from flax import jax_utils, struct, traverse_util
from flax.serialization impo... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/xglm/tokenization_xglm.py | # coding=utf-8
# Copyright The HuggingFace Team and The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICE... | # coding=utf-8
# Copyright The HuggingFace Team and The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICE... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/canine/__init__.py | -1 | ||
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./examples/research_projects/bert-loses-patience/test_run_glue_with_pabee.py | import argparse
import logging
import sys
from unittest.mock import patch
import run_glue_with_pabee
from transformers.testing_utils import TestCasePlus
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger()
def get_setup_file():
parser = argparse.ArgumentParser()
parser.add_argument("-f")
... | import argparse
import logging
import sys
from unittest.mock import patch
import run_glue_with_pabee
from transformers.testing_utils import TestCasePlus
logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger()
def get_setup_file():
parser = argparse.ArgumentParser()
parser.add_argument("-f")
... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/pegasus_x/modeling_pegasus_x.py | # coding=utf-8
# Copyright 2022, Google 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, Google 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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/feature_extraction_utils.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./examples/legacy/run_chinese_ref.py | #!/usr/bin/env python
import argparse
import json
from typing import List
from ltp import LTP
from transformers import BertTokenizer
def _is_chinese_char(cp):
"""Checks whether CP is the codepoint of a CJK character."""
# This defines a "chinese character" as anything in the CJK Unicode block:
# https:... | #!/usr/bin/env python
import argparse
import json
from typing import List
from ltp import LTP
from transformers import BertTokenizer
def _is_chinese_char(cp):
"""Checks whether CP is the codepoint of a CJK character."""
# This defines a "chinese character" as anything in the CJK Unicode block:
# https:... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/big_bird/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... | # 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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/mobilevit/image_processing_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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./examples/research_projects/bertabs/utils_summarization.py | import os
from collections import deque
import torch
from torch.utils.data import Dataset
# ------------
# Data loading
# ------------
class CNNDMDataset(Dataset):
"""Abstracts the dataset used to train seq2seq models.
The class will process the documents that are located in the specified
folder. The ... | import os
from collections import deque
import torch
from torch.utils.data import Dataset
# ------------
# Data loading
# ------------
class CNNDMDataset(Dataset):
"""Abstracts the dataset used to train seq2seq models.
The class will process the documents that are located in the specified
folder. The ... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/dependency_versions_table.py | # THIS FILE HAS BEEN AUTOGENERATED. To update:
# 1. modify the `_deps` dict in setup.py
# 2. run `make deps_table_update``
deps = {
"Pillow": "Pillow",
"accelerate": "accelerate>=0.10.0",
"black": "black==22.3",
"codecarbon": "codecarbon==1.2.0",
"cookiecutter": "cookiecutter==1.7.3",
"dataclass... | # THIS FILE HAS BEEN AUTOGENERATED. To update:
# 1. modify the `_deps` dict in setup.py
# 2. run `make deps_table_update``
deps = {
"Pillow": "Pillow",
"accelerate": "accelerate>=0.10.0",
"black": "black==22.3",
"codecarbon": "codecarbon==1.2.0",
"cookiecutter": "cookiecutter==1.7.3",
"dataclass... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/convbert/tokenization_convbert.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/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... | # 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... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/fnet/convert_fnet_original_flax_checkpoint_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... | # 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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/trainer/test_trainer_seq2seq.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/speech_encoder_decoder/test_modeling_speech_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... | # 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... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./utils/check_dummies.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./examples/research_projects/codeparrot/scripts/preprocessing.py | import gzip
import hashlib
import json
import multiprocessing
import os
import re
import shutil
import time
from pathlib import Path
import numpy as np
from datasets import load_dataset
from arguments import PreprocessingArguments
from minhash_deduplication import deduplicate_dataset
from transformers import AutoToke... | import gzip
import hashlib
import json
import multiprocessing
import os
import re
import shutil
import time
from pathlib import Path
import numpy as np
from datasets import load_dataset
from arguments import PreprocessingArguments
from minhash_deduplication import deduplicate_dataset
from transformers import AutoToke... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/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 ... | 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 ... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/t5/tokenization_t5.py | # coding=utf-8
# Copyright 2018 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 required by... | # coding=utf-8
# Copyright 2018 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 required by... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/groupvit/__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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}/tokenization_{{cookiecutter.lowercase_modelname}}.py | # coding=utf-8
# Copyright 2022 {{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... | # coding=utf-8
# Copyright 2022 {{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... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/splinter/__init__.py | -1 | ||
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/test_feature_extraction_common.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/markuplm/test_processor_markuplm.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/dpt/__init__.py | -1 | ||
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./examples/flax/image-captioning/create_model_from_encoder_decoder_models.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2022 The HuggingFace Team All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may 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 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-... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./utils/check_table.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/vit_msn/__init__.py | -1 | ||
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/pipelines/zero_shot_classification.py | from typing import List, Union
import numpy as np
from ..tokenization_utils import TruncationStrategy
from ..utils import add_end_docstrings, logging
from .base import PIPELINE_INIT_ARGS, ArgumentHandler, ChunkPipeline
logger = logging.get_logger(__name__)
class ZeroShotClassificationArgumentHandler(ArgumentHandl... | from typing import List, Union
import numpy as np
from ..tokenization_utils import TruncationStrategy
from ..utils import add_end_docstrings, logging
from .base import PIPELINE_INIT_ARGS, ArgumentHandler, ChunkPipeline
logger = logging.get_logger(__name__)
class ZeroShotClassificationArgumentHandler(ArgumentHandl... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/m2m_100/configuration_m2m_100.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/marian/modeling_marian.py | # coding=utf-8
# Copyright 2021 The Marian Team 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/licen... | # coding=utf-8
# Copyright 2021 The Marian Team 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/licen... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/roc_bert/configuration_roc_bert.py | # coding=utf-8
# Copyright 2022 WeChatAI 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 WeChatAI 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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/gpt2/test_tokenization_gpt2.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... | # 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 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/sagemaker/__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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/data2vec/modeling_tf_data2vec_vision.py | # coding=utf-8
# Copyright 2022 Meta Platforms 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/LICEN... | # coding=utf-8
# Copyright 2022 Meta Platforms 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/LICEN... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/hubert/configuration_hubert.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/generation/utils.py | # coding=utf-8
# Copyright 2020 The Google AI Language Team Authors, Facebook AI Research authors and The HuggingFace Inc. team.
# Copyright (c) 2020, 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 L... | # coding=utf-8
# Copyright 2020 The Google AI Language Team Authors, Facebook AI Research authors and The HuggingFace Inc. team.
# Copyright (c) 2020, 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 L... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/utils/model_parallel_utils.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... | # 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 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./examples/research_projects/bertabs/modeling_bertabs.py | # MIT License
# Copyright (c) 2019 Yang Liu and the HuggingFace team
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, c... | # MIT License
# Copyright (c) 2019 Yang Liu and the HuggingFace team
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, c... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/dpt/modeling_dpt.py | # coding=utf-8
# Copyright 2022 Intel Labs, OpenMMLab 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/license... | # coding=utf-8
# Copyright 2022 Intel Labs, OpenMMLab 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/license... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/utils/test_logging.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/utils/dummy_flax_objects.py | # This file is autogenerated by the command `make fix-copies`, do not edit.
# flake8: noqa
from ..utils import DummyObject, requires_backends
class FlaxForcedBOSTokenLogitsProcessor(metaclass=DummyObject):
_backends = ["flax"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["flax"])
c... | # This file is autogenerated by the command `make fix-copies`, do not edit.
# flake8: noqa
from ..utils import DummyObject, requires_backends
class FlaxForcedBOSTokenLogitsProcessor(metaclass=DummyObject):
_backends = ["flax"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["flax"])
c... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./examples/legacy/seq2seq/convert_model_to_fp16.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... | #!/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... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./examples/research_projects/performer/run_mlm_performer.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/fnet/test_tokenization_fnet.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... | # 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... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/van/configuration_van.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/poolformer/__init__.py | -1 | ||
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./.git/objects/b3/9c390291a471f1fa0afc44b0749001762a631e | x+)JMU014e040031QOKL+d;kѼEa0=qڹ0[ RRϻbZ,+FMN"`>y$s59bR/VB%fEW0݀nqr,δ"=
V^W\DgF&ãkwmxڞu<e^df $U2{(m+OJd:$ɢ,Lڃ
7N`Hf34}کبfbEbi' -{.;NҟSވC$JU|"47[lWH24;'(L[+jƬEP"?w
Iw"Y</l$焄6: | x+)JMU014e040031QOKL+d;kѼEa0=qڹ0[ RRϻbZ,+FMN"`>y$s59bR/VB%fEW0݀nqr,δ"=
V^W\DgF&ãkwmxڞu<e^df $U2{(m+OJd:$ɢ,Lڃ
7N`Hf34}کبfbEbi' -{.;NҟSވC$JU|"47[lWH24;'(L[+jƬEP"?w
Iw"Y</l$焄6: | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./docs/source/pt/tasks/token_classification.mdx | <!--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 applicable law or agreed... | <!--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 applicable law or agreed... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./examples/research_projects/codeparrot/scripts/arguments.py | from dataclasses import dataclass, field
from typing import Optional
@dataclass
class TrainingArguments:
"""
Configuration for training model.
"""
model_ckpt: Optional[str] = field(
default="codeparrot/codeparrot", metadata={"help": "Model name or path of model to be trained."}
)
save... | from dataclasses import dataclass, field
from typing import Optional
@dataclass
class TrainingArguments:
"""
Configuration for training model.
"""
model_ckpt: Optional[str] = field(
default="codeparrot/codeparrot", metadata={"help": "Model name or path of model to be trained."}
)
save... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./hubconf.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./src/transformers/models/maskformer/modeling_maskformer.py | # coding=utf-8
# Copyright 2022 Meta Platforms, Inc.s 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/license... | # coding=utf-8
# Copyright 2022 Meta Platforms, Inc.s 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/license... | -1 |
huggingface/transformers | 20,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./ISSUES.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,217 | remaining pytorch type hints | # What does this PR do?
Type hints
@Rocketknight1 | IMvision12 | 2022-11-14T18:43:23Z | 2022-11-16T16:53:40Z | 9ea1dbd2bed21a50cdc52e9e41a906d2ae155a66 | d4d23141c42898a2d3eb4c39baa9b63b72093fd9 | remaining pytorch type hints. # What does this PR do?
Type hints
@Rocketknight1 | ./tests/models/van/__init__.py | -1 |