MCPcopy Create free account

hub / github.com/Aveiro-Lin/GraphiContact / types & classes

Types & classes3,603 in github.com/Aveiro-Lin/GraphiContact

↓ 504 callersClassANY
src/transformers/tests/pipelines/test_pipelines_common.py:74
↓ 102 callersClassHfArgumentParser
This subclass of `argparse.ArgumentParser` uses type hints on dataclasses to generate arguments. The class is designed to play well with the
src/transformers/src/transformers/hf_argparser.py:109
↓ 61 callersClassTrainingArguments
TrainingArguments is the subset of the arguments we use in our example scripts **which relate to the training loop itself**. Using [`HfA
src/transformers/src/transformers/training_args.py:161
↓ 42 callersClassOptionalDependencyNotAvailable
Internally used error class for signalling an optional dependency was not found.
src/transformers/src/transformers/utils/import_utils.py:1364
↓ 40 callersClassCaptureLogger
Context manager to capture `logging` streams Args: logger: 'logging` logger object Returns: The captured output is avai
src/transformers/src/transformers/testing_utils.py:1231
↓ 39 callersClassAddedToken
AddedToken represents a token to be added to a Tokenizer An AddedToken can have special options defining the way it should behave.
src/transformers/src/transformers/tokenization_utils_base.py:82
↓ 38 callersClassTrainer
Trainer is a simple but feature-complete training and eval loop for PyTorch, optimized for 🤗 Transformers. Args: model ([`PreTrained
src/transformers/src/transformers/trainer.py:231
↓ 34 callersClassProblem
A class regrouping all the information to solve a problem on which we will evaluate agents. Args: task (`str` ou `list[str]`):
src/transformers/src/transformers/tools/evaluate_agent.py:104
↓ 32 callersClassConversation
Utility class containing a conversation and its history. This class is meant to be used as an input to the [`ConversationalPipeline`]. The co
src/transformers/src/transformers/pipelines/conversational.py:18
↓ 32 callersClassDataCollatorForLanguageModeling
Data collator used for language modeling. Inputs are dynamically padded to the maximum length of a batch if they are not all of the same leng
src/transformers/src/transformers/data/data_collator.py:607
↓ 30 callersClassDataCollatorWithPadding
Data collator that will dynamically pad the inputs received. Args: tokenizer ([`PreTrainedTokenizer`] or [`PreTrainedTokenizerFast`]
src/transformers/src/transformers/data/data_collator.py:215
↓ 29 callersClassTrainer
src/transformers/examples/research_projects/jax-projects/big_bird/bigbird_flax.py:188
↓ 27 callersClassAlmostAccuracy
src/transformers/tests/trainer/test_trainer.py:184
↓ 25 callersClassAdamW
Implements Adam algorithm with weight decay fix as introduced in [Decoupled Weight Decay Regularization](https://arxiv.org/abs/1711.05101).
src/transformers/src/transformers/optimization.py:390
↓ 24 callersClassRegressionDataset
src/transformers/tests/trainer/test_trainer.py:124
↓ 22 callersClassPretrainedConfig
r""" Base class for all configuration classes. Handles a few parameters common to all models' configurations as well as methods for loading/do
src/transformers/src/transformers/configuration_utils.py:49
↓ 21 callersClassInputExample
A single training/test example for simple sequence classification. Args: guid: Unique id for the example. text_a: string. Th
src/transformers/src/transformers/data/processors/utils.py:30
↓ 20 callersClassBatchEncoding
Holds the output of the [`~tokenization_utils_base.PreTrainedTokenizerBase.__call__`], [`~tokenization_utils_base.PreTrainedTokenizerBase.enc
src/transformers/src/transformers/tokenization_utils_base.py:176
↓ 20 callersClassLogitsProcessorList
This class can be used to create a list of [`LogitsProcessor`] or [`LogitsWarper`] to subsequently process a `scores` input tensor. This clas
src/transformers/src/transformers/generation/logits_process.py:64
↓ 19 callersClassDataCollatorForTokenClassification
Data collator that will dynamically pad the inputs received, as well as the labels. Args: tokenizer ([`PreTrainedTokenizer`] or [`Pr
src/transformers/src/transformers/data/data_collator.py:266
↓ 19 callersClassStoppingCriteriaList
src/transformers/src/transformers/generation/stopping_criteria.py:129
↓ 18 callersClassModelPatterns
Holds the basic information about a new model for the add-new-model-like command. Args: model_name (`str`): The model name.
src/transformers/src/transformers/commands/add_new_model_like.py:43
↓ 17 callersClassGPTQConfig
This is a wrapper class about all possible attributes and features that you can play with a model that has been loaded using `optimum` api fo
src/transformers/src/transformers/utils/quantization_config.py:329
↓ 15 callersClassImageFeatureExtractionMixin
Mixin that contain utilities for preparing image features.
src/transformers/src/transformers/image_utils.py:324
↓ 15 callersClassModelOutputTest
src/transformers/tests/utils/test_model_output.py:25
↓ 14 callersClassEvalPrediction
Evaluation output (always contains labels), to be used to compute metrics. Parameters: predictions (`np.ndarray`): Predictions of th
src/transformers/src/transformers/trainer_utils.py:134
↓ 14 callersClassMemory
`Memory` NamedTuple have a single field `bytes` and you can get a human readable str of the number of mega bytes by calling `__repr__`
src/transformers/src/transformers/benchmark/benchmark_utils.py:151
↓ 14 callersClassPyTorchBenchmark
src/transformers/src/transformers/benchmark/benchmark.py:50
↓ 14 callersClassRegressionModel
src/transformers/tests/trainer/test_trainer.py:244
↓ 14 callersClassRegressionModelConfig
src/transformers/tests/trainer/test_trainer.py:194
↓ 13 callersClassGenerationConfig
r""" Class that holds a configuration for a generation task. A `generate` call supports the following generation methods for text-decoder, tex
src/transformers/src/transformers/generation/configuration_utils.py:40
↓ 13 callersClassNamespace
src/transformers/tests/generation/test_logits_process.py:755
↓ 13 callersClassPushToHubCallback
Callback that will save and push the model to the Hub regularly. By default, it pushes once per epoch, but this can be changed with the `save
src/transformers/src/transformers/keras_callbacks.py:268
↓ 13 callersClassPyTorchBenchmarkArguments
src/transformers/src/transformers/utils/dummy_pt_objects.py:12
↓ 12 callersClassTensorFlowBenchmark
src/transformers/src/transformers/utils/dummy_tf_objects.py:12
↓ 11 callersClassBatchFeature
r""" Holds the output of the image processor specific `__call__` methods. This class is derived from a python dictionary and can be used as a
src/transformers/src/transformers/image_processing_utils.py:52
↓ 11 callersClassBeamSearchScorer
r""" [`BeamScorer`] implementing standard beam search decoding. Adapted in part from [Facebook's XLM beam search code](https://github.com
src/transformers/src/transformers/generation/beam_search.py:123
↓ 11 callersClassBertConfig
r""" :class:`~pytorch_transformers.BertConfig` is the configuration class to store the configuration of a `BertModel`. Argum
src/modeling/bert/modeling_bert.py:152
↓ 11 callersClassSMPL
src/modeling/_smpl.py:20
↓ 11 callersClassTFLogitsProcessorList
This class can be used to create a list of [`TFLogitsProcessor`] to subsequently process a `scores` input tensor. This class inherits from li
src/transformers/src/transformers/generation/tf_logits_process.py:75
↓ 11 callersClassTensorFlowBenchmarkArguments
src/transformers/src/transformers/utils/dummy_tf_objects.py:5
↓ 10 callersClassBitsAndBytesConfig
This is a wrapper class about all possible attributes and features that you can play with a model that has been loaded using `bitsandbytes`.
src/transformers/src/transformers/utils/quantization_config.py:151
↓ 10 callersClassClassificationHead
Classification Head for transformer encoders
src/transformers/examples/research_projects/pplm/pplm_classification_head.py:4
↓ 10 callersClassDataCollatorForSeq2Seq
Data collator that will dynamically pad the inputs received, as well as the labels. Args: tokenizer ([`PreTrainedTokenizer`] or [`Pr
src/transformers/src/transformers/data/data_collator.py:517
↓ 10 callersClassDisjunctiveConstraint
r""" A special [`Constraint`] that is fulfilled by fulfilling just one of several constraints. Args: nested_token_ids (`List[List[int
src/transformers/src/transformers/generation/beam_constraints.py:261
↓ 10 callersClassPhrasalConstraint
r""" [`Constraint`] enforcing that an ordered sequence of tokens is included in the output. Args: token_ids (`List[int]`):
src/transformers/src/transformers/generation/beam_constraints.py:129
↓ 10 callersClassRegressionPreTrainedModel
src/transformers/tests/trainer/test_trainer.py:273
↓ 9 callersClassAwqConfig
This is a wrapper class about all possible attributes and features that you can play with a model that has been loaded using `auto-awq` libra
src/transformers/src/transformers/utils/quantization_config.py:528
↓ 9 callersClassCompose
src/transformers/examples/pytorch/semantic-segmentation/run_semantic_segmentation.py:69
↓ 9 callersClassDistributedTensorGatherer
A class responsible for properly gathering tensors (or nested list/tuple of tensors) on the CPU by chunks. If our dataset has 16 samples wit
src/transformers/src/transformers/trainer_pt_utils.py:371
↓ 9 callersClassMaxLengthCriteria
This class can be used to stop generation whenever the full generated number of tokens exceeds `max_length`. Keep in mind for decoder-only ty
src/transformers/src/transformers/generation/stopping_criteria.py:49
↓ 9 callersClassMesh
Mesh object that is used for handling certain graph operations.
src/modeling/_smpl.py:215
↓ 9 callersClassModelWithHead
src/transformers/tests/test_modeling_utils.py:116
↓ 9 callersClassNormalize
src/transformers/examples/pytorch/semantic-segmentation/run_semantic_segmentation.py:151
↓ 9 callersClassTokenClassificationPipeline
Named Entity Recognition pipeline using any `ModelForTokenClassification`. See the [named entity recognition examples](../task_summary#named-
src/transformers/src/transformers/pipelines/token_classification.py:96
↓ 9 callersClassTrie
Trie in Python. Creates a Trie out of a list of words. The trie is used to split on `added_tokens` in one pass Loose reference https://en.wik
src/transformers/src/transformers/tokenization_utils.py:52
↓ 8 callersClassConversationalPipeline
Multi-turn conversational pipeline. Example: ```python >>> from transformers import pipeline, Conversation # Any model with a c
src/transformers/src/transformers/pipelines/conversational.py:203
↓ 8 callersClassFillMaskPipeline
Masked language modeling prediction pipeline using any `ModelWithLMHead`. See the [masked language modeling examples](../task_summary#masked-
src/transformers/src/transformers/pipelines/fill_mask.py:34
↓ 8 callersClassInterpretorError
An error raised when the interpretor cannot evaluate a Python expression, due to syntax error or unsupported operations.
src/transformers/src/transformers/tools/python_interpreter.py:23
↓ 8 callersClassPipelineIterator
src/transformers/src/transformers/pipelines/pt_utils.py:23
↓ 7 callersClassAttentionMaskConverter
A utility attention mask class that allows one to: - Create a causal 4d mask - Create a causal 4d mask with slided window
src/transformers/src/transformers/modeling_attn_mask_utils.py:21
↓ 7 callersClassBertModel
r""" Outputs: `Tuple` comprising various elements depending on the configuration (config) and inputs: **last_hidden_state**: ``torch.Float
src/modeling/bert/modeling_bert.py:624
↓ 7 callersClassCaptureStderr
Same as CaptureStd but captures only stderr
src/transformers/src/transformers/testing_utils.py:1224
↓ 7 callersClassCaptureStdout
Same as CaptureStd but captures only stdout
src/transformers/src/transformers/testing_utils.py:1217
↓ 7 callersClassConfigTester
src/transformers/tests/test_configuration_common.py:26
↓ 7 callersClassIntervalStrategy
src/transformers/src/transformers/trainer_utils.py:208
↓ 7 callersClassRegressionTrainingArguments
src/transformers/tests/trainer/test_trainer.py:143
↓ 7 callersClassSeq2SeqDataset
A dataset that calls prepare_seq2seq_batch.
src/transformers/examples/legacy/seq2seq/utils.py:255
↓ 7 callersClassSeq2SeqTrainer
src/transformers/examples/legacy/seq2seq/seq2seq_trainer.py:50
↓ 6 callersClassAdafactor
AdaFactor pytorch implementation can be used as a drop in replacement for Adam original fairseq code: https://github.com/pytorch/fairseq/blob
src/transformers/src/transformers/optimization.py:504
↓ 6 callersClassBertModel
src/transformers/src/transformers/utils/dummy_pt_objects.py:1155
↓ 6 callersClassBestRun
The best run found by a hyperparameter search (see [`~Trainer.hyperparameter_search`]). Parameters: run_id (`str`): The
src/transformers/src/transformers/trainer_utils.py:227
↓ 6 callersClassContextManagers
Wrapper for `contextlib.ExitStack` which enters a collection of context managers. Adaptation of `ContextManagers` in the `fastcore` library.
src/transformers/src/transformers/utils/generic.py:483
↓ 6 callersClassDataset
src/transformers/examples/research_projects/pplm/run_pplm_discrim_train.py:84
↓ 6 callersClassEarlyStopper
src/utils/comm.py:175
↓ 6 callersClassEncoder
src/modeling/bert/e2e_body_network.py:50
↓ 6 callersClassEvaluator
src/utils/evaluator.py:19
↓ 6 callersClassIdentity
src/transformers/examples/pytorch/semantic-segmentation/run_semantic_segmentation.py:79
↓ 6 callersClassMaskedLinear
Fully Connected layer with on the fly adaptive mask. If needed, a score matrix is created to store the importance of each associated weight.
src/transformers/examples/research_projects/movement-pruning/emmental/modules/masked_nn.py:31
↓ 6 callersClassMinLengthLogitsProcessor
r""" [`LogitsProcessor`] enforcing a min-length by setting EOS probability to 0. Args: min_length (`int`): The minimum le
src/transformers/src/transformers/generation/logits_process.py:101
↓ 6 callersClassPreTrainedModel
r""" Base class for all models. [`PreTrainedModel`] takes care of storing the configuration of the models and handles methods for loading,
src/transformers/src/transformers/modeling_utils.py:1074
↓ 6 callersClassQuantState
container for quantization state components to work with Params4bit and similar classes
src/bitsandbytes/bitsandbytes/functional.py:625
↓ 6 callersClassRandomHorizontalFlip
src/transformers/examples/pytorch/semantic-segmentation/run_semantic_segmentation.py:124
↓ 6 callersClassSequentialDistributedSampler
Distributed Sampler that subsamples indices sequentially, making it easier to collate all results at the end. Even though we only use this s
src/transformers/src/transformers/trainer_pt_utils.py:285
↓ 6 callersClassSquadResult
Constructs a SquadResult which can be used to evaluate a model's output on the SQuAD dataset. Args: unique_id: The unique identifier
src/transformers/src/transformers/data/processors/squad.py:827
↓ 6 callersClassSquadV1Processor
src/transformers/src/transformers/data/processors/squad.py:687
↓ 6 callersClassTableQuestionAnsweringPipeline
Table Question Answering pipeline using a `ModelForTableQuestionAnswering`. This pipeline is only available in PyTorch. Example: ``
src/transformers/src/transformers/pipelines/table_question_answering.py:88
↓ 6 callersClassTopKLogitsWarper
r""" [`LogitsWarper`] that performs top-k, i.e. restricting to the k highest probability elements. Args: top_k (`int`): T
src/transformers/src/transformers/generation/logits_process.py:427
↓ 6 callersClassTopPLogitsWarper
[`LogitsWarper`] that performs top-p, i.e. restricting to top tokens summing to prob_cut_off <= prob_cut_off. Args: top_p (`float`):
src/transformers/src/transformers/generation/logits_process.py:364
↓ 6 callersClass_LazyModule
Module class that surfaces all objects but only performs associated imports when the objects are requested.
src/transformers/src/transformers/utils/import_utils.py:1304
↓ 5 callersClassAutomaticSpeechRecognitionPipeline
Pipeline that aims at extracting spoken text contained within some audio. The input can be either a raw waveform or a audio file. In case of
src/transformers/src/transformers/pipelines/automatic_speech_recognition.py:135
↓ 5 callersClassConv2d
src/transformers/examples/research_projects/visual_bert/modeling_frcnn.py:701
↓ 5 callersClassConv2d
src/transformers/examples/research_projects/lxmert/modeling_frcnn.py:701
↓ 5 callersClassDataCollatorForPermutationLanguageModeling
Data collator used for permutation language modeling. - collates batches of tensors, honoring their tokenizer's pad_token - preprocesses
src/transformers/src/transformers/data/data_collator.py:1200
↓ 5 callersClassDataCollatorForWholeWordMask
Data collator used for language modeling that masks entire words. - collates batches of tensors, honoring their tokenizer's pad_token -
src/transformers/src/transformers/data/data_collator.py:845
↓ 5 callersClassDecoder
src/modeling/bert/e2e_body_network.py:15
↓ 5 callersClassEncoderNoRepeatNGramLogitsProcessor
r""" [`LogitsProcessor`] that enforces no repetition of encoder input ids n-grams for the decoder ids. See [ParlAI](https://github.com/faceboo
src/transformers/src/transformers/generation/logits_process.py:775
↓ 5 callersClassFlaxLogitsProcessorList
This class can be used to create a list of [`FlaxLogitsProcessor`] or [`FlaxLogitsWarper`] to subsequently process a `scores` input tensor. T
src/transformers/src/transformers/generation/flax_logits_process.py:72
↓ 5 callersClassFlaxTemperatureLogitsWarper
r""" [`FlaxLogitsWarper`] for temperature (exponential scaling output probability distribution). Args: temperature (`float`):
src/transformers/src/transformers/generation/flax_logits_process.py:95
↓ 5 callersClassFlaxTopKLogitsWarper
r""" [`FlaxLogitsWarper`] that performs top-k, i.e. restricting to the k highest probability elements. Args: top_k (`int`):
src/transformers/src/transformers/generation/flax_logits_process.py:159
next →1–100 of 3,603, ranked by callers