MCPcopy Create free account

hub / github.com/chenyiqun/MMOA-RAG / functions

Functions656 in github.com/chenyiqun/MMOA-RAG

↓ 1 callersMethod_save_results
(self, category_corrects: Dict[str, "NDArray"], results: Dict[str, Dict[int, str]])
LLaMA-Factory/src/llamafactory/eval/evaluator.py:139
↓ 1 callersFunction_setup_freeze_tuning
( model: "PreTrainedModel", finetuning_args: "FinetuningArguments", is_trainable: bool, cast_t
LLaMA-Factory/src/llamafactory/model/adapter.py:58
↓ 1 callersFunction_setup_full_tuning
( model: "PreTrainedModel", finetuning_args: "FinetuningArguments", is_trainable: bool, cast_t
LLaMA-Factory/src/llamafactory/model/adapter.py:39
↓ 1 callersFunction_setup_lora_tuning
( config: "PretrainedConfig", model: "PreTrainedModel", model_args: "ModelArguments", finetuni
LLaMA-Factory/src/llamafactory/model/adapter.py:139
↓ 1 callersMethod_stream_chat
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", processor: Optional["Pro
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:212
↓ 1 callersFunctionabort_process
r""" Aborts the processes recursively in a bottom-up way.
LLaMA-Factory/src/llamafactory/webui/utils.py:37
↓ 1 callersFunctionadd_z3_leaf_module
r""" Sets module as a leaf module to skip partitioning in deepspeed zero3.
LLaMA-Factory/src/llamafactory/model/model_utils/moe.py:35
↓ 1 callersFunctionalign_dataset
r""" Aligned dataset: _prompt: [{"role": "user", "content": "..."}] * (2T - 1) _response: [{"role": "assistant", "content": "..."}
LLaMA-Factory/src/llamafactory/data/aligner.py:224
↓ 1 callersMethodapply
(self, **kwargs)
LLaMA-Factory/src/llamafactory/data/formatter.py:64
↓ 1 callersMethodapply
(self, **kwargs)
LLaMA-Factory/src/llamafactory/data/formatter.py:80
↓ 1 callersFunctionautocast_projector_dtype
r""" Casts projector output to half precision for fine-tuning quantized VLMs.
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:83
↓ 1 callersMethodbatch_inference
(self, batch_input: Dict[str, "torch.Tensor"])
LLaMA-Factory/src/llamafactory/eval/evaluator.py:72
↓ 1 callersFunctioncalculate_match_ratio
(answer, document, i)
get_ppo_data_alpaca.py:47
↓ 1 callersFunctioncalculate_match_ratio
(answer, document, i)
qr_s_g_sft_data_alpaca.py:47
↓ 1 callersFunctioncalculate_match_ratio
(answer, document)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:88
↓ 1 callersFunctioncheck_dependencies
r""" Checks the version of the required packages.
LLaMA-Factory/src/llamafactory/extras/misc.py:75
↓ 1 callersFunctionclean_and_split
(text)
get_ppo_data_alpaca.py:40
↓ 1 callersFunctionclean_and_split
(text)
qr_s_g_sft_data_alpaca.py:40
↓ 1 callersFunctionclean_and_split
(text)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:82
↓ 1 callersFunctioncompute_device_flops
r""" Calculates the FLOPs of the device capability per second.
LLaMA-Factory/scripts/cal_mfu.py:89
↓ 1 callersFunctioncompute_model_flops
r""" Calculates the FLOPs of model per forward/backward pass.
LLaMA-Factory/scripts/cal_mfu.py:30
↓ 1 callersMethodcompute_preference_loss
r""" Computes loss for preference learning.
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:143
↓ 1 callersMethodcompute_reference_log_probs
r""" Computes log probabilities of the reference model.
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:165
↓ 1 callersMethodcompute_reference_log_probs
r""" Computes log probabilities of the reference model.
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:194
↓ 1 callersFunctioncompute_scores
(predict_answers, golden_answers)
evaluate_qr_s_g.py:88
↓ 1 callersFunctionconcatenate_strings
(strings_list)
get_top_k.py:43
↓ 1 callersFunctionconfigure_attn_implementation
( config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool )
LLaMA-Factory/src/llamafactory/model/model_utils/attention.py:32
↓ 1 callersFunctionconfigure_liger_kernel
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
LLaMA-Factory/src/llamafactory/model/model_utils/liger_kernel.py:29
↓ 1 callersFunctionconfigure_longlora
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:362
↓ 1 callersFunctionconfigure_moe
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
LLaMA-Factory/src/llamafactory/model/model_utils/moe.py:69
↓ 1 callersFunctionconfigure_packing
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
LLaMA-Factory/src/llamafactory/model/model_utils/packing.py:148
↓ 1 callersFunctionconfigure_quantization
r""" Priority: PTQ-quantized (train/infer) > AutoGPTQ (export) > On-the-fly quantization (train/infer)
LLaMA-Factory/src/llamafactory/model/model_utils/quantization.py:101
↓ 1 callersFunctionconfigure_rope
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
LLaMA-Factory/src/llamafactory/model/model_utils/rope.py:34
↓ 1 callersFunctionconfigure_visual_model
r""" Patches VLMs before loading them.
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:106
↓ 1 callersFunctionconvert_pretrained_model_to_mod
( model: "PreTrainedModel", config: "PretrainedConfig", model_args: "ModelArguments" )
LLaMA-Factory/src/llamafactory/model/model_utils/mod.py:32
↓ 1 callersFunctioncreate_chat_completion_response
( request: "ChatCompletionRequest", chat_model: "ChatModel" )
LLaMA-Factory/src/llamafactory/api/chat.py:142
↓ 1 callersFunctioncreate_ds_config
r""" Creates deepspeed config.
LLaMA-Factory/src/llamafactory/webui/utils.py:239
↓ 1 callersFunctioncreate_eval_tab
(engine: "Engine")
LLaMA-Factory/src/llamafactory/webui/components/eval.py:32
↓ 1 callersFunctioncreate_export_tab
(engine: "Engine")
LLaMA-Factory/src/llamafactory/webui/components/export.py:103
↓ 1 callersFunctioncreate_infer_tab
(engine: "Engine")
LLaMA-Factory/src/llamafactory/webui/components/infer.py:32
↓ 1 callersMethodcreate_optimizer
( self, model: "AutoModelForCausalLMWithValueHead", training_args: "Seq2SeqTrainingArg
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:1059
↓ 1 callersFunctioncreate_reward_model
r""" Creates reward model for PPO training.
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:135
↓ 1 callersMethodcreate_scheduler
( self, training_args: "Seq2SeqTrainingArguments", num_training_steps: int, optimizer: "torch.optim.Op
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:1086
↓ 1 callersFunctioncreate_score_evaluation_response
( request: "ScoreEvaluationRequest", chat_model: "ChatModel" )
LLaMA-Factory/src/llamafactory/api/chat.py:229
↓ 1 callersFunctioncreate_stream_chat_completion_response
( request: "ChatCompletionRequest", chat_model: "ChatModel" )
LLaMA-Factory/src/llamafactory/api/chat.py:193
↓ 1 callersFunctioncreate_top
()
LLaMA-Factory/src/llamafactory/webui/components/top.py:32
↓ 1 callersFunctioncreate_train_tab
(engine: "Engine")
LLaMA-Factory/src/llamafactory/webui/components/train.py:37
↓ 1 callersFunctioncreate_web_demo
()
LLaMA-Factory/src/llamafactory/webui/interface.py:70
↓ 1 callersFunctiondump_layernorm
r""" Dumps the layernorm parameters in the model. The model is already unwrapped (and gathered).
LLaMA-Factory/src/llamafactory/train/ppo/ppo_utils.py:69
↓ 1 callersMethodextract
r""" Extract a list of tuples from the response message if using tools. Each tuple consists of function name and function arguments.
LLaMA-Factory/src/llamafactory/data/formatter.py:43
↓ 1 callersFunctionextract_digits
(input_string, K_candidate)
evaluate_qr_s_g.py:55
↓ 1 callersMethodextract_digits
(self, input_string, K_candidate)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:379
↓ 1 callersMethodextract_document
Extract the contents of a Document with the specified number. Parameters: text (str) -A string containing more than one Docu
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:346
↓ 1 callersMethodextract_question
Extract the question part from the given text. Parameters: text (str) -A string containing the question and other content
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:329
↓ 1 callersFunctionextract_questions_and_docs
The question and the corresponding document list are extracted from the HTTP response. parameters: - response: requests.Response re
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:165
↓ 1 callersFunctionfind_expanded_modules
r""" Finds the modules in the expanded blocks to apply lora.
LLaMA-Factory/src/llamafactory/model/model_utils/misc.py:60
↓ 1 callersFunctiongen_cmd
r""" Generates arguments for previewing.
LLaMA-Factory/src/llamafactory/webui/utils.py:108
↓ 1 callersFunctiongen_loss_plot
r""" Plots loss curves in LlamaBoard.
LLaMA-Factory/src/llamafactory/extras/ploting.py:51
↓ 1 callersMethodget_answer_dict
(self, answers_path)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:429
↓ 1 callersFunctionget_console_scripts
()
LLaMA-Factory/setup.py:37
↓ 1 callersFunctionget_custom_gradient_checkpointing_func
r""" Only applies gradient checkpointing to trainable layers.
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:79
↓ 1 callersFunctionget_dataset_list
r""" Gets the attributes of the datasets.
LLaMA-Factory/src/llamafactory/data/parser.py:74
↓ 1 callersMethodget_elem_iter
r""" Returns an iterator over all elements with their names.
LLaMA-Factory/src/llamafactory/webui/manager.py:42
↓ 1 callersFunctionget_embeddings
(sentences)
get_top_k.py:19
↓ 1 callersFunctionget_embeddings
(sentences)
evaluate_qr_s_g.py:26
↓ 1 callersFunctionget_embeddings
(sentences)
flask_server.py:25
↓ 1 callersFunctionget_eval_args
(args: Optional[Dict[str, Any]] = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:400
↓ 1 callersFunctionget_eval_results
r""" Gets scores after evaluation.
LLaMA-Factory/src/llamafactory/webui/utils.py:138
↓ 1 callersMethodget_function_slots
r""" Gets a list of slots corresponding to a single function call.
LLaMA-Factory/src/llamafactory/data/tool_utils.py:55
↓ 1 callersMethodget_generator_messages
(self, question, top_docs)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:608
↓ 1 callersFunctionget_generator_post_role_prompt
(top_docs)
evaluate_qr_s_g.py:268
↓ 1 callersMethodget_generator_post_role_prompt
(self, top_docs)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:600
↓ 1 callersFunctionget_generator_prefix_role_prompt
(question, top_k_docs)
evaluate_qr_s_g.py:238
↓ 1 callersMethodget_generator_prefix_role_prompt
(self, question, top_k_docs)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:570
↓ 1 callersMethodget_generator_punish
(self, predict_answers)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:496
↓ 1 callersMethodget_id_by_elem
r""" Gets id by element.
LLaMA-Factory/src/llamafactory/webui/manager.py:57
↓ 1 callersFunctionget_image_seqlen
r""" Computes the number of special tokens per image.
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:148
↓ 1 callersFunctionget_messages
(question, top_docs)
evaluate_qr_s_g.py:277
↓ 1 callersFunctionget_model_path
r""" Gets the model path according to the model name.
LLaMA-Factory/src/llamafactory/webui/common.py:101
↓ 1 callersFunctionget_patch_size
r""" Computes the patch size of the vit.
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:165
↓ 1 callersFunctionget_peak_memory
r""" Gets the peak memory usage for the current device (in Bytes).
LLaMA-Factory/src/llamafactory/extras/misc.py:159
↓ 1 callersFunctionget_positive_position
(list_length=10, selected_number=3)
get_ppo_data_alpaca.py:23
↓ 1 callersFunctionget_positive_position
(list_length=10, selected_number=3)
qr_s_g_sft_data_alpaca.py:23
↓ 1 callersFunctionget_preprocess_and_print_func
( data_args: "DataArguments", stage: Literal["pt", "sft", "rm", "ppo", "kto"], template: "Template
LLaMA-Factory/src/llamafactory/data/preprocess.py:36
↓ 1 callersFunctionget_qr_messages
(question)
evaluate_qr_s_g.py:289
↓ 1 callersMethodget_qr_messages
(self, question)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:620
↓ 1 callersMethodget_qr_punish
(self, predict_answers, mini_batch_subquestions)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:537
↓ 1 callersFunctionget_requires
()
LLaMA-Factory/setup.py:30
↓ 1 callersMethodget_rewards
(self, predict_answers, golden_answers, reward_metric_name='f1')
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:451
↓ 1 callersFunctionget_selector_messages
(question, top_docs)
evaluate_qr_s_g.py:283
↓ 1 callersMethodget_selector_messages
(self, question, top_docs)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:614
↓ 1 callersFunctionget_selector_post_role_prompt
(question, top_k_docs)
evaluate_qr_s_g.py:264
↓ 1 callersMethodget_selector_post_role_prompt
(self, question, top_k_docs)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:596
↓ 1 callersFunctionget_selector_prefix_role_prompt
(question, top_k_docs)
evaluate_qr_s_g.py:223
↓ 1 callersMethodget_selector_prefix_role_prompt
(self, question, top_k_docs)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:555
↓ 1 callersMethodget_selector_repeat_punish
(self, mini_batch_selector_answers_text, mini_batch_candidate_docs)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:528
↓ 1 callersMethodget_selector_rewards
(self, predict_answers, golden_answers, mini_batch_candidate_docs, mini_batch_input_questions, mini_batch_sele
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:511
↓ 1 callersFunctionget_template
r""" Gets the template name if the model is a chat model.
LLaMA-Factory/src/llamafactory/webui/common.py:129
↓ 1 callersFunctionget_time
r""" Gets current date and time.
LLaMA-Factory/src/llamafactory/webui/utils.py:147
↓ 1 callersFunctionget_trainer_info
r""" Gets training infomation for monitor.
LLaMA-Factory/src/llamafactory/webui/utils.py:154
← previousnext →201–300 of 656, ranked by callers