MCPcopy Create free account

hub / github.com/Fr0zenCrane/Cockatiel / functions

Functions1,946 in github.com/Fr0zenCrane/Cockatiel

↓ 1 callersFunctionget_chunk
(lst, n, k)
llava/eval/model_vqa_mmmu_sharded.py:41
↓ 1 callersFunctionget_chunk
(lst, n, k)
llava/eval/model_vqa_videoperception.py:49
↓ 1 callersFunctionget_chunk
(lst, n, k)
llava/eval/model_refcoco.py:121
↓ 1 callersFunctionget_chunk
(lst, n, k)
llava/eval/model_vqa.py:26
↓ 1 callersMethodget_config
(self, config_path: str)
llava/data/dataset.py:1564
↓ 1 callersFunctionget_disk_only_shard_files
Returns the list of shard files containing only weights offloaded to disk.
llava/train/transformers_replace/modeling_utils.py:4816
↓ 1 callersMethodget_elapsed_time
(self)
llava/train/slurm_utils.py:63
↓ 1 callersFunctionget_eval
(client, content: str, max_tokens: int, gpt_model)
llava/eval/eval_gpt_review_bench.py:14
↓ 1 callersFunctionget_eval
(content: str, max_tokens: int)
llava/eval/eval_gpt_review_visual.py:13
↓ 1 callersMethodget_features
(self, x: torch.Tensor)
llava/model/multimodal_encoder/radio_encoder.py:216
↓ 1 callersMethodget_file
(self, i)
llava/wids/wids_tar.py:72
↓ 1 callersFunctionget_formatting_func_from_dataset
r""" Finds the correct formatting function based on the dataset structure. Currently supported datasets are: - `ChatML` with [{"role": str, "c
llava/trl/extras/dataset_formatting.py:75
↓ 1 callersFunctionget_global_statistics
Computes element-wise mean and variance of the tensor across processes. Reference: https://github.com/OpenLMLab/MOSS-RLHF/blob/40b91eb2f2b71b
llava/trl/trainer/utils.py:520
↓ 1 callersFunctionget_half_lse
(lse, cu_seqlens, *, front: bool)
llava/train/sequence_parallel/ring/zigzag_ring_flash_attn_varlen.py:50
↓ 1 callersMethodget_head_mask
Prepare the head mask if needed. Args: head_mask (`torch.Tensor` with shape `[num_heads]` or `[num_hidden_layers x num_h
llava/train/transformers_replace/modeling_utils.py:967
↓ 1 callersMethodget_image
(self, name, pil=False)
llava/data/dataset_tar.py:111
↓ 1 callersMethodget_images
(self, return_pil=False)
llava/conversation.py:150
↓ 1 callersMethodget_input_embeddings
(self)
llava/model/language_model/mpt/modeling_mpt.py:115
↓ 1 callersFunctionget_key_subresponses
(response)
llava/eval/mmmu_utils/eval_utils.py:136
↓ 1 callersMethodget_logits
( self, input_ids: Optional[torch.FloatTensor] = None, images: Optional[torch.FloatTen
llava/model/language_model/llava_llama.py:184
↓ 1 callersFunctionget_modality_length_grouped_indices
(lengths, batch_size, world_size, generator=None)
llava/train/llava_trainer.py:89
↓ 1 callersFunctionget_model_name
(model)
llava/eval/vision_niah_vila/eval_vision_niah.py:179
↓ 1 callersFunctionget_model_output
(model, image_processor, tokenizer, video_path, qs, args)
llava/eval/model_vqa_video.py:52
↓ 1 callersFunctionget_model_output
(model, image_processor, tokenizer, video_path, qs, args)
llava/eval/model_vqa_nextqa.py:46
↓ 1 callersFunctionget_model_output
(model, image_processor, tokenizer, video_path, qs, args)
llava/eval/model_vqa_videodemo.py:52
↓ 1 callersFunctionget_model_output
(model, image_processor, tokenizer, video_path, qs, options, args)
llava/eval/model_vqa_videoperception.py:54
↓ 1 callersFunctionget_model_output
( model, image_processor, tokenizer, video_path, qs, conv_mode="vicuna_v1", num_vi
llava/eval/model_vqa_videomme.py:62
↓ 1 callersFunctionget_model_output
(model, image_processor, tokenizer, video_path, qs, args)
llava/eval/video/model_vqa_videodemo_benchmark.py:60
↓ 1 callersFunctionget_model_output
(model, image_processor, tokenizer, video_path, qs, conv_mode="vicuna_v1", num_video_frames=8)
llava/data_aug/video_inference.py:62
↓ 1 callersFunctionget_model_output
( model, image_processor, tokenizer, video_path, qs, conv_mode="vicuna_v1", num_vi
llava/data_aug/video_eval.py:73
↓ 1 callersFunctionget_most_similar
Use the Levenshtein distance (or edit distance) to determine which of the choices is most similar to the given prediction
llava/eval/mathvista_utils/calculate_score.py:13
↓ 1 callersFunctionget_new_tensor_fn_for_dtype
(dtype: torch.dtype)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:261
↓ 1 callersFunctionget_options
(row, options)
llava/eval/model_vqa_mmbench.py:53
↓ 1 callersFunctionget_parameter_device
(parameter: Union[nn.Module, GenerationMixin, "ModuleUtilsMixin"])
llava/train/transformers_replace/modeling_utils.py:202
↓ 1 callersFunctionget_path
(root_path)
llava/eval/video_mme/video_eval.py:134
↓ 1 callersFunctionget_peft_state_maybe_zero_3
(named_params, bias)
llava/train/train.py:79
↓ 1 callersFunctionget_peft_state_non_lora_maybe_zero_3
(named_params, require_grad_only=True)
llava/train/train.py:104
↓ 1 callersFunctionget_peft_state_non_lora_maybe_zero_3
(named_params, require_grad_only=True)
llava/train/llava_trainer.py:53
↓ 1 callersMethodget_processed_prompt
(self, dataset: list)
llava/data/dataset.py:1572
↓ 1 callersFunctionget_rank
()
llava/train/slurm_utils.py:32
↓ 1 callersFunctionget_robust_pca
(features: torch.Tensor, m: float = 2, remove_first_component=False)
llava/model/multimodal_encoder/visualize_features.py:192
↓ 1 callersFunctionget_seq_frames
Calculate the indices of frames to extract from a video. Parameters: total_num_frames (int): Total number of frames in the video. de
llava/eval/video_mme/w_sub_eval.py:10
↓ 1 callersFunctionget_sequence_parallel_rank
Get the rank of this process in the sequence parallel group the caller rank belongs to.
llava/train/llama_dpsp_attn_monkey_patch.py:207
↓ 1 callersFunctionget_sequence_parallel_size
Get the size of the sequence parallel group the caller rank belongs to.
llava/train/llama_dpsp_attn_monkey_patch.py:202
↓ 1 callersMethodget_sft_loss
(self, logits, labels)
llava/trl/trainer/dpo_trainer.py:957
↓ 1 callersMethodget_shard
(self, url)
llava/wids/wids.py:395
↓ 1 callersMethodget_shard
Get the shard and index within the shard corresponding to the given index.
llava/wids/wids.py:572
↓ 1 callersFunctionget_siglip_config
(model_name)
llava/model/multimodal_encoder/siglip/convert_siglip_to_hf.py:67
↓ 1 callersMethodget_spm_processor
(self)
llava/model/multimodal_encoder/siglip/tokenization_siglip.py:148
↓ 1 callersMethodget_spm_processor
(self, from_slow=False)
llava/train/transformers_replace/models/llama/tokenization_llama.py:204
↓ 1 callersMethodget_stats
Return the number of cache accesses and misses.
llava/wids/wids.py:560
↓ 1 callersMethodget_train_dataloader
Returns the training [`~torch.utils.data.DataLoader`]. Subclass of transformers.src.transformers.trainer.get_train_dataloader to pre
llava/trl/trainer/dpo_trainer.py:451
↓ 1 callersMethodget_trainable_layers
Returns the trainable parameters of the pipeline
llava/trl/models/modeling_sd_base.py:136
↓ 1 callersFunctionget_wups
calculate the wups score :param pred: :param truth: :return:
llava/eval/video/eval_video_nextqa.py:90
↓ 1 callersFunctiongpt4_caption_video
(_vpath, num_frames)
llava/3rd_party/gpt4v_nvhost_video.py:112
↓ 1 callersFunctiongpt_api_no_stream
(question, pred, video_path, eval_type="correctness")
llava/eval/video/eval_GPT4o.py:72
↓ 1 callersFunctiongroup_by_key
Group the file names by key. Args: names: A list of file names. Returns: A list of lists of indices, where each sublist cont
llava/wids/wids.py:107
↓ 1 callersFunctionhandler
(signum, frame)
llava/data_aug/video_eval.py:43
↓ 1 callersFunctionhas_hierarchical_all_gather_groups
(comm_groups: MiCS_CommGroups)
llava/train/deepspeed_replace/runtime/zero/mics.py:25
↓ 1 callersFunctionhas_hierarchical_all_gather_groups
(comm_groups: MiCS_CommGroups)
llava/train/deepspeed_replace_deprecated/runtime/zero/mics.py:26
↓ 1 callersFunctionhash_path
(fpath)
llava/eval/video_mme/mme_calc.py:117
↓ 1 callersFunctionimage_parser
(args)
llava/eval/run_vila.py:26
↓ 1 callersFunctioninfer_stop_tokens
(tokenizer: transformers.PreTrainedTokenizer)
llava/utils/tokenizer.py:155
↓ 1 callersFunctioninference
(args)
llava/eval/vision_niah_vila/eval_vision_niah.py:198
↓ 1 callersFunctioninit_empty_weights
Meta initialization context manager. A context manager under which models are initialized with all parameters on the meta device, therefore c
llava/model/language_model/mpt/meta_init_context.py:24
↓ 1 callersFunctioninit_on_device
Device initialization context manager. A context manager under which models are initialized with all parameters on the specified device.
llava/model/language_model/mpt/meta_init_context.py:56
↓ 1 callersMethodinit_vlm
(self, config: PreTrainedModel = None, *args, **kwargs)
llava/model/llava_arch.py:50
↓ 1 callersMethodinit_weights
If needed prunes and maybe initializes weights. If using a custom `PreTrainedModel`, you need to implement any initialization logic i
llava/train/transformers_replace/modeling_utils.py:1981
↓ 1 callersFunctioninitialize_sequence_parallel
(sequence_parallel_size)
llava/train/llama_dpsp_attn_monkey_patch.py:161
↓ 1 callersMethodinitialize_vision_tokenizer
(self, model_args, tokenizer)
llava/model/llava_arch.py:820
↓ 1 callersFunctioninsert_separator
(X, sep)
llava/mm_utils.py:338
↓ 1 callersFunctioninsert_separator
(X, sep)
llava/eval/mmmu_utils/model_utils.py:17
↓ 1 callersFunctioninstructions_formatting_function
r""" return a callable function that takes in an "instructions" dataset and returns a formatted dataset, based on the tokenizer apply chat tem
llava/trl/extras/dataset_formatting.py:49
↓ 1 callersFunctioninterpret_transformations
Interpret the transformations argument. This takes care of transformations specified as string shortcuts and returns a list of callables.
llava/wids/wids.py:410
↓ 1 callersFunctionintersect_range
Return the intersection of the two half-open integer intervals.
llava/wids/wids.py:639
↓ 1 callersFunctionis_accelerate_greater_20_0
()
llava/trl/import_utils.py:31
↓ 1 callersFunctionis_main
()
llava/utils/distributed.py:37
↓ 1 callersFunctionis_rank0
()
llava/model/multimodal_encoder/radio_encoder.py:39
↓ 1 callersFunctionis_rank0
()
llava/model/multimodal_encoder/radio_torchhub_encoder.py:39
↓ 1 callersFunctionis_torch_greater_2_0
()
llava/trl/import_utils.py:48
↓ 1 callersFunctionis_transformers_greater_than
(version: str)
llava/trl/import_utils.py:43
↓ 1 callersFunctionis_unsloth_available
()
llava/trl/import_utils.py:27
↓ 1 callersFunctionkeep_most_recent_files
Keep the most recent files in a directory, deleting the rest. The maxsize is the maximum size of the directory in bytes. The maxfiles is the
llava/wids/wids_cleanup.py:20
↓ 1 callersFunctionlecun_normal_
(tensor)
llava/model/multimodal_encoder/siglip/modeling_siglip.py:140
↓ 1 callersFunctionlengths_to_ranges
Convert a list of lengths to a list of ranges.
llava/wids/wids.py:629
↓ 1 callersFunctionload
(fpath: str, **kwargs)
llava/utils/io.py:143
↓ 1 callersFunctionload
(module: nn.Module, state_dict, prefix="")
llava/train/transformers_replace/modeling_utils.py:573
↓ 1 callersFunctionload_balancing_loss_func
r""" Computes auxiliary load balancing loss as in Switch Transformer - implemented in Pytorch. See Switch Transformer (https://arxiv.org/abs/
llava/model/language_model/modeling_mixtral_long_context.py:75
↓ 1 callersFunctionload_balancing_loss_func
r""" Computes auxiliary load balancing loss as in Switch Transformer - implemented in Pytorch. See Switch Transformer (https://arxiv.org/abs/
llava/train/transformers_replace/models/mixtral/modeling_mixtral.py:141
↓ 1 callersMethodload_checkpoint
Light wrapper around accelerate's register_lad_state_pre_hook which is run before loading state
llava/trl/models/modeling_sd_base.py:148
↓ 1 callersFunctionload_data
(data_path)
llava/train/train.py:311
↓ 1 callersFunctionload_dsdesc_and_resolve
(source, *, options=None, base=None)
llava/wids/wids_specs.py:171
↓ 1 callersFunctionload_from_hf
(repo_id, filename, subfolder=None)
llava/model/builder.py:92
↓ 1 callersFunctionload_haystack
(args, accelerator)
llava/eval/vision_niah_vila/eval_vision_niah.py:155
↓ 1 callersFunctionload_image
(image_file)
llava/eval/run_vila.py:31
↓ 1 callersFunctionload_image
(image_file)
llava/eval/model_vqa_qbench.py:19
↓ 1 callersFunctionload_image_from_base64
(image)
llava/mm_utils.py:244
↓ 1 callersFunctionload_images
(image_files)
llava/eval/run_vila.py:41
↓ 1 callersFunctionload_json
(path)
llava/train/train.py:305
↓ 1 callersFunctionload_jsonl
(save_path)
llava/train/train.py:299
← previousnext →601–700 of 1,946, ranked by callers