MCPcopy Create free account

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

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

Method_preload_cache
(self)
accessory/data/falcon_packed.py:114
Method_preprocess_caption
(meta_l: List[Dict])
accessory/data/alpaca.py:232
Method_preprocess_single_turn_llava
(meta_l: List[Dict])
accessory/data/alpaca.py:221
Function_print
(*args, **kwargs)
accessory/model/multi_gpu_wrapper.py:28
Method_recursive_count_params
(module)
Large-DiT-ImageNet/models.py:631
Method_recursive_count_params
(module)
Large-DiT-T2I/models/model.py:721
Method_scale_timesteps
(self, t)
Large-DiT-ImageNet/diffusion/respace.py:112
Method_scale_timesteps
(self, t)
Large-DiT-T2I/diffusion/respace.py:112
Function_sparse_expert_merge
(weights_to_merge: List[torch.Tensor], num_experts: int)
accessory/model/LLM/mixtral_sparse_ens5.py:216
Function_sparse_expert_merge
(weights_to_merge: List[torch.Tensor], num_experts: int)
accessory/model/LLM/mixtral_sparse.py:210
Function_sparse_expert_merge
(weights_to_merge: List[torch.Tensor], num_experts: int)
accessory/model/LLM/mixtral_sparse_ens.py:214
Function_sparse_expert_split
(weight_to_split: torch.Tensor, split_to: int, num_experts)
accessory/model/LLM/mixtral_sparse_ens5.py:222
Function_sparse_expert_split
(weight_to_split: torch.Tensor, split_to: int, num_experts)
accessory/model/LLM/mixtral_sparse.py:216
Function_sparse_expert_split
(weight_to_split: torch.Tensor, split_to: int, num_experts)
accessory/model/LLM/mixtral_sparse_ens.py:220
Functionadd_weight_decay
(model, weight_decay=1e-5, skip_list=())
accessory/util/misc.py:544
Functionadjust_learning_rate
Decay the learning rate with half-cycle cosine after warmup
accessory/util/lr_sched.py:3
Functionadjust_learning_rate_epoch
Decay the learning rate with half-cycle cosine after warmup
accessory/util/lr_sched.py:23
Functionall_reduce_mean
(x, group=None)
accessory/util/misc.py:530
Functionanswer_clean
(dataset: str, direct_answer_trigger_for_fewshot: tuple, pred: str)
accessory/eval_mm/utils/math_utils.py:332
Methodavg
(self)
accessory/util/misc.py:186
Functionbroadcast_nonmp_parameters
(model)
accessory/util/misc.py:560
Functioncached_file_from_hf
(hf_path: str)
accessory/util/misc.py:619
Methodcalc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: the
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:806
Methodcalc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: the
Large-DiT-T2I/diffusion/gaussian_diffusion.py:833
Functioncenter_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
Large-DiT-ImageNet/train.py:116
Functioncenter_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
Large-DiT-T2I/imgproc.py:6
Functionclean_numbers
(sample)
light-eval/src/eval_utils/math_util.py:53
Functionclear
()
accessory/demos/multi_turn_mm.py:177
Functionclear
()
accessory/demos/multi_turn_mm_box.py:344
Methodclip_encode_image
(self, x)
accessory/model/LLM/llama_ens_light.py:331
Methodclip_encode_image
(self, x)
accessory/model/LLM/llama_ens5_light.py:331
Functioncollate_fn
(batches)
accessory/eval_mm/inference_image_sphinx.py:33
Methodcompute_logits
Wraps `accessory.model.MetaModel.compute_logits` :param args: Positional arguments for 'MetaModel.compute_logits'. :param kw
accessory/model/multi_gpu_wrapper.py:211
Methodcondition_mean
(self, cond_fn, *args, **kwargs)
Large-DiT-ImageNet/diffusion/respace.py:99
Methodcondition_mean
(self, cond_fn, *args, **kwargs)
Large-DiT-T2I/diffusion/respace.py:99
Methodcondition_score
(self, cond_fn, *args, **kwargs)
Large-DiT-ImageNet/diffusion/respace.py:102
Methodcondition_score
(self, cond_fn, *args, **kwargs)
Large-DiT-T2I/diffusion/respace.py:102
Functioncontinuous_gaussian_log_likelihood
Compute the log-likelihood of a continuous Gaussian distribution. :param x: the targets :param means: the Gaussian mean Tensor. :para
Large-DiT-ImageNet/diffusion/diffusion_utils.py:47
Functioncontinuous_gaussian_log_likelihood
Compute the log-likelihood of a continuous Gaussian distribution. :param x: the targets :param means: the Gaussian mean Tensor. :para
Large-DiT-T2I/diffusion/diffusion_utils.py:47
Functionconv_bair_v1
()
accessory/data/conversation/lib.py:138
Functionconv_llava_v1
()
accessory/data/conversation/lib.py:175
Functionconv_v1
()
accessory/data/conversation/lib.py:100
Functionconv_v1_2
()
accessory/data/conversation/lib.py:112
Functionconv_vicuna_v1_1
()
accessory/data/conversation/lib.py:124
Functioncreate_named_schedule_sampler
Create a ScheduleSampler from a library of pre-defined samplers. :param name: the name of the sampler. :param diffusion: the diffusion ob
Large-DiT-ImageNet/diffusion/timestep_sampler.py:13
Functioncreate_named_schedule_sampler
Create a ScheduleSampler from a library of pre-defined samplers. :param name: the name of the sampler. :param diffusion: the diffusion ob
Large-DiT-T2I/diffusion/timestep_sampler.py:13
Functiondataloader_collate_fn
(samples)
Large-DiT-T2I/train.py:90
Methodddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:563
Methodddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
Large-DiT-T2I/diffusion/gaussian_diffusion.py:563
Methodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:601
Methodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
Large-DiT-T2I/diffusion/gaussian_diffusion.py:601
Methodevaluate_examples
Evaluate text examples with optional contexts and images, returning various evaluation metrics. :param examples: A batched list of
accessory/model/meta.py:299
Methodevaluate_examples
Wraps `accessory.model.MetaModel.evaluate_examples` :param args: Positional arguments for 'MetaModel.evaluate_examples'. :pa
accessory/model/multi_gpu_wrapper.py:221
Methodexecute_code
(self, return_val)
accessory/eval_mm/utils/math_utils.py:30
Methodexecute_code_with_string
(code, index, return_val)
accessory/eval_mm/utils/math_utils.py:42
Functionexecute_with_timeout
(code: str, timeout: int=5, use_process: bool = True)
accessory/eval_mm/utils/math_utils.py:454
Functionexport
(func)
Large-DiT-ImageNet/models.py:652
Functionextract_answer
(completion)
accessory/eval_mm/utils/math_utils.py:104
Functionextract_nums
(s)
accessory/eval_mm/utils/math_utils.py:86
Functionfind_formula
(step)
accessory/eval_mm/utils/math_utils.py:98
Methodforward
(self, t)
Large-DiT-ImageNet/models.py:81
Methodforward
(self, labels, train, force_drop_ids=None)
Large-DiT-ImageNet/models.py:121
Methodforward
Forward pass of the attention module. Args: x (torch.Tensor): Input tensor. freqs_cis (torch.Tensor): Precom
Large-DiT-ImageNet/models.py:252
Methodforward
(self, x)
Large-DiT-ImageNet/models.py:351
Methodforward
Perform a forward pass through the TransformerBlock. Args: x (torch.Tensor): Input tensor. freqs_cis (torch.
Large-DiT-ImageNet/models.py:409
Methodforward
(self, x, c)
Large-DiT-ImageNet/models.py:470
Methodforward
(self, t)
Large-DiT-T2I/models/model.py:81
Methodforward
(self, labels, train, force_drop_ids=None)
Large-DiT-T2I/models/model.py:121
Methodforward
Forward pass of the attention module. Args: x (torch.Tensor): Input tensor. freqs_cis (torch.Tensor): Precom
Large-DiT-T2I/models/model.py:269
Methodforward
(self, x)
Large-DiT-T2I/models/model.py:385
Methodforward
Perform a forward pass through the TransformerBlock. Args: x (torch.Tensor): Input tensor. freqs_cis (torch.
Large-DiT-T2I/models/model.py:443
Methodforward
(self, x, c)
Large-DiT-T2I/models/model.py:507
Methodforward
(self, examples, labels, images=None)
accessory/model/meta.py:226
Methodforward
(self, input_: torch.Tensor)
accessory/model/peft.py:45
Methodforward
(self, input_: torch.Tensor)
accessory/model/peft.py:141
Methodforward
(self, input_: torch.Tensor)
accessory/model/peft.py:251
Methodforward
Forward pass through the RMSNorm layer. Args: x (torch.Tensor): The input tensor. Returns:
accessory/model/components.py:41
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/mixtral_peft.py:110
Methodforward
(self, x)
accessory/model/LLM/mixtral_peft.py:227
Methodforward
(self, x)
accessory/model/LLM/mixtral_peft.py:277
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/mixtral_peft.py:333
Methodforward
(self, examples, image=None)
accessory/model/LLM/mixtral_peft.py:433
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/llama_ens10.py:97
Methodforward
(self, x)
accessory/model/LLM/llama_ens10.py:216
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/llama_ens10.py:243
Methodforward
(self, examples, image=None)
accessory/model/LLM/llama_ens10.py:464
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/falcon.py:126
Methodforward
(self, x: torch.Tensor)
accessory/model/LLM/falcon.py:215
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/falcon.py:240
Methodforward
(self, examples, image=None)
accessory/model/LLM/falcon.py:316
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/llama_ens5.py:97
Methodforward
(self, x)
accessory/model/LLM/llama_ens5.py:216
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/llama_ens5.py:243
Methodforward
(self, examples, image=None)
accessory/model/LLM/llama_ens5.py:461
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/llama.py:136
Methodforward
(self, x)
accessory/model/LLM/llama.py:255
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tensor, mask: Union[torch.Tensor, st
accessory/model/LLM/llama.py:282
Methodforward
(self, examples, image=None)
accessory/model/LLM/llama.py:373
Methodforward
Supported mask spec: 1. Float tensor: The tensor is added to the attention score matrix. 2. Boolean tensor: Substitute the `
accessory/model/LLM/llama_qformerv2_peft.py:100
Methodforward
(self, x)
accessory/model/LLM/llama_qformerv2_peft.py:223
← previousnext →801–900 of 1,094, ranked by callers