Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Alpha-VLLM/LLaMA2-Accessory
/ functions
Functions
1,094 in github.com/Alpha-VLLM/LLaMA2-Accessory
⨍
Functions
1,094
◇
Types & classes
182
↓ 1 callers
Function
_save_model
()
accessory/util/misc.py:340
↓ 1 callers
Function
_save_optimizer
()
accessory/util/misc.py:390
↓ 1 callers
Function
_save_other
()
accessory/util/misc.py:409
↓ 1 callers
Function
_save_rank_specific
()
accessory/util/misc.py:426
↓ 1 callers
Method
_set_default_trainability
(self)
accessory/model/meta.py:220
↓ 1 callers
Function
_setup_dist_env_from_slurm
(args)
Large-DiT-T2I/parallel.py:13
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/mixtral_peft.py:224
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens10.py:213
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens5.py:213
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/llama.py:252
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/llama_qformerv2_peft.py:220
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens5p2.py:213
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens.py:213
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/llama_qformerv2.py:207
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/mixtral.py:214
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/llama_peft.py:221
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens_light.py:214
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/llama_adapter.py:261
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens_peft.py:227
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/internlm.py:196
↓ 1 callers
Method
_silu_gating
(self, x, y)
accessory/model/LLM/llama_ens5_light.py:214
↓ 1 callers
Function
_tensor_list_max_diff
(tensors: List[torch.Tensor])
accessory/util/tensor_parallel.py:61
↓ 1 callers
Method
_warmed_up
(self)
Large-DiT-ImageNet/diffusion/timestep_sampler.py:149
↓ 1 callers
Method
_warmed_up
(self)
Large-DiT-T2I/diffusion/timestep_sampler.py:149
↓ 1 callers
Method
add_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 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/mixtral_peft.py:184
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens10.py:171
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/falcon.py:191
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens5.py:171
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama.py:210
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_qformerv2_peft.py:174
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/mixtral_sparse_ens5.py:199
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens5p2.py:171
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/mixtral_sparse.py:193
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens.py:171
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_qformerv2.py:165
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/mixtral.py:175
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_peft.py:175
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens_light.py:172
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_adapter.py:215
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens_peft.py:181
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/mixtral_sparse_ens.py:197
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/internlm.py:156
↓ 1 callers
Method
allocate_kv_cache
(self, max_batch_size: int, max_seq_len: int)
accessory/model/LLM/llama_ens5_light.py:172
↓ 1 callers
Function
apply_rotary_emb
( xq: torch.Tensor, xk: torch.Tensor, freqs_cis: torch.Tensor, )
accessory/model/LLM/falcon.py:47
↓ 1 callers
Function
apply_rotary_emb
( xq: torch.Tensor, xk: torch.Tensor, freqs_cis: torch.Tensor, )
accessory/model/LLM/internlm.py:30
↓ 1 callers
Method
apply_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 callers
Method
apply_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 callers
Function
autolink
()
docs/conf.py:228
↓ 1 callers
Function
batch_data
(prompts, batch_size=1)
light-eval/src/eval_math.py:107
↓ 1 callers
Function
batch_data
(prompts, batch_size=1)
light-eval/src/eval_bbh.py:116
↓ 1 callers
Function
batch_data
(prompts, batch_size=1)
light-eval/src/eval_mmlu.py:116
↓ 1 callers
Function
batch_data
(prompts, batch_size=1)
light-eval/src/eval_gsm8k.py:126
↓ 1 callers
Function
betas_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 callers
Function
betas_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 callers
Function
box_iou
(boxes1, boxes2)
accessory/eval_mm/evaluate.py:51
↓ 1 callers
Function
box_xyxy_expand2square
(box, *, w, h)
accessory/eval_mm/evaluate.py:67
↓ 1 callers
Function
cal_ceval
(res)
light-eval/src/eval_ceval.py:177
↓ 1 callers
Function
cal_cmmlu
(res)
light-eval/src/eval_cmmlu.py:185
↓ 1 callers
Function
calculate_hidden_dim
()
accessory/tools/convert_weights_to_hf.py:287
↓ 1 callers
Function
calculate_l2_grad_norm
( model: nn.Module, model_parallel_dim_dict: Dict[str, int], )
Large-DiT-ImageNet/grad_norm.py:32
↓ 1 callers
Function
calculate_l2_grad_norm
( model: nn.Module, model_parallel_dim_dict: Dict[str, int], )
Large-DiT-T2I/grad_norm.py:32
↓ 1 callers
Function
calculate_weight_delta
(original_model, fine_tuned_model, num, max_num)
accessory/tools/weight_operate.py:17
↓ 1 callers
Method
call_model_stream_func
(self, request_name:str, *args, **kwargs)
accessory/model/multi_gpu_wrapper.py:272
↓ 1 callers
Function
center_crop
(pil_image, crop_size)
Large-DiT-T2I/imgproc.py:27
↓ 1 callers
Function
cleanup
End DDP training.
Large-DiT-ImageNet/train.py:90
↓ 1 callers
Function
cleanup
End DDP training.
Large-DiT-T2I/train.py:134
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/mixtral_peft.py:400
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/llama_ens10.py:352
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/llama_ens5.py:352
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/llama.py:340
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/mixtral_sparse_ens5.py:641
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/llama_ens5p2.py:352
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/mixtral_sparse.py:573
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/llama_ens.py:352
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/mixtral.py:379
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/llama_peft.py:315
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/llama_adapter.py:405
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/llama_ens_peft.py:372
↓ 1 callers
Method
clip_encode_image
(self, x)
accessory/model/LLM/mixtral_sparse_ens.py:628
↓ 1 callers
Function
clip_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 callers
Function
combine_results
()
light-eval/src/eval_utils/humaneval_evaluation.py:95
↓ 1 callers
Function
compare_both_string_and_number_format
(answer, groundtruth_str, groundtruth_num)
accessory/eval_mm/utils/math_utils.py:539
↓ 1 callers
Function
compare_two_numbers
(p, gt)
accessory/eval_mm/utils/math_utils.py:505
↓ 1 callers
Method
compute_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 callers
Function
compute_mme_metric
(gts, preds)
accessory/eval_mm/utils/metric.py:269
↓ 1 callers
Method
condition_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 callers
Method
condition_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 callers
Function
convert_merged_ckpt_to_hf
( merged_state_dict: Dict[str, torch.Tensor], params: Dict[str, Any], )
accessory/tools/convert_weights_to_hf.py:182
↓ 1 callers
Function
create_demo
()
accessory/demos/single_turn_mm.py:116
↓ 1 callers
Function
create_demo
()
accessory/demos/single_turn.py:111
↓ 1 callers
Method
ddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:514
↓ 1 callers
Method
ddim_sample
Sample x_{t-1} from the model using DDIM. Same usage as p_sample().
Large-DiT-T2I/diffusion/gaussian_diffusion.py:514
↓ 1 callers
Method
ddim_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 callers
Method
ddim_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 callers
Function
default_no_wd_criterion
(name: str)
accessory/util/param_group.py:300
↓ 1 callers
Method
destroy_kv_cache
(self)
accessory/model/LLM/mixtral_peft.py:191
↓ 1 callers
Method
destroy_kv_cache
(self)
accessory/model/LLM/llama_ens10.py:178
↓ 1 callers
Method
destroy_kv_cache
(self)
accessory/model/LLM/falcon.py:198
↓ 1 callers
Method
destroy_kv_cache
(self)
accessory/model/LLM/llama_ens5.py:178
← previous
next →
301–400 of 1,094, ranked by callers