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
Method
indices_and_padded_bins
( self, selected_experts: torch.Tensor )
accessory/model/LLM/mixtral_sparse_ens5.py:384
↓ 1 callers
Method
indices_and_padded_bins
( self, selected_experts: torch.Tensor )
accessory/model/LLM/mixtral_sparse.py:378
↓ 1 callers
Method
indices_and_padded_bins
( self, selected_experts: torch.Tensor )
accessory/model/LLM/mixtral_sparse_ens.py:382
↓ 1 callers
Function
init_ceph_client_if_needed
()
Large-DiT-T2I/data/data_reader.py:19
↓ 1 callers
Function
init_ceph_client_if_needed
()
accessory/data/data_reader.py:15
↓ 1 callers
Function
init_print
(is_master)
accessory/model/multi_gpu_wrapper.py:26
↓ 1 callers
Function
interactive_mode
(args)
accessory/tools/download.py:47
↓ 1 callers
Method
is_complete
r"""Check if all the shards are loaded to the target tensor.
accessory/util/tensor_parallel.py:571
↓ 1 callers
Function
last_boxed_only_string
(string)
light-eval/src/eval_utils/math_util.py:9
↓ 1 callers
Function
levenshtein_distance
(s1, s2)
accessory/eval_mm/infographicsvqa_eval.py:20
↓ 1 callers
Function
load
(args)
light-eval/src/eval_math.py:54
↓ 1 callers
Function
load
(args)
light-eval/src/eval_bbh.py:68
↓ 1 callers
Function
load
(args)
light-eval/src/eval_cmmlu.py:65
↓ 1 callers
Function
load
(args)
light-eval/src/eval_humaneval.py:50
↓ 1 callers
Function
load
(args)
light-eval/src/eval_mmlu.py:82
↓ 1 callers
Function
load
(args)
light-eval/src/eval_ceval.py:59
↓ 1 callers
Function
load
(args)
light-eval/src/eval_mmvet.py:89
↓ 1 callers
Function
load
(args)
light-eval/src/eval_gsm8k.py:54
↓ 1 callers
Method
loadRes
Load result file and return a result object. :param resFile (str) : file name of result file :return: res (obj) : resul
accessory/eval_mm/utils/vqa.py:168
↓ 1 callers
Function
load_and_merge_tensor_parallel_weights
( src_weights_path: List[str], torch_dtype: torch.dtype, ignore_unknown_keys: bool = False, )
accessory/tools/convert_weights_to_hf.py:92
↓ 1 callers
Function
load_diff_checkpoint
r"""This method loads model from a *_diff format checkpoint. The behavior of loading a diff checkpoint is different from loading a regular che
accessory/util/tensor_parallel.py:387
↓ 1 callers
Function
load_image
(image_path, model)
accessory/demos/multi_model_cli.py:13
↓ 1 callers
Method
load_shard
r"""Load a shard into the target tensor. Args: shard_id (int): The shard id of the current value. value (``torch.Tens
accessory/util/tensor_parallel.py:558
↓ 1 callers
Function
main
(args)
light-eval/src/eval_math.py:199
↓ 1 callers
Function
main
(args, multiple_choice_tasks=MULTIPLE_CHOICE_TASKS, free_form_tasks=FREE_FORM_TASKS)
light-eval/src/eval_bbh.py:210
↓ 1 callers
Function
main
(args)
light-eval/src/eval_cmmlu.py:199
↓ 1 callers
Function
main
(args)
light-eval/src/eval_humaneval.py:168
↓ 1 callers
Function
main
(args)
light-eval/src/eval_mmlu.py:215
↓ 1 callers
Function
main
(args)
light-eval/src/eval_ceval.py:212
↓ 1 callers
Function
main
(args)
light-eval/src/eval_gsm8k.py:218
↓ 1 callers
Function
main
Trains a new DiT model.
Large-DiT-ImageNet/train.py:197
↓ 1 callers
Function
main
(args, rank, master_port)
Large-DiT-ImageNet/sample.py:26
↓ 1 callers
Function
main
()
SPHINX/batch_inference.py:56
↓ 1 callers
Function
main
()
SPHINX/inference.py:8
↓ 1 callers
Function
main
Trains a new DiT model.
Large-DiT-T2I/train.py:269
↓ 1 callers
Function
main
()
Large-DiT-T2I/demo.py:173
↓ 1 callers
Function
main
(args)
accessory/main_finetune.py:141
↓ 1 callers
Function
main
(args)
accessory/main_pretrain.py:125
↓ 1 callers
Function
main
()
accessory/tools/download.py:82
↓ 1 callers
Function
main
()
accessory/tools/convert_weights_to_hf.py:358
↓ 1 callers
Function
main
(model, image_path, instruction)
accessory/demos/multi_model_cli.py:19
↓ 1 callers
Function
merge_weights_and_save
(original_model, delta_weights, num, max_num)
accessory/tools/weight_operate.py:38
↓ 1 callers
Function
model_worker
(port: int, rank:int, world_size: int)
accessory/model/multi_gpu_wrapper.py:49
↓ 1 callers
Method
p_sample
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor at
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:376
↓ 1 callers
Method
p_sample
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor at
Large-DiT-T2I/diffusion/gaussian_diffusion.py:376
↓ 1 callers
Method
p_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:420
↓ 1 callers
Method
p_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
Large-DiT-T2I/diffusion/gaussian_diffusion.py:420
↓ 1 callers
Method
p_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Arguments are the same as p_s
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:465
↓ 1 callers
Method
p_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Arguments are the same as p_s
Large-DiT-T2I/diffusion/gaussian_diffusion.py:465
↓ 1 callers
Method
parameter_count
(self)
Large-DiT-ImageNet/models.py:625
↓ 1 callers
Method
parameter_count
(self)
Large-DiT-T2I/models/model.py:715
↓ 1 callers
Function
parse_pred_ans
(pred_ans)
accessory/eval_mm/utils/metric.py:252
↓ 1 callers
Function
parse_score
(review)
light-eval/src/eval_llavabenchmark.py:203
↓ 1 callers
Method
patchify
(self, x: torch.Tensor)
Large-DiT-ImageNet/models.py:542
↓ 1 callers
Method
patchify_and_embed
(self, x: List[torch.Tensor] | torch.Tensor)
Large-DiT-T2I/models/model.py:599
↓ 1 callers
Method
precompute_freqs_cis
Precompute the frequency tensor for complex exponentials (cis) with given dimensions. This function calculates a frequency t
Large-DiT-ImageNet/models.py:597
↓ 1 callers
Method
precompute_freqs_cis
Precompute the frequency tensor for complex exponentials (cis) with given dimensions. This function calculates a frequency t
Large-DiT-T2I/models/model.py:686
↓ 1 callers
Method
preprocess
(self, meta_l:List[Dict], recipe: str)
accessory/data/alpaca.py:217
↓ 1 callers
Function
probe_tokenizer_path_from_pretrained
(pretrained_path: str)
accessory/model/tokenizer.py:134
↓ 1 callers
Method
processDigitArticle
(self, inText)
accessory/eval_mm/utils/vqa_eval.py:274
↓ 1 callers
Method
process_item
(self, data_item, training_mode=False)
Large-DiT-T2I/data/dataset.py:31
↓ 1 callers
Method
q_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of diff
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:203
↓ 1 callers
Method
q_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of diff
Large-DiT-T2I/diffusion/gaussian_diffusion.py:203
↓ 1 callers
Function
random_seed
(seed=0)
accessory/util/misc.py:88
↓ 1 callers
Function
read_img_general
(img_path)
accessory/data/data_reader.py:6
↓ 1 callers
Function
remove_boxed
(s)
light-eval/src/eval_math.py:81
↓ 1 callers
Function
remove_right_units
(string)
light-eval/src/eval_utils/math_util.py:139
↓ 1 callers
Method
reset
(self)
accessory/eval_mm/utils/metric.py:99
↓ 1 callers
Method
reset
(self)
accessory/eval_mm/utils/metric.py:177
↓ 1 callers
Method
reset_parameters
(self)
accessory/model/LLM/internlm.py:232
↓ 1 callers
Method
reshape_for_broadcast
Reshape frequency tensor for broadcasting it with another tensor. This function reshapes the frequency tensor to have the same shape
Large-DiT-ImageNet/models.py:190
↓ 1 callers
Method
reshape_for_broadcast
Reshape frequency tensor for broadcasting it with another tensor. This function reshapes the frequency tensor to have the same shape
Large-DiT-T2I/models/model.py:207
↓ 1 callers
Function
resize_prompt
(tokenizer, model_max_context, prompt)
light-eval/src/eval_math.py:119
↓ 1 callers
Function
resize_prompt
(tokenizer, model_max_context, prompt)
light-eval/src/eval_bbh.py:128
↓ 1 callers
Function
resize_prompt
(tokenizer, model_max_context, prompt)
light-eval/src/eval_cmmlu.py:143
↓ 1 callers
Function
resize_prompt
(tokenizer, model_max_context, prompt)
light-eval/src/eval_mmlu.py:128
↓ 1 callers
Function
resize_prompt
(tokenizer, model_max_context, prompt)
light-eval/src/eval_ceval.py:135
↓ 1 callers
Function
resize_prompt
(tokenizer, model_max_context, prompt)
light-eval/src/eval_gsm8k.py:138
↓ 1 callers
Method
run
(self)
accessory/eval_mm/utils/math_utils.py:55
↓ 1 callers
Function
run_eval
(infer_path)
light-eval/src/eval_math.py:174
↓ 1 callers
Function
run_eval
(tasks, infer_path)
light-eval/src/eval_mmlu.py:187
↓ 1 callers
Function
run_eval
(infer_path)
light-eval/src/eval_gsm8k.py:193
↓ 1 callers
Function
run_infer
(model, max_seq_len, data_path, infer_path, overwrite = False)
light-eval/src/eval_math.py:128
↓ 1 callers
Function
run_infer
( model:MetaModel, infer_file: str, overwrite: bool = False, num_samples_per_task: int = 10,
light-eval/src/eval_humaneval.py:125
↓ 1 callers
Function
run_infer
(model, max_seq_len, tasks, infer_path, ntrain=5, overwrite = False)
light-eval/src/eval_mmlu.py:137
↓ 1 callers
Function
run_infer
(model, max_seq_len, data_path, infer_path, overwrite = False)
light-eval/src/eval_gsm8k.py:147
↓ 1 callers
Function
run_infer_eval
(model, max_seq_len, data_path, ntrain=-1, few_shot = True)
light-eval/src/eval_cmmlu.py:152
↓ 1 callers
Function
run_infer_eval
(model, max_seq_len, data_path, ntrain=-1, few_shot = True)
light-eval/src/eval_ceval.py:144
↓ 1 callers
Method
sample
Importance-sample timesteps for a batch. :param batch_size: the number of timesteps. :param device: the torch device to save
Large-DiT-ImageNet/diffusion/timestep_sampler.py:44
↓ 1 callers
Function
save_json
(file_path, data)
accessory/eval_mm/infographicsvqa_eval.py:14
↓ 1 callers
Function
scale_grad
(model: nn.Module, factor: float)
Large-DiT-ImageNet/grad_norm.py:55
↓ 1 callers
Function
scale_grad
(model: nn.Module, factor: float)
Large-DiT-T2I/grad_norm.py:55
↓ 1 callers
Method
setAccuracy
(self, accQA, accQuesType, accAnsType)
accessory/eval_mm/utils/vqa_eval.py:289
↓ 1 callers
Method
setEvalAnsType
(self, quesId, ansType, acc)
accessory/eval_mm/utils/vqa_eval.py:315
↓ 1 callers
Method
setEvalQA
(self, quesId, acc)
accessory/eval_mm/utils/vqa_eval.py:307
↓ 1 callers
Method
setEvalQuesType
(self, quesId, quesType, acc)
accessory/eval_mm/utils/vqa_eval.py:310
↓ 1 callers
Method
set_epoch
(self, epoch)
accessory/data/falcon.py:41
↓ 1 callers
Function
setup_dist_env_from_slurm
(args)
Large-DiT-ImageNet/train.py:137
↓ 1 callers
Function
setup_lm_fsdp_sync
(model: nn.Module)
Large-DiT-T2I/train.py:160
↓ 1 callers
Function
setup_mixed_precision
(args)
Large-DiT-ImageNet/train.py:183
← previous
next →
501–600 of 1,094, ranked by callers