MCPcopy Create free account

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

Functions656 in github.com/chenyiqun/MMOA-RAG

↓ 2 callersFunction_get_library_name
()
LLaMA-Factory/src/llamafactory/extras/logging.py:83
↓ 2 callersFunction_get_merged_dataset
r""" Gets the merged datasets in the standard format.
LLaMA-Factory/src/llamafactory/data/loader.py:140
↓ 2 callersFunction_get_preprocessed_dataset
r""" Preprocesses the dataset, including format checking and tokenization.
LLaMA-Factory/src/llamafactory/data/loader.py:163
↓ 2 callersFunction_get_unsloth_kwargs
( config: "PretrainedConfig", model_name_or_path: str, model_args: "ModelArguments" )
LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:30
↓ 2 callersMethod_get_video_sample_frames
r""" Computes video sample frames according to fps.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:88
↓ 2 callersFunction_is_close
(batch_a: Dict[str, Any], batch_b: Dict[str, Any])
LLaMA-Factory/tests/data/test_mm_plugin.py:72
↓ 2 callersMethod_launch
(self, data: Dict["Component", Any], do_train: bool)
LLaMA-Factory/src/llamafactory/webui/runner.py:297
↓ 2 callersFunction_load_data_file
(file_path: str)
LLaMA-Factory/src/llamafactory/webui/components/data.py:59
↓ 2 callersFunction_noisy_mean_initialization
(embed_weight: "torch.Tensor", num_new_tokens: int)
LLaMA-Factory/src/llamafactory/model/model_utils/embedding.py:32
↓ 2 callersMethod_parse_eval_args
(self, data: Dict["Component", Any])
LLaMA-Factory/src/llamafactory/webui/runner.py:238
↓ 2 callersMethod_parse_example
r""" input: a dict with keys {"question", "A", "B", "C", "D", "answer"} output: a tuple of (prompt, response)
LLaMA-Factory/src/llamafactory/eval/template.py:28
↓ 2 callersMethod_parse_train_args
(self, data: Dict["Component", Any])
LLaMA-Factory/src/llamafactory/webui/runner.py:102
↓ 2 callersMethod_preprocess_image
r""" Pre-processes a single image.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:73
↓ 2 callersMethod_preview
(self, data: Dict["Component", Any], do_train: bool)
LLaMA-Factory/src/llamafactory/webui/runner.py:287
↓ 2 callersMethod_process_args
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", processor: Optional["Pro
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:73
↓ 2 callersFunction_process_request
( request: "ChatCompletionRequest", )
LLaMA-Factory/src/llamafactory/api/chat.py:70
↓ 2 callersFunction_register_eval_template
(name: str, system: str, choice: str, answer: str)
LLaMA-Factory/src/llamafactory/eval/template.py:58
↓ 2 callersMethod_regularize_images
r""" Regularizes images to avoid error. Including reading and pre-processing.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:99
↓ 2 callersMethod_reset
(self, max_steps: int = 0)
LLaMA-Factory/src/llamafactory/train/callbacks.py:210
↓ 2 callersMethod_timing
(self, cur_steps: int)
LLaMA-Factory/src/llamafactory/train/callbacks.py:217
↓ 2 callersMethodachat
r""" Asynchronously gets a list of responses of the chat model.
LLaMA-Factory/src/llamafactory/chat/chat_model.py:79
↓ 2 callersMethodaget_scores
r""" Asynchronously gets a list of scores of the reward model.
LLaMA-Factory/src/llamafactory/chat/chat_model.py:139
↓ 2 callersMethodapply
(self, **kwargs)
LLaMA-Factory/src/llamafactory/data/formatter.py:104
↓ 2 callersMethodapply
(self, **kwargs)
LLaMA-Factory/src/llamafactory/data/formatter.py:138
↓ 2 callersMethodastream_chat
r""" Asynchronously gets the response token-by-token of the chat model.
LLaMA-Factory/src/llamafactory/chat/chat_model.py:113
↓ 2 callersMethodchat
r""" Gets a list of responses of the chat model.
LLaMA-Factory/src/llamafactory/chat/chat_model.py:62
↓ 2 callersFunctionclean_cmd
r""" Removes args with NoneType or False or empty string value.
LLaMA-Factory/src/llamafactory/webui/utils.py:100
↓ 2 callersMethodclose
(self)
LLaMA-Factory/src/llamafactory/extras/logging.py:64
↓ 2 callersMethodconcatenated_forward
( self, model: "PreTrainedModel", batch: Dict[str, "torch.Tensor"] )
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:149
↓ 2 callersMethodconcatenated_forward
r""" Computes the sum log probabilities of the labels under given logits if loss_type is not IPO, ORPO or SimPO. Otherwise the averag
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:171
↓ 2 callersFunctioncount_parameters
r""" Returns the number of trainable parameters and number of all parameters in the model.
LLaMA-Factory/src/llamafactory/extras/misc.py:89
↓ 2 callersFunctioncreate_app
(chat_model: "ChatModel")
LLaMA-Factory/src/llamafactory/api/app.py:70
↓ 2 callersFunctioncreate_chat_box
( engine: "Engine", visible: bool = False )
LLaMA-Factory/src/llamafactory/webui/components/chatbot.py:32
↓ 2 callersFunctioncreate_preview_box
(dataset_dir: "gr.Textbox", dataset: "gr.Dropdown")
LLaMA-Factory/src/llamafactory/webui/components/data.py:84
↓ 2 callersFunctioncreate_ui
(demo_mode: bool = False)
LLaMA-Factory/src/llamafactory/webui/interface.py:35
↓ 2 callersFunctiondictify
(data: "BaseModel")
LLaMA-Factory/src/llamafactory/api/common.py:23
↓ 2 callersMethodencode_multiturn
r""" Returns multiple pairs of token ids representing prompts and responses respectively.
LLaMA-Factory/src/llamafactory/data/template.py:73
↓ 2 callersMethodextract_tool
r""" Extracts tool message.
LLaMA-Factory/src/llamafactory/data/template.py:86
↓ 2 callersFunctionfind_all_linear_modules
r""" Finds all available modules to apply lora or galore.
LLaMA-Factory/src/llamafactory/model/model_utils/misc.py:27
↓ 2 callersMethodforward
r""" Runs forward pass and computes the log probabilities.
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:124
↓ 2 callersFunctionget_batch_logps
r""" Computes the log probabilities of the given labels under the given logits. Returns: logps: A tensor of shape (batch_size,) conta
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:441
↓ 2 callersFunctionget_config_path
r""" Gets the path to user config.
LLaMA-Factory/src/llamafactory/webui/common.py:66
↓ 2 callersFunctionget_forbidden_modules
r""" Freezes vision tower and language model for VLM full/freeze tuning.
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:125
↓ 2 callersMethodget_scores
r""" Gets a list of scores of the reward model.
LLaMA-Factory/src/llamafactory/chat/chat_model.py:128
↓ 2 callersMethodget_selector_duplicate_reward
(self, input_string, K_candidate)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:405
↓ 2 callersFunctionget_selector_metrics
(predict_answer, golden_answer, candidate_documents)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:122
↓ 2 callersFunctionget_seqlens_in_batch
r""" Gets the sequnce lengths in the current batch. e.g. ```python # input [ [1, 1, 2, 2, 2, 0], [1, 2, 2, 3, 3,
LLaMA-Factory/src/llamafactory/model/model_utils/packing.py:60
↓ 2 callersFunctionget_tool_utils
(name: str)
LLaMA-Factory/src/llamafactory/data/tool_utils.py:177
↓ 2 callersFunctionis_fastapi_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:45
↓ 2 callersFunctionis_matplotlib_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:57
↓ 2 callersFunctionis_requests_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:65
↓ 2 callersFunctionis_transformers_version_greater_than_4_43
()
LLaMA-Factory/src/llamafactory/extras/packages.py:78
↓ 2 callersFunctionjsonify
(data: "BaseModel")
LLaMA-Factory/src/llamafactory/api/common.py:30
↓ 2 callersFunctionload_args
r""" Loads saved arguments.
LLaMA-Factory/src/llamafactory/webui/utils.py:191
↓ 2 callersFunctionload_valuehead_params
r""" Loads value head parameters from Hugging Face Hub or local disk. Returns: dict with keys `v_head.summary.weight` and `v_head.summary.bia
LLaMA-Factory/src/llamafactory/model/model_utils/valuehead.py:33
↓ 2 callersFunctionmean_pooling
(token_embeddings, mask)
get_top_k.py:13
↓ 2 callersFunctionmean_pooling
(token_embeddings, mask)
evaluate_qr_s_g.py:20
↓ 2 callersFunctionmean_pooling
(token_embeddings, mask)
flask_server.py:19
↓ 2 callersFunctionmean_pooling
(token_embeddings, mask)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:134
↓ 2 callersFunctionnormalize_answer_final
(answer)
evaluate_qr_s_g.py:50
↓ 2 callersMethodnormalize_answer_final
(self, answer)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:446
↓ 2 callersFunctionpatch_valuehead_model
()
LLaMA-Factory/src/llamafactory/train/test_utils.py:113
↓ 2 callersFunctionprepare_4d_attention_mask
r""" Expands the attention mask with indices from (batch_size, seq_len) to (batch_size, 1, seq_len, seq_len), while handles packed sequences a
LLaMA-Factory/src/llamafactory/data/collator.py:31
↓ 2 callersFunctionremove_punc
Removes punctuation from the text and replaces it with a space.
normalize_answers.py:19
↓ 2 callersFunctionremove_punc
Removes punctuation from the text and replaces it with a space.
LLaMA-Factory/src/llamafactory/train/ppo/normalize_answers.py:19
↓ 2 callersFunctionremove_punctuation
(text)
get_ppo_data_alpaca.py:34
↓ 2 callersFunctionremove_punctuation
(text)
qr_s_g_sft_data_alpaca.py:34
↓ 2 callersFunctionremove_punctuation
(text)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:77
↓ 2 callersFunctionsave_args
r""" Saves arguments.
LLaMA-Factory/src/llamafactory/webui/utils.py:202
↓ 2 callersFunctionsmooth
r""" EMA implementation according to TensorBoard.
LLaMA-Factory/src/llamafactory/extras/ploting.py:34
↓ 2 callersFunctionsort_and_classify_documents
(answer, documents, i)
get_ppo_data_alpaca.py:85
↓ 2 callersFunctionsort_and_classify_documents
(answer, documents, i)
qr_s_g_sft_data_alpaca.py:85
↓ 2 callersFunctionsort_and_classify_documents
(answer, documents)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:109
↓ 2 callersFunctionwhite_space_fix
Fixes extra whitespace in the text by collapsing multiple spaces into one.
normalize_answers.py:13
↓ 2 callersFunctionwhite_space_fix
Fixes extra whitespace in the text by collapsing multiple spaces into one.
LLaMA-Factory/src/llamafactory/train/ppo/normalize_answers.py:13
↓ 1 callersMethod__init__
(self, config: "LlavaConfig")
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:39
↓ 1 callersMethod__init__
(self, image_token: Optional[str], video_token: Optional[str])
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:55
↓ 1 callersMethod__init__
(self, manager: "Manager", demo_mode: bool = False, lazy_init: bool = True)
LLaMA-Factory/src/llamafactory/webui/chatter.py:38
↓ 1 callersFunction_apply_llama_patch
()
LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:355
↓ 1 callersFunction_configure_library_root_logger
r""" Configures root logger using a stdout stream handler with an explicit format.
LLaMA-Factory/src/llamafactory/extras/logging.py:91
↓ 1 callersFunction_create_adam_mini_optimizer
( model: "PreTrainedModel", training_args: "Seq2SeqTrainingArguments", )
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:373
↓ 1 callersFunction_create_badam_optimizer
( model: "PreTrainedModel", training_args: "Seq2SeqTrainingArguments", finetuning_args: "Finetunin
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:312
↓ 1 callersFunction_create_galore_optimizer
( model: "PreTrainedModel", training_args: "Seq2SeqTrainingArguments", finetuning_args: "Finetunin
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:188
↓ 1 callersFunction_create_loraplus_optimizer
( model: "PreTrainedModel", training_args: "Seq2SeqTrainingArguments", finetuning_args: "Finetunin
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:272
↓ 1 callersFunction_encode_feedback_example
( prompt: Sequence[Dict[str, str]], response: Sequence[Dict[str, str]], kl_response: Sequence[Dict
LLaMA-Factory/src/llamafactory/data/processors/feedback.py:34
↓ 1 callersFunction_encode_pairwise_example
( prompt: Sequence[Dict[str, str]], response: Sequence[Dict[str, str]], system: Optional[str],
LLaMA-Factory/src/llamafactory/data/processors/pairwise.py:34
↓ 1 callersFunction_encode_unsupervised_example
( prompt: Sequence[Dict[str, str]], response: Sequence[Dict[str, str]], system: Optional[str],
LLaMA-Factory/src/llamafactory/data/processors/unsupervised.py:34
↓ 1 callersMethod_finalize
(self, lang: str, finish_info: str)
LLaMA-Factory/src/llamafactory/webui/runner.py:93
↓ 1 callersFunction_get_default_logging_level
r""" Returns the default logging level.
LLaMA-Factory/src/llamafactory/extras/logging.py:69
↓ 1 callersFunction_get_library_root_logger
()
LLaMA-Factory/src/llamafactory/extras/logging.py:87
↓ 1 callersFunction_get_package_version
(name: str)
LLaMA-Factory/src/llamafactory/extras/packages.py:34
↓ 1 callersFunction_get_paligemma_token_type_ids
r""" Gets paligemma token type ids for computing loss. Returns: batch_token_type_ids: shape (batch_size, sequence_length)
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:37
↓ 1 callersFunction_get_quantization_dataset
r""" Prepares the tokenized dataset to perform AutoGPTQ. Do not use tensor output for JSON serialization.
LLaMA-Factory/src/llamafactory/model/model_utils/quantization.py:60
↓ 1 callersFunction_load_single_dataset
r""" Loads a single dataset and aligns it to the standard format.
LLaMA-Factory/src/llamafactory/data/loader.py:45
↓ 1 callersMethod_pad_tensors_to_target_len
r""" Pads the tensor to the same length as the target tensor.
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:113
↓ 1 callersFunction_parse_eval_args
(args: Optional[Dict[str, Any]] = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:156
↓ 1 callersFunction_parse_infer_args
(args: Optional[Dict[str, Any]] = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:151
↓ 1 callersFunction_parse_train_args
(args: Optional[Dict[str, Any]] = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:146
↓ 1 callersFunction_patch_for_block_diag_attn
(model_type: str)
LLaMA-Factory/src/llamafactory/model/model_utils/packing.py:116
↓ 1 callersMethod_regularize_videos
r""" Regularizes videos to avoid error. Including reading, resizing and converting.
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:120
← previousnext →101–200 of 656, ranked by callers