MCPcopy Create free account

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

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

Methodget_trainable_params
(self)
accessory/model/LLM/falcon.py:307
Methodget_trainable_params
(self)
accessory/model/LLM/llama_ens5.py:342
Methodget_trainable_params
(self)
accessory/model/LLM/llama.py:330
Methodget_trainable_params
(self)
accessory/model/LLM/llama_qformerv2_peft.py:304
Methodget_trainable_params
(self)
accessory/model/LLM/mixtral_sparse_ens5.py:620
Methodget_trainable_params
(self)
accessory/model/LLM/llama_ens5p2.py:342
Methodget_trainable_params
(self)
accessory/model/LLM/mixtral_sparse.py:563
Methodget_trainable_params
(self)
accessory/model/LLM/llama_ens.py:342
Methodget_trainable_params
(self)
accessory/model/LLM/llama_qformerv2.py:289
Methodget_trainable_params
(self)
accessory/model/LLM/mixtral.py:369
Methodget_trainable_params
(self)
accessory/model/LLM/llama_peft.py:301
Methodget_trainable_params
(self)
accessory/model/LLM/llama_ens_light.py:316
Methodget_trainable_params
(self)
accessory/model/LLM/llama_adapter.py:373
Methodget_trainable_params
(self)
accessory/model/LLM/llama_ens_peft.py:357
Methodget_trainable_params
(self)
accessory/model/LLM/mixtral_sparse_ens.py:618
Methodget_trainable_params
(self)
accessory/model/LLM/internlm.py:319
Methodget_trainable_params
(self)
accessory/model/LLM/llama_ens5_light.py:316
Methodglobal_avg
(self)
accessory/util/misc.py:191
Methodgroups
(self)
accessory/data/conversation/dataset.py:292
Functioninit_distributed_mode
(args=SimpleNamespace())
accessory/util/misc.py:94
Functioninner_func
( func: BlockwiseParamGroupFuncType )
accessory/util/param_group.py:24
Functionis_equiv
(str1, str2, verbose=False)
light-eval/src/eval_utils/math_util.py:228
Functionis_main_process
()
accessory/util/misc.py:84
Methodis_vb
(self)
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:54
Methodis_vb
(self)
Large-DiT-T2I/diffusion/gaussian_diffusion.py:54
Functionlast_boxed_only
(sample)
light-eval/src/eval_utils/math_util.py:2
MethodloadQA
Load questions and answers with the specified question ids. :param ids (int array) : integer ids specifying question ids :retur
accessory/eval_mm/utils/vqa.py:143
Methodload_state_dict
(self, state_dict: dict)
accessory/data/falcon_packed.py:52
Functionload_tensor_parallel_model
r""""This method calls ``load_tensor_parallel_model_state_dict`` (which handles multiple formats / unmatched tensor parallel size) and load the
accessory/util/tensor_parallel.py:299
Functionmain
(data_path)
accessory/tools/data_conversion/to_alpaca/gorilla.py:5
Functionmain
(args, rank: int, world_size: int, master_port: int, master_addr: str, model_parallel_size: int)
accessory/eval_mm/inference_image_sphinx.py:139
Functionmake_param_groups
r"""This method sets up param groups of different learning rate or weight decay configurations. Currently, the supported functions are: *
accessory/util/param_group.py:99
Functionmark_mp_params
(model: torch.nn.Module)
accessory/util/misc.py:580
Methodmedian
(self)
accessory/util/misc.py:181
Functionmodel_main
(args, master_port, rank, request_queue, response_queue, mp_barrier)
Large-DiT-T2I/demo.py:80
Functionmodel_worker
The worker function that manipulates the GPU to run the inference. Exact n_gpu workers are started, with each one operating on a separate GPU
accessory/demos/multi_turn.py:28
Functionmodel_worker
The worker function that manipulates the GPU to run the inference. Exact n_gpu workers are started, with each one operating on a separate GPU
accessory/demos/multi_turn_mm.py:29
Functionmodel_worker
The worker function that manipulates the GPU to run the inference. Exact n_gpu workers are started, with each one operating on a separate GPU
accessory/demos/multi_turn_mm_box.py:31
Methodn_words
(self)
accessory/model/tokenizer.py:125
Methodobserve
( self, predicted_scores: torch.Tensor, target_ranks: torch.Tensor )
accessory/eval_mm/utils/metric.py:57
Methodobserve
Observe model output scores and target ground truth relevance and accumulate NDCG metric. Parameters ----------
accessory/eval_mm/utils/metric.py:108
Methodon_exit
(self)
accessory/model/multi_gpu_wrapper.py:317
Functionon_submit
(caption, resolution, num_sampling_steps, cfg_scale)
Large-DiT-T2I/demo.py:224
Functiononly_until_first_boxed_from_tokens
(string, tokens)
light-eval/src/eval_utils/math_util.py:36
Methodp_mean_variance
( self, model, *args, **kwargs )
Large-DiT-ImageNet/diffusion/respace.py:89
Methodp_mean_variance
( self, model, *args, **kwargs )
Large-DiT-T2I/diffusion/respace.py:89
Functionpack_tokens
(filename, save_dir, tokenizer)
accessory/tools/generate_packed_data.py:14
Functionprint_if_verbose
(*args, **kwargs)
accessory/util/tensor_parallel.py:251
Functionprint_param_status
(model: torch.nn.Module)
accessory/util/misc.py:599
Methodprocess_item
(self, data_item, training_mode=False)
Large-DiT-T2I/train.py:61
Functionprocess_question_with_flan_tag
(questions: list, stem_flan_type: str)
accessory/eval_mm/utils/math_utils.py:552
Methodprocess_xstart
(x)
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:310
Methodprocess_xstart
(x)
Large-DiT-T2I/diffusion/gaussian_diffusion.py:310
Functionread_jsonl
(path: str)
accessory/eval_mm/utils/math_utils.py:81
Functionrecover_options
(input_str: str, combined: bool = False)
accessory/eval_mm/utils/math_utils.py:571
Functionremove_flan_tag
(question: str, stem_flan_type: str)
accessory/eval_mm/utils/math_utils.py:563
Methodresponse_end_signal
(self)
accessory/data/conversation/lib.py:93
Functionresume_stage1
split resume into two separate stages since resuming from a full model state has to be done before FSDP model init :param args: :param mo
accessory/util/misc.py:440
Functionresume_stage2
(args, model, optimizer, loss_scaler, dataset_train)
accessory/util/misc.py:465
Methodretrieve
(self, reset: bool = True, key="")
accessory/eval_mm/utils/metric.py:80
Methodretrieve
(self, reset: bool = True, key="")
accessory/eval_mm/utils/metric.py:165
Functionrole
(name, rawtext, text, lineno, inliner, options={}, content=[])
docs/conf.py:229
Functionsave_checkpoint
(output_dir, args, model, optimizer, loss_scaler, dataset_state, epoch=None, iteration=Non
accessory/util/misc.py:323
Methodset_epoch
(self, epoch)
accessory/data/falcon_packed.py:45
Methodset_epoch
r""" Sets the epoch for this sampler. When :attr:`shuffle=True`, this ensures all replicas use a different random ordering for each ep
accessory/data/alpaca.py:317
Functionsetup
(app: Sphinx)
docs/conf.py:206
MethodshowQA
Display the specified annotations. :param anns (array of object): annotations to display :return: None
accessory/eval_mm/utils/vqa.py:154
Functionshow_user_input
(msg, chatbot)
accessory/demos/multi_turn.py:144
Functionshow_user_input
(msg, chatbot)
accessory/demos/multi_turn_mm.py:153
Functionshow_user_input
(msg, chatbot, chatbox_display)
accessory/demos/multi_turn_mm_box.py:310
Functionsimple_conv
()
accessory/data/conversation/lib.py:150
Functionsimple_conv_multimodal
()
accessory/data/conversation/lib.py:162
Functionsplit_batch
(samples: list[str], size=4)
light-eval/src/eval_humaneval.py:102
Methodstream_generate
Wraps `accessory.model.MetaModel.stream_generate` :param args: Positional arguments for 'MetaModel.stream_generate'. :param
accessory/model/multi_gpu_wrapper.py:241
Functionstream_model_output
(chatbot, max_gen_len, gen_t, top_p)
accessory/demos/multi_turn.py:147
Functionstream_model_output
(img, chatbot, max_gen_len, gen_t, top_p, img_transform)
accessory/demos/multi_turn_mm.py:156
Functionstream_model_output
(img, chatbot, chatbot_display, max_gen_len, gen_t, top_p, img_transform)
accessory/demos/multi_turn_mm_box.py:313
Methodsynchronize_between_processes
Warning: does not synchronize the deque!
accessory/util/misc.py:167
Methodtokenizer
Wraps `accessory.model.MetaModel.tokenizer` return: The tokenizer of the model
accessory/model/multi_gpu_wrapper.py:253
Methodtraining_losses
Compute training losses for a single timestep. :param model: the model to evaluate loss on. :param x_start: the [N x C x ...]
Large-DiT-ImageNet/diffusion/gaussian_diffusion.py:716
Methodtraining_losses
Compute training losses for a single timestep. :param model: the model to evaluate loss on. :param x_start: the [N x C x ...]
Large-DiT-T2I/diffusion/gaussian_diffusion.py:716
Functionundo
(chatbot)
accessory/demos/multi_turn.py:163
Functionundo
(chatbot)
accessory/demos/multi_turn_mm.py:172
Functionundo
(chatbot, chatbot_display)
accessory/demos/multi_turn_mm_box.py:338
Methodupdate_with_all_losses
(self, ts, losses)
Large-DiT-ImageNet/diffusion/timestep_sampler.py:139
Methodupdate_with_all_losses
(self, ts, losses)
Large-DiT-T2I/diffusion/timestep_sampler.py:139
Methodupdate_with_local_losses
Update the reweighting using losses from a model. Call this method from each rank with a batch of timesteps and the correspon
Large-DiT-ImageNet/diffusion/timestep_sampler.py:72
Methodupdate_with_local_losses
Update the reweighting using losses from a model. Call this method from each rank with a batch of timesteps and the correspon
Large-DiT-T2I/diffusion/timestep_sampler.py:72
Methodvalue
(self)
accessory/util/misc.py:199
Functionvar_center_crop
(pil_image, crop_size_list, random_top_k=4)
Large-DiT-T2I/imgproc.py:45
Methodweights
(self)
Large-DiT-ImageNet/diffusion/timestep_sampler.py:67
Methodweights
(self)
Large-DiT-ImageNet/diffusion/timestep_sampler.py:130
Methodweights
(self)
Large-DiT-T2I/diffusion/timestep_sampler.py:67
Methodweights
(self)
Large-DiT-T2I/diffusion/timestep_sampler.py:130
← previous1,001–1,094 of 1,094, ranked by callers