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/examples/pytorch/question-answering/run_qa_beam_search.py
hf-dev-train/transformers-main/examples/pytorch/question-answering/run_qa_beam_search.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/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/pytorch/question-answering/run_qa.py
hf-dev-train/transformers-main/examples/pytorch/question-answering/run_qa.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/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/pytorch/question-answering/utils_qa.py
hf-dev-train/transformers-main/examples/pytorch/question-answering/utils_qa.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...
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/pytorch/language-modeling/run_plm.py
hf-dev-train/transformers-main/examples/pytorch/language-modeling/run_plm.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/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/pytorch/language-modeling/run_mlm_no_trainer.py
hf-dev-train/transformers-main/examples/pytorch/language-modeling/run_mlm_no_trainer.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/pytorch/language-modeling/run_mlm.py
hf-dev-train/transformers-main/examples/pytorch/language-modeling/run_mlm.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/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/pytorch/language-modeling/run_clm_no_trainer.py
hf-dev-train/transformers-main/examples/pytorch/language-modeling/run_clm_no_trainer.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/pytorch/language-modeling/run_clm.py
hf-dev-train/transformers-main/examples/pytorch/language-modeling/run_clm.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LI...
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/pytorch/audio-classification/run_audio_classification.py
hf-dev-train/transformers-main/examples/pytorch/audio-classification/run_audio_classification.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/research_projects/distillation/lm_seqs_dataset.py
hf-dev-train/transformers-main/examples/research_projects/distillation/lm_seqs_dataset.py
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
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/research_projects/distillation/grouped_batch_sampler.py
hf-dev-train/transformers-main/examples/research_projects/distillation/grouped_batch_sampler.py
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
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/research_projects/distillation/train.py
hf-dev-train/transformers-main/examples/research_projects/distillation/train.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/examples/research_projects/distillation/distiller.py
hf-dev-train/transformers-main/examples/research_projects/distillation/distiller.py
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
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/research_projects/distillation/run_squad_w_distillation.py
hf-dev-train/transformers-main/examples/research_projects/distillation/run_squad_w_distillation.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
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/research_projects/distillation/utils.py
hf-dev-train/transformers-main/examples/research_projects/distillation/utils.py
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team and Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
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/research_projects/distillation/scripts/binarized_data.py
hf-dev-train/transformers-main/examples/research_projects/distillation/scripts/binarized_data.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/examples/research_projects/distillation/scripts/extract_distilbert.py
hf-dev-train/transformers-main/examples/research_projects/distillation/scripts/extract_distilbert.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/examples/research_projects/distillation/scripts/extract.py
hf-dev-train/transformers-main/examples/research_projects/distillation/scripts/extract.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/examples/research_projects/distillation/scripts/token_counts.py
hf-dev-train/transformers-main/examples/research_projects/distillation/scripts/token_counts.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/examples/research_projects/movement-pruning/counts_parameters.py
hf-dev-train/transformers-main/examples/research_projects/movement-pruning/counts_parameters.py
# Copyright 2020-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 applicable law o...
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/research_projects/movement-pruning/bertarize.py
hf-dev-train/transformers-main/examples/research_projects/movement-pruning/bertarize.py
# Copyright 2020-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 applicable law o...
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/research_projects/movement-pruning/masked_run_squad.py
hf-dev-train/transformers-main/examples/research_projects/movement-pruning/masked_run_squad.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
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/research_projects/movement-pruning/masked_run_glue.py
hf-dev-train/transformers-main/examples/research_projects/movement-pruning/masked_run_glue.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
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/research_projects/movement-pruning/emmental/__init__.py
hf-dev-train/transformers-main/examples/research_projects/movement-pruning/emmental/__init__.py
from .configuration_bert_masked import MaskedBertConfig from .modeling_bert_masked import ( MaskedBertForMultipleChoice, MaskedBertForQuestionAnswering, MaskedBertForSequenceClassification, MaskedBertForTokenClassification, MaskedBertModel, ) from .modules import *
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/research_projects/movement-pruning/emmental/configuration_bert_masked.py
hf-dev-train/transformers-main/examples/research_projects/movement-pruning/emmental/configuration_bert_masked.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
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/research_projects/movement-pruning/emmental/modeling_bert_masked.py
hf-dev-train/transformers-main/examples/research_projects/movement-pruning/emmental/modeling_bert_masked.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a cop...
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/research_projects/movement-pruning/emmental/modules/binarizer.py
hf-dev-train/transformers-main/examples/research_projects/movement-pruning/emmental/modules/binarizer.py
# coding=utf-8 # Copyright 2020-present, AllenAI Authors, University of Illinois Urbana-Champaign, # Intel Nervana Systems 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 ...
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/research_projects/movement-pruning/emmental/modules/__init__.py
hf-dev-train/transformers-main/examples/research_projects/movement-pruning/emmental/modules/__init__.py
from .binarizer import MagnitudeBinarizer, ThresholdBinarizer, TopKBinarizer from .masked_nn import MaskedLinear
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/research_projects/movement-pruning/emmental/modules/masked_nn.py
hf-dev-train/transformers-main/examples/research_projects/movement-pruning/emmental/modules/masked_nn.py
# coding=utf-8 # Copyright 2020-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/examples/research_projects/decision_transformer/run_decision_transformer.py
hf-dev-train/transformers-main/examples/research_projects/decision_transformer/run_decision_transformer.py
import gym import numpy as np import torch from mujoco_py import GlfwContext from transformers import DecisionTransformerModel GlfwContext(offscreen=True) # Create a window to init GLFW. def get_action(model, states, actions, rewards, returns_to_go, timesteps): # we don't care about the past rewards in this m...
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/research_projects/tapex/run_wikitablequestions_with_tapex.py
hf-dev-train/transformers-main/examples/research_projects/tapex/run_wikitablequestions_with_tapex.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2022 The 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.apac...
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/research_projects/tapex/wikisql_utils.py
hf-dev-train/transformers-main/examples/research_projects/tapex/wikisql_utils.py
# coding=utf-8 # Copyright 2022 The Microsoft, The 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/lic...
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/research_projects/tapex/run_tabfact_with_tapex.py
hf-dev-train/transformers-main/examples/research_projects/tapex/run_tabfact_with_tapex.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2022 The 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.apac...
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/research_projects/tapex/run_wikisql_with_tapex.py
hf-dev-train/transformers-main/examples/research_projects/tapex/run_wikisql_with_tapex.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2022 The 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.apac...
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/research_projects/fsner/setup.py
hf-dev-train/transformers-main/examples/research_projects/fsner/setup.py
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="fsner", version="0.0.1", author="msi sayef", author_email="msi.sayef@gmail.com", description="Few-shot Named Entity Recognition", long_description=long_description, ...
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/research_projects/fsner/src/fsner/model.py
hf-dev-train/transformers-main/examples/research_projects/fsner/src/fsner/model.py
import torch from transformers import AutoModel class FSNERModel(torch.nn.Module): """ The FSNER model implements a few-shot named entity recognition method from the paper `Example-Based Named Entity Recognition <https://arxiv.org/abs/2008.10570>`__ by Morteza Ziyadi, Yuting Sun, Abhishek Goswami, Jade H...
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/research_projects/fsner/src/fsner/tokenizer_utils.py
hf-dev-train/transformers-main/examples/research_projects/fsner/src/fsner/tokenizer_utils.py
import torch from transformers import AutoTokenizer class FSNERTokenizerUtils(object): def __init__(self, pretrained_model_name_or_path): self.tokenizer = AutoTokenizer.from_pretrained(pretrained_model_name_or_path) def tokenize(self, x): """ Wrapper function for tokenizing query and...
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/research_projects/fsner/src/fsner/__init__.py
hf-dev-train/transformers-main/examples/research_projects/fsner/src/fsner/__init__.py
from .model import FSNERModel from .tokenizer_utils import FSNERTokenizerUtils __all__ = ["FSNERModel", "FSNERTokenizerUtils"]
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/research_projects/lxmert/visualizing_image.py
hf-dev-train/transformers-main/examples/research_projects/lxmert/visualizing_image.py
""" coding=utf-8 Copyright 2018, Antonio Mendoza Hao Tan, Mohit Bansal Adapted From Facebook Inc, Detectron2 Licensed under the Apache License, Version 2.0 (the "License"); you 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...
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/research_projects/lxmert/extracting_data.py
hf-dev-train/transformers-main/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 ...
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/research_projects/lxmert/modeling_frcnn.py
hf-dev-train/transformers-main/examples/research_projects/lxmert/modeling_frcnn.py
""" coding=utf-8 Copyright 2018, Antonio Mendoza Hao Tan, Mohit Bansal Adapted From Facebook Inc, Detectron2 && Huggingface Co. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www...
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/research_projects/lxmert/processing_image.py
hf-dev-train/transformers-main/examples/research_projects/lxmert/processing_image.py
""" coding=utf-8 Copyright 2018, Antonio Mendoza Hao Tan, Mohit Bansal Adapted From Facebook Inc, Detectron2 Licensed under the Apache License, Version 2.0 (the "License"); you 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...
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/research_projects/lxmert/utils.py
hf-dev-train/transformers-main/examples/research_projects/lxmert/utils.py
""" coding=utf-8 Copyright 2018, Antonio Mendoza Hao Tan, Mohit Bansal, Huggingface team :) Adapted From Facebook Inc, Detectron2 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
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/research_projects/mm-imdb/utils_mmimdb.py
hf-dev-train/transformers-main/examples/research_projects/mm-imdb/utils_mmimdb.py
# coding=utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # Copyright (c) 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...
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/research_projects/mm-imdb/run_mmimdb.py
hf-dev-train/transformers-main/examples/research_projects/mm-imdb/run_mmimdb.py
# coding=utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # Copyright (c) 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...
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/research_projects/quantization-qdqbert/ort-infer-benchmark.py
hf-dev-train/transformers-main/examples/research_projects/quantization-qdqbert/ort-infer-benchmark.py
import os import time import numpy as np import onnxruntime as ort os.environ["ORT_TENSORRT_INT8_ENABLE"] = "1" os.environ["ORT_TENSORRT_INT8_USE_NATIVE_CALIBRATION_TABLE"] = "0" os.environ["ORT_TENSORRT_ENGINE_CACHE_ENABLE"] = "1" sess_opt = ort.SessionOptions() sess_opt.graph_optimization_level = ort.GraphOptimiz...
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/research_projects/quantization-qdqbert/run_quant_qa.py
hf-dev-train/transformers-main/examples/research_projects/quantization-qdqbert/run_quant_qa.py
#!/usr/bin/env python # coding=utf-8 # Copyright 2020 The HuggingFace Team All rights reserved. # Copyright 2021 NVIDIA Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the ...
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/research_projects/quantization-qdqbert/evaluate-hf-trt-qa.py
hf-dev-train/transformers-main/examples/research_projects/quantization-qdqbert/evaluate-hf-trt-qa.py
# coding=utf-8 # Copyright 2021 NVIDIA Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
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/research_projects/quantization-qdqbert/quant_trainer.py
hf-dev-train/transformers-main/examples/research_projects/quantization-qdqbert/quant_trainer.py
# coding=utf-8 # Copyright 2021 NVIDIA Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
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/research_projects/quantization-qdqbert/trainer_quant_qa.py
hf-dev-train/transformers-main/examples/research_projects/quantization-qdqbert/trainer_quant_qa.py
# coding=utf-8 # Copyright 2020 The HuggingFace Team All rights reserved. # Copyright 2021 NVIDIA Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # htt...
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/research_projects/quantization-qdqbert/utils_qa.py
hf-dev-train/transformers-main/examples/research_projects/quantization-qdqbert/utils_qa.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...
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/research_projects/pplm/pplm_classification_head.py
hf-dev-train/transformers-main/examples/research_projects/pplm/pplm_classification_head.py
from torch import nn class ClassificationHead(nn.Module): """Classification Head for transformer encoders""" def __init__(self, class_size, embed_size): super().__init__() self.class_size = class_size self.embed_size = embed_size # self.mlp1 = nn.Linear(embed_size, embed_size...
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/research_projects/pplm/run_pplm.py
hf-dev-train/transformers-main/examples/research_projects/pplm/run_pplm.py
#! /usr/bin/env python3 # coding=utf-8 # Copyright (c) 2019 Uber Technologies, 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 ...
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/research_projects/pplm/run_pplm_discrim_train.py
hf-dev-train/transformers-main/examples/research_projects/pplm/run_pplm_discrim_train.py
#! /usr/bin/env python3 # coding=utf-8 # Copyright (c) 2019 Uber Technologies, 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 ...
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/research_projects/longform-qa/eli5_app.py
hf-dev-train/transformers-main/examples/research_projects/longform-qa/eli5_app.py
import datasets import faiss import numpy as np import streamlit as st import torch from elasticsearch import Elasticsearch from eli5_utils import ( embed_questions_for_retrieval, make_qa_s2s_model, qa_s2s_generate, query_es_index, query_qa_dense_index, ) import transformers from transformers impor...
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/research_projects/longform-qa/eli5_utils.py
hf-dev-train/transformers-main/examples/research_projects/longform-qa/eli5_utils.py
import functools import math import os # noqa: F401 from random import choice, randint from time import time import datasets # noqa: F401 import faiss # noqa: F401 import numpy as np import pandas as pd import torch import torch.utils.checkpoint as checkpoint from elasticsearch import Elasticsearch # noqa: F401 fr...
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/research_projects/luke/luke_utils.py
hf-dev-train/transformers-main/examples/research_projects/luke/luke_utils.py
import unicodedata from dataclasses import dataclass from typing import Optional, Union import numpy as np from transformers.data.data_collator import DataCollatorMixin from transformers.file_utils import PaddingStrategy from transformers.tokenization_utils_base import PreTrainedTokenizerBase def padding_tensor(seq...
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/research_projects/luke/run_luke_ner_no_trainer.py
hf-dev-train/transformers-main/examples/research_projects/luke/run_luke_ner_no_trainer.py
#!/usr/bin/env python # 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/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/research_projects/bertabs/convert_bertabs_original_pytorch_checkpoint.py
hf-dev-train/transformers-main/examples/research_projects/bertabs/convert_bertabs_original_pytorch_checkpoint.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...
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/research_projects/bertabs/run_summarization.py
hf-dev-train/transformers-main/examples/research_projects/bertabs/run_summarization.py
#! /usr/bin/python3 import argparse import logging import os import sys from collections import namedtuple import torch from modeling_bertabs import BertAbs, build_predictor from torch.utils.data import DataLoader, SequentialSampler from tqdm import tqdm from transformers import BertTokenizer from .utils_summarizati...
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/research_projects/bertabs/utils_summarization.py
hf-dev-train/transformers-main/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 ...
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/research_projects/bertabs/__init__.py
hf-dev-train/transformers-main/examples/research_projects/bertabs/__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/examples/research_projects/bertabs/modeling_bertabs.py
hf-dev-train/transformers-main/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...
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/research_projects/bertabs/test_utils_summarization.py
hf-dev-train/transformers-main/examples/research_projects/bertabs/test_utils_summarization.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/examples/research_projects/bertabs/configuration_bertabs.py
hf-dev-train/transformers-main/examples/research_projects/bertabs/configuration_bertabs.py
# coding=utf-8 # Copyright 2019 The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.a...
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/research_projects/rag-end2end-retriever/eval_rag.py
hf-dev-train/transformers-main/examples/research_projects/rag-end2end-retriever/eval_rag.py
""" Evaluation script for RAG models.""" import argparse import ast import logging import os import sys import pandas as pd import torch from tqdm import tqdm from transformers import BartForConditionalGeneration, RagRetriever, RagSequenceForGeneration, RagTokenForGeneration from transformers import logging as trans...
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/research_projects/rag-end2end-retriever/utils_rag.py
hf-dev-train/transformers-main/examples/research_projects/rag-end2end-retriever/utils_rag.py
import itertools import json import linecache import os import pickle import re import socket import string from collections import Counter from logging import getLogger from pathlib import Path from typing import Callable, Dict, Iterable, List import git import torch from torch.utils.data import Dataset from transfo...
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/research_projects/rag-end2end-retriever/finetune_rag.py
hf-dev-train/transformers-main/examples/research_projects/rag-end2end-retriever/finetune_rag.py
"""Finetuning script for RAG models. Adapted from examples.seq2seq.finetune.py""" import argparse import copy import json import logging import multiprocessing import os import random import shutil import sys import time from collections import defaultdict from pathlib import Path from typing import Any, Dict, List, T...
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/research_projects/rag-end2end-retriever/distributed_ray_retriever.py
hf-dev-train/transformers-main/examples/research_projects/rag-end2end-retriever/distributed_ray_retriever.py
import logging import random import ray from transformers import RagConfig, RagRetriever, RagTokenizer from transformers.models.rag.retrieval_rag import CustomHFIndex logger = logging.getLogger(__name__) class RayRetriever: def __init__(self): self.initialized = False def create_rag_retriever(sel...
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/research_projects/rag-end2end-retriever/kb_encode_utils.py
hf-dev-train/transformers-main/examples/research_projects/rag-end2end-retriever/kb_encode_utils.py
import os from functools import partial from glob import glob import faiss from datasets import Features, Sequence, Value, concatenate_datasets, load_dataset, load_from_disk from transformers import DPRContextEncoder, DPRContextEncoderTokenizerFast def split_text(text, n=100, character=" "): """Split the text e...
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/research_projects/rag-end2end-retriever/lightning_base.py
hf-dev-train/transformers-main/examples/research_projects/rag-end2end-retriever/lightning_base.py
import argparse import logging import os from pathlib import Path from typing import Any, Dict import pytorch_lightning as pl from pytorch_lightning.utilities import rank_zero_info from transformers import ( AdamW, AutoConfig, AutoModel, AutoModelForPreTraining, AutoModelForQuestionAnswering, ...
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/research_projects/rag-end2end-retriever/callbacks_rag.py
hf-dev-train/transformers-main/examples/research_projects/rag-end2end-retriever/callbacks_rag.py
import logging from pathlib import Path import numpy as np import pytorch_lightning as pl import torch from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint from pytorch_lightning.utilities import rank_zero_only from utils_rag import save_json def count_trainable_parameters(model): model_paramet...
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/research_projects/rag-end2end-retriever/use_own_knowledge_dataset.py
hf-dev-train/transformers-main/examples/research_projects/rag-end2end-retriever/use_own_knowledge_dataset.py
import logging import os from dataclasses import dataclass, field from functools import partial from pathlib import Path from tempfile import TemporaryDirectory from typing import List, Optional import faiss import torch from datasets import Features, Sequence, Value, load_dataset from transformers import DPRContextE...
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/research_projects/self-training-text-classification/finetuning.py
hf-dev-train/transformers-main/examples/research_projects/self-training-text-classification/finetuning.py
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
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/research_projects/self-training-text-classification/selftraining.py
hf-dev-train/transformers-main/examples/research_projects/self-training-text-classification/selftraining.py
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
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/research_projects/visual_bert/visualizing_image.py
hf-dev-train/transformers-main/examples/research_projects/visual_bert/visualizing_image.py
""" coding=utf-8 Copyright 2018, Antonio Mendoza Hao Tan, Mohit Bansal Adapted From Facebook Inc, Detectron2 Licensed under the Apache License, Version 2.0 (the "License"); you 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...
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/research_projects/visual_bert/extracting_data.py
hf-dev-train/transformers-main/examples/research_projects/visual_bert/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 ...
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/research_projects/visual_bert/modeling_frcnn.py
hf-dev-train/transformers-main/examples/research_projects/visual_bert/modeling_frcnn.py
""" coding=utf-8 Copyright 2018, Antonio Mendoza Hao Tan, Mohit Bansal Adapted From Facebook Inc, Detectron2 && Huggingface Co. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www...
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/research_projects/visual_bert/processing_image.py
hf-dev-train/transformers-main/examples/research_projects/visual_bert/processing_image.py
""" coding=utf-8 Copyright 2018, Antonio Mendoza Hao Tan, Mohit Bansal Adapted From Facebook Inc, Detectron2 Licensed under the Apache License, Version 2.0 (the "License"); you 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...
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/research_projects/visual_bert/utils.py
hf-dev-train/transformers-main/examples/research_projects/visual_bert/utils.py
""" coding=utf-8 Copyright 2018, Antonio Mendoza Hao Tan, Mohit Bansal, Huggingface team :) Adapted From Facebook Inc, Detectron2 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://w...
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/research_projects/zero-shot-distillation/distill_classifier.py
hf-dev-train/transformers-main/examples/research_projects/zero-shot-distillation/distill_classifier.py
import logging import os import sys from dataclasses import dataclass, field from typing import List, Optional import torch from datasets import Dataset from torch import nn from tqdm.auto import tqdm from transformers import ( AutoModelForSequenceClassification, AutoTokenizer, HfArgumentParser, Train...
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/research_projects/rag/parse_dpr_relevance_data.py
hf-dev-train/transformers-main/examples/research_projects/rag/parse_dpr_relevance_data.py
""" This script reads DPR retriever training data and parses each datapoint. We save a line per datapoint. Each line consists of the query followed by a tab-separated list of Wikipedia page titles constituting positive contexts for a given query. """ import argparse import json from tqdm import tqdm def main(): ...
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/research_projects/rag/eval_rag.py
hf-dev-train/transformers-main/examples/research_projects/rag/eval_rag.py
""" Evaluation script for RAG models.""" import argparse import ast import logging import os import sys import pandas as pd import torch from tqdm import tqdm from transformers import BartForConditionalGeneration, RagRetriever, RagSequenceForGeneration, RagTokenForGeneration from transformers import logging as trans...
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/research_projects/rag/utils_rag.py
hf-dev-train/transformers-main/examples/research_projects/rag/utils_rag.py
import itertools import json import linecache import os import pickle import re import socket import string from collections import Counter from logging import getLogger from pathlib import Path from typing import Callable, Dict, Iterable, List import git import torch from torch.utils.data import Dataset from transfo...
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/research_projects/rag/finetune_rag.py
hf-dev-train/transformers-main/examples/research_projects/rag/finetune_rag.py
"""Finetuning script for RAG models. Adapted from examples.seq2seq.finetune.py""" import argparse import logging import os import sys import time from collections import defaultdict from pathlib import Path from typing import Any, Dict, List, Tuple import numpy as np import pytorch_lightning as pl import torch import...
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/research_projects/rag/distributed_ray_retriever.py
hf-dev-train/transformers-main/examples/research_projects/rag/distributed_ray_retriever.py
import logging import random import ray from transformers import RagConfig, RagRetriever, RagTokenizer from transformers.models.rag.retrieval_rag import CustomHFIndex logger = logging.getLogger(__name__) class RayRetriever: def __init__(self): self.initialized = False def create_rag_retriever(sel...
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/research_projects/rag/consolidate_rag_checkpoint.py
hf-dev-train/transformers-main/examples/research_projects/rag/consolidate_rag_checkpoint.py
""" A script creating a RAG checkpoint from a generator and a question encoder checkpoints. """ import argparse from pathlib import Path from transformers import AutoConfig, AutoTokenizer, RagConfig, RagSequenceForGeneration, RagTokenForGeneration def consolidate( model_type, generator_name_or_path: str, ...
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/research_projects/rag/_test_finetune_rag.py
hf-dev-train/transformers-main/examples/research_projects/rag/_test_finetune_rag.py
import json import logging import os import sys from pathlib import Path import finetune_rag from transformers.file_utils import is_apex_available from transformers.testing_utils import ( TestCasePlus, execute_subprocess_async, require_ray, require_torch_gpu, require_torch_multi_gpu, ) logging.b...
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/research_projects/rag/distributed_pytorch_retriever.py
hf-dev-train/transformers-main/examples/research_projects/rag/distributed_pytorch_retriever.py
import logging import os from typing import List, Tuple import numpy as np import psutil import torch import torch.distributed as dist from transformers import RagRetriever logger = logging.getLogger(__name__) class RagPyTorchDistributedRetriever(RagRetriever): """ A distributed retriever built on top of ...
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/research_projects/rag/test_distributed_retriever.py
hf-dev-train/transformers-main/examples/research_projects/rag/test_distributed_retriever.py
import json import os import shutil import sys import tempfile import unittest from unittest import TestCase from unittest.mock import patch import faiss import numpy as np from datasets import Dataset from transformers import BartConfig, BartTokenizer, DPRConfig, DPRQuestionEncoderTokenizer, RagConfig from transform...
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/research_projects/rag/lightning_base.py
hf-dev-train/transformers-main/examples/research_projects/rag/lightning_base.py
import argparse import logging import os from pathlib import Path from typing import Any, Dict import pytorch_lightning as pl from pytorch_lightning.utilities import rank_zero_info from transformers import ( AdamW, AutoConfig, AutoModel, AutoModelForPreTraining, AutoModelForQuestionAnswering, ...
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/research_projects/rag/callbacks_rag.py
hf-dev-train/transformers-main/examples/research_projects/rag/callbacks_rag.py
import logging from pathlib import Path import numpy as np import pytorch_lightning as pl import torch from pytorch_lightning.callbacks import EarlyStopping, ModelCheckpoint from pytorch_lightning.utilities import rank_zero_only from utils_rag import save_json def count_trainable_parameters(model): model_paramet...
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/research_projects/rag/__init__.py
hf-dev-train/transformers-main/examples/research_projects/rag/__init__.py
import os import sys sys.path.insert(1, os.path.dirname(os.path.realpath(__file__)))
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/research_projects/rag/use_own_knowledge_dataset.py
hf-dev-train/transformers-main/examples/research_projects/rag/use_own_knowledge_dataset.py
import logging import os from dataclasses import dataclass, field from functools import partial from pathlib import Path from tempfile import TemporaryDirectory from typing import List, Optional import faiss import torch from datasets import Features, Sequence, Value, load_dataset from transformers import ( DPRCo...
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/research_projects/vqgan-clip/VQGAN_CLIP.py
hf-dev-train/transformers-main/examples/research_projects/vqgan-clip/VQGAN_CLIP.py
import os from glob import glob import imageio import torch import torchvision import wandb from img_processing import custom_to_pil, loop_post_process, preprocess, preprocess_vqgan from loaders import load_vqgan from PIL import Image from torch import nn from transformers import CLIPModel, CLIPTokenizerFast from uti...
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/research_projects/vqgan-clip/utils.py
hf-dev-train/transformers-main/examples/research_projects/vqgan-clip/utils.py
from datetime import datetime import matplotlib.pyplot as plt import torch def freeze_module(module): for param in module.parameters(): param.requires_grad = False def get_device(): device = "cuda" if torch.cuda.is_available() else "cpu" if torch.backends.mps.is_available() and torch.backends.m...
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/research_projects/vqgan-clip/loaders.py
hf-dev-train/transformers-main/examples/research_projects/vqgan-clip/loaders.py
import importlib import torch import yaml from omegaconf import OmegaConf from taming.models.vqgan import VQModel def load_config(config_path, display=False): config = OmegaConf.load(config_path) if display: print(yaml.dump(OmegaConf.to_container(config))) return config def load_vqgan(device, 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/examples/research_projects/vqgan-clip/img_processing.py
hf-dev-train/transformers-main/examples/research_projects/vqgan-clip/img_processing.py
import numpy as np import PIL import torch import torchvision.transforms as T import torchvision.transforms.functional as TF from PIL import Image def preprocess(img, target_image_size=256): s = min(img.size) if s < target_image_size: raise ValueError(f"min dim for image {s} < {target_image_size}") ...
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/research_projects/performer/modeling_flax_performer_utils.py
hf-dev-train/transformers-main/examples/research_projects/performer/modeling_flax_performer_utils.py
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
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/research_projects/performer/run_mlm_performer.py
hf-dev-train/transformers-main/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...
python
Apache-2.0
041c3a623c6c635e65463cef16ce0cfde72e5c57
2026-01-05T07:09:59.331526Z
false