MCPcopy Create free account

hub / github.com/Ablustrund/MPLSandbox / types & classes

Types & classes12,594 in github.com/Ablustrund/MPLSandbox

↓ 1,105 callersClassOptionalDependencyNotAvailable
Internally used error class for signalling an optional dependency was not found.
mplsandbox_for_rl/transformers/src/transformers/utils/import_utils.py:1651
↓ 523 callersClassANY
mplsandbox_for_rl/transformers/tests/pipelines/test_pipelines_common.py:75
↓ 390 callersClassAddedToken
AddedToken represents a token to be added to a Tokenizer An AddedToken can have special options defining the way it should behave.
mplsandbox_for_rl/transformers/src/transformers/tokenization_utils_base.py:84
↓ 364 callersClassConfigTester
mplsandbox_for_rl/transformers/tests/test_configuration_common.py:26
↓ 282 callersClass_LazyModule
Module class that surfaces all objects but only performs associated imports when the objects are requested.
mplsandbox_for_rl/transformers/src/transformers/utils/import_utils.py:1591
↓ 202 callersClassBaseModelOutput
Base class for model's outputs, with potential hidden states and attentions. Args: last_hidden_state (`torch.FloatTensor` of shape `
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:25
↓ 134 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
mplsandbox_for_rl/transformers/src/transformers/image_processing_base.py:53
↓ 103 callersClassHfArgumentParser
This subclass of `argparse.ArgumentParser` uses type hints on dataclasses to generate arguments. The class is designed to play well with the
mplsandbox_for_rl/transformers/src/transformers/hf_argparser.py:110
↓ 100 callersClassBatchEncoding
Holds the output of the [`~tokenization_utils_base.PreTrainedTokenizerBase.__call__`], [`~tokenization_utils_base.PreTrainedTokenizerBase.enc
mplsandbox_for_rl/transformers/src/transformers/tokenization_utils_base.py:180
↓ 90 callersClassTrainingArguments
TrainingArguments is the subset of the arguments we use in our example scripts **which relate to the training loop itself**. Using [`HfA
mplsandbox_for_rl/transformers/src/transformers/training_args.py:215
↓ 85 callersClass_LazyAutoMapping
" A mapping config to object (model or tokenizer for instance) that will load keys and values when it is accessed. Args: - config_ma
mplsandbox_for_rl/transformers/src/transformers/models/auto/auto_factory.py:708
↓ 81 callersClassBaseModelOutputWithPastAndCrossAttentions
Base class for model's outputs that may also contain a past key/values (to speed up sequential decoding). Args: last_hidden_state (`
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:245
↓ 81 callersClassTrainer
Trainer is a simple but feature-complete training and eval loop for PyTorch, optimized for 🤗 Transformers. Args: model ([`PreTrained
mplsandbox_for_rl/transformers/src/transformers/trainer.py:287
↓ 75 callersClassTokenClassifierOutput
Base class for outputs of token classification models. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `l
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:1108
↓ 69 callersClassSequenceClassifierOutput
Base class for outputs of sentence classification models. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:988
↓ 66 callersClassTFBaseModelOutput
Base class for model's outputs, with potential hidden states and attentions. Args: last_hidden_state (`tf.Tensor` of shape `(batch_s
mplsandbox_for_rl/transformers/src/transformers/modeling_tf_outputs.py:27
↓ 62 callersClassCaptureLogger
Context manager to capture `logging` streams Args: logger: 'logging` logger object Returns: The captured output is avai
mplsandbox_for_rl/transformers/src/transformers/testing_utils.py:1409
↓ 57 callersClassBertTokenizer
r""" Construct a BERT tokenizer. Based on WordPiece. This tokenizer inherits from [`PreTrainedTokenizer`] which contains most of the main met
mplsandbox_for_rl/transformers/src/transformers/models/bert/tokenization_bert.py:51
↓ 56 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
mplsandbox_for_rl/transformers/src/transformers/data/data_collator.py:679
↓ 53 callersClassQuestionAnsweringModelOutput
Base class for outputs of question answering models. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `lab
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:1137
↓ 48 callersClassBaseModelOutputWithPooling
Base class for model's outputs that also contains a pooling of the last hidden states. Args: last_hidden_state (`torch.FloatTensor`
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:70
↓ 45 callersClassMaskedLMOutput
Base class for masked language models outputs. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `labels` i
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:794
↓ 44 callersClassGenerationConfig
r""" Class that holds a configuration for a generation task. A `generate` call supports the following generation methods for text-decoder, tex
mplsandbox_for_rl/transformers/src/transformers/generation/configuration_utils.py:71
↓ 43 callersClassCausalLMOutputWithCrossAttentions
Base class for causal language model (or autoregressive) outputs. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, retur
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:714
↓ 41 callersClassDataCollatorForSeq2Seq
Data collator that will dynamically pad the inputs received, as well as the labels. Args: tokenizer ([`PreTrainedTokenizer`] or [`Pr
mplsandbox_for_rl/transformers/src/transformers/data/data_collator.py:543
↓ 38 callersClassBertConfig
r""" This is the configuration class to store the configuration of a [`BertModel`] or a [`TFBertModel`]. It is used to instantiate a BERT mode
mplsandbox_for_rl/transformers/src/transformers/models/bert/configuration_bert.py:29
↓ 38 callersClassSeq2SeqLMOutput
Base class for sequence-to-sequence language models outputs. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned w
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:823
↓ 37 callersClassRegressionDataset
mplsandbox_for_rl/transformers/tests/trainer/test_trainer.py:146
↓ 36 callersClassDataCollatorWithPadding
Data collator that will dynamically pad the inputs received. Args: tokenizer ([`PreTrainedTokenizer`] or [`PreTrainedTokenizerFast`]
mplsandbox_for_rl/transformers/src/transformers/data/data_collator.py:237
↓ 36 callersClassMultipleChoiceModelOutput
Base class for outputs of multiple choice models. Args: loss (`torch.FloatTensor` of shape *(1,)*, *optional*, returned when `labels
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:1077
↓ 35 callersClassFlaxBaseModelOutput
Base class for model's outputs, with potential hidden states and attentions. Args: last_hidden_state (`jnp.ndarray` of shape `(batch
mplsandbox_for_rl/transformers/src/transformers/modeling_flax_outputs.py:23
↓ 32 callersClassAlmostAccuracy
mplsandbox_for_rl/transformers/tests/trainer/test_trainer.py:231
↓ 32 callersClassBaseModelOutputWithPoolingAndCrossAttentions
Base class for model's outputs that also contains a pooling of the last hidden states. Args: last_hidden_state (`torch.FloatTensor`
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:196
↓ 32 callersClassTrainer
mplsandbox_for_rl/transformers/examples/research_projects/jax-projects/big_bird/bigbird_flax.py:188
↓ 31 callersClassDataCollatorForTokenClassification
Data collator that will dynamically pad the inputs received, as well as the labels. Args: tokenizer ([`PreTrainedTokenizer`] or [`Pr
mplsandbox_for_rl/transformers/src/transformers/data/data_collator.py:289
↓ 31 callersClassTFSequenceClassifierOutput
Base class for outputs of sentence classification models. Args: loss (`tf.Tensor` of shape `(batch_size, )`, *optional*, returned wh
mplsandbox_for_rl/transformers/src/transformers/modeling_tf_outputs.py:574
↓ 30 callersClassBaseModelOutputWithPast
Base class for model's outputs that may also contain a past key/values (to speed up sequential decoding). Args: last_hidden_state (`
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:124
↓ 30 callersClassCausalLMOutputWithPast
Base class for causal language model (or autoregressive) outputs. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, retur
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:678
↓ 29 callersClassBasicTokenizer
Constructs a BasicTokenizer that will run basic tokenization (punctuation splitting, lower casing, etc.). Args: do_lower_case (`bool
mplsandbox_for_rl/transformers/src/transformers/models/bert/tokenization_bert.py:284
↓ 29 callersClassBertModel
mplsandbox_for_rl/transformers/src/transformers/utils/dummy_pt_objects.py:1279
↓ 29 callersClassInterpreterError
An error raised when the interpretor cannot evaluate a Python expression, due to syntax error or unsupported operations.
mplsandbox_for_rl/transformers/src/transformers/agents/python_interpreter.py:33
↓ 29 callersClassLlamaConfig
r""" This is the configuration class to store the configuration of a [`LlamaModel`]. It is used to instantiate an LLaMA model according to the
mplsandbox_for_rl/transformers/src/transformers/models/llama/configuration_llama.py:26
↓ 28 callersClassEsmFoldLinear
A Linear layer with built-in nonstandard initializations. Called just like torch.nn.Linear. Implements the initializers in 1.11.4, plus some
mplsandbox_for_rl/transformers/src/transformers/models/esm/modeling_esmfold.py:267
↓ 28 callersClassFlaxBaseModelOutputWithPastAndCrossAttentions
Base class for model's outputs that may also contain a past key/values (to speed up sequential decoding). Args: last_hidden_state (`
mplsandbox_for_rl/transformers/src/transformers/modeling_flax_outputs.py:217
↓ 28 callersClassRotation
A 3D rotation. Depending on how the object is initialized, the rotation is represented by either a rotation matrix or a quaternion, though bo
mplsandbox_for_rl/transformers/src/transformers/models/esm/openfold_utils/rigid_utils.py:252
↓ 28 callersClassSequenceClassifierOutputWithPast
Base class for outputs of sentence classification models. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:758
↓ 26 callersClassPretrainedConfig
r""" Base class for all configuration classes. Handles a few parameters common to all models' configurations as well as methods for loading/do
mplsandbox_for_rl/transformers/src/transformers/configuration_utils.py:50
↓ 25 callersClassAdamW
Implements Adam algorithm with weight decay fix as introduced in [Decoupled Weight Decay Regularization](https://arxiv.org/abs/1711.05101).
mplsandbox_for_rl/transformers/src/transformers/optimization.py:558
↓ 25 callersClassRegressionModelConfig
mplsandbox_for_rl/transformers/tests/trainer/test_trainer.py:262
↓ 24 callersClassConv1D
mplsandbox_for_rl/transformers/src/transformers/utils/dummy_pt_objects.py:9947
↓ 23 callersClassRegressionTrainingArguments
mplsandbox_for_rl/transformers/tests/trainer/test_trainer.py:190
↓ 23 callersClassTFBaseModelOutputWithPastAndCrossAttentions
Base class for model's outputs that may also contain a past key/values (to speed up sequential decoding). Args: last_hidden_state (`
mplsandbox_for_rl/transformers/src/transformers/modeling_tf_outputs.py:245
↓ 22 callersClassTFQuestionAnsweringModelOutput
Base class for outputs of question answering models. Args: loss (`tf.Tensor` of shape `(batch_size, )`, *optional*, returned when `s
mplsandbox_for_rl/transformers/src/transformers/modeling_tf_outputs.py:814
↓ 22 callersClassTFSeq2SeqLMOutput
Base class for sequence-to-sequence language models outputs. Args: loss (`tf.Tensor` of shape `(n,)`, *optional*, where n is the num
mplsandbox_for_rl/transformers/src/transformers/modeling_tf_outputs.py:485
↓ 22 callersClassTFTokenClassifierOutput
Base class for outputs of token classification models. Args: loss (`tf.Tensor` of shape `(n,)`, *optional*, where n is the number of
mplsandbox_for_rl/transformers/src/transformers/modeling_tf_outputs.py:785
↓ 21 callersClassInputExample
A single training/test example for simple sequence classification. Args: guid: Unique id for the example. text_a: string. Th
mplsandbox_for_rl/transformers/src/transformers/data/processors/utils.py:30
↓ 21 callersClassLlamaForCausalLM
mplsandbox_for_rl/transformers/src/transformers/utils/dummy_pt_objects.py:5251
↓ 21 callersClassSeq2SeqModelOutput
Base class for model encoder's outputs that also contains : pre-computed hidden states that can speed up sequential decoding. Args:
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:516
↓ 20 callersClassMeanMetric
mplsandbox_for_rl/metric.py:98
↓ 20 callersClassRagRetriever
Retriever used to get documents from vector queries. It retrieves the documents embeddings as well as the documents contents, and it formats
mplsandbox_for_rl/transformers/src/transformers/models/rag/retrieval_rag.py:344
↓ 20 callersClassRepeatDataset
mplsandbox_for_rl/transformers/tests/trainer/test_trainer.py:203
↓ 20 callersClassTFMaskedLMOutput
Base class for masked language models outputs. Args: loss (`tf.Tensor` of shape `(n,)`, *optional*, where n is the number of non-mas
mplsandbox_for_rl/transformers/src/transformers/modeling_tf_outputs.py:456
↓ 19 callersClassBartConfig
r""" This is the configuration class to store the configuration of a [`BartModel`]. It is used to instantiate a BART model according to the sp
mplsandbox_for_rl/transformers/src/transformers/models/bart/configuration_bart.py:31
↓ 19 callersClassBaseModelOutputWithNoAttention
Base class for model's outputs, with potential hidden states. Args: last_hidden_state (`torch.FloatTensor` of shape `(batch_size, nu
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:51
↓ 19 callersClassEncoderDecoderModel
mplsandbox_for_rl/transformers/src/transformers/utils/dummy_pt_objects.py:3744
↓ 19 callersClassRegressionPreTrainedModel
mplsandbox_for_rl/transformers/tests/trainer/test_trainer.py:341
↓ 18 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
mplsandbox_for_rl/transformers/src/transformers/utils/quantization_config.py:749
↓ 18 callersClassFlaxCausalLMOutputWithCrossAttentions
Base class for causal language model (or autoregressive) outputs. Args: logits (`jnp.ndarray` of shape `(batch_size, sequence_length
mplsandbox_for_rl/transformers/src/transformers/modeling_flax_outputs.py:324
↓ 18 callersClassModelPatterns
Holds the basic information about a new model for the add-new-model-like command. Args: model_name (`str`): The model name.
mplsandbox_for_rl/transformers/src/transformers/commands/add_new_model_like.py:43
↓ 18 callersClassQuantAct
Quantizes the given activation. Args: activation_bit (`int`): Bitwidth for the quantized activation. act_range_m
mplsandbox_for_rl/transformers/src/transformers/models/ibert/quant_modules.py:114
↓ 18 callersClassRigid
A class representing a rigid transformation. Little more than a wrapper around two objects: a Rotation object and a [*, 3] translation Design
mplsandbox_for_rl/transformers/src/transformers/models/esm/openfold_utils/rigid_utils.py:729
↓ 18 callersClassTFMultipleChoiceModelOutput
Base class for outputs of multiple choice models. Args: loss (`tf.Tensor` of shape *(batch_size, )*, *optional*, returned when `labe
mplsandbox_for_rl/transformers/src/transformers/modeling_tf_outputs.py:754
↓ 17 callersClassBackboneOutput
Base class for outputs of backbones. Args: feature_maps (`tuple(torch.FloatTensor)` of shape `(batch_size, num_channels, height, wid
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:1438
↓ 17 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`.
mplsandbox_for_rl/transformers/src/transformers/utils/quantization_config.py:296
↓ 17 callersClassEvalPrediction
Evaluation output (always contains labels), to be used to compute metrics. Parameters: predictions (`np.ndarray`): Predictions of th
mplsandbox_for_rl/transformers/src/transformers/trainer_utils.py:152
↓ 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
mplsandbox_for_rl/transformers/src/transformers/utils/quantization_config.py:532
↓ 17 callersClassPatchTSMixerConfig
r""" This is the configuration class to store the configuration of a [`PatchTSMixerModel`]. It is used to instantiate a PatchTSMixer model acc
mplsandbox_for_rl/transformers/src/transformers/models/patchtsmixer/configuration_patchtsmixer.py:26
↓ 17 callersClassTFBaseModelOutputWithPooling
Base class for model's outputs that also contains a pooling of the last hidden states. Args: last_hidden_state (`tf.Tensor` of shape
mplsandbox_for_rl/transformers/src/transformers/modeling_tf_outputs.py:72
↓ 17 callersClassTFSeq2SeqModelOutput
Base class for model encoder's outputs that also contains : pre-computed hidden states that can speed up sequential decoding. Args:
mplsandbox_for_rl/transformers/src/transformers/modeling_tf_outputs.py:288
↓ 17 callersClassWav2Vec2Processor
r""" Constructs a Wav2Vec2 processor which wraps a Wav2Vec2 feature extractor and a Wav2Vec2 CTC tokenizer into a single processor. [`Wav
mplsandbox_for_rl/transformers/src/transformers/models/wav2vec2/processing_wav2vec2.py:27
↓ 16 callersClassGPT2Config
This is the configuration class to store the configuration of a [`GPT2Model`] or a [`TFGPT2Model`]. It is used to instantiate a GPT-2 model a
mplsandbox_for_rl/transformers/src/transformers/models/gpt2/configuration_gpt2.py:30
↓ 16 callersClassMobileViTV2ConvLayer
mplsandbox_for_rl/transformers/src/transformers/models/mobilevitv2/modeling_mobilevitv2.py:80
↓ 15 callersClassGroundingDinoImageProcessor
mplsandbox_for_rl/transformers/src/transformers/utils/dummy_vision_objects.py:278
↓ 15 callersClassImageClassifierOutput
Base class for outputs of image classification models. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `l
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:1270
↓ 15 callersClassImageClassifierOutputWithNoAttention
Base class for outputs of image classification models. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `l
mplsandbox_for_rl/transformers/src/transformers/modeling_outputs.py:1298
↓ 15 callersClassImageFeatureExtractionMixin
Mixin that contain utilities for preparing image features.
mplsandbox_for_rl/transformers/src/transformers/image_utils.py:430
↓ 15 callersClassModelOutputTest
mplsandbox_for_rl/transformers/tests/utils/test_model_output.py:33
↓ 15 callersClassRegressionModel
mplsandbox_for_rl/transformers/tests/trainer/test_trainer.py:312
↓ 15 callersClassVisionEncoderDecoderModel
mplsandbox_for_rl/transformers/src/transformers/utils/dummy_pt_objects.py:9032
↓ 14 callersClassDeformableDetrImageProcessor
mplsandbox_for_rl/transformers/src/transformers/utils/dummy_vision_objects.py:131
↓ 14 callersClassIndexMap
Index grouping entries within a tensor.
mplsandbox_for_rl/transformers/src/transformers/models/tapas/modeling_tf_tapas.py:1833
↓ 14 callersClassIndexMap
Index grouping entries within a tensor.
mplsandbox_for_rl/transformers/src/transformers/models/tapas/modeling_tapas.py:1553
↓ 14 callersClassLayoutLMv3ImageProcessor
mplsandbox_for_rl/transformers/src/transformers/utils/dummy_vision_objects.py:341
↓ 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__`
mplsandbox_for_rl/transformers/src/transformers/benchmark/benchmark_utils.py:151
↓ 14 callersClassMobileViTConvLayer
mplsandbox_for_rl/transformers/src/transformers/models/mobilevit/modeling_mobilevit.py:77
↓ 14 callersClassNamespace
mplsandbox_for_rl/transformers/tests/generation/test_logits_process.py:874
↓ 14 callersClassPyTorchBenchmark
mplsandbox_for_rl/transformers/src/transformers/benchmark/benchmark.py:49
↓ 14 callersClassSampleIterableDataset
mplsandbox_for_rl/transformers/tests/trainer/test_trainer.py:274
↓ 14 callersClassTFMobileViTConvLayer
mplsandbox_for_rl/transformers/src/transformers/models/mobilevit/modeling_tf_mobilevit.py:79
↓ 14 callersClassWav2Vec2FeatureExtractor
mplsandbox_for_rl/transformers/src/transformers/models/wav2vec2/modeling_wav2vec2.py:468
next →1–100 of 12,594, ranked by callers