MCPcopy Create free account

hub / github.com/Fr0zenCrane/Cockatiel / functions

Functions1,946 in github.com/Fr0zenCrane/Cockatiel

↓ 1 callersMethod_flash_attention_forward
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token first unpad the input, th
llava/model/language_model/modeling_mixtral_long_context.py:590
↓ 1 callersMethod_flash_attention_forward
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token first unpad the input, th
llava/train/transformers_replace/models/mixtral/modeling_mixtral.py:610
↓ 1 callersMethod_flash_attention_forward
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token first unpad the input, th
llava/train/transformers_replace/models/llama/modeling_llama.py:509
↓ 1 callersMethod_flash_attention_forward
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token first unpad the input, th
llava/train/transformers_replace/models/mistral/modeling_mistral.py:485
↓ 1 callersMethod_flash_attention_forward
Calls the forward method of Flash Attention - if the input hidden states contain at least one padding token first unpad the input, th
llava/train/transformers_replace/models/gemma/modeling_gemma.py:395
↓ 1 callersMethod_flash_attn
(self, x, key_padding_mask=None, need_weights=False)
llava/model/multimodal_encoder/intern/modeling_intern_vit.py:350
↓ 1 callersMethod_flat_all_gather_with_coalescing_manager
(self, params, params_buffers=None)
llava/train/deepspeed_replace/runtime/zero/mics.py:206
↓ 1 callersMethod_flat_all_gather_with_coalescing_manager
(self, params, params_buffers=None)
llava/train/deepspeed_replace_deprecated/runtime/zero/mics.py:229
↓ 1 callersMethod_generate_batched
Generate responses for a list of query tensors. args: query_tensors (list[torch.Tensor]): A list of query tensors to gen
llava/trl/environment/base_environment.py:414
↓ 1 callersMethod_generate_samples
Generate samples from the model Args: iterations (int): Number of iterations to generate samples for batch_s
llava/trl/trainer/ddpo_trainer.py:445
↓ 1 callersFunction_get_data_parallel_rank
Return my rank for the data parallel group.
llava/train/deepspeed_replace_deprecated/utils/groups.py:470
↓ 1 callersFunction_get_data_parallel_world_size
Return world size for the data parallel group.
llava/train/deepspeed_replace_deprecated/utils/groups.py:454
↓ 1 callersFunction_get_expert_parallel_ranks
Generate expert parallel and expert data parallel group ranks list. Example - E + M + D parallel world_size = 16 model_degree
llava/train/deepspeed_replace_deprecated/utils/groups.py:187
↓ 1 callersFunction_get_expert_parallel_world_size
Return world size for the expert parallel group.
llava/train/deepspeed_replace_deprecated/utils/groups.py:426
↓ 1 callersMethod_get_local_indices
(total_size, world_size, rank)
distributed_cockatiel_vidcap.py:159
↓ 1 callersMethod_get_local_indices
(total_size, world_size, rank)
distributed_cockatiel_scoring.py:92
↓ 1 callersFunction_get_max_expert_size
Get the maximum ep_size from all the created groups.
llava/train/deepspeed_replace_deprecated/utils/groups.py:320
↓ 1 callersFunction_get_max_expert_size_name
Get the name of the group with max. ep_size
llava/train/deepspeed_replace_deprecated/utils/groups.py:331
↓ 1 callersMethod_get_no_split_modules
Get the modules of the model that should not be spit when using device_map. We iterate through the modules to get the underlying `_no
llava/train/transformers_replace/modeling_utils.py:1670
↓ 1 callersMethod_get_preprocess_shape
Compute the output size given input size and target long side length.
llava/model/multimodal_encoder/image_processor.py:219
↓ 1 callersMethod_get_resized_embeddings
Build a resized Embedding Module from a provided token Embedding Module. Increasing the size will add newly initialized vectors at th
llava/train/transformers_replace/modeling_utils.py:1770
↓ 1 callersMethod_get_resized_lm_head
Build a resized Linear Module from a provided old Linear Module. Increasing the size will add newly initialized vectors at the end. R
llava/train/transformers_replace/modeling_utils.py:1873
↓ 1 callersFunction_get_sequence_data_parallel_group
()
llava/train/deepspeed_replace_deprecated/utils/groups.py:514
↓ 1 callersFunction_get_unpad_data
(attention_mask)
llava/model/language_model/modeling_mixtral_long_context.py:152
↓ 1 callersFunction_get_unpad_data
(attention_mask, seqlens_in_batch)
llava/train/transformers_replace/models/mixtral/modeling_mixtral.py:187
↓ 1 callersFunction_get_unpad_data
(attention_mask, seqlens_in_batch)
llava/train/transformers_replace/models/mistral/modeling_mistral.py:49
↓ 1 callersFunction_get_unpad_data
(attention_mask, seqlens_in_batch)
llava/train/transformers_replace/models/gemma/modeling_gemma.py:62
↓ 1 callersFunction_get_variance
(self, timestep, prev_timestep)
llava/trl/models/modeling_sd_base.py:171
↓ 1 callersMethod_has_lm_head
(self)
llava/trl/models/modeling_value_head.py:299
↓ 1 callersMethod_hierarchical_all_gather_params
(self, params, params_buffers=None)
llava/train/deepspeed_replace/runtime/zero/mics.py:255
↓ 1 callersMethod_hierarchical_all_gather_params
(self, params, params_buffers=None)
llava/train/deepspeed_replace_deprecated/runtime/zero/mics.py:337
↓ 1 callersFunction_init_external_params
(module)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:127
↓ 1 callersMethod_init_rope
(self)
llava/model/language_model/modeling_mixtral_long_context.py:328
↓ 1 callersMethod_init_weights
r""" Initializes the weights of the value head. The default initialization strategy is random. Users can pass a different initializati
llava/trl/models/modeling_value_head.py:117
↓ 1 callersMethod_init_weights
r""" We initialize the weights of the value head.
llava/trl/models/modeling_value_head.py:381
↓ 1 callersMethod_kl_penalty
(self, logprob: torch.FloatTensor, ref_logprob: torch.FloatTensor)
llava/trl/trainer/ppo_trainer.py:1115
↓ 1 callersMethod_load_pretrained_model
( cls, model, state_dict, loaded_keys, resolved_archive_file,
llava/train/transformers_replace/modeling_utils.py:3798
↓ 1 callersMethod_maybe_log_save_evaluate
(self)
llava/trl/trainer/iterative_sft_trainer.py:345
↓ 1 callersMethod_maybe_resize_pos_embeds
( self, model: PreTrainedModel, image_processor: BaseImageProcessor, resolutio
llava/model/multimodal_encoder/vision_encoder.py:52
↓ 1 callersFunction_move_model_to_meta
Moves `loaded_state_dict_keys` in model to meta device which frees up the memory taken by those params. `start_prefix` is used for models wh
llava/train/transformers_replace/modeling_utils.py:631
↓ 1 callersMethod_naive_attn
(self, x)
llava/model/multimodal_encoder/intern/modeling_intern_vit.py:331
↓ 1 callersMethod_norm
(self, x)
llava/train/transformers_replace/models/gemma/modeling_gemma.py:85
↓ 1 callersFunction_normal_init_
(std, mean=0.0)
llava/model/language_model/mpt/param_init_fns.py:160
↓ 1 callersMethod_padding_size_sec
(self, param)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:1490
↓ 1 callersMethod_partition
(self, param_list, force=False, has_been_updated=False)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:1557
↓ 1 callersMethod_partition_gradient
(self, param, partition_buffer=None, accumulate=False)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:2073
↓ 1 callersMethod_partition_gradients
(self, param_list, partition_buffers=None, accumulate=False)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:2066
↓ 1 callersMethod_partition_numel
(self, param)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:1494
↓ 1 callersMethod_partition_param
(self, param, buffer=None, has_been_updated=False)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:1571
↓ 1 callersMethod_partition_param_sec
(self, param, buffer=None, has_been_updated=False)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:1693
↓ 1 callersMethod_prepare_deepspeed
(self, model: PreTrainedModelWrapper)
llava/trl/trainer/dpo_trainer.py:420
↓ 1 callersMethod_prepare_deepspeed
(self, model: PreTrainedModelWrapper)
llava/trl/trainer/ppo_trainer.py:1426
↓ 1 callersMethod_prepare_non_packed_dataloader
( self, tokenizer, dataset, dataset_text_field, max_seq_length,
llava/trl/trainer/sft_trainer.py:396
↓ 1 callersMethod_prepare_packed_dataloader
( self, tokenizer, dataset, dataset_text_field, max_seq_length,
llava/trl/trainer/sft_trainer.py:451
↓ 1 callersMethod_preprocess
( self, image: ImageInput, do_resize: bool, do_rescale: bool, do_norma
llava/model/multimodal_encoder/image_processor.py:286
↓ 1 callersMethod_preprocess_image
( self, image: ImageInput, do_resize: Optional[bool] = None, size: Dict[str, i
llava/model/multimodal_encoder/image_processor.py:323
↓ 1 callersMethod_reduce_scatter_gradient
(self, param)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:2034
↓ 1 callersMethod_reduce_scatter_gradients
(self, param_list)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:2007
↓ 1 callersMethod_remove_tensor_creation_wrappers
(self)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:619
↓ 1 callersMethod_remove_unused_columns
(self, dataset: "Dataset")
llava/trl/trainer/ppo_trainer.py:410
↓ 1 callersMethod_resize_token_embeddings
(self, new_num_tokens, pad_to_multiple_of=None)
llava/train/transformers_replace/modeling_utils.py:1737
↓ 1 callersMethod_rope_scaling_validation
Validate the `rope_scaling` configuration.
llava/train/transformers_replace/models/llama/configuring_llama.py:169
↓ 1 callersMethod_set_dtype
(self, ds_config, dtype)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:374
↓ 1 callersMethod_set_signature_columns_if_needed
(self)
llava/trl/trainer/ppo_trainer.py:401
↓ 1 callersMethod_setup_optimizer
(self, trainable_layers_parameters)
llava/trl/trainer/ddpo_trainer.py:421
↓ 1 callersMethod_step_safety_checker
Check if the input data is valid for training. Args: input_ids (List[`torch.LongTensor`]): List of tenso
llava/trl/trainer/iterative_sft_trainer.py:176
↓ 1 callersMethod_step_safety_checker
Check if the input data is valid for training. Args: batch_size (int): Batch size from the config file.
llava/trl/trainer/ppo_trainer.py:566
↓ 1 callersMethod_tie_encoder_decoder_weights
(encoder: nn.Module, decoder: nn.Module, base_model_prefix: str)
llava/train/transformers_replace/modeling_utils.py:1576
↓ 1 callersMethod_tie_or_clone_weights
Tie or clone module weights depending of whether we are using TorchScript or not
llava/train/transformers_replace/modeling_utils.py:1650
↓ 1 callersMethod_train_batched_samples
Train on a batch of samples. Main training segment Args: inner_epoch (int): The current inner epoch epoch (i
llava/trl/trainer/ddpo_trainer.py:507
↓ 1 callersMethod_trl_activate_neftune
r""" Activates the neftune as presented in this code: https://github.com/neelsjain/NEFTune and paper: https://arxiv.org/abs/2310.05914
llava/trl/trainer/sft_trainer.py:498
↓ 1 callersFunction_trunc_normal_
(tensor, mean, std, a, b)
llava/model/multimodal_encoder/siglip/modeling_siglip.py:53
↓ 1 callersMethod_upad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length)
llava/model/language_model/modeling_mixtral_long_context.py:690
↓ 1 callersMethod_upad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length, seqlens_in_batch)
llava/train/transformers_replace/models/mixtral/modeling_mixtral.py:711
↓ 1 callersMethod_upad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length, seqlens_in_batch)
llava/train/transformers_replace/models/mistral/modeling_mistral.py:586
↓ 1 callersMethod_upad_input
(self, query_layer, key_layer, value_layer, attention_mask, query_length, seqlens_in_batch)
llava/train/transformers_replace/models/gemma/modeling_gemma.py:462
↓ 1 callersMethod_update_causal_mask
(self, attention_mask, input_tensor)
llava/train/transformers_replace/models/gemma/modeling_gemma.py:965
↓ 1 callersMethod_validate_remote_device
(self, remote_device, ds_config)
llava/train/deepspeed_replace_deprecated/runtime/zero/partition_parameters.py:1070
↓ 1 callersFunctionadapt_tokenizer_for_denoising
Adds sentinel tokens and padding token (if missing). Expands the tokenizer vocabulary to include sentinel tokens used in mixture-of-denoiser
llava/model/language_model/mpt/adapt_tokenizer.py:25
↓ 1 callersMethodadd_and_load_reward_modeling_adapter
r""" Add and load a reward modeling adapter. This method can only be used if the model is a `PeftModel` and if you have initialized th
llava/trl/models/modeling_base.py:438
↓ 1 callersFunctionall_to_all_4D
all-to-all for QKV Args: input (torch.tensor): a tensor sharded along dim scatter dim scatter_idx (int): default 1 g
llava/train/sequence_parallel/all_to_all.py:25
↓ 1 callersFunctionall_to_all_5D
all-to-all for QKV forward (bs, seqlen/N, 3, hc, hs) -> (bs, seqlen, 3, hc/N, hs) Args: input (torch.tensor): a tensor sharded a
llava/train/sequence_parallel/all_to_all.py:168
↓ 1 callersMethodallreduce_mics_shard_grads
llava/train/deepspeed_replace/runtime/zero/mics.py:510
↓ 1 callersMethodallreduce_mics_shard_grads
llava/train/deepspeed_replace_deprecated/runtime/zero/mics.py:649
↓ 1 callersFunctionapply_delta
(base_model_path, target_model_path, delta_path)
llava/model/apply_delta.py:32
↓ 1 callersFunctionapply_zigzag_ring_attn_monkey_patch_llama
()
llava/eval/vision_niah_vila/zigzag_ring_attn/monkey_patch.py:116
↓ 1 callersFunctionattn_bias_shape
(attn_impl, n_heads, seq_len, alibi, prefix_lm, causal, use_sequence_id)
llava/model/language_model/mpt/attention.py:429
↓ 1 callersFunctionbuild_alibi_bias
(n_heads, seq_len, full=False, alibi_bias_max=8, device=None, dtype=None)
llava/model/language_model/mpt/attention.py:470
↓ 1 callersFunctionbuild_attn_bias
(attn_impl, attn_bias, n_heads, seq_len, causal=False, alibi=False, alibi_bias_max=8)
llava/model/language_model/mpt/attention.py:444
↓ 1 callersFunctionbuild_transform
(input_size)
llava/model/multimodal_encoder/intern_encoder.py:28
↓ 1 callersFunctioncache_localname
(cachedir)
llava/wids/wids.py:343
↓ 1 callersMethodcalculate_loss
Calculate the loss for a batch of an unpacked sample Args: latents (torch.Tensor): The latents sampled f
llava/trl/trainer/ddpo_trainer.py:339
↓ 1 callersFunctioncalculate_loss_weight
(labels, ignore_index=-100)
llava/train/utils.py:151
↓ 1 callersMethodcall_for_batch
(self, output_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs)
llava/mm_utils.py:391
↓ 1 callersMethodcanonicalize_text
Returns canonicalized `text` (puncuation removed). Args: text (`str`): String to be canonicalized. ke
llava/model/multimodal_encoder/siglip/tokenization_siglip.py:284
↓ 1 callersFunctioncapitalizeFirstChar
(str)
llava/eval/webpage/script.js:41
↓ 1 callersMethodcheck_cache_misses
Check if the cache miss rate is too high.
llava/wids/wids.py:564
↓ 1 callersFunctioncheck_is_number
Check if the given string a number.
llava/eval/mmmu_utils/eval_utils.py:69
↓ 1 callersMethodclear
(self)
llava/wids/wids_lru.py:56
↓ 1 callersMethodclear
(self)
llava/wids/wids.py:392
← previousnext →401–500 of 1,946, ranked by callers