MCPcopy Create free account

hub / github.com/RUC-NLPIR/SmartSearch / functions

Functions2,379 in github.com/RUC-NLPIR/SmartSearch

↓ 1 callersMethodon_train_end
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
LLaMA-Factory/src/llamafactory/train/callbacks.py:242
↓ 1 callersFunctiononly_int_check
(val)
src/verl/utils/reward_score/prime_code/testing_util.py:89
↓ 1 callersMethodorigin_batch_data_generator
Standard pass-through generator if do not use batching queue.
LLaMA-Factory/src/llamafactory/v1/core/trainer_utils/data_loader.py:131
↓ 1 callersFunctionpad_2d_list_to_length
pad a 2D list (e.g. responses, logprobs) to a 2D tensor.
src/verl/utils/torch_functional.py:231
↓ 1 callersFunctionpad_dataproto_to_divisor
Pad a DataProto to size divisible by size_divisor Args: size_divisor (int): size divisor Returns: data: (DataProto): t
src/verl/protocol.py:42
↓ 1 callersFunctionpad_to_sequence_parallel
pad the tokens such that the total length is a multiple of sp world size Args: unpad_tokens: (total_nnz, ...). Tokens after removing p
src/verl/utils/megatron/sequence_parallel.py:29
↓ 1 callersFunctionparallel_compute_score_async
(evaluation_func, completions,
src/verl/workers/reward_manager/prime.py:47
↓ 1 callersMethodparse_candidates
Parse candidates from model response
src/flashrag/pipeline/branching_pipeline.py:141
↓ 1 callersFunctionparse_image
(image)
src/flashrag/retriever/utils.py:154
↓ 1 callersMethodparse_ranking
Parse model's pair ranking result into score
src/flashrag/pipeline/branching_pipeline.py:161
↓ 1 callersMethodparse_triple_output
(self, doc_list, output_list)
src/flashrag/refiner/kg_refiner.py:183
↓ 1 callersMethodparse_validation
Parse model's validation result into score based on the paper formula
src/flashrag/pipeline/branching_pipeline.py:152
↓ 1 callersFunctionpatch_config
( config: "PretrainedConfig", tokenizer: "PreTrainedTokenizer", model_args: "ModelArguments",
LLaMA-Factory/src/llamafactory/model/patcher.py:106
↓ 1 callersFunctionpatch_model
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", model_args: "ModelArguments", is
LLaMA-Factory/src/llamafactory/model/patcher.py:168
↓ 1 callersFunctionpatch_processor
( processor: "ProcessorMixin", tokenizer: "PreTrainedTokenizer", model_args: "ModelArguments", )
LLaMA-Factory/src/llamafactory/model/patcher.py:88
↓ 1 callersFunctionpatch_qwen3_omni_moe_thinker_text_sparse_moe_block
()
LLaMA-Factory/src/llamafactory/model/patcher.py:53
↓ 1 callersFunctionpatch_target_modules
r"""Freeze vision tower for VLM LoRA tuning.
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:182
↓ 1 callersFunctionpatch_tokenizer
(tokenizer: "PreTrainedTokenizer", model_args: "ModelArguments")
LLaMA-Factory/src/llamafactory/model/patcher.py:64
↓ 1 callersFunctionpatch_valuehead_model
(model: "AutoModelForCausalLMWithValueHead")
LLaMA-Factory/src/llamafactory/model/patcher.py:216
↓ 1 callersFunctionpatch_valuehead_model
()
LLaMA-Factory/src/llamafactory/train/test_utils.py:109
↓ 1 callersFunctionpatched_ds_v3_load_weights
(model: nn.Module, weights: Iterable[Tuple[str, torch.Tensor]])
src/verl/workers/sharding_manager/patch/fsdp_vllm_patch.py:24
↓ 1 callersMethodpost_process_result
(self, query: Union[str, list], result_list, score_list, num)
src/flashrag/retriever/retriever.py:725
↓ 1 callersMethodpostprocess_long_form
(self, pred, intermediate)
src/flashrag/pipeline/active_pipeline.py:682
↓ 1 callersFunctionpostprocess_packed_seqs
Postprocess packed sequences
src/verl/models/mcore/gpt_model.py:130
↓ 1 callersMethodppo_train
r"""Implement training loop for the PPO stage, like _inner_training_loop() in Huggingface's Trainer.
LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:187
↓ 1 callersFunctionprecess_jsonKVpair
(k, v, value_type, rate)
src/flashrag/refiner/llmlingua_compressor.py:136
↓ 1 callersFunctionprepare_fa2_from_position_ids
(query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, position_ids:
src/verl/models/transformers/qwen2_vl.py:135
↓ 1 callersFunctionprepare_model_for_training
r"""Prepare the model before training. Include: (1) cast the layernorm in fp32 (2) make output embedding layer require grads (3) add
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:143
↓ 1 callersFunctionprepare_valuehead_model
(model: "PreTrainedModel")
LLaMA-Factory/src/llamafactory/model/model_utils/valuehead.py:61
↓ 1 callersMethodpreprocess_eval_data
(self, items: List)
src/flashrag/pipeline/active_pipeline.py:1241
↓ 1 callersFunctionpreprocess_packed_seqs
Preprocess packed sequences CP splits sequence into CP*2 chunks, and each GPU gets 2 chunks (GPU0 gets first and last chunks, GPU1 gets sec
src/verl/models/mcore/gpt_model.py:66
↓ 1 callersFunctionprint_attn_implementation
(config: "PretrainedConfig")
LLaMA-Factory/src/llamafactory/model/model_utils/attention.py:92
↓ 1 callersFunctionprocess_image
(image: dict, max_pixels: int = 2048 * 2048, min_pixels: int = 512 * 512)
src/verl/utils/dataset/rl_dataset.py:52
↓ 1 callersFunctionprocess_image_pil
(image)
src/flashrag/generator/utils.py:82
↓ 1 callersFunctionprocess_structured_json_data
(json_data, json_config)
src/flashrag/refiner/llmlingua_compressor.py:109
↓ 1 callersFunctionprocess_validation_metrics
Process validation metrics into a structured format. Args: data_sources: Array of data source identifiers for each sample
src/verl/trainer/ppo/metric_utils.py:205
↓ 1 callersMethodput_item
(self, item: dict[str, any])
LLaMA-Factory/src/llamafactory/v1/utils/batching_queue.py:114
↓ 1 callersMethodre_encode_by_rm_tokenizer
(self, data: DataProto)
src/verl/workers/reward_model/megatron/reward_model.py:53
↓ 1 callersFunctionread_lines
(args)
scripts/evaluation/llm_judge.py:34
↓ 1 callersFunctionrecover_left_padding
Recover left padding from result return result
src/verl/models/mcore/gpt_model.py:221
↓ 1 callersMethodregister
Decorator to register a function as a plugin. Example usage: ```python @PrintPlugin("hello").register() def print_hel
LLaMA-Factory/src/llamafactory/v1/utils/plugin.py:41
↓ 1 callersMethodregister
Register a kernel implementation. Args: kernel_type: the type of the kernel (e.g., KernelType.FLASH_ATTENTION). devic
LLaMA-Factory/src/llamafactory/v1/plugins/model_plugins/kernels/registry.py:41
↓ 1 callersFunctionregister_autoclass
(config: "PretrainedConfig", model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer")
LLaMA-Factory/src/llamafactory/model/model_utils/misc.py:80
↓ 1 callersFunctionreliability_guard
This disables various destructive functions and prevents the generated code from interfering with the test (e.g. fork bomb, killing other p
src/verl/utils/reward_score/prime_code/testing_util.py:644
↓ 1 callersFunctionremove_articles
(text)
src/flashrag/evaluator/utils.py:6
↓ 1 callersFunctionremove_articles
(text)
src/verl/utils/reward_score/re_call.py:50
↓ 1 callersFunctionremove_boxed
(s)
src/verl/utils/reward_score/math.py:49
↓ 1 callersFunctionremove_consecutive_commas
(text)
src/flashrag/refiner/llmlingua_compressor.py:194
↓ 1 callersFunctionremove_left_padding
Remove left padding from input_ids, attention_mask and position_ids return new_input_ids, new_attention_mask, new_position_ids
src/verl/models/mcore/gpt_model.py:181
↓ 1 callersFunctionremove_punc
(text)
src/flashrag/evaluator/utils.py:12
↓ 1 callersFunctionremove_punc
(text)
src/verl/utils/reward_score/re_call.py:56
↓ 1 callersFunctionremove_right_units
(string)
src/verl/utils/reward_score/math.py:140
↓ 1 callersMethodrender_message
(self, message: dict[str, str])
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/template.py:25
↓ 1 callersMethodrender_message
(self, message: dict[str, str | list[dict[str, str]]])
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/template.py:49
↓ 1 callersMethodreorder
batch_search: original result like: [[bm25-q1-d1, bm25-q1-d2],[bm25-q2-d1, bm25-q2-d2], [e5-q1-d1, e5-q1-d2], [e5-q2-d1, e5-q2-d2]]
src/flashrag/retriever/retriever.py:699
↓ 1 callersMethodreorder
Note that this operation is in-place
src/verl/protocol.py:657
↓ 1 callersFunctionreplace_added_token
(token, token_map)
src/flashrag/refiner/llmlingua_compressor.py:94
↓ 1 callersFunctionresize_embedding_layer
r"""Resize token embeddings and initialize new tokens. Args: model: The model to resize tokenizer: The tokenizer (used to get tar
LLaMA-Factory/src/llamafactory/model/model_utils/embedding.py:153
↓ 1 callersFunctionrestore_layernorm
r"""Restore the layernorm parameters in the model. The model is already unwrapped (and gathered).
LLaMA-Factory/src/llamafactory/train/ppo/ppo_utils.py:76
↓ 1 callersFunctionrewrite_search
(question, score, redundancy)
src/verl/workers/rollout/vllm_rollout/generate_new_prompts.py:66
↓ 1 callersMethodrewrite_search
(self, data)
scripts/data_construction/query_refinement.py:27
↓ 1 callersFunctionrun
(args)
scripts/evaluation/llm_judge.py:53
↓ 1 callersMethodrun
Get judgement result. Args: item: dataset item, contains question, retrieval result... Returns: judgem
src/flashrag/judger/judger.py:22
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/pipeline.py:91
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/active_pipeline.py:125
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/active_pipeline.py:146
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
src/flashrag/pipeline/active_pipeline.py:926
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=ircot_pred_parse)
src/flashrag/pipeline/active_pipeline.py:1180
↓ 1 callersMethodrun
(self, config)
src/verl/trainer/main_ppo.py:83
↓ 1 callersFunctionrun_api
()
LLaMA-Factory/src/llamafactory/api/app.py:127
↓ 1 callersMethodrun_batch
(self, items)
src/flashrag/pipeline/active_pipeline.py:1082
↓ 1 callersFunctionrun_chat
()
LLaMA-Factory/src/llamafactory/chat/chat_model.py:173
↓ 1 callersFunctionrun_dpo
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
LLaMA-Factory/src/llamafactory/train/dpo/workflow.py:35
↓ 1 callersFunctionrun_generation
(config)
src/verl/trainer/main_generation.py:44
↓ 1 callersMethodrun_item
(self, item)
src/flashrag/pipeline/active_pipeline.py:979
↓ 1 callersFunctionrun_kto
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
LLaMA-Factory/src/llamafactory/train/kto/workflow.py:35
↓ 1 callersFunctionrun_ppo
(config)
src/verl/trainer/main_ppo.py:62
↓ 1 callersFunctionrun_ppo
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
LLaMA-Factory/src/llamafactory/train/ppo/workflow.py:34
↓ 1 callersMethodrun_prefix
(self, env, func_schemas, question, prefix)
src/re_call/inference/re_call.py:189
↓ 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
(user_args)
LLaMA-Factory/src/llamafactory/v1/trainers/sft_trainer.py:27
↓ 1 callersFunctionrun_sft
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
LLaMA-Factory/src/llamafactory/train/sft/workflow.py:41
↓ 1 callersMethodrun_single_beam
(self, prompt, item_retrieval_result=None)
src/flashrag/pipeline/active_pipeline.py:520
↓ 1 callersFunctionrun_test
if test(generated_code) is not None it'll try to run the code. otherwise it'll just return an input and output pair.
src/verl/utils/reward_score/prime_code/testing_util.py:108
↓ 1 callersFunctionrun_web_demo
()
LLaMA-Factory/src/llamafactory/webui/interface.py:100
↓ 1 callersFunctionrun_web_ui
()
LLaMA-Factory/src/llamafactory/webui/interface.py:91
↓ 1 callersMethodsave_checkpoint
(self, checkpoint_path, hdfs_path=None, global_steps=0, max_ckpt_to_keep=None)
src/verl/workers/megatron_workers.py:684
↓ 1 callersFunctionsave_cmd
r"""Save CLI commands to launch training.
LLaMA-Factory/src/llamafactory/webui/common.py:202
↓ 1 callersFunctionsave_config
(input_dir: str, output_dir: str)
LLaMA-Factory/scripts/convert_ckpt/llamafy_baichuan2.py:76
↓ 1 callersFunctionsave_config
(input_dir: str, output_dir: str, torch_dtype: str)
LLaMA-Factory/scripts/convert_ckpt/llamafy_qwen.py:113
↓ 1 callersMethodsave_data
Save the evaluated data, including the raw data and the score of each data sample on each metric.
src/flashrag/evaluator/evaluator.py:75
↓ 1 callersMethodsave_metric_score
(self, result_dict, file_name="metric_score.txt")
src/flashrag/evaluator/evaluator.py:69
↓ 1 callersMethodsave_predictions
r"""Save model predictions to `output_dir`. A custom behavior that not contained in Seq2SeqTrainer.
LLaMA-Factory/src/llamafactory/train/rm/trainer.py:112
↓ 1 callersMethodsave_predictions
r"""Save model predictions to `output_dir`. A custom behavior that not contained in Seq2SeqTrainer.
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:146
↓ 1 callersMethodsave_to_json
(self, evaluated_data, output_file)
scripts/data_construction/transfer_dpo.py:75
↓ 1 callersMethodsave_to_json
(self, evaluated_data, output_file)
scripts/data_construction/detect_redundancy.py:69
↓ 1 callersMethodsave_to_json
(self, evaluated_data, output_file)
scripts/data_construction/query_refinement.py:85
↓ 1 callersMethodsave_to_json
(self, evaluated_data, output_file)
scripts/data_construction/process_reward.py:110
↓ 1 callersMethodsave_to_json
(self, evaluated_data, output_file)
scripts/data_construction/transfer_sft.py:27
← previousnext →1,101–1,200 of 2,379, ranked by callers