repo stringlengths 7 90 | file_url stringlengths 81 315 | file_path stringlengths 4 228 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:38:15 2026-01-05 02:33:18 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_skip_decorators.py | hf-dev-train/transformers-main/tests/utils/test_skip_decorators.py | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_image_utils.py | hf-dev-train/transformers-main/tests/utils/test_image_utils.py | # coding=utf-8
# Copyright 2021 HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_hf_argparser.py | hf-dev-train/transformers-main/tests/utils/test_hf_argparser.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_activations_tf.py | hf-dev-train/transformers-main/tests/utils/test_activations_tf.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_offline.py | hf-dev-train/transformers-main/tests/utils/test_offline.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_modeling_tf_core.py | hf-dev-train/transformers-main/tests/utils/test_modeling_tf_core.py | # coding=utf-8
# Copyright 2019 HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_file_utils.py | hf-dev-train/transformers-main/tests/utils/test_file_utils.py | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_cli.py | hf-dev-train/transformers-main/tests/utils/test_cli.py | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_add_new_model_like.py | hf-dev-train/transformers-main/tests/utils/test_add_new_model_like.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | true |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_convert_slow_tokenizer.py | hf-dev-train/transformers-main/tests/utils/test_convert_slow_tokenizer.py | import unittest
import warnings
from dataclasses import dataclass
from transformers.convert_slow_tokenizer import SpmConverter
from transformers.testing_utils import get_tests_dir
@dataclass
class FakeOriginalTokenizer:
vocab_file: str
class ConvertSlowTokenizerTest(unittest.TestCase):
def test_spm_convert... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_model_card.py | hf-dev-train/transformers-main/tests/utils/test_model_card.py | # coding=utf-8
# Copyright 2019 HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_image_processing_utils.py | hf-dev-train/transformers-main/tests/utils/test_image_processing_utils.py | # coding=utf-8
# Copyright 2022 HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/__init__.py | hf-dev-train/transformers-main/tests/utils/__init__.py | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false | |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_hub_utils.py | hf-dev-train/transformers-main/tests/utils/test_hub_utils.py | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_doc_samples.py | hf-dev-train/transformers-main/tests/utils/test_doc_samples.py | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_model_output.py | hf-dev-train/transformers-main/tests/utils/test_model_output.py | # coding=utf-8
# Copyright 2020 The Hugging Face Team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_generic.py | hf-dev-train/transformers-main/tests/utils/test_generic.py | # coding=utf-8
# Copyright 2019-present, the HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/utils/test_versions_utils.py | hf-dev-train/transformers-main/tests/utils/test_versions_utils.py | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/generation/test_logits_process.py | hf-dev-train/transformers-main/tests/generation/test_logits_process.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/generation/test_beam_constraints.py | hf-dev-train/transformers-main/tests/generation/test_beam_constraints.py | # coding=utf-8
# Copyright 2020 The HuggingFace Team Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/generation/test_flax_utils.py | hf-dev-train/transformers-main/tests/generation/test_flax_utils.py | # Copyright 2021 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/generation/test_stopping_criteria.py | hf-dev-train/transformers-main/tests/generation/test_stopping_criteria.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/generation/test_beam_search.py | hf-dev-train/transformers-main/tests/generation/test_beam_search.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/generation/test_tf_logits_process.py | hf-dev-train/transformers-main/tests/generation/test_tf_logits_process.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/generation/test_flax_logits_process.py | hf-dev-train/transformers-main/tests/generation/test_flax_logits_process.py | # coding=utf-8
# Copyright 2021 The HuggingFace Team Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a clone of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/generation/test_utils.py | hf-dev-train/transformers-main/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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | true |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/generation/test_tf_utils.py | hf-dev-train/transformers-main/tests/generation/test_tf_utils.py | # coding=utf-8
# Copyright 2022 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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/generation/__init__.py | hf-dev-train/transformers-main/tests/generation/__init__.py | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false | |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/generation/test_framework_agnostic.py | hf-dev-train/transformers-main/tests/generation/test_framework_agnostic.py | """
Framework agnostic tests for generate()-related methods.
"""
import numpy as np
from transformers import AutoTokenizer
from transformers.testing_utils import slow, torch_device
class GenerationIntegrationTestsMixin:
# To be populated by the child classes
framework_dependent_parameters = {
"AutoM... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/generation/test_configuration_utils.py | hf-dev-train/transformers-main/tests/generation/test_configuration_utils.py | # coding=utf-8
# Copyright 2022 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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/onnx/test_onnx_v2.py | hf-dev-train/transformers-main/tests/onnx/test_onnx_v2.py | import os
import unittest
from pathlib import Path
from tempfile import NamedTemporaryFile
from unittest import TestCase
from unittest.mock import patch
import pytest
from parameterized import parameterized
from transformers import AutoConfig, PreTrainedTokenizerBase, is_tf_available, is_torch_available
from transfor... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/onnx/test_features.py | hf-dev-train/transformers-main/tests/onnx/test_features.py | from tempfile import TemporaryDirectory
from unittest import TestCase
from unittest.mock import MagicMock, patch
from transformers import AutoModel, TFAutoModel
from transformers.onnx import FeaturesManager
from transformers.testing_utils import SMALL_MODEL_IDENTIFIER, require_tf, require_torch
@require_torch
@requi... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/onnx/test_onnx.py | hf-dev-train/transformers-main/tests/onnx/test_onnx.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/onnx/__init__.py | hf-dev-train/transformers-main/tests/onnx/__init__.py | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false | |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/repo_utils/test_check_dummies.py | hf-dev-train/transformers-main/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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/repo_utils/test_check_copies.py | hf-dev-train/transformers-main/tests/repo_utils/test_check_copies.py | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/repo_utils/test_tests_fetcher.py | hf-dev-train/transformers-main/tests/repo_utils/test_tests_fetcher.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/repo_utils/test_get_test_info.py | hf-dev-train/transformers-main/tests/repo_utils/test_get_test_info.py | # coding=utf-8
# Copyright 2023 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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/mixed_int8/test_mixed_int8.py | hf-dev-train/transformers-main/tests/mixed_int8/test_mixed_int8.py | # coding=utf-8
# Copyright 2022 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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/mixed_int8/__init__.py | hf-dev-train/transformers-main/tests/mixed_int8/__init__.py | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false | |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/extended/test_trainer_ext.py | hf-dev-train/transformers-main/tests/extended/test_trainer_ext.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/deepspeed/test_deepspeed.py | hf-dev-train/transformers-main/tests/deepspeed/test_deepspeed.py | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | true |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/tests/deepspeed/test_model_zoo.py | hf-dev-train/transformers-main/tests/deepspeed/test_model_zoo.py | # Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_doctest_list.py | hf-dev-train/transformers-main/utils/check_doctest_list.py | # coding=utf-8
# Copyright 2023 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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/update_tiny_models.py | hf-dev-train/transformers-main/utils/update_tiny_models.py | # coding=utf-8
# Copyright 2023 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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_config_docstrings.py | hf-dev-train/transformers-main/utils/check_config_docstrings.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_repo.py | hf-dev-train/transformers-main/utils/check_repo.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | true |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_doc_toc.py | hf-dev-train/transformers-main/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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_inits.py | hf-dev-train/transformers-main/utils/check_inits.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_task_guides.py | hf-dev-train/transformers-main/utils/check_task_guides.py | # coding=utf-8
# Copyright 2023 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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/extract_warnings.py | hf-dev-train/transformers-main/utils/extract_warnings.py | import argparse
import json
import os
import time
import zipfile
from get_ci_error_statistics import download_artifact, get_artifacts_links
from transformers import logging
logger = logging.get_logger(__name__)
def extract_warnings_from_single_artifact(artifact_path, targets):
"""Extract warnings from a downl... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_copies.py | hf-dev-train/transformers-main/utils/check_copies.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/notification_service.py | hf-dev-train/transformers-main/utils/notification_service.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | true |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_dummies.py | hf-dev-train/transformers-main/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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/custom_init_isort.py | hf-dev-train/transformers-main/utils/custom_init_isort.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/prepare_for_doc_test.py | hf-dev-train/transformers-main/utils/prepare_for_doc_test.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_config_attributes.py | hf-dev-train/transformers-main/utils/check_config_attributes.py | # coding=utf-8
# Copyright 2023 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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_table.py | hf-dev-train/transformers-main/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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/get_modified_files.py | hf-dev-train/transformers-main/utils/get_modified_files.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/sort_auto_mappings.py | hf-dev-train/transformers-main/utils/sort_auto_mappings.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/create_dummy_models.py | hf-dev-train/transformers-main/utils/create_dummy_models.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | true |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/get_ci_error_statistics.py | hf-dev-train/transformers-main/utils/get_ci_error_statistics.py | import argparse
import json
import math
import os
import subprocess
import time
import traceback
import zipfile
from collections import Counter
import requests
def get_job_links(workflow_run_id, token=None):
"""Extract job names and their job links in a GitHub Actions workflow run"""
headers = None
if t... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/notification_service_doc_tests.py | hf-dev-train/transformers-main/utils/notification_service_doc_tests.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/past_ci_versions.py | hf-dev-train/transformers-main/utils/past_ci_versions.py | import argparse
import os
past_versions_testing = {
"pytorch": {
"1.12": {
"torch": "1.12.1",
"torchvision": "0.13.1",
"torchaudio": "0.12.1",
"python": 3.9,
"cuda": "cu113",
"install": (
"python3 -m pip install --no-c... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/update_metadata.py | hf-dev-train/transformers-main/utils/update_metadata.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_self_hosted_runner.py | hf-dev-train/transformers-main/utils/check_self_hosted_runner.py | import argparse
import json
import subprocess
def get_runner_status(target_runners, token):
offline_runners = []
cmd = (
f'curl -H "Accept: application/vnd.github+json" -H "Authorization: Bearer {token}"'
" https://api.github.com/repos/huggingface/transformers/actions/runners"
)
outpu... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/tests_fetcher.py | hf-dev-train/transformers-main/utils/tests_fetcher.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/get_test_info.py | hf-dev-train/transformers-main/utils/get_test_info.py | # coding=utf-8
# Copyright 2023 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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/get_github_job_time.py | hf-dev-train/transformers-main/utils/get_github_job_time.py | import argparse
import math
import traceback
import dateutil.parser as date_parser
import requests
def extract_time_from_single_job(job):
"""Extract time info from a single job in a GitHub Actions workflow run"""
job_info = {}
start = job["started_at"]
end = job["completed_at"]
start_datetime ... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_model_tester.py | hf-dev-train/transformers-main/utils/check_model_tester.py | # coding=utf-8
# Copyright 2023 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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/print_env.py | hf-dev-train/transformers-main/utils/print_env.py | #!/usr/bin/env python3
# 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
#
# Unles... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/release.py | hf-dev-train/transformers-main/utils/release.py | # coding=utf-8
# Copyright 2021 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/check_tf_ops.py | hf-dev-train/transformers-main/utils/check_tf_ops.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/download_glue_data.py | hf-dev-train/transformers-main/utils/download_glue_data.py | """ Script for downloading all GLUE data.
Original source: https://gist.github.com/W4ngatang/60c2bdb54d156a41194446737ce03e2e
Note: for legal reasons, we are unable to host MRPC.
You can either use the version hosted by the SentEval team, which is already tokenized,
or you can download the original data from (https://... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/test_module/custom_tokenization_fast.py | hf-dev-train/transformers-main/utils/test_module/custom_tokenization_fast.py | from transformers import BertTokenizerFast
from .custom_tokenization import CustomTokenizer
class CustomTokenizerFast(BertTokenizerFast):
slow_tokenizer_class = CustomTokenizer
pass
| python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/test_module/custom_image_processing.py | hf-dev-train/transformers-main/utils/test_module/custom_image_processing.py | from transformers import CLIPImageProcessor
class CustomImageProcessor(CLIPImageProcessor):
pass
| python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/test_module/custom_feature_extraction.py | hf-dev-train/transformers-main/utils/test_module/custom_feature_extraction.py | from transformers import Wav2Vec2FeatureExtractor
class CustomFeatureExtractor(Wav2Vec2FeatureExtractor):
pass
| python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/test_module/custom_configuration.py | hf-dev-train/transformers-main/utils/test_module/custom_configuration.py | from transformers import PretrainedConfig
class CustomConfig(PretrainedConfig):
model_type = "custom"
def __init__(self, attribute=1, **kwargs):
self.attribute = attribute
super().__init__(**kwargs)
class NoSuperInitConfig(PretrainedConfig):
model_type = "custom"
def __init__(self,... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/test_module/custom_modeling.py | hf-dev-train/transformers-main/utils/test_module/custom_modeling.py | import torch
from transformers import PreTrainedModel
from .custom_configuration import CustomConfig, NoSuperInitConfig
class CustomModel(PreTrainedModel):
config_class = CustomConfig
def __init__(self, config):
super().__init__(config)
self.linear = torch.nn.Linear(config.hidden_size, conf... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/test_module/__init__.py | hf-dev-train/transformers-main/utils/test_module/__init__.py | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false | |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/test_module/custom_pipeline.py | hf-dev-train/transformers-main/utils/test_module/custom_pipeline.py | import numpy as np
from transformers import Pipeline
def softmax(outputs):
maxes = np.max(outputs, axis=-1, keepdims=True)
shifted_exp = np.exp(outputs - maxes)
return shifted_exp / shifted_exp.sum(axis=-1, keepdims=True)
class PairClassificationPipeline(Pipeline):
def _sanitize_parameters(self, **... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/test_module/custom_tokenization.py | hf-dev-train/transformers-main/utils/test_module/custom_tokenization.py | from transformers import BertTokenizer
class CustomTokenizer(BertTokenizer):
pass
| python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/utils/test_module/custom_processing.py | hf-dev-train/transformers-main/utils/test_module/custom_processing.py | from transformers import ProcessorMixin
class CustomProcessor(ProcessorMixin):
feature_extractor_class = "AutoFeatureExtractor"
tokenizer_class = "AutoTokenizer"
| python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/docs/source/_config.py | hf-dev-train/transformers-main/docs/source/_config.py | # docstyle-ignore
INSTALL_CONTENT = """
# Transformers installation
! pip install transformers datasets evaluate
# To install from source instead of the last release, comment the command above and uncomment the following one.
# ! pip install git+https://github.com/huggingface/transformers.git
"""
notebook_first_cells ... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/docs/source/de/_config.py | hf-dev-train/transformers-main/docs/source/de/_config.py | # docstyle-ignore
INSTALL_CONTENT = """
# Transformers installation
! pip install transformers datasets
# To install from source instead of the last release, comment the command above and uncomment the following one.
# ! pip install git+https://github.com/huggingface/transformers.git
"""
notebook_first_cells = [{"type... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/docs/source/en/_config.py | hf-dev-train/transformers-main/docs/source/en/_config.py | # docstyle-ignore
INSTALL_CONTENT = """
# Transformers installation
! pip install transformers datasets
# To install from source instead of the last release, comment the command above and uncomment the following one.
# ! pip install git+https://github.com/huggingface/transformers.git
"""
notebook_first_cells = [{"type... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/docs/source/fr/_config.py | hf-dev-train/transformers-main/docs/source/fr/_config.py | # docstyle-ignore
INSTALL_CONTENT = """
# Installation de Transformers
! pip install transformers datasets
# Pour installer à partir du code source au lieu de la dernière version, commentez la commande ci-dessus et décommentez la suivante.
# ! pip install git+https://github.com/huggingface/transformers.git
"""
noteboo... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/docs/source/pt/_config.py | hf-dev-train/transformers-main/docs/source/pt/_config.py | # docstyle-ignore
INSTALL_CONTENT = """
# Transformers installation
! pip install transformers datasets
# To install from source instead of the last release, comment the command above and uncomment the following one.
# ! pip install git+https://github.com/huggingface/transformers.git
"""
notebook_first_cells = [{"type... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/docs/source/it/_config.py | hf-dev-train/transformers-main/docs/source/it/_config.py | # docstyle-ignore
INSTALL_CONTENT = """
# Installazione di Transformers
! pip install transformers datasets
# Per installare dalla fonte invece dell'ultima versione rilasciata, commenta il comando sopra e
# rimuovi la modalità commento al comando seguente.
# ! pip install git+https://github.com/huggingface/transformers... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/docs/source/ko/_config.py | hf-dev-train/transformers-main/docs/source/ko/_config.py | # docstyle-ignore
INSTALL_CONTENT = """
# Transformers 설치 방법
! pip install transformers datasets
# 마지막 릴리스 대신 소스에서 설치하려면, 위 명령을 주석으로 바꾸고 아래 명령을 해제하세요.
# ! pip install git+https://github.com/huggingface/transformers.git
"""
notebook_first_cells = [{"type": "code", "content": INSTALL_CONTENT}]
black_avoid_patterns = {
... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/docs/source/es/_config.py | hf-dev-train/transformers-main/docs/source/es/_config.py | # docstyle-ignore
INSTALL_CONTENT = """
# Transformers installation
! pip install transformers datasets
# To install from source instead of the last release, comment the command above and uncomment the following one.
# ! pip install git+https://github.com/huggingface/transformers.git
"""
notebook_first_cells = [{"type... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/examples/run_on_remote.py | hf-dev-train/transformers-main/examples/run_on_remote.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/examples/flax/conftest.py | hf-dev-train/transformers-main/examples/flax/conftest.py | # Copyright 2021 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/examples/flax/test_flax_examples.py | hf-dev-train/transformers-main/examples/flax/test_flax_examples.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... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/examples/flax/vision/run_image_classification.py | hf-dev-train/transformers-main/examples/flax/vision/run_image_classification.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2021 The HuggingFace Team All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/examples/flax/summarization/run_summarization_flax.py | hf-dev-train/transformers-main/examples/flax/summarization/run_summarization_flax.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2021 The HuggingFace Team All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | true |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/examples/flax/text-classification/run_flax_glue.py | hf-dev-train/transformers-main/examples/flax/text-classification/run_flax_glue.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/examples/flax/image-captioning/run_image_captioning_flax.py | hf-dev-train/transformers-main/examples/flax/image-captioning/run_image_captioning_flax.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-... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | true |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/examples/flax/image-captioning/create_model_from_encoder_decoder_models.py | hf-dev-train/transformers-main/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-... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | false |
Sreyan88/GAMA | https://github.com/Sreyan88/GAMA/blob/041c3a623c6c635e65463cef16ce0cfde72e5c57/hf-dev-train/transformers-main/examples/flax/token-classification/run_flax_ner.py | hf-dev-train/transformers-main/examples/flax/token-classification/run_flax_ner.py | #!/usr/bin/env python
# coding=utf-8
# Copyright 2021 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | python | Apache-2.0 | 041c3a623c6c635e65463cef16ce0cfde72e5c57 | 2026-01-05T07:09:59.331526Z | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.