MCPcopy Create free account

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

Functions656 in github.com/chenyiqun/MMOA-RAG

↓ 1 callersFunctionget_unpad_data
r""" Prepares the indices and seqlens for flash attn varlen function. Returns: indices: indices of non-masked tokens from the flatten
LLaMA-Factory/src/llamafactory/model/model_utils/packing.py:87
↓ 1 callersFunctionget_unsloth_gradient_checkpointing_func
()
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:41
↓ 1 callersFunctionget_unsloth_peft_model
r""" Gets the peft model for the pretrained model with unsloth. Used in training.
LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:66
↓ 1 callersFunctionget_version
()
LLaMA-Factory/setup.py:22
↓ 1 callersFunctionget_vision_feature_select_strategy
r""" Get the vision_feature_select_strategy.
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:173
↓ 1 callersFunctionget_visual
r""" Judges if the model is a vision language model.
LLaMA-Factory/src/llamafactory/webui/common.py:136
↓ 1 callersFunctiongreedy_knapsack
r""" An efficient greedy algorithm with binary search for the knapsack problem.
LLaMA-Factory/src/llamafactory/data/processors/processor_utils.py:27
↓ 1 callersFunctionhas_tokenized_data
r""" Checks if the path has a tokenized dataset.
LLaMA-Factory/src/llamafactory/extras/misc.py:171
↓ 1 callersFunctioninfer_optim_dtype
r""" Infers the optimal dtype according to the model_dtype and device compatibility.
LLaMA-Factory/src/llamafactory/extras/misc.py:178
↓ 1 callersFunctioninit_adapter
r""" Initializes the adapters. Support full-parameter, freeze and LoRA training. Note that the trainable parameters must be cast to floa
LLaMA-Factory/src/llamafactory/model/adapter.py:259
↓ 1 callersFunctionis_galore_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:49
↓ 1 callersFunctionis_gpu_or_npu_available
r""" Checks if the GPU or NPU is available.
LLaMA-Factory/src/llamafactory/extras/misc.py:190
↓ 1 callersFunctionis_pyav_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:41
↓ 1 callersFunctionis_rouge_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:69
↓ 1 callersFunctionis_starlette_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:73
↓ 1 callersFunctionis_uvicorn_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:82
↓ 1 callersFunctionis_vllm_available
()
LLaMA-Factory/src/llamafactory/extras/packages.py:86
↓ 1 callersFunctionlaunch
()
LLaMA-Factory/src/llamafactory/launcher.py:18
↓ 1 callersFunctionllama_attention_forward
( self: "LlamaAttention", hidden_states: "torch.Tensor", attention_mask: Optional["torch.Tensor"]
LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:52
↓ 1 callersFunctionload_dataset_info
r""" Loads dataset_info.json.
LLaMA-Factory/src/llamafactory/webui/common.py:163
↓ 1 callersFunctionload_mod_pretrained_model
(**init_kwargs)
LLaMA-Factory/src/llamafactory/model/model_utils/mod.py:26
↓ 1 callersFunctionload_unsloth_peft_model
r""" Loads peft model with unsloth. Used in both training and inference.
LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:82
↓ 1 callersFunctionload_unsloth_pretrained_model
r""" Optionally loads pretrained model with unsloth. Used in training.
LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:47
↓ 1 callersFunctionlower
Converts all characters in the text to lowercase.
normalize_answers.py:27
↓ 1 callersFunctionlower
Converts all characters in the text to lowercase.
LLaMA-Factory/src/llamafactory/train/ppo/normalize_answers.py:27
↓ 1 callersFunctionmain
()
LLaMA-Factory/setup.py:67
↓ 1 callersFunctionmain
()
LLaMA-Factory/src/train.py:18
↓ 1 callersFunctionmain
()
LLaMA-Factory/src/api.py:23
↓ 1 callersFunctionmain
()
LLaMA-Factory/src/webui.py:20
↓ 1 callersFunctionmain
()
LLaMA-Factory/scripts/test_toolcall.py:36
↓ 1 callersFunctionmerge_dataset
r""" Merges multiple datasets to a unified dataset.
LLaMA-Factory/src/llamafactory/data/data_utils.py:49
↓ 1 callersMethodmonitor
(self)
LLaMA-Factory/src/llamafactory/webui/runner.py:341
↓ 1 callersFunctionnormalize
(text)
LLaMA-Factory/src/llamafactory/train/ppo/normalize_text.py:105
↓ 1 callersMethododds_ratio_loss
r""" Computes ORPO's odds ratio (OR) loss for batched log probabilities of the policy model.
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:121
↓ 1 callersMethodon_log
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
LLaMA-Factory/src/llamafactory/train/callbacks.py:283
↓ 1 callersMethodon_save
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
LLaMA-Factory/src/llamafactory/train/callbacks.py:124
↓ 1 callersMethodon_step_end
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
LLaMA-Factory/src/llamafactory/train/callbacks.py:267
↓ 1 callersMethodon_train_begin
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
LLaMA-Factory/src/llamafactory/train/callbacks.py:250
↓ 1 callersMethodon_train_end
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
LLaMA-Factory/src/llamafactory/train/callbacks.py:257
↓ 1 callersFunctionpatch_config
( config: "PretrainedConfig", tokenizer: "PreTrainedTokenizer", model_args: "ModelArguments",
LLaMA-Factory/src/llamafactory/model/patcher.py:77
↓ 1 callersFunctionpatch_model
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", model_args: "ModelArguments", is
LLaMA-Factory/src/llamafactory/model/patcher.py:132
↓ 1 callersFunctionpatch_processor
( processor: "ProcessorMixin", config: "PretrainedConfig", tokenizer: "PreTrainedTokenizer", m
LLaMA-Factory/src/llamafactory/model/patcher.py:61
↓ 1 callersFunctionpatch_target_modules
r""" Freezes vision tower for VLM LoRA tuning.
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:181
↓ 1 callersFunctionpatch_tokenizer
(tokenizer: "PreTrainedTokenizer")
LLaMA-Factory/src/llamafactory/model/patcher.py:56
↓ 1 callersFunctionpatch_valuehead_model
(model: "AutoModelForCausalLMWithValueHead")
LLaMA-Factory/src/llamafactory/model/patcher.py:170
↓ 1 callersMethodppo_train
r""" Implements training loop for the PPO stage, like _inner_training_loop() in Huggingface's Trainer.
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:673
↓ 1 callersFunctionprepare_model_for_training
r""" Includes: (1) cast the layernorm in fp32 (2) make output embedding layer require grads (3) add the upcasting of the l
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:139
↓ 1 callersFunctionprepare_valuehead_model
(model: "PreTrainedModel")
LLaMA-Factory/src/llamafactory/model/model_utils/valuehead.py:62
↓ 1 callersFunctionprint_attn_implementation
(config: "PretrainedConfig")
LLaMA-Factory/src/llamafactory/model/model_utils/attention.py:76
↓ 1 callersFunctionprint_env
()
LLaMA-Factory/src/llamafactory/extras/env.py:32
↓ 1 callersFunctionregister_autoclass
(config: "PretrainedConfig", model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer")
LLaMA-Factory/src/llamafactory/model/model_utils/misc.py:87
↓ 1 callersFunctionremove_articles
Removes articles ('a', 'an', 'the') from the text.
normalize_answers.py:7
↓ 1 callersFunctionremove_articles
Removes articles ('a', 'an', 'the') from the text.
LLaMA-Factory/src/llamafactory/train/ppo/normalize_answers.py:7
↓ 1 callersFunctionresize_embedding_layer
r""" Resize token embeddings.
LLaMA-Factory/src/llamafactory/model/model_utils/embedding.py:40
↓ 1 callersFunctionrestore_layernorm
r""" Restores the layernorm parameters in the model. The model is already unwrapped (and gathered).
LLaMA-Factory/src/llamafactory/train/ppo/ppo_utils.py:82
↓ 1 callersFunctionrun_api
()
LLaMA-Factory/src/llamafactory/api/app.py:128
↓ 1 callersFunctionrun_chat
()
LLaMA-Factory/src/llamafactory/chat/chat_model.py:150
↓ 1 callersFunctionrun_dpo
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
LLaMA-Factory/src/llamafactory/train/dpo/workflow.py:35
↓ 1 callersFunctionrun_eval
()
LLaMA-Factory/src/llamafactory/eval/evaluator.py:157
↓ 1 callersFunctionrun_kto
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
LLaMA-Factory/src/llamafactory/train/kto/workflow.py:35
↓ 1 callersFunctionrun_ppo
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
LLaMA-Factory/src/llamafactory/train/ppo/workflow.py:34
↓ 1 callersFunctionrun_pt
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
LLaMA-Factory/src/llamafactory/train/pt/workflow.py:36
↓ 1 callersFunctionrun_rm
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
LLaMA-Factory/src/llamafactory/train/rm/workflow.py:35
↓ 1 callersFunctionrun_sft
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
LLaMA-Factory/src/llamafactory/train/sft/workflow.py:36
↓ 1 callersFunctionrun_web_demo
()
LLaMA-Factory/src/llamafactory/webui/interface.py:93
↓ 1 callersFunctionrun_web_ui
()
LLaMA-Factory/src/llamafactory/webui/interface.py:87
↓ 1 callersFunctionsave_cmd
r""" Saves arguments to launch training.
LLaMA-Factory/src/llamafactory/webui/utils.py:125
↓ 1 callersFunctionsave_config
(input_dir: str, output_dir: str)
LLaMA-Factory/scripts/llamafy_baichuan2.py:74
↓ 1 callersFunctionsave_config
(input_dir: str, output_dir: str, torch_dtype: str)
LLaMA-Factory/scripts/llamafy_qwen.py:111
↓ 1 callersMethodsave_predictions
r""" Saves model predictions to `output_dir`. A custom behavior that not contained in Seq2SeqTrainer.
LLaMA-Factory/src/llamafactory/train/rm/trainer.py:106
↓ 1 callersMethodsave_predictions
r""" Saves model predictions to `output_dir`. A custom behavior that not contained in Seq2SeqTrainer.
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:122
↓ 1 callersFunctionsave_weight
(input_dir: str, output_dir: str, shard_size: str, save_safetensors: bool)
LLaMA-Factory/scripts/llamafy_baichuan2.py:37
↓ 1 callersFunctionsave_weight
(input_dir: str, output_dir: str, shard_size: str, save_safetensors: bool)
LLaMA-Factory/scripts/llamafy_qwen.py:45
↓ 1 callersFunctionsearch_for_fit
r""" Finds the index of largest number that fits into the knapsack with the given capacity.
LLaMA-Factory/src/llamafactory/data/processors/processor_utils.py:19
↓ 1 callersMethodsimpo_loss
r""" Computes SimPO loss for batched log probabilities of the policy model.
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:133
↓ 1 callersFunctionskip_check_imports
r""" Avoids flash attention import error in custom model files.
LLaMA-Factory/src/llamafactory/extras/misc.py:211
↓ 1 callersFunctionsplit_dataset
r""" Splits the dataset and returns a dataset dict containing train set and validation set. Supports both map dataset and iterable dataset.
LLaMA-Factory/src/llamafactory/data/data_utils.py:76
↓ 1 callersFunctionsweeper
()
LLaMA-Factory/src/llamafactory/api/app.py:55
↓ 1 callersMethodtool_extractor
r""" Extracts all the function calls from the response message.
LLaMA-Factory/src/llamafactory/data/tool_utils.py:71
↓ 1 callersMethodtool_formatter
r""" Generates the system message describing all the available tools.
LLaMA-Factory/src/llamafactory/data/tool_utils.py:63
↓ 1 callersFunctiontry_download_model_from_ms
(model_args: "ModelArguments")
LLaMA-Factory/src/llamafactory/extras/misc.py:234
↓ 1 callersMethodzero_grad
(self, set_to_none: bool = True)
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:65
Method__call__
(self, features: Sequence[Dict[str, Any]])
LLaMA-Factory/src/llamafactory/data/collator.py:81
Method__call__
(self, features: Sequence[Dict[str, Any]])
LLaMA-Factory/src/llamafactory/data/collator.py:115
Method__call__
r""" Pads batched data to the longest sequence in the batch. We generate 2 * n examples where the first n examples represent chosen e
LLaMA-Factory/src/llamafactory/data/collator.py:129
Method__call__
(self, eval_preds: "EvalPrediction", compute_result: bool = True)
LLaMA-Factory/src/llamafactory/train/rm/metric.py:44
Method__call__
(self, eval_preds: "EvalPrediction", compute_result: bool = True)
LLaMA-Factory/src/llamafactory/train/sft/metric.py:80
Method__call__
(self, eval_preds: "EvalPrediction", compute_result: bool = True)
LLaMA-Factory/src/llamafactory/train/sft/metric.py:112
Method__call__
(self, input_ids, scores)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:190
Method__call__
r""" Pads batched data to the longest sequence in the batch. We generate 2 * n examples where the first n examples represent chosen e
LLaMA-Factory/scripts/cal_ppl.py:40
Function__init__
(self, data, **kwargs)
LLaMA-Factory/src/llamafactory/data/preprocess.py:56
Method__init__
(self, vision_hidden_size: int, text_hidden_size: int, projector_hidden_act: str)
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:73
Method__init__
( self, model_args: "ModelArguments", data_args: "DataArguments", finetuning_a
LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:50
Method__init__
r""" Initializes an inference engine.
LLaMA-Factory/src/llamafactory/chat/base_engine.py:51
Method__init__
(self, args: Optional[Dict[str, Any]] = None)
LLaMA-Factory/src/llamafactory/chat/chat_model.py:48
Method__init__
( self, model_args: "ModelArguments", data_args: "DataArguments", finetuning_a
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:46
Method__init__
(self, args: Optional[Dict[str, Any]] = None)
LLaMA-Factory/src/llamafactory/eval/evaluator.py:62
Method__init__
(self, output_dir: str)
LLaMA-Factory/src/llamafactory/extras/logging.py:38
Method__init__
(self)
LLaMA-Factory/src/llamafactory/extras/misc.py:59
Method__init__
( self, lr: float = 1e-3, optimizer_dict: Optional[Dict["torch.nn.Parameter", "torch.optim.Optimizer"]
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:57
← previousnext →301–400 of 656, ranked by callers