MCPcopy Create free account

hub / github.com/Mwie1024/Extra-CoT / functions

Functions1,850 in github.com/Mwie1024/Extra-CoT

Functionget_preview
r"""Get the preview samples from the dataset.
llamafactory/src/llamafactory/webui/components/data.py:70
Methodget_scores
( self, batch_input: list[str], **input_kwargs, )
llamafactory/src/llamafactory/chat/vllm_engine.py:258
Methodget_scores
r"""Get a list of scores of the reward model.
llamafactory/src/llamafactory/chat/base_engine.py:92
Methodget_scores
( self, batch_input: list[str], **input_kwargs, )
llamafactory/src/llamafactory/chat/sglang_engine.py:276
Methodget_scores
( self, batch_input: list[str], **input_kwargs, )
llamafactory/src/llamafactory/chat/hf_engine.py:402
Functionget_sort_key
提取id中的数字部分用于排序
src/data/compressor/dataset_preparation/camel/camel_filter/merge_camel.py:55
Functionin_any_span
(x: int, spans: List[Tuple[int,int]])
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/math_tokenizer_no_space.py:62
Methodin_spans
(pos, spans)
src/data/compressor/dataset_preparation/camel/camel_chunk_cot_and_answer/gpt_chunk_camel_data.py:626
Methodin_spans
(pos, spans)
src/data/compressor/dataset_preparation/camel/camel_chunk_only_cot/gpt_chunk_camel_data.py:626
Functioninfo_rank0
(self: "logging.Logger", *args, **kwargs)
llamafactory/src/llamafactory/extras/logging.py:141
Functionlength_cdf
r"""Calculate the distribution of the input lengths in the dataset. Usage: export CUDA_VISIBLE_DEVICES=0 python length_cdf.py --model_name_or
llamafactory/scripts/stat_utils/length_cdf.py:25
Functionlifespan
(app: "FastAPI", chat_model: "ChatModel")
llamafactory/src/llamafactory/api/app.py:61
Functionlist_checkpoints
r"""List all available checkpoints. Inputs: top.model_name, top.finetuning_type Outputs: top.checkpoint_path
llamafactory/src/llamafactory/webui/control.py:160
Functionlist_config_paths
r"""List all the saved configuration files. Inputs: train.current_time Outputs: train.config_path
llamafactory/src/llamafactory/webui/control.py:182
Functionlist_datasets
r"""List all available datasets in the dataset dir for the training stage. Inputs: *.dataset_dir, *.training_stage Outputs: *.dataset
llamafactory/src/llamafactory/webui/control.py:197
Functionlist_models
()
llamafactory/src/llamafactory/api/app.py:92
Functionlist_output_dirs
r"""List all the directories that can resume from. Inputs: top.model_name, top.finetuning_type, train.current_time Outputs: train.output_dir
llamafactory/src/llamafactory/webui/control.py:209
Functionllama_flash_attention_2_forward
( self: "LlamaFlashAttention2", hidden_states: "torch.Tensor", attention_mask: Optional["torch.Ten
llamafactory/src/llamafactory/model/model_utils/longlora.py:141
Functionllama_sdpa_attention_forward
( self: "LlamaSdpaAttention", hidden_states: "torch.Tensor", attention_mask: Optional["torch.Tenso
llamafactory/src/llamafactory/model/model_utils/longlora.py:249
Functionllamafy_baichuan2
r"""Convert the Baichuan2-7B model in the same format as LLaMA2-7B. Usage: python llamafy_baichuan2.py --input_dir input --output_dir output
llamafactory/scripts/convert_ckpt/llamafy_baichuan2.py:91
Functionllamafy_qwen
r"""Convert the Qwen models in the same format as LLaMA2. Usage: python llamafy_qwen.py --input_dir input --output_dir output Converted model
llamafactory/scripts/convert_ckpt/llamafy_qwen.py:144
Functionload_all_data
(input_dir="")
src/data/compressor_longformer/validate/longformer_pipeline/build_llamafactory_input_numeric.py:23
Methodload_args
r"""Load the training configuration from config path.
llamafactory/src/llamafactory/webui/runner.py:478
Methodload_model
(self, data)
llamafactory/src/llamafactory/webui/chatter.py:101
Methodloaded
(self)
llamafactory/src/llamafactory/webui/chatter.py:98
Methodlog
r"""Log `logs` on the various objects watching training, including stored metrics.
llamafactory/src/llamafactory/train/kto/trainer.py:263
Methodlog
r"""Log `logs` on the various objects watching training, including stored metrics.
llamafactory/src/llamafactory/train/dpo/trainer.py:314
Functionmain
(filename: str)
llamafactory/scripts/eval_bleu_rouge.py:61
Functionmajority
(L,R)
src/data/compressor/dataset_preparation/label_training_data/label_training_data.py:134
Functionmerge_lora
Load the original model, merge the LoRA weights. For a specified submodule, and save the final merged model along with its configurations. A
llamafactory/scripts/qwen_omni_merge.py:39
Functionnext_page
(page_index: int, total_num: int)
llamafactory/src/llamafactory/webui/components/data.py:38
Functionnormalize_text
Simple normalization: trim, collapse whitespace, remove full-width spaces.
src/data/sft/longformer_pipeline/query_result/Compression/RL_actual_ratio/sample_recat_10k_auto_data.py:32
Methodon_evaluate
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
llamafactory/src/llamafactory/train/callbacks.py:261
Methodon_init_end
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
llamafactory/src/llamafactory/train/callbacks.py:228
Methodon_predict
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
llamafactory/src/llamafactory/train/callbacks.py:266
Methodon_prediction_step
( self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs )
llamafactory/src/llamafactory/train/callbacks.py:312
Methodon_save
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
llamafactory/src/llamafactory/train/callbacks.py:105
Methodon_substep_end
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
llamafactory/src/llamafactory/train/callbacks.py:249
Methodon_train_begin
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
llamafactory/src/llamafactory/train/callbacks.py:135
Methodon_train_begin
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
llamafactory/src/llamafactory/train/callbacks.py:359
Methodon_train_end
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
llamafactory/src/llamafactory/train/callbacks.py:126
Methodon_train_end
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
llamafactory/src/llamafactory/train/callbacks.py:147
Functionoptimizer_hook
(param: "torch.nn.Parameter")
llamafactory/src/llamafactory/train/trainer_utils.py:259
Functionpost_init
(self: "AutoModelForCausalLMWithValueHead", state_dict: dict[str, "torch.Tensor"])
llamafactory/src/llamafactory/train/test_utils.py:114
Methodprediction_step
r"""Remove the prompt part in the generated tokens. Subclass and override to inject custom behavior.
llamafactory/src/llamafactory/train/sft/trainer.py:111
Methodpreprocess_dataset
(self, examples: dict[str, list[Any]])
llamafactory/src/llamafactory/data/processor/pretrain.py:27
Methodpreprocess_dataset
(self, examples: dict[str, list[Any]])
llamafactory/src/llamafactory/data/processor/supervised.py:88
Methodpreprocess_dataset
(self, examples: dict[str, list[Any]])
llamafactory/src/llamafactory/data/processor/supervised.py:127
Methodpreprocess_dataset
r"""Build model inputs from the examples.
llamafactory/src/llamafactory/data/processor/processor_utils.py:38
Methodpreprocess_dataset
(self, examples: dict[str, list[Any]])
llamafactory/src/llamafactory/data/processor/pairwise.py:71
Methodpreprocess_dataset
(self, examples: dict[str, list[Any]])
llamafactory/src/llamafactory/data/processor/feedback.py:85
Methodpreprocess_dataset
(self, examples: dict[str, list[Any]])
llamafactory/src/llamafactory/data/processor/unsupervised.py:59
Functionprev_page
(page_index: int)
llamafactory/src/llamafactory/webui/components/data.py:34
Methodpreview_eval
(self, data)
llamafactory/src/llamafactory/webui/runner.py:395
Methodpreview_train
(self, data)
llamafactory/src/llamafactory/webui/runner.py:392
Methodprint_data_example
(self, example: dict[str, list[int]])
llamafactory/src/llamafactory/data/processor/pretrain.py:55
Methodprint_data_example
(self, example: dict[str, list[int]])
llamafactory/src/llamafactory/data/processor/supervised.py:117
Methodprint_data_example
(self, example: dict[str, list[int]])
llamafactory/src/llamafactory/data/processor/pairwise.py:102
Methodprint_data_example
(self, example: dict[str, list[int]])
llamafactory/src/llamafactory/data/processor/feedback.py:124
Methodprint_data_example
(self, example: dict[str, list[int]])
llamafactory/src/llamafactory/data/processor/unsupervised.py:87
Functionprint_env
()
llamafactory/src/llamafactory/extras/env.py:33
Functionproc_one_sample
( sample: dict, output_path: str, model: str, max_tokens: int, temperature: float, for
src/data/compressor/dataset_preparation/API/gpt-4o.py:447
Functionproc_one_sample
( sample: dict, output_path: str, model: str, max_tokens: int, temperature: float, for
src/data/compressor/dataset_preparation/API/gpt4o_ranges_labeler.py:499
Functionprocess_dataset
批量处理数据集
src/data/compressor/dataset_preparation/smart_chunker.py:123
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:452
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:511
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:629
Methodprocess_messages
(self, messages, images, videos, audios, processor)
llamafactory/src/llamafactory/data/mm_plugin.py:695
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:727
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:794
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:830
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:870
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:995
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:1157
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:1212
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:1277
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:1346
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:1487
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:1569
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:1714
Methodprocess_messages
( self, messages: list[dict[str, str]], images: list["ImageInput"], videos: li
llamafactory/src/llamafactory/data/mm_plugin.py:1825
Methodprocess_token_ids
( self, input_ids: list[int], labels: Optional[list[int]], images: list["Image
llamafactory/src/llamafactory/data/mm_plugin.py:1235
Functionquantize_loftq
r"""Initialize LoRA weights with LoRA-fine-tuning-aware Quantization (LoftQ). Usage: python loftq_init.py --model_name_or_path path_to_model --ou
llamafactory/scripts/loftq_init.py:30
Functionquantize_pissa
r"""Initialize LoRA weights with Principal Singular values and Singular vectors Adaptation (PiSSA). Usage: python pissa_init.py --model_name_or_p
llamafactory/scripts/pissa_init.py:30
Functionregister_dataset_converter
r"""Register a new dataset converter.
llamafactory/src/llamafactory/data/converter.py:377
Functionregister_mm_plugin
r"""Register a multimodal plugin.
llamafactory/src/llamafactory/data/mm_plugin.py:1897
Functionremove_handler
r"""Remove a handler to the root logger.
llamafactory/src/llamafactory/extras/logging.py:135
Methodresume
r"""Get the initial value of gradio components and restores training status if necessary.
llamafactory/src/llamafactory/webui/engine.py:49
Functionrun_api
()
llamafactory/src/llamafactory/api/app.py:127
Functionrun_chat
()
llamafactory/src/llamafactory/chat/chat_model.py:147
Functionrun_eval
()
llamafactory/src/llamafactory/eval/evaluator.py:157
Methodrun_eval
(self, data)
llamafactory/src/llamafactory/webui/runner.py:401
Methodrun_train
(self, data)
llamafactory/src/llamafactory/webui/runner.py:398
Functionrun_web_demo
()
llamafactory/src/llamafactory/webui/interface.py:100
Functionrun_web_ui
()
llamafactory/src/llamafactory/webui/interface.py:91
Methodsave_args
r"""Save the training configuration to config path.
llamafactory/src/llamafactory/webui/runner.py:462
Functionsave_config
r"""Save user config.
llamafactory/src/llamafactory/webui/common.py:83
Functionsave_full_model
Load the saved thinker module and the original model, replace the thinker in the original model. Then save the complete model along with its toke
llamafactory/scripts/qwen_omni_merge.py:94
Functionsave_model
( lang: str, model_name: str, model_path: str, finetuning_type: str, checkpoint_path: Unio
llamafactory/src/llamafactory/webui/components/export.py:47
Functionscheduler_hook
(param: "torch.nn.Parameter")
llamafactory/src/llamafactory/train/trainer_utils.py:580
← previousnext →1,601–1,700 of 1,850, ranked by callers