MCPcopy Create free account

hub / github.com/OmniMMI/OpenOmniNexus / functions

Functions668 in github.com/OmniMMI/OpenOmniNexus

↓ 1 callersFunctionpreprocess_qwen
(sources, tokenizer: transformers.PreTrainedTokenizer, has_image: bool = False, max_len=2048, system_message:
open_omni/train/train_dpo.py:567
↓ 1 callersFunctionpreprocess_qwen_av
(sources, tokenizer: transformers.PreTrainedTokenizer, has_image: bool = False, has_units: bool = False, max_l
open_omni/train/train.py:706
↓ 1 callersFunctionpreprocess_v1
(sources, tokenizer: transformers.PreTrainedTokenizer, has_image: bool = False)
open_omni/train/train.py:1011
↓ 1 callersFunctionpreprocess_v1
(sources, tokenizer: transformers.PreTrainedTokenizer, has_image: bool = False)
open_omni/train/train_dpo.py:667
↓ 1 callersFunctionpretty_print_semaphore
(semaphore)
open_omni/utils.py:180
↓ 1 callersFunctionprocess_conversation
(items)
preprocess/tts/process_cosyvoice.py:78
↓ 1 callersFunctionprocess_video_with_pyav
(video_file, data_args)
open_omni/utils.py:28
↓ 1 callersMethodprune_heads
(self, heads)
open_omni/model/multimodal_resampler/qformer.py:260
↓ 1 callersMethodpush_to_hub
Overwrite the `push_to_hub` method in order to force-add the tag "sft" when pushing the model on the Hub. Please refer to `~transform
trl/trainer/dpo_trainer.py:1181
↓ 1 callersMethodpush_to_hub
(self, *args, **kwargs)
trl/models/modeling_value_head.py:221
↓ 1 callersFunctionrandn_tensor
A helper function to create random tensors on the desired `device` with the desired `dtype`. When passing a list of generators, you can seed each
trl/core.py:287
↓ 1 callersMethodread_audio
(self, path)
preprocess/quantize/speech2unit.py:54
↓ 1 callersMethodreceive_heart_beat
(self, worker_name: str, queue_length: int)
local_demo/controller.py:173
↓ 1 callersMethodrecord_step_stats
Record training step statistics. Args: kl_coef (`float`): KL coefficient data (`dict`):
trl/trainer/ppo_trainer.py:1200
↓ 1 callersFunctionrecurse
(nest: Dict, prefix: str, into: Dict)
trl/core.py:75
↓ 1 callersMethodrefresh_all_workers
(self)
local_demo/controller.py:104
↓ 1 callersMethodremove_stable_workers_by_expiration
(self)
local_demo/controller.py:183
↓ 1 callersFunctionreplace
(match)
preprocess/tts/process_cosyvoice.py:33
↓ 1 callersFunctionresize_and_center_crop
(image, shortest_edge_length)
open_omni/mm_utils.py:12
↓ 1 callersFunctionresize_and_pad_image
Resize and pad an image to a target resolution while maintaining aspect ratio. Args: image (PIL.Image.Image): The input image.
open_omni/mm_utils.py:152
↓ 1 callersFunctionrun_inference
Run inference on ActivityNet QA DataSet using the Video-ChatGPT model. Args: args: Command-line arguments.
open_omni/eval/model_note.py:126
↓ 1 callersFunctionrun_inference
Run inference on ActivityNet QA DataSet using the Video-ChatGPT model. Args: args: Command-line arguments.
open_omni/eval/model_videoqa_mc.py:125
↓ 1 callersFunctionsafe_load_tokenizer
(tokenizer_id)
open_omni/conversation.py:363
↓ 1 callersFunctionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
open_omni/train/train.py:278
↓ 1 callersFunctionsafe_save_model_for_hf_trainer
Collects the state dict and dump to disk.
open_omni/train/train_dpo.py:242
↓ 1 callersMethodsave_attention_map
(self, attention_map)
open_omni/model/multimodal_resampler/qformer.py:139
↓ 1 callersMethodsave_checkpoint
Light wrapper around accelerate's register_save_state_pre_hook which is run before saving state
trl/models/modeling_sd_base.py:143
↓ 1 callersMethodscheduler_step
(self, *args, **kwargs)
trl/models/modeling_sd_base.py:80
↓ 1 callersFunctionset_seed
Set RNG seeds for python's `random` module, numpy and torch
open_omni/data_processing/utils.py:22
↓ 1 callersFunctionsmart_tokenizer_and_embedding_resize
Resize tokenizer and embedding. Note: This is the unoptimized version that may make your embedding size not be divisible by 64.
open_omni/train/train.py:322
↓ 1 callersFunctionsmart_tokenizer_and_embedding_resize
Resize tokenizer and embedding. Note: This is the unoptimized version that may make your embedding size not be divisible by 64.
open_omni/train/train_dpo.py:286
↓ 1 callersFunctionsplit_into_batches
(data, num_batches)
preprocess/tts/process_cosyvoice.py:95
↓ 1 callersMethodsplit_query_response_tokens
Split the tokens into query and response tokens.
trl/environment/base_environment.py:131
↓ 1 callersFunctionstack_dicts
Stack the values of a dict.
trl/core.py:103
↓ 1 callersFunctionstats_to_np
Cast all torch.tensors in dict to numpy arrays.
trl/core.py:204
↓ 1 callersMethodstep
Step the environment forward one turn. Args: history (`TextHistory`): The history to step forward.
trl/environment/base_environment.py:293
↓ 1 callersMethodstep
Run a PPO optimisation step given a list of queries, model responses, and rewards. Args: queries (List[`torch.LongTensor
trl/trainer/ppo_trainer.py:587
↓ 1 callersFunctiontext_to_speech
(item_id, idx, text, output_dir="m4-it/")
preprocess/tts/process_cosyvoice.py:44
↓ 1 callersMethodtokenize
(element)
trl/trainer/sft_trainer.py:385
↓ 1 callersMethodtokenize_batch_element
Tokenize a single batch element. At this stage, we don't convert to PyTorch tensors yet; we just handle the truncation in case th
open_omni/train/train_dpo.py:1241
↓ 1 callersFunctiontokenizer_image_speech_tokens
(prompt, tokenizer, image_token_index=IMAGE_TOKEN_INDEX, speech_token_index=SPEECH_TOKEN_INDEX, return_tensors
open_omni/mm_utils.py:362
↓ 1 callersFunctiontop_k_top_p_filtering
Filter a distribution of logits using top-k and/or nucleus (top-p) filtering. Args: logits: logits distribution shape (batch size, v
trl/core.py:40
↓ 1 callersFunctiontrain
(attn_implementation=None)
open_omni/train/train_dpo.py:1486
↓ 1 callersMethodtrain
Train the model for a given number of epochs
trl/trainer/ddpo_trainer.py:571
↓ 1 callersMethodtrain_minibatch
Train one PPO minibatch Args: logprobs (`torch.FloatTensor`): Log probabilities of the model, shape [min
trl/trainer/ppo_trainer.py:988
↓ 1 callersFunctiontransition_attention_mask_pt
(b, h, q_idx, kv_idx, prefix_length, channel, device)
open_omni/model/language_model/llava_qwen.py:48
↓ 1 callersMethodworker_api_generate_stream
(self, params)
local_demo/controller.py:193
↓ 1 callersMethodworker_api_get_status
(self)
local_demo/controller.py:220
Method__call__
(self, output_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs)
open_omni/mm_utils.py:445
Method__call__
(self, instances: Sequence[Dict])
open_omni/train/train.py:1575
Method__call__
(self, features: List[Dict[str, Any]])
open_omni/train/train_dpo.py:1276
Method__call__
(self, x)
preprocess/quantize/speech2unit.py:102
Method__call__
(self, path, merged=True)
preprocess/quantize/speech2unit.py:162
Method__call__
(self)
trl/core.py:261
Method__call__
Returns true if all generated sequences contain any of the stop strings.
trl/environment/base_environment.py:38
Method__call__
(self, features: List[Dict[str, Any]])
trl/trainer/utils.py:218
Method__call__
(self, features: List[Dict[str, Any]])
trl/trainer/utils.py:288
Method__call__
(self, *args, **kwargs)
trl/models/modeling_sd_base.py:77
Method__call__
(self, *args, **kwargs)
trl/models/modeling_sd_base.py:542
Method__getattr__
(self, attr)
open_omni/utils.py:125
Method__getitem__
(self, i)
open_omni/train/train.py:1390
Method__getitem__
(self, i)
open_omni/train/train_dpo.py:1041
Method__init__
(self, logger, log_level=logging.INFO)
open_omni/utils.py:119
Method__init__
(self, keywords, tokenizer, input_ids)
open_omni/mm_utils.py:434
Method__init__
(self, config)
open_omni/model/llava_arch.py:40
Method__init__
(self, config)
open_omni/model/speech_generator/speech_generator.py:26
Method__init__
(self, model_args)
open_omni/model/multimodal_resampler/masked_drop.py:8
Method__init__
(self, config)
open_omni/model/multimodal_resampler/qformer.py:60
Method__init__
(self, config, is_cross_attention)
open_omni/model/multimodal_resampler/qformer.py:108
Method__init__
(self, config)
open_omni/model/multimodal_resampler/qformer.py:240
Method__init__
(self, config, is_cross_attention=False)
open_omni/model/multimodal_resampler/qformer.py:254
Method__init__
(self, config)
open_omni/model/multimodal_resampler/qformer.py:307
Method__init__
(self, config)
open_omni/model/multimodal_resampler/qformer.py:322
Method__init__
(self, config, layer_num)
open_omni/model/multimodal_resampler/qformer.py:336
Method__init__
(self, config)
open_omni/model/multimodal_resampler/qformer.py:434
Method__init__
(self, config)
open_omni/model/multimodal_resampler/qformer.py:531
Method__init__
(self, config)
open_omni/model/multimodal_resampler/qformer.py:546
Method__init__
(self, config)
open_omni/model/multimodal_resampler/qformer.py:563
Method__init__
(self, config)
open_omni/model/multimodal_resampler/qformer.py:583
Method__init__
(self, config, add_pooling_layer=False)
open_omni/model/multimodal_resampler/qformer.py:625
Method__init__
(self, config)
open_omni/model/multimodal_resampler/qformer.py:870
Method__init__
(self, config)
open_omni/model/multimodal_resampler/qformer.py:1025
Method__init__
(self)
open_omni/model/multimodal_resampler/builder.py:10
Method__init__
(self, model_args, vision_tower)
open_omni/model/multimodal_resampler/spatial_pool.py:7
Method__init__
( self, *, dim, depth=6, dim_head=64, heads=8, num_lat
open_omni/model/multimodal_resampler/perceiver.py:74
Method__init__
(self, model_args, vision_tower)
open_omni/model/multimodal_resampler/perceiver.py:131
Method__init__
(self, config)
open_omni/model/speech_projector/speech_projector.py:9
Method__init__
(self, config)
open_omni/model/language_model/llava_qwen.py:82
Method__init__
(self, config)
open_omni/model/language_model/llava_llama.py:54
Method__init__
(self, config)
open_omni/model/language_model/llava_s2s_llama.py:44
Method__init__
(self, config)
open_omni/model/language_model/llava_s2s_qwen.py:63
Method__init__
(self, config)
open_omni/model/language_model/llava_mpt.py:43
Method__init__
(self, config)
open_omni/model/language_model/llava_mistral.py:48
Method__init__
(self, channels)
open_omni/model/multimodal_projector/builder.py:21
Method__init__
(self, config, vision_cfg)
open_omni/model/multimodal_projector/pooler_projector.py:10
Method__init__
(self, vision_tower, args, delay_load=False)
open_omni/model/multimodal_encoder/clip_encoder.py:128
Method__init__
(self, data_path: str, tokenizer: transformers.PreTrainedTokenizer, data_args: DataArguments)
open_omni/train/train.py:1249
Method__init__
(self, data_path: str, tokenizer: transformers.PreTrainedTokenizer, data_args: DataArguments)
open_omni/train/train_dpo.py:911
Method__init__
( self, batch_size: int, world_size: int, lengths: Optional[List[int]] = None,
open_omni/train/llava_trainer.py:238
Method__init__
(self, controller_addr, worker_addr, worker_id, no_register, model_path, mod
local_demo/model_worker.py:80
← previousnext →301–400 of 668, ranked by callers