MCPcopy Create free account

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

Functions656 in github.com/chenyiqun/MMOA-RAG

Method__init__
(self, processor: "ProcessorMixin")
LLaMA-Factory/src/llamafactory/train/callbacks.py:120
Method__init__
(self)
LLaMA-Factory/src/llamafactory/train/callbacks.py:188
Method__init__
( self, finetuning_args: "FinetuningArguments", processor: Optional["ProcessorMixin"], **kwargs )
LLaMA-Factory/src/llamafactory/train/rm/trainer.py:47
Method__init__
( self, finetuning_args: "FinetuningArguments", processor: Optional["ProcessorMixin"], **kwargs )
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:50
Method__init__
(self, allowed_token_ids)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:187
Method__init__
( self, model_args: "ModelArguments", training_args: "Seq2SeqTrainingArguments",
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:204
Method__init__
( self, finetuning_args: "FinetuningArguments", processor: Optional["ProcessorMixin"], **kwargs )
LLaMA-Factory/src/llamafactory/train/pt/trainer.py:41
Method__init__
( self, model: Union["PreTrainedModel", torch.nn.Module], ref_model: Optional[Union["P
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:43
Method__init__
( self, model: Union["PreTrainedModel", torch.nn.Module], ref_model: Optional[Union["P
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:43
Method__init__
(self, manager: "Manager", demo_mode: bool = False)
LLaMA-Factory/src/llamafactory/webui/runner.py:41
Method__init__
(self, demo_mode: bool = False, pure_chat: bool = False)
LLaMA-Factory/src/llamafactory/webui/engine.py:30
Method__init__
(self)
LLaMA-Factory/src/llamafactory/webui/manager.py:23
Method__init__
(self, **kwargs)
LLaMA-Factory/evaluation/ceval/ceval.py:97
Method__init__
(self, **kwargs)
LLaMA-Factory/evaluation/mmlu/mmlu.py:102
Method__init__
(self, **kwargs)
LLaMA-Factory/evaluation/cmmlu/cmmlu.py:112
Method__post_init__
(self)
LLaMA-Factory/src/llamafactory/data/formatter.py:54
Method__post_init__
(self)
LLaMA-Factory/src/llamafactory/data/formatter.py:70
Method__post_init__
(self)
LLaMA-Factory/src/llamafactory/data/formatter.py:100
Method__post_init__
(self)
LLaMA-Factory/src/llamafactory/data/formatter.py:134
Method__post_init__
(self)
LLaMA-Factory/src/llamafactory/hparams/finetuning_args.py:350
Method__post_init__
(self)
LLaMA-Factory/src/llamafactory/hparams/model_args.py:295
Method__post_init__
(self)
LLaMA-Factory/src/llamafactory/hparams/data_args.py:117
Method__post_init__
(self)
LLaMA-Factory/src/llamafactory/hparams/evaluation_args.py:60
Method__post_init__
(self)
LLaMA-Factory/src/llamafactory/train/rm/metric.py:41
Method__post_init__
(self)
LLaMA-Factory/src/llamafactory/train/sft/metric.py:77
Method__post_init__
(self)
LLaMA-Factory/src/llamafactory/train/sft/metric.py:109
Method__repr__
(self)
LLaMA-Factory/src/llamafactory/data/parser.py:67
Method_chat
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", processor: Optional["Pro
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:176
Function_convert_images
r""" Optionally concatenates image path to dataset dir when loading from local disk.
LLaMA-Factory/src/llamafactory/data/aligner.py:35
Function_convert_videos
r""" Optionally concatenates video path to dataset dir when loading from local disk.
LLaMA-Factory/src/llamafactory/data/aligner.py:55
Method_encode
r""" Encodes formatted inputs to pairs of token ids. Turn 0: prefix + system + query resp Turn t: sep + query
LLaMA-Factory/src/llamafactory/data/template.py:158
Function_fp32_forward_post_hook
( module: "torch.nn.Module", args: Tuple["torch.Tensor"], output: "torch.Tensor" )
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:133
Method_generate_examples
(self, filepath)
LLaMA-Factory/evaluation/ceval/ceval.py:154
Method_generate_examples
(self, filepath)
LLaMA-Factory/evaluation/mmlu/mmlu.py:157
Method_generate_examples
(self, filepath)
LLaMA-Factory/evaluation/cmmlu/cmmlu.py:161
Method_get_scores
( model: "PreTrainedModelWrapper", tokenizer: "PreTrainedTokenizer", batch_input: List
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:243
Method_get_train_sampler
r""" Replaces the sequential sampler of KTO Trainer created by trl with the random sampler.
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:117
Method_get_video_sample_frames
(self, video_stream: "Stream", **kwargs)
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:470
Function_gradient_checkpointing_enable
r""" Activates gradient checkpointing for the current model. Modification of the original method to enable gradient checkpointing for block-w
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:101
Method_info
(self)
LLaMA-Factory/evaluation/ceval/ceval.py:109
Method_info
(self)
LLaMA-Factory/evaluation/mmlu/mmlu.py:114
Method_info
(self)
LLaMA-Factory/evaluation/cmmlu/cmmlu.py:124
Function_mm_projector_forward_post_hook
( module: "torch.nn.Module", args: Tuple["torch.Tensor"], output: "torch.Tensor" )
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:88
Function_mp_fn
(index)
LLaMA-Factory/src/train.py:22
Method_preprocess_image
(self, image: "ImageObject", **kwargs)
LLaMA-Factory/src/llamafactory/data/mm_plugin.py:453
Method_set_abort
(self, signum, frame)
LLaMA-Factory/src/llamafactory/train/callbacks.py:207
Method_split_generators
(self, dl_manager)
LLaMA-Factory/evaluation/ceval/ceval.py:130
Method_split_generators
(self, dl_manager)
LLaMA-Factory/evaluation/mmlu/mmlu.py:133
Method_split_generators
(self, dl_manager)
LLaMA-Factory/evaluation/cmmlu/cmmlu.py:143
Function_start_background_loop
(loop: "asyncio.AbstractEventLoop")
LLaMA-Factory/src/llamafactory/chat/chat_model.py:34
Method_write_log
(self, log_entry: str)
LLaMA-Factory/src/llamafactory/extras/logging.py:53
Method_write_log
(self, output_dir: str, logs: Dict[str, Any])
LLaMA-Factory/src/llamafactory/train/callbacks.py:226
Methodbackward
(ctx: "torch.autograd.Function", grad_output: "torch.Tensor")
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:66
Methodbatched_forward_pass
r""" Calculates model outputs in multiple batches. Subclass and override to inject custom behavior.
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:1180
Functionblock_expansion
r""" Performs block expansion for LLaMA, Mistral, Qwen1.5 or Yi models. Usage: python llama_pro.py --model_name_or_path meta-llama/Llama-2-7b-
LLaMA-Factory/scripts/llama_pro.py:46
Functioncalculate_flops
r""" Calculates the flops of pre-trained models. Usage: python cal_flops.py --model_name_or_path path_to_model --batch_size 1 --seq_length 512
LLaMA-Factory/scripts/cal_flops.py:27
Functioncalculate_gpa
(grades: Sequence[str], hours: Sequence[int])
LLaMA-Factory/scripts/test_toolcall.py:27
Functioncalculate_lr
r""" Calculates the optimal learning rate for 7B/13B models using LLaMA's hyper-parameters. Usage: python cal_lr.py --model_name_or_path p
LLaMA-Factory/scripts/cal_lr.py:38
Functioncalculate_mfu
r""" Calculates MFU for given model and hyper-params. Usage: python cal_mfu.py --model_name_or_path path_to_model --batch_size 1 --seq_length
LLaMA-Factory/scripts/cal_mfu.py:106
Functioncalculate_ppl
r""" Calculates the ppl on the dataset of the pre-trained models. Usage: python cal_ppl.py --model_name_or_path path_to_model --dataset alpaca
LLaMA-Factory/scripts/cal_ppl.py:58
Functioncan_preview
(dataset_dir: str, dataset: list)
LLaMA-Factory/src/llamafactory/webui/components/data.py:42
Functioncan_quantize
r""" Judges if the quantization is available in this finetuning type.
LLaMA-Factory/src/llamafactory/webui/utils.py:52
Functioncan_quantize
(checkpoint_path: Union[str, List[str]])
LLaMA-Factory/src/llamafactory/webui/components/export.py:35
Functioncan_quantize_to
r""" Returns the available quantization bits.
LLaMA-Factory/src/llamafactory/webui/utils.py:62
Methodchange_lang
(self, lang: str)
LLaMA-Factory/src/llamafactory/webui/engine.py:76
Functionchange_stage
r""" Modifys states after changing the training stage.
LLaMA-Factory/src/llamafactory/webui/utils.py:76
Methodchat
( self, messages: Sequence[Dict[str, str]], system: Optional[str] = None, tool
LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:180
Methodchat
r""" Gets a list of responses of the chat model.
LLaMA-Factory/src/llamafactory/chat/base_engine.py:64
Methodchat
( self, messages: Sequence[Dict[str, str]], system: Optional[str] = None, tool
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:264
Functioncheck_json_schema
r""" Checks if the json schema is valid.
LLaMA-Factory/src/llamafactory/webui/utils.py:83
Methodcheck_output_dir
(self, lang: str, model_name: str, finetuning_type: str, output_dir: str)
LLaMA-Factory/src/llamafactory/webui/runner.py:422
Methodcompute_loss
r""" Computes pairwise loss. The first n examples are chosen and the last n examples are rejected. Subclass and override to inject cu
LLaMA-Factory/src/llamafactory/train/rm/trainer.py:81
Functionconvert_alpaca
r""" Converts alpaca format dataset to the standard format.
LLaMA-Factory/src/llamafactory/data/aligner.py:75
Functionconvert_sharegpt
r""" Converts sharegpt format dataset to the standard format.
LLaMA-Factory/src/llamafactory/data/aligner.py:131
Methodconvert_to_int_list
(self, input_string)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:370
Functioncreate_chat_completion
(request: ChatCompletionRequest)
LLaMA-Factory/src/llamafactory/api/app.py:103
Methodcreate_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/rm/trainer.py:68
Methodcreate_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:69
Methodcreate_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/pt/trainer.py:60
Methodcreate_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:104
Methodcreate_optimizer
(self)
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:109
Functioncreate_or_update_model_card
(self: "AutoModelForCausalLMWithValueHead", output_dir: str)
LLaMA-Factory/src/llamafactory/model/patcher.py:183
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/rm/trainer.py:74
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:75
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/pt/trainer.py:66
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:110
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:115
Functioncreate_score_evaluation
(request: ScoreEvaluationRequest)
LLaMA-Factory/src/llamafactory/api/app.py:119
Functioncustom_gradient_checkpointing_func
(func: Callable, *args: Union["torch.Tensor", Any], **kwargs)
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:85
Methodemit
(self, record)
LLaMA-Factory/src/llamafactory/extras/logging.py:57
Functioneval_logit_processor
r""" Computes the token with the largest likelihood to reduce memory footprint.
LLaMA-Factory/src/llamafactory/train/sft/metric.py:47
Functionfix_valuehead_cpu_loading
()
LLaMA-Factory/tests/model/test_lora.py:61
Functionfix_valuehead_cpu_loading
()
LLaMA-Factory/tests/model/test_base.py:39
Methodforward
( ctx: "torch.autograd.Function", forward_function: "torch.Module", hidden
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:49
Methodforward
(self, image_features: "torch.Tensor")
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:52
Methodget_batch_loss_metrics
r""" Computes the DPO loss and other metrics for the given batch of inputs for train or test.
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:186
Methodget_batch_loss_metrics
r""" Computes the DPO loss and other metrics for the given batch of inputs for train or test.
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:216
Functionget_embeddings
(sentences, retriever_model, retriever_tokenizer)
LLaMA-Factory/src/llamafactory/train/ppo/trainer_qr_s_g.py:140
Methodget_function_slots
()
LLaMA-Factory/src/llamafactory/data/tool_utils.py:81
Methodget_function_slots
()
LLaMA-Factory/src/llamafactory/data/tool_utils.py:142
← previousnext →401–500 of 656, ranked by callers