Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ModalityDance/Omni-R1
/ types & classes
Types & classes
12,513 in github.com/ModalityDance/Omni-R1
⨍
Functions
49,163
◇
Types & classes
12,513
↳
Endpoints
884
↓ 1,101 callers
Class
OptionalDependencyNotAvailable
Internally used error class for signalling an optional dependency was not found.
src/transformers/src/transformers/utils/import_utils.py:1651
↓ 523 callers
Class
ANY
src/transformers/tests/pipelines/test_pipelines_common.py:75
↓ 390 callers
Class
AddedToken
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:84
↓ 362 callers
Class
ConfigTester
src/transformers/tests/test_configuration_common.py:26
↓ 281 callers
Class
_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:1591
↓ 202 callers
Class
BaseModelOutput
Base class for model's outputs, with potential hidden states and attentions. Args: last_hidden_state (`torch.FloatTensor` of shape `
src/transformers/src/transformers/modeling_outputs.py:25
↓ 133 callers
Class
BatchFeature
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_base.py:53
↓ 103 callers
Class
HfArgumentParser
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:110
↓ 100 callers
Class
BatchEncoding
Holds the output of the [`~tokenization_utils_base.PreTrainedTokenizerBase.__call__`], [`~tokenization_utils_base.PreTrainedTokenizerBase.enc
src/transformers/src/transformers/tokenization_utils_base.py:180
↓ 92 callers
Class
TrainingArguments
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:215
↓ 85 callers
Class
_LazyAutoMapping
" A mapping config to object (model or tokenizer for instance) that will load keys and values when it is accessed. Args: - config_ma
src/transformers/src/transformers/models/auto/auto_factory.py:708
↓ 83 callers
Class
Trainer
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:288
↓ 81 callers
Class
BaseModelOutputWithPastAndCrossAttentions
Base class for model's outputs that may also contain a past key/values (to speed up sequential decoding). Args: last_hidden_state (`
src/transformers/src/transformers/modeling_outputs.py:245
↓ 75 callers
Class
TokenClassifierOutput
Base class for outputs of token classification models. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `l
src/transformers/src/transformers/modeling_outputs.py:1108
↓ 69 callers
Class
SequenceClassifierOutput
Base class for outputs of sentence classification models. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when
src/transformers/src/transformers/modeling_outputs.py:988
↓ 66 callers
Class
TFBaseModelOutput
Base class for model's outputs, with potential hidden states and attentions. Args: last_hidden_state (`tf.Tensor` of shape `(batch_s
src/transformers/src/transformers/modeling_tf_outputs.py:27
↓ 62 callers
Class
CaptureLogger
Context manager to capture `logging` streams Args: logger: 'logging` logger object Returns: The captured output is avai
src/transformers/src/transformers/testing_utils.py:1409
↓ 57 callers
Class
BertTokenizer
r""" Construct a BERT tokenizer. Based on WordPiece. This tokenizer inherits from [`PreTrainedTokenizer`] which contains most of the main met
src/transformers/src/transformers/models/bert/tokenization_bert.py:51
↓ 56 callers
Class
DataCollatorForLanguageModeling
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:679
↓ 53 callers
Class
QuestionAnsweringModelOutput
Base class for outputs of question answering models. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `lab
src/transformers/src/transformers/modeling_outputs.py:1137
↓ 48 callers
Class
BaseModelOutputWithPooling
Base class for model's outputs that also contains a pooling of the last hidden states. Args: last_hidden_state (`torch.FloatTensor`
src/transformers/src/transformers/modeling_outputs.py:70
↓ 45 callers
Class
MaskedLMOutput
Base class for masked language models outputs. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `labels` i
src/transformers/src/transformers/modeling_outputs.py:794
↓ 44 callers
Class
GenerationConfig
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:71
↓ 43 callers
Class
CausalLMOutputWithCrossAttentions
Base class for causal language model (or autoregressive) outputs. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, retur
src/transformers/src/transformers/modeling_outputs.py:714
↓ 41 callers
Class
DataCollatorForSeq2Seq
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:543
↓ 38 callers
Class
BertConfig
r""" This is the configuration class to store the configuration of a [`BertModel`] or a [`TFBertModel`]. It is used to instantiate a BERT mode
src/transformers/src/transformers/models/bert/configuration_bert.py:29
↓ 38 callers
Class
Seq2SeqLMOutput
Base class for sequence-to-sequence language models outputs. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned w
src/transformers/src/transformers/modeling_outputs.py:823
↓ 37 callers
Class
RegressionDataset
src/transformers/tests/trainer/test_trainer.py:146
↓ 36 callers
Class
DataCollatorWithPadding
Data collator that will dynamically pad the inputs received. Args: tokenizer ([`PreTrainedTokenizer`] or [`PreTrainedTokenizerFast`]
src/transformers/src/transformers/data/data_collator.py:237
↓ 36 callers
Class
MultipleChoiceModelOutput
Base class for outputs of multiple choice models. Args: loss (`torch.FloatTensor` of shape *(1,)*, *optional*, returned when `labels
src/transformers/src/transformers/modeling_outputs.py:1077
↓ 34 callers
Class
FlaxBaseModelOutput
Base class for model's outputs, with potential hidden states and attentions. Args: last_hidden_state (`jnp.ndarray` of shape `(batch
src/transformers/src/transformers/modeling_flax_outputs.py:23
↓ 32 callers
Class
AlmostAccuracy
src/transformers/tests/trainer/test_trainer.py:231
↓ 32 callers
Class
BaseModelOutputWithPoolingAndCrossAttentions
Base class for model's outputs that also contains a pooling of the last hidden states. Args: last_hidden_state (`torch.FloatTensor`
src/transformers/src/transformers/modeling_outputs.py:196
↓ 32 callers
Class
Trainer
src/transformers/examples/research_projects/jax-projects/big_bird/bigbird_flax.py:188
↓ 31 callers
Class
DataCollatorForTokenClassification
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:289
↓ 31 callers
Class
TFSequenceClassifierOutput
Base class for outputs of sentence classification models. Args: loss (`tf.Tensor` of shape `(batch_size, )`, *optional*, returned wh
src/transformers/src/transformers/modeling_tf_outputs.py:574
↓ 29 callers
Class
BaseModelOutputWithPast
Base class for model's outputs that may also contain a past key/values (to speed up sequential decoding). Args: last_hidden_state (`
src/transformers/src/transformers/modeling_outputs.py:124
↓ 29 callers
Class
BasicTokenizer
Constructs a BasicTokenizer that will run basic tokenization (punctuation splitting, lower casing, etc.). Args: do_lower_case (`bool
src/transformers/src/transformers/models/bert/tokenization_bert.py:284
↓ 29 callers
Class
BertModel
src/transformers/src/transformers/utils/dummy_pt_objects.py:1279
↓ 29 callers
Class
CausalLMOutputWithPast
Base class for causal language model (or autoregressive) outputs. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, retur
src/transformers/src/transformers/modeling_outputs.py:678
↓ 29 callers
Class
InterpreterError
An error raised when the interpretor cannot evaluate a Python expression, due to syntax error or unsupported operations.
src/transformers/src/transformers/agents/python_interpreter.py:33
↓ 29 callers
Class
LlamaConfig
r""" This is the configuration class to store the configuration of a [`LlamaModel`]. It is used to instantiate an LLaMA model according to the
src/transformers/src/transformers/models/llama/configuration_llama.py:26
↓ 28 callers
Class
EsmFoldLinear
A Linear layer with built-in nonstandard initializations. Called just like torch.nn.Linear. Implements the initializers in 1.11.4, plus some
src/transformers/src/transformers/models/esm/modeling_esmfold.py:267
↓ 28 callers
Class
FlaxBaseModelOutputWithPastAndCrossAttentions
Base class for model's outputs that may also contain a past key/values (to speed up sequential decoding). Args: last_hidden_state (`
src/transformers/src/transformers/modeling_flax_outputs.py:217
↓ 28 callers
Class
Rotation
A 3D rotation. Depending on how the object is initialized, the rotation is represented by either a rotation matrix or a quaternion, though bo
src/transformers/src/transformers/models/esm/openfold_utils/rigid_utils.py:252
↓ 27 callers
Class
SequenceClassifierOutputWithPast
Base class for outputs of sentence classification models. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when
src/transformers/src/transformers/modeling_outputs.py:758
↓ 26 callers
Class
PretrainedConfig
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:50
↓ 25 callers
Class
AdamW
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:558
↓ 25 callers
Class
RegressionModelConfig
src/transformers/tests/trainer/test_trainer.py:262
↓ 24 callers
Class
Conv1D
src/transformers/src/transformers/utils/dummy_pt_objects.py:9933
↓ 23 callers
Class
RegressionTrainingArguments
src/transformers/tests/trainer/test_trainer.py:190
↓ 23 callers
Class
TFBaseModelOutputWithPastAndCrossAttentions
Base class for model's outputs that may also contain a past key/values (to speed up sequential decoding). Args: last_hidden_state (`
src/transformers/src/transformers/modeling_tf_outputs.py:245
↓ 22 callers
Class
TFQuestionAnsweringModelOutput
Base class for outputs of question answering models. Args: loss (`tf.Tensor` of shape `(batch_size, )`, *optional*, returned when `s
src/transformers/src/transformers/modeling_tf_outputs.py:814
↓ 22 callers
Class
TFSeq2SeqLMOutput
Base class for sequence-to-sequence language models outputs. Args: loss (`tf.Tensor` of shape `(n,)`, *optional*, where n is the num
src/transformers/src/transformers/modeling_tf_outputs.py:485
↓ 22 callers
Class
TFTokenClassifierOutput
Base class for outputs of token classification models. Args: loss (`tf.Tensor` of shape `(n,)`, *optional*, where n is the number of
src/transformers/src/transformers/modeling_tf_outputs.py:785
↓ 21 callers
Class
InputExample
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
↓ 21 callers
Class
LlamaForCausalLM
src/transformers/src/transformers/utils/dummy_pt_objects.py:5237
↓ 21 callers
Class
Seq2SeqModelOutput
Base class for model encoder's outputs that also contains : pre-computed hidden states that can speed up sequential decoding. Args:
src/transformers/src/transformers/modeling_outputs.py:516
↓ 20 callers
Class
RagRetriever
Retriever used to get documents from vector queries. It retrieves the documents embeddings as well as the documents contents, and it formats
src/transformers/src/transformers/models/rag/retrieval_rag.py:344
↓ 20 callers
Class
RepeatDataset
src/transformers/tests/trainer/test_trainer.py:203
↓ 20 callers
Class
TFMaskedLMOutput
Base class for masked language models outputs. Args: loss (`tf.Tensor` of shape `(n,)`, *optional*, where n is the number of non-mas
src/transformers/src/transformers/modeling_tf_outputs.py:456
↓ 19 callers
Class
BartConfig
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
src/transformers/src/transformers/models/bart/configuration_bart.py:31
↓ 19 callers
Class
BaseModelOutputWithNoAttention
Base class for model's outputs, with potential hidden states. Args: last_hidden_state (`torch.FloatTensor` of shape `(batch_size, nu
src/transformers/src/transformers/modeling_outputs.py:51
↓ 19 callers
Class
EncoderDecoderModel
src/transformers/src/transformers/utils/dummy_pt_objects.py:3730
↓ 19 callers
Class
RegressionPreTrainedModel
src/transformers/tests/trainer/test_trainer.py:341
↓ 18 callers
Class
AwqConfig
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:749
↓ 18 callers
Class
FlaxCausalLMOutputWithCrossAttentions
Base class for causal language model (or autoregressive) outputs. Args: logits (`jnp.ndarray` of shape `(batch_size, sequence_length
src/transformers/src/transformers/modeling_flax_outputs.py:324
↓ 18 callers
Class
ModelPatterns
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
↓ 18 callers
Class
QuantAct
Quantizes the given activation. Args: activation_bit (`int`): Bitwidth for the quantized activation. act_range_m
src/transformers/src/transformers/models/ibert/quant_modules.py:114
↓ 18 callers
Class
Rigid
A class representing a rigid transformation. Little more than a wrapper around two objects: a Rotation object and a [*, 3] translation Design
src/transformers/src/transformers/models/esm/openfold_utils/rigid_utils.py:729
↓ 18 callers
Class
TFMultipleChoiceModelOutput
Base class for outputs of multiple choice models. Args: loss (`tf.Tensor` of shape *(batch_size, )*, *optional*, returned when `labe
src/transformers/src/transformers/modeling_tf_outputs.py:754
↓ 17 callers
Class
BackboneOutput
Base class for outputs of backbones. Args: feature_maps (`tuple(torch.FloatTensor)` of shape `(batch_size, num_channels, height, wid
src/transformers/src/transformers/modeling_outputs.py:1438
↓ 17 callers
Class
BitsAndBytesConfig
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:296
↓ 17 callers
Class
EvalPrediction
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:152
↓ 17 callers
Class
GPTQConfig
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:532
↓ 17 callers
Class
PatchTSMixerConfig
r""" This is the configuration class to store the configuration of a [`PatchTSMixerModel`]. It is used to instantiate a PatchTSMixer model acc
src/transformers/src/transformers/models/patchtsmixer/configuration_patchtsmixer.py:26
↓ 17 callers
Class
TFBaseModelOutputWithPooling
Base class for model's outputs that also contains a pooling of the last hidden states. Args: last_hidden_state (`tf.Tensor` of shape
src/transformers/src/transformers/modeling_tf_outputs.py:72
↓ 17 callers
Class
TFSeq2SeqModelOutput
Base class for model encoder's outputs that also contains : pre-computed hidden states that can speed up sequential decoding. Args:
src/transformers/src/transformers/modeling_tf_outputs.py:288
↓ 17 callers
Class
Wav2Vec2Processor
r""" Constructs a Wav2Vec2 processor which wraps a Wav2Vec2 feature extractor and a Wav2Vec2 CTC tokenizer into a single processor. [`Wav
src/transformers/src/transformers/models/wav2vec2/processing_wav2vec2.py:27
↓ 16 callers
Class
GPT2Config
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
src/transformers/src/transformers/models/gpt2/configuration_gpt2.py:30
↓ 16 callers
Class
MobileViTV2ConvLayer
src/transformers/src/transformers/models/mobilevitv2/modeling_mobilevitv2.py:80
↓ 15 callers
Class
GroundingDinoImageProcessor
src/transformers/src/transformers/utils/dummy_vision_objects.py:278
↓ 15 callers
Class
ImageClassifierOutput
Base class for outputs of image classification models. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `l
src/transformers/src/transformers/modeling_outputs.py:1270
↓ 15 callers
Class
ImageClassifierOutputWithNoAttention
Base class for outputs of image classification models. Args: loss (`torch.FloatTensor` of shape `(1,)`, *optional*, returned when `l
src/transformers/src/transformers/modeling_outputs.py:1298
↓ 15 callers
Class
ImageFeatureExtractionMixin
Mixin that contain utilities for preparing image features.
src/transformers/src/transformers/image_utils.py:430
↓ 15 callers
Class
ModelOutputTest
src/transformers/tests/utils/test_model_output.py:33
↓ 15 callers
Class
RegressionModel
src/transformers/tests/trainer/test_trainer.py:312
↓ 15 callers
Class
VisionEncoderDecoderModel
src/transformers/src/transformers/utils/dummy_pt_objects.py:9018
↓ 14 callers
Class
DeformableDetrImageProcessor
src/transformers/src/transformers/utils/dummy_vision_objects.py:131
↓ 14 callers
Class
IndexMap
Index grouping entries within a tensor.
src/transformers/src/transformers/models/tapas/modeling_tf_tapas.py:1833
↓ 14 callers
Class
IndexMap
Index grouping entries within a tensor.
src/transformers/src/transformers/models/tapas/modeling_tapas.py:1553
↓ 14 callers
Class
LayoutLMv3ImageProcessor
src/transformers/src/transformers/utils/dummy_vision_objects.py:341
↓ 14 callers
Class
Memory
`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 callers
Class
MobileViTConvLayer
src/transformers/src/transformers/models/mobilevit/modeling_mobilevit.py:77
↓ 14 callers
Class
Namespace
src/transformers/tests/generation/test_logits_process.py:874
↓ 14 callers
Class
PyTorchBenchmark
src/transformers/src/transformers/benchmark/benchmark.py:49
↓ 14 callers
Class
SampleIterableDataset
src/transformers/tests/trainer/test_trainer.py:274
↓ 14 callers
Class
TFMobileViTConvLayer
src/transformers/src/transformers/models/mobilevit/modeling_tf_mobilevit.py:79
↓ 14 callers
Class
Wav2Vec2FeatureExtractor
src/transformers/src/transformers/models/wav2vec2/modeling_wav2vec2.py:468
↓ 13 callers
Class
BaseModelOutputWithPoolingAndNoAttention
Base class for model's outputs that also contains a pooling of the last hidden states. Args: last_hidden_state (`torch.FloatTensor`
src/transformers/src/transformers/modeling_outputs.py:102
next →
1–100 of 12,513, ranked by callers