Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OmniMMI/OpenOmniNexus
/ types & classes
Types & classes
108 in github.com/OmniMMI/OpenOmniNexus
⨍
Functions
668
◇
Types & classes
108
↳
Endpoints
9
↓ 21 callers
Class
Conversation
A class that keeps all conversation history.
open_omni/conversation.py:26
↓ 6 callers
Class
LengthGroupedSampler
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 callers
Class
BertAttention
open_omni/model/multimodal_resampler/qformer.py:253
↓ 2 callers
Class
BertIntermediate
open_omni/model/multimodal_resampler/qformer.py:306
↓ 2 callers
Class
BertModel
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 callers
Class
BertOnlyMLMHead
open_omni/model/multimodal_resampler/qformer.py:582
↓ 2 callers
Class
BertOutput
open_omni/model/multimodal_resampler/qformer.py:321
↓ 2 callers
Class
KeywordsStoppingCriteria
open_omni/mm_utils.py:433
↓ 2 callers
Class
SpeechGeneratorCTC
open_omni/model/speech_generator/speech_generator.py:25
↓ 2 callers
Class
StreamToLogger
Fake file-like stream object that redirects writes to a logger instance.
open_omni/utils.py:114
↓ 2 callers
Class
ValueHead
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 callers
Class
AdaptiveKLController
Adaptive KL controller described in the paper: https://arxiv.org/pdf/1909.08593.pdf
trl/trainer/utils.py:35
↓ 1 callers
Class
ApplyKmeans
preprocess/quantize/speech2unit.py:90
↓ 1 callers
Class
BertEmbeddings
Construct the embeddings from word and position embeddings.
open_omni/model/multimodal_resampler/qformer.py:57
↓ 1 callers
Class
BertEncoder
open_omni/model/multimodal_resampler/qformer.py:433
↓ 1 callers
Class
BertLMHeadModel
open_omni/model/multimodal_resampler/qformer.py:865
↓ 1 callers
Class
BertLMPredictionHead
open_omni/model/multimodal_resampler/qformer.py:562
↓ 1 callers
Class
BertLayer
open_omni/model/multimodal_resampler/qformer.py:335
↓ 1 callers
Class
BertPooler
open_omni/model/multimodal_resampler/qformer.py:530
↓ 1 callers
Class
BertPredictionHeadTransform
open_omni/model/multimodal_resampler/qformer.py:545
↓ 1 callers
Class
BertSelfAttention
open_omni/model/multimodal_resampler/qformer.py:107
↓ 1 callers
Class
BertSelfOutput
open_omni/model/multimodal_resampler/qformer.py:239
↓ 1 callers
Class
CLIPVisionTower
open_omni/model/multimodal_encoder/clip_encoder.py:12
↓ 1 callers
Class
CLIPVisionTowerS2
open_omni/model/multimodal_encoder/clip_encoder.py:127
↓ 1 callers
Class
ConstantLengthDataset
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 callers
Class
Controller
local_demo/controller.py:57
↓ 1 callers
Class
DDPOPipelineOutput
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 callers
Class
DDPOSchedulerOutput
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 callers
Class
DPODataCollator
Collate examples for DPO fine-tuning.
open_omni/train/train_dpo.py:1187
↓ 1 callers
Class
DPODataCollatorWithPadding
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 callers
Class
DPODataset
Dataset for DPODataset fine-tuning.
open_omni/train/train_dpo.py:908
↓ 1 callers
Class
DataCollatorForSupervisedDataset
Collate examples for supervised fine-tuning.
open_omni/train/train.py:1562
↓ 1 callers
Class
EncoderProjectorConcat
open_omni/model/speech_projector/speech_projector.py:8
↓ 1 callers
Class
FeatureReader
preprocess/quantize/speech2unit.py:34
↓ 1 callers
Class
FixedKLController
Fixed KL controller.
trl/trainer/utils.py:53
↓ 1 callers
Class
IdentityMap
open_omni/model/multimodal_resampler/builder.py:9
↓ 1 callers
Class
IdentityMap
open_omni/model/multimodal_projector/builder.py:8
↓ 1 callers
Class
LLaVADPOTrainer
open_omni/train/llava_trainer.py:516
↓ 1 callers
Class
LLaVATrainer
open_omni/train/llava_trainer.py:280
↓ 1 callers
Class
LazySupervisedDataset
open_omni/train/train.py:1248
↓ 1 callers
Class
LlavaLlamaModel
open_omni/model/language_model/llava_llama.py:44
↓ 1 callers
Class
LlavaMistralModel
open_omni/model/language_model/llava_mistral.py:38
↓ 1 callers
Class
LlavaMptModel
open_omni/model/language_model/llava_mpt.py:28
↓ 1 callers
Class
LlavaQwenModel
open_omni/model/language_model/llava_qwen.py:72
↓ 1 callers
Class
MaskedDrop
open_omni/model/multimodal_resampler/masked_drop.py:7
↓ 1 callers
Class
ModelWorker
local_demo/model_worker.py:79
↓ 1 callers
Class
PerPromptStatTracker
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 callers
Class
PerceiverAttention
open_omni/model/multimodal_resampler/perceiver.py:30
↓ 1 callers
Class
PerceiverResampler
open_omni/model/multimodal_resampler/perceiver.py:130
↓ 1 callers
Class
PerceiverResamplerModule
open_omni/model/multimodal_resampler/perceiver.py:73
↓ 1 callers
Class
PoolerProjector
open_omni/model/multimodal_projector/pooler_projector.py:9
↓ 1 callers
Class
Qformer
open_omni/model/multimodal_resampler/qformer.py:1102
↓ 1 callers
Class
RewardDataCollatorWithPadding
r""" Reward DataCollator class that pads the inputs to the maximum length of the batch. Args: tokenizer (`PreTrainedTokenizerBase`):
trl/trainer/utils.py:196
↓ 1 callers
Class
RunningMoments
trl/trainer/utils.py:460
↓ 1 callers
Class
SimpleResBlock
open_omni/model/multimodal_projector/builder.py:20
↓ 1 callers
Class
SpatialPool
open_omni/model/multimodal_resampler/spatial_pool.py:6
↓ 1 callers
Class
Speech2Unit
preprocess/quantize/speech2unit.py:121
↓ 1 callers
Class
StringStoppingCriteria
Custom `StoppingCriteria` which checks if all generations in the batch are completed.
trl/environment/base_environment.py:30
↓ 1 callers
Class
TextHistory
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 callers
Class
WorkerInfo
local_demo/controller.py:43
Class
AutoModelForCausalLMWithValueHead
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
Class
AutoModelForSeq2SeqLMWithValueHead
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
Class
BaseTrainer
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
Class
BertForMaskedLM
open_omni/model/multimodal_resampler/qformer.py:1020
Class
BertPreTrainedModel
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
Class
BestOfNSampler
trl/extras/best_of_n_sampler.py:10
Class
ChatMlSpecialTokens
Dataclass for special tokens used in ChatML, including system, user, assistant, bos, eos, and pad tokens.
trl/models/utils.py:9
Class
DDPOConfig
Configuration class for DDPOTrainer
trl/trainer/ddpo_config.py:12
Class
DDPOStableDiffusionPipeline
Main class for the diffusers pipeline to be finetuned with the DDPO trainer
trl/models/modeling_sd_base.py:72
Class
DDPOTrainer
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
Class
DPOTrainer
r""" Initialize DPOTrainer. Args: model (`transformers.PreTrainedModel`): The model to train, preferably an `AutoModelFor
trl/trainer/dpo_trainer.py:67
Class
DataArguments
open_omni/train/train.py:129
Class
DataArguments
open_omni/train/train_dpo.py:117
Class
DataCollatorForCompletionOnlyLM
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
Class
DefaultDDPOStableDiffusionPipeline
trl/models/modeling_sd_base.py:515
Class
DispatchMethod
local_demo/controller.py:28
Class
GenerationWithCTC
open_omni/model/speech_generator/generation.py:37
Class
IterativeSFTTrainer
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
Class
LengthSampler
Samples a length
trl/core.py:253
Class
LlavaConfig
open_omni/model/language_model/llava_llama.py:35
Class
LlavaLlamaForCausalLM
open_omni/model/language_model/llava_llama.py:51
Class
LlavaMetaForCausalLM
open_omni/model/llava_arch.py:220
Class
LlavaMetaModel
open_omni/model/llava_arch.py:38
Class
LlavaMistralConfig
open_omni/model/language_model/llava_mistral.py:30
Class
LlavaMistralForCausalLM
open_omni/model/language_model/llava_mistral.py:45
Class
LlavaMptConfig
open_omni/model/language_model/llava_mpt.py:24
Class
LlavaMptForCausalLM
open_omni/model/language_model/llava_mpt.py:39
Class
LlavaQwenConfig
open_omni/model/language_model/llava_qwen.py:68
Class
LlavaQwenForCausalLM
open_omni/model/language_model/llava_qwen.py:79
Class
LlavaS2SLlamaConfig
open_omni/model/language_model/llava_s2s_llama.py:37
Class
LlavaS2SLlamaForCausalLM
open_omni/model/language_model/llava_s2s_llama.py:41
Class
LlavaS2SQwenConfig
open_omni/model/language_model/llava_s2s_qwen.py:56
Class
LlavaS2SQwenForCausalLM
open_omni/model/language_model/llava_s2s_qwen.py:60
Class
ModelArguments
open_omni/train/train.py:60
Class
ModelArguments
open_omni/train/train_dpo.py:67
Class
ModelConfig
Arguments which define the model and tokenizer to load.
trl/trainer/model_config.py:8
Class
PPOConfig
Configuration class for PPOTrainer
trl/trainer/ppo_config.py:35
Class
PPODecorators
trl/core.py:265
Class
PPOTrainer
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
Class
PreTrainedModelWrapper
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