MCPcopy Create free account

hub / github.com/OmniMMI/OpenOmniNexus / types & classes

Types & classes108 in github.com/OmniMMI/OpenOmniNexus

↓ 21 callersClassConversation
A class that keeps all conversation history.
open_omni/conversation.py:26
↓ 6 callersClassLengthGroupedSampler
r""" Sampler that samples indices in a way that groups together features of the dataset of roughly the same length while keeping a bit of rand
open_omni/train/llava_trainer.py:232
↓ 2 callersClassBertAttention
open_omni/model/multimodal_resampler/qformer.py:253
↓ 2 callersClassBertIntermediate
open_omni/model/multimodal_resampler/qformer.py:306
↓ 2 callersClassBertModel
The model can behave as an encoder (with only self-attention) as well as a decoder, in which case a layer of cross-attention is added between
open_omni/model/multimodal_resampler/qformer.py:615
↓ 2 callersClassBertOnlyMLMHead
open_omni/model/multimodal_resampler/qformer.py:582
↓ 2 callersClassBertOutput
open_omni/model/multimodal_resampler/qformer.py:321
↓ 2 callersClassKeywordsStoppingCriteria
open_omni/mm_utils.py:433
↓ 2 callersClassSpeechGeneratorCTC
open_omni/model/speech_generator/speech_generator.py:25
↓ 2 callersClassStreamToLogger
Fake file-like stream object that redirects writes to a logger instance.
open_omni/utils.py:114
↓ 2 callersClassValueHead
r""" The ValueHead class implements a head for GPT2 that returns a scalar for each output token.
trl/models/modeling_value_head.py:21
↓ 1 callersClassAdaptiveKLController
Adaptive KL controller described in the paper: https://arxiv.org/pdf/1909.08593.pdf
trl/trainer/utils.py:35
↓ 1 callersClassApplyKmeans
preprocess/quantize/speech2unit.py:90
↓ 1 callersClassBertEmbeddings
Construct the embeddings from word and position embeddings.
open_omni/model/multimodal_resampler/qformer.py:57
↓ 1 callersClassBertEncoder
open_omni/model/multimodal_resampler/qformer.py:433
↓ 1 callersClassBertLMHeadModel
open_omni/model/multimodal_resampler/qformer.py:865
↓ 1 callersClassBertLMPredictionHead
open_omni/model/multimodal_resampler/qformer.py:562
↓ 1 callersClassBertLayer
open_omni/model/multimodal_resampler/qformer.py:335
↓ 1 callersClassBertPooler
open_omni/model/multimodal_resampler/qformer.py:530
↓ 1 callersClassBertPredictionHeadTransform
open_omni/model/multimodal_resampler/qformer.py:545
↓ 1 callersClassBertSelfAttention
open_omni/model/multimodal_resampler/qformer.py:107
↓ 1 callersClassBertSelfOutput
open_omni/model/multimodal_resampler/qformer.py:239
↓ 1 callersClassCLIPVisionTower
open_omni/model/multimodal_encoder/clip_encoder.py:12
↓ 1 callersClassCLIPVisionTowerS2
open_omni/model/multimodal_encoder/clip_encoder.py:127
↓ 1 callersClassConstantLengthDataset
Iterable dataset that returns constant length chunks of tokens from stream of text files. The dataset also formats the text before tokenizati
trl/trainer/utils.py:341
↓ 1 callersClassController
local_demo/controller.py:57
↓ 1 callersClassDDPOPipelineOutput
Output class for the diffusers pipeline to be finetuned with the DDPO trainer Args: images (`torch.Tensor`): The generat
trl/models/modeling_sd_base.py:37
↓ 1 callersClassDDPOSchedulerOutput
Output class for the diffusers scheduler to be finetuned with the DDPO trainer Args: latents (`torch.Tensor`): Predicted
trl/models/modeling_sd_base.py:57
↓ 1 callersClassDPODataCollator
Collate examples for DPO fine-tuning.
open_omni/train/train_dpo.py:1187
↓ 1 callersClassDPODataCollatorWithPadding
r""" DPO DataCollator class that pads the tokenized inputs to the maximum length of the batch. Args: pad_token_id (`int` defaults to 0
trl/trainer/utils.py:271
↓ 1 callersClassDPODataset
Dataset for DPODataset fine-tuning.
open_omni/train/train_dpo.py:908
↓ 1 callersClassDataCollatorForSupervisedDataset
Collate examples for supervised fine-tuning.
open_omni/train/train.py:1562
↓ 1 callersClassEncoderProjectorConcat
open_omni/model/speech_projector/speech_projector.py:8
↓ 1 callersClassFeatureReader
preprocess/quantize/speech2unit.py:34
↓ 1 callersClassFixedKLController
Fixed KL controller.
trl/trainer/utils.py:53
↓ 1 callersClassIdentityMap
open_omni/model/multimodal_resampler/builder.py:9
↓ 1 callersClassIdentityMap
open_omni/model/multimodal_projector/builder.py:8
↓ 1 callersClassLLaVADPOTrainer
open_omni/train/llava_trainer.py:516
↓ 1 callersClassLLaVATrainer
open_omni/train/llava_trainer.py:280
↓ 1 callersClassLazySupervisedDataset
open_omni/train/train.py:1248
↓ 1 callersClassLlavaLlamaModel
open_omni/model/language_model/llava_llama.py:44
↓ 1 callersClassLlavaMistralModel
open_omni/model/language_model/llava_mistral.py:38
↓ 1 callersClassLlavaMptModel
open_omni/model/language_model/llava_mpt.py:28
↓ 1 callersClassLlavaQwenModel
open_omni/model/language_model/llava_qwen.py:72
↓ 1 callersClassMaskedDrop
open_omni/model/multimodal_resampler/masked_drop.py:7
↓ 1 callersClassModelWorker
local_demo/model_worker.py:79
↓ 1 callersClassPerPromptStatTracker
r""" Class for tracking statistics per prompt. Mainly used to calculate advantage for the DPPO algorithm Args: buffer_size (`int`):
trl/trainer/utils.py:563
↓ 1 callersClassPerceiverAttention
open_omni/model/multimodal_resampler/perceiver.py:30
↓ 1 callersClassPerceiverResampler
open_omni/model/multimodal_resampler/perceiver.py:130
↓ 1 callersClassPerceiverResamplerModule
open_omni/model/multimodal_resampler/perceiver.py:73
↓ 1 callersClassPoolerProjector
open_omni/model/multimodal_projector/pooler_projector.py:9
↓ 1 callersClassQformer
open_omni/model/multimodal_resampler/qformer.py:1102
↓ 1 callersClassRewardDataCollatorWithPadding
r""" Reward DataCollator class that pads the inputs to the maximum length of the batch. Args: tokenizer (`PreTrainedTokenizerBase`):
trl/trainer/utils.py:196
↓ 1 callersClassRunningMoments
trl/trainer/utils.py:460
↓ 1 callersClassSimpleResBlock
open_omni/model/multimodal_projector/builder.py:20
↓ 1 callersClassSpatialPool
open_omni/model/multimodal_resampler/spatial_pool.py:6
↓ 1 callersClassSpeech2Unit
preprocess/quantize/speech2unit.py:121
↓ 1 callersClassStringStoppingCriteria
Custom `StoppingCriteria` which checks if all generations in the batch are completed.
trl/environment/base_environment.py:30
↓ 1 callersClassTextHistory
The TextHistory class keeps track of the history of an interaction between the language model and the environment.
trl/environment/base_environment.py:59
↓ 1 callersClassWorkerInfo
local_demo/controller.py:43
ClassAutoModelForCausalLMWithValueHead
r""" An autoregressive model with a value head in addition to the language model head. This class inherits from `~trl.PreTrainedModelWrapper`
trl/models/modeling_value_head.py:61
ClassAutoModelForSeq2SeqLMWithValueHead
r""" A seq2seq model with a value head in addition to the language model head. This class inherits from `~trl.PreTrainedModelWrapper` and wrap
trl/models/modeling_value_head.py:260
ClassBaseTrainer
r""" Base class for all trainers - this base class implements the basic functions that we need for a trainer. The trainer needs to have t
trl/trainer/base.py:18
ClassBertForMaskedLM
open_omni/model/multimodal_resampler/qformer.py:1020
ClassBertPreTrainedModel
An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models.
open_omni/model/multimodal_resampler/qformer.py:592
ClassBestOfNSampler
trl/extras/best_of_n_sampler.py:10
ClassChatMlSpecialTokens
Dataclass for special tokens used in ChatML, including system, user, assistant, bos, eos, and pad tokens.
trl/models/utils.py:9
ClassDDPOConfig
Configuration class for DDPOTrainer
trl/trainer/ddpo_config.py:12
ClassDDPOStableDiffusionPipeline
Main class for the diffusers pipeline to be finetuned with the DDPO trainer
trl/models/modeling_sd_base.py:72
ClassDDPOTrainer
The DDPOTrainer uses Deep Diffusion Policy Optimization to optimise diffusion models. Note, this trainer is heavily inspired by the work here
trl/trainer/ddpo_trainer.py:55
ClassDPOTrainer
r""" Initialize DPOTrainer. Args: model (`transformers.PreTrainedModel`): The model to train, preferably an `AutoModelFor
trl/trainer/dpo_trainer.py:67
ClassDataArguments
open_omni/train/train.py:129
ClassDataArguments
open_omni/train/train_dpo.py:117
ClassDataCollatorForCompletionOnlyLM
Data collator used for completion tasks. It ensures that all the tokens of the labels are set to an 'ignore_index' when they do not come from
trl/trainer/utils.py:63
ClassDefaultDDPOStableDiffusionPipeline
trl/models/modeling_sd_base.py:515
ClassDispatchMethod
local_demo/controller.py:28
ClassGenerationWithCTC
open_omni/model/speech_generator/generation.py:37
ClassIterativeSFTTrainer
The IterativeSFTTrainer can be used to finetune models with methods that requires some steps between optimization. Attributes: **mod
trl/trainer/iterative_sft_trainer.py:39
ClassLengthSampler
Samples a length
trl/core.py:253
ClassLlavaConfig
open_omni/model/language_model/llava_llama.py:35
ClassLlavaLlamaForCausalLM
open_omni/model/language_model/llava_llama.py:51
ClassLlavaMetaForCausalLM
open_omni/model/llava_arch.py:220
ClassLlavaMetaModel
open_omni/model/llava_arch.py:38
ClassLlavaMistralConfig
open_omni/model/language_model/llava_mistral.py:30
ClassLlavaMistralForCausalLM
open_omni/model/language_model/llava_mistral.py:45
ClassLlavaMptConfig
open_omni/model/language_model/llava_mpt.py:24
ClassLlavaMptForCausalLM
open_omni/model/language_model/llava_mpt.py:39
ClassLlavaQwenConfig
open_omni/model/language_model/llava_qwen.py:68
ClassLlavaQwenForCausalLM
open_omni/model/language_model/llava_qwen.py:79
ClassLlavaS2SLlamaConfig
open_omni/model/language_model/llava_s2s_llama.py:37
ClassLlavaS2SLlamaForCausalLM
open_omni/model/language_model/llava_s2s_llama.py:41
ClassLlavaS2SQwenConfig
open_omni/model/language_model/llava_s2s_qwen.py:56
ClassLlavaS2SQwenForCausalLM
open_omni/model/language_model/llava_s2s_qwen.py:60
ClassModelArguments
open_omni/train/train.py:60
ClassModelArguments
open_omni/train/train_dpo.py:67
ClassModelConfig
Arguments which define the model and tokenizer to load.
trl/trainer/model_config.py:8
ClassPPOConfig
Configuration class for PPOTrainer
trl/trainer/ppo_config.py:35
ClassPPODecorators
trl/core.py:265
ClassPPOTrainer
The PPOTrainer uses Proximal Policy Optimization to optimise language models. Note, this trainer is heavily inspired by the original OpenAI l
trl/trainer/ppo_trainer.py:109
ClassPreTrainedModelWrapper
r""" A wrapper class around a (`transformers.PreTrainedModel`) to be compatible with the (`~transformers.PreTrained`) class in order to keep s
trl/models/modeling_base.py:59
next →1–100 of 108, ranked by callers