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
↓ 2 callers
Method
add_meter
(self, name, meter)
accessory/util/misc.py:245
↓ 2 callers
Function
approx_standard_normal_cdf
A fast approximation of the cumulative distribution function of the standard normal.
Large-DiT-ImageNet/diffusion/diffusion_utils.py:39
↓ 2 callers
Function
approx_standard_normal_cdf
A fast approximation of the cumulative distribution function of the standard normal.
Large-DiT-T2I/diffusion/diffusion_utils.py:39
↓ 2 callers
Method
condition_score
Compute what the p_mean_variance output would have been, should the model's score function be conditioned by cond_fn. See con
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:358
↓ 2 callers
Method
condition_score
Compute what the p_mean_variance output would have been, should the model's score function be conditioned by cond_fn. See con
Large-DiT-T2I/diffusion/gaussian_diffusion.py:358
↓ 2 callers
Method
createIndex
(self)
accessory/eval_mm/utils/vqa.py:55
↓ 2 callers
Function
create_diffusion
( timestep_respacing, noise_schedule="linear", use_kl=False, sigma_small=False, predict_x
Large-DiT-ImageNet/diffusion/__init__.py:10
↓ 2 callers
Function
create_diffusion
( timestep_respacing, noise_schedule="linear", use_kl=False, sigma_small=False, predict_x
Large-DiT-T2I/diffusion/__init__.py:10
↓ 2 callers
Function
create_logger
Create a logger that writes to a log file and stdout.
Large-DiT-ImageNet/train.py:97
↓ 2 callers
Function
create_logger
Create a logger that writes to a log file and stdout.
Large-DiT-T2I/train.py:141
↓ 2 callers
Function
delete_extra_zero
删除小数点后多余的0
accessory/eval_mm/utils/math_utils.py:115
↓ 2 callers
Function
download_files
()
accessory/util/misc.py:639
↓ 2 callers
Function
dropout_add
(x: torch.Tensor, residual: torch.Tensor, prob: float, training: bool)
accessory/model/LLM/falcon.py:61
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/mixtral_peft.py:424
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/llama_ens10.py:377
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/llama_ens5.py:377
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/llama_qformerv2_peft.py:317
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/mixtral_sparse_ens5.py:663
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/llama_ens5p2.py:377
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/mixtral_sparse.py:597
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/llama_ens.py:377
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/llama_qformerv2.py:298
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/mixtral.py:403
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/llama_peft.py:339
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/llama_ens_light.py:353
↓ 2 callers
Method
encode_image
(self, imgs)
accessory/model/LLM/llama_adapter.py:429
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/llama_ens_peft.py:397
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/mixtral_sparse_ens.py:650
↓ 2 callers
Method
encode_image
(self, image)
accessory/model/LLM/llama_ens5_light.py:353
↓ 2 callers
Method
encode_segment
(self, s:str)
accessory/model/tokenizer.py:64
↓ 2 callers
Function
eval_MMVet_benchmark
(model, args)
light-eval/src/eval_mmvet.py:133
↓ 2 callers
Function
eval_gpt4
(args)
light-eval/src/eval_llavabenchmark.py:219
↓ 2 callers
Function
eval_llava_benchmark
(model, args)
light-eval/src/eval_llavabenchmark.py:148
↓ 2 callers
Function
evaluate_exact_match_accuracy
(entries)
accessory/eval_mm/utils/metric.py:237
↓ 2 callers
Function
evaluate_relaxed_accuracy
(entries)
accessory/eval_mm/utils/metric.py:226
↓ 2 callers
Function
format_code
(code_str: str)
accessory/eval_mm/utils/math_utils.py:15
↓ 2 callers
Function
format_example
(line, include_answer=True)
light-eval/src/eval_cmmlu.py:92
↓ 2 callers
Function
format_example
(df, idx, include_answer=True)
light-eval/src/eval_mmlu.py:63
↓ 2 callers
Function
format_example
(line, include_answer=True)
light-eval/src/eval_ceval.py:86
↓ 2 callers
Method
forward_inference
(self, tokens: torch.Tensor, start_pos: int, image=None)
accessory/model/LLM/llama.py:395
↓ 2 callers
Method
getQuesIds
Get question ids that satisfy given filter conditions. default skips that filter. :param imgIds (int array) : get question ids
accessory/eval_mm/utils/vqa.py:81
↓ 2 callers
Function
get_inter_node_process_group
()
Large-DiT-T2I/parallel.py:89
↓ 2 callers
Function
get_local_rank
()
Large-DiT-T2I/parallel.py:32
↓ 2 callers
Function
get_tensor_parallel_shards_file_name
r"""A helper function that returns a list of tensor-parallel shard file names by format and tensor parallel size. Args: format (str):
accessory/util/tensor_parallel.py:171
↓ 2 callers
Method
get_tensor_type
(dtype: torch.dtype, device: str)
accessory/util/tensor_type.py:49
↓ 2 callers
Method
get_trainable_params
(self)
accessory/model/meta.py:216
↓ 2 callers
Function
get_weight_parallel_dim
(model: nn.Module)
accessory/util/tensor_parallel.py:48
↓ 2 callers
Function
hf_download
(repo_id, allow_patterns, cache_path)
accessory/util/misc.py:620
↓ 2 callers
Function
infer_checkpoint_format_and_mp_size
r"""This method infers the checkpoint format and model parallel size according to the files in the given folder. Args: path (str): Th
accessory/util/tensor_parallel.py:333
↓ 2 callers
Function
is_number
(s)
light-eval/src/eval_gsm8k.py:81
↓ 2 callers
Function
load
(args)
light-eval/src/eval_llavabenchmark.py:101
↓ 2 callers
Function
load_tensor_parallel_model_state_dict
r"""This function loads tensor parallel checkpoints and handles different formats (e.g., saved by different training frameworks or released by
accessory/util/tensor_parallel.py:229
↓ 2 callers
Function
main
(pretrained_path)
accessory/demos/single_model_cli.py:11
↓ 2 callers
Function
match_and_strip_prefix
(prefix: str, src_dict: Dict[str, Any])
accessory/util/param_group.py:162
↓ 2 callers
Function
need_more_runs
()
light-eval/src/eval_mmvet.py:263
↓ 2 callers
Function
normal_kl
Compute the KL divergence between two gaussians. Shapes are automatically broadcasted, so batches can be compared to scalars, among other
Large-DiT-ImageNet/diffusion/diffusion_utils.py:10
↓ 2 callers
Function
normal_kl
Compute the KL divergence between two gaussians. Shapes are automatically broadcasted, so batches can be compared to scalars, among other
Large-DiT-T2I/diffusion/diffusion_utils.py:10
↓ 2 callers
Function
number_it
(num: str)
accessory/eval_mm/utils/math_utils.py:479
↓ 2 callers
Method
process
(self)
accessory/data/conversation/lib.py:25
↓ 2 callers
Method
processPunctuation
(self, inText)
accessory/eval_mm/utils/vqa_eval.py:263
↓ 2 callers
Function
process_special_request
(request: str)
accessory/model/multi_gpu_wrapper.py:43
↓ 2 callers
Function
promote_scalar
(x: torch.Tensor)
accessory/model/LLM/mixtral_sparse_ens5.py:77
↓ 2 callers
Function
promote_scalar
(x: torch.Tensor)
accessory/model/LLM/mixtral_sparse.py:71
↓ 2 callers
Function
promote_scalar
(x: torch.Tensor)
accessory/model/LLM/mixtral_sparse_ens.py:75
↓ 2 callers
Method
q_sample
Diffuse the data for a given number of diffusion steps. In other words, sample from q(x_t | x_0). :param x_start: the initial
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:215
↓ 2 callers
Function
read_general
(path)
Large-DiT-T2I/data/data_reader.py:11
↓ 2 callers
Function
relaxed_correctness
Calculates relaxed correctness. The correctness tolerates certain error ratio defined by max_relative_change. See https://arxiv.org/pdf/2203.
accessory/eval_mm/utils/metric.py:184
↓ 2 callers
Method
reset_status
(self)
accessory/model/multi_gpu_wrapper.py:314
↓ 2 callers
Function
run_eval
(tasks, infer_path, mode)
light-eval/src/eval_bbh.py:189
↓ 2 callers
Function
run_infer
(model, max_seq_len, tasks, data_path, infer_path, mode, overwrite = False)
light-eval/src/eval_bbh.py:137
↓ 2 callers
Method
sample_top_p
Sample a token based on the provided probability distribution using top-p sampling. :param probs: The probability distribution for t
accessory/model/meta.py:550
↓ 2 callers
Function
scores
(args)
light-eval/src/eval_mmvet.py:171
↓ 2 callers
Function
scores_to_ranks
Convert model output scores into ranks.
accessory/eval_mm/utils/metric.py:27
↓ 2 callers
Function
setup_fsdp_sync
(model: nn.Module, args: argparse.Namespace)
Large-DiT-ImageNet/train.py:150
↓ 2 callers
Function
setup_fsdp_sync
(model: nn.Module, args: argparse.Namespace)
Large-DiT-T2I/train.py:182
↓ 2 callers
Function
strip_string
(string)
light-eval/src/eval_utils/math_util.py:163
↓ 2 callers
Method
update
(self, value, n=1)
accessory/util/misc.py:162
↓ 1 callers
Function
T_padded_resize
(size=224)
accessory/eval_mm/inference_image_sphinx.py:67
↓ 1 callers
Function
T_padded_resize
(size=224)
accessory/data/transform.py:57
↓ 1 callers
Function
T_random_resized_crop
(size=224)
accessory/data/transform.py:37
↓ 1 callers
Function
T_resized_center_crop
(size=224)
accessory/data/transform.py:46
↓ 1 callers
Method
__init__
(self, model, timestep_map, original_num_steps)
Large-DiT-ImageNet/diffusion/respace.py:118
↓ 1 callers
Method
__init__
(self, model, timestep_map, original_num_steps)
Large-DiT-T2I/diffusion/respace.py:118
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/mixtral_peft.py:497
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/llama_ens10.py:536
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/falcon.py:372
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/llama_ens5.py:533
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/llama.py:429
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/llama_qformerv2_peft.py:382
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/mixtral_sparse_ens5.py:829
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/llama_ens5p2.py:542
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/mixtral_sparse.py:669
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/llama_ens.py:515
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/llama_qformerv2.py:363
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/mixtral.py:476
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/llama_peft.py:402
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/llama_ens_light.py:475
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/llama_adapter.py:514
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/llama_ens_peft.py:529
↓ 1 callers
Method
_allocate_kv_cache
(self, max_batch_size: int)
accessory/model/LLM/mixtral_sparse_ens.py:792
← previous
next →
101–200 of 1,094, ranked by callers