MCPcopy Create free account

hub / github.com/Alpha-VLLM/LLaMA2-Accessory / functions

Functions1,094 in github.com/Alpha-VLLM/LLaMA2-Accessory

↓ 1 callersFunction_save_model
()
accessory/util/misc.py:340
↓ 1 callersFunction_save_optimizer
()
accessory/util/misc.py:390
↓ 1 callersFunction_save_other
()
accessory/util/misc.py:409
↓ 1 callersFunction_save_rank_specific
()
accessory/util/misc.py:426
↓ 1 callersMethod_set_default_trainability
(self)
accessory/model/meta.py:220
↓ 1 callersFunction_setup_dist_env_from_slurm
(args)
Large-DiT-T2I/parallel.py:13
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/mixtral_peft.py:224
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens10.py:213
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens5.py:213
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/llama.py:252
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/llama_qformerv2_peft.py:220
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens5p2.py:213
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens.py:213
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/llama_qformerv2.py:207
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/mixtral.py:214
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/llama_peft.py:221
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens_light.py:214
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/llama_adapter.py:261
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens_peft.py:227
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/internlm.py:196
↓ 1 callersMethod_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens5_light.py:214
↓ 1 callersFunction_tensor_list_max_diff
(tensors: List[torch.Tensor])
accessory/util/tensor_parallel.py:61
↓ 1 callersMethod_warmed_up
(self)
Large-DiT-ImageNet/diffusion/timestep_sampler.py:149
↓ 1 callersMethod_warmed_up
(self)
Large-DiT-T2I/diffusion/timestep_sampler.py:149
↓ 1 callersMethodadd_speaker_and_signal
Given source instruction and response pieces, return the text containing the complete conversation, and the list of values that the m
accessory/data/conversation/dataset.py:38
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/mixtral_peft.py:184
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens10.py:171
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/falcon.py:191
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens5.py:171
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama.py:210
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_qformerv2_peft.py:174
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/mixtral_sparse_ens5.py:199
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens5p2.py:171
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/mixtral_sparse.py:193
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens.py:171
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_qformerv2.py:165
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/mixtral.py:175
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_peft.py:175
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens_light.py:172
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_adapter.py:215
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens_peft.py:181
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/mixtral_sparse_ens.py:197
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/internlm.py:156
↓ 1 callersMethodallocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens5_light.py:172
↓ 1 callersFunctionapply_rotary_emb
( xq: torch.Tensor, xk: torch.Tensor, freqs_cis: torch.Tensor, )
accessory/model/LLM/falcon.py:47
↓ 1 callersFunctionapply_rotary_emb
( xq: torch.Tensor, xk: torch.Tensor, freqs_cis: torch.Tensor, )
accessory/model/LLM/internlm.py:30
↓ 1 callersMethodapply_rotary_emb
Apply rotary embeddings to input tensors using the given frequency tensor. This function applies rotary embeddings to the gi
Large-DiT-ImageNet/models.py:219
↓ 1 callersMethodapply_rotary_emb
Apply rotary embeddings to input tensors using the given frequency tensor. This function applies rotary embeddings to the gi
Large-DiT-T2I/models/model.py:236
↓ 1 callersFunctionautolink
()
docs/conf.py:228
↓ 1 callersFunctionbatch_data
(prompts, batch_size=1)
light-eval/src/eval_math.py:107
↓ 1 callersFunctionbatch_data
(prompts, batch_size=1)
light-eval/src/eval_bbh.py:116
↓ 1 callersFunctionbatch_data
(prompts, batch_size=1)
light-eval/src/eval_mmlu.py:116
↓ 1 callersFunctionbatch_data
(prompts, batch_size=1)
light-eval/src/eval_gsm8k.py:126
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:125
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
Large-DiT-T2I/diffusion/gaussian_diffusion.py:125
↓ 1 callersFunctionbox_iou
(boxes1, boxes2)
accessory/eval_mm/evaluate.py:51
↓ 1 callersFunctionbox_xyxy_expand2square
(box, *, w, h)
accessory/eval_mm/evaluate.py:67
↓ 1 callersFunctioncal_ceval
(res)
light-eval/src/eval_ceval.py:177
↓ 1 callersFunctioncal_cmmlu
(res)
light-eval/src/eval_cmmlu.py:185
↓ 1 callersFunctioncalculate_hidden_dim
()
accessory/tools/convert_weights_to_hf.py:287
↓ 1 callersFunctioncalculate_l2_grad_norm
( model: nn.Module, model_parallel_dim_dict: Dict[str, int], )
Large-DiT-ImageNet/grad_norm.py:32
↓ 1 callersFunctioncalculate_l2_grad_norm
( model: nn.Module, model_parallel_dim_dict: Dict[str, int], )
Large-DiT-T2I/grad_norm.py:32
↓ 1 callersFunctioncalculate_weight_delta
(original_model, fine_tuned_model, num, max_num)
accessory/tools/weight_operate.py:17
↓ 1 callersMethodcall_model_stream_func
(self, request_name:str, *args, **kwargs)
accessory/model/multi_gpu_wrapper.py:272
↓ 1 callersFunctioncenter_crop
(pil_image, crop_size)
Large-DiT-T2I/imgproc.py:27
↓ 1 callersFunctioncleanup
End DDP training.
Large-DiT-ImageNet/train.py:90
↓ 1 callersFunctioncleanup
End DDP training.
Large-DiT-T2I/train.py:134
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/mixtral_peft.py:400
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/llama_ens10.py:352
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/llama_ens5.py:352
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/llama.py:340
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/mixtral_sparse_ens5.py:641
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/llama_ens5p2.py:352
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/mixtral_sparse.py:573
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/llama_ens.py:352
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/mixtral.py:379
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/llama_peft.py:315
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/llama_adapter.py:405
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/llama_ens_peft.py:372
↓ 1 callersMethodclip_encode_image
(self, x)
accessory/model/LLM/mixtral_sparse_ens.py:628
↓ 1 callersFunctionclip_grad_norm
Clips the gradient norm of all parameters. The norm is computed over all parameters' gradients as viewed as a single vector, and the grad
accessory/util/clip_grad.py:59
↓ 1 callersFunctioncombine_results
()
light-eval/src/eval_utils/humaneval_evaluation.py:95
↓ 1 callersFunctioncompare_both_string_and_number_format
(answer, groundtruth_str, groundtruth_num)
accessory/eval_mm/utils/math_utils.py:539
↓ 1 callersFunctioncompare_two_numbers
(p, gt)
accessory/eval_mm/utils/math_utils.py:505
↓ 1 callersMethodcompute_logits
Compute logits for a given list of text examples or token lists, optionally incorporating images. :param examples: A batched list of
accessory/model/meta.py:258
↓ 1 callersFunctioncompute_mme_metric
(gts, preds)
accessory/eval_mm/utils/metric.py:269
↓ 1 callersMethodcondition_mean
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:346
↓ 1 callersMethodcondition_mean
Compute the mean for the previous step, given a function cond_fn that computes the gradient of a conditional log probability with res
Large-DiT-T2I/diffusion/gaussian_diffusion.py:346
↓ 1 callersFunctionconvert_merged_ckpt_to_hf
( merged_state_dict: Dict[str, torch.Tensor], params: Dict[str, Any], )
accessory/tools/convert_weights_to_hf.py:182
↓ 1 callersFunctioncreate_demo
()
accessory/demos/single_turn_mm.py:116
↓ 1 callersFunctioncreate_demo
()
accessory/demos/single_turn.py:111
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:514
↓ 1 callersMethodddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
Large-DiT-T2I/diffusion/gaussian_diffusion.py:514
↓ 1 callersMethodddim_sample_loop_progressive
Use DDIM to sample from the model and yield intermediate samples from each timestep of DDIM. Same usage as p_sample_loop_prog
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:634
↓ 1 callersMethodddim_sample_loop_progressive
Use DDIM to sample from the model and yield intermediate samples from each timestep of DDIM. Same usage as p_sample_loop_prog
Large-DiT-T2I/diffusion/gaussian_diffusion.py:634
↓ 1 callersFunctiondefault_no_wd_criterion
(name: str)
accessory/util/param_group.py:300
↓ 1 callersMethoddestroy_kv_cache
(self)
accessory/model/LLM/mixtral_peft.py:191
↓ 1 callersMethoddestroy_kv_cache
(self)
accessory/model/LLM/llama_ens10.py:178
↓ 1 callersMethoddestroy_kv_cache
(self)
accessory/model/LLM/falcon.py:198
↓ 1 callersMethoddestroy_kv_cache
(self)
accessory/model/LLM/llama_ens5.py:178
← previousnext →301–400 of 1,094, ranked by callers