MCPcopy Create free account

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

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

↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
src/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:48
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
src/verl/models/llama/megatron/modeling_llama_megatron.py:48
↓ 1 callersFunction_map_each_response
(l)
src/verl/workers/rollout/sglang_rollout/sglang_rollout.py:63
↓ 1 callersFunction_materialize_futures
(*args, **kwargs)
src/verl/single_controller/base/decorator.py:384
↓ 1 callersMethod_maybe_log_val_generations
Log a table of validation samples to the configured logger (wandb or swanlab)
src/verl/trainer/ppo/ray_trainer.py:481
↓ 1 callersFunction_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mappin
src/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:21
↓ 1 callersFunction_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mappin
src/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:21
↓ 1 callersFunction_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mappin
src/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:39
↓ 1 callersFunction_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mappin
src/verl/models/mcore/saver.py:52
↓ 1 callersFunction_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mappin
src/verl/models/mcore/loader.py:22
↓ 1 callersFunction_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mappin
src/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:39
↓ 1 callersFunction_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mappin
src/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:23
↓ 1 callersFunction_megatron_calc_layer_map
Calculate the mapping of global layer_idx to local layer_idx Returns: layer_map (Dict: int -> tuple(int, int, int)): mappin
src/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:23
↓ 1 callersMethod_merge_external_config
(self)
src/flashrag/config/config.py:73
↓ 1 callersFunction_mkdir
hdfs mkdir
src/verl/utils/hdfs_io.py:75
↓ 1 callersFunction_need_video_kwargs
(template)
LLaMA-Factory/scripts/vllm_infer.py:36
↓ 1 callersFunction_noisy_mean_initialization
Initialize new token embeddings with mean + Gaussian noise. This is the default initialization method used by LlamaFactory. Args: em
LLaMA-Factory/src/llamafactory/model/model_utils/embedding.py:32
↓ 1 callersMethod_normalize_config_bsz
(self)
src/verl/trainer/fsdp_sft_trainer.py:111
↓ 1 callersMethod_optimizer_step
(self)
src/verl/workers/critic/dp_critic.py:115
↓ 1 callersMethod_optimizer_step
(self)
src/verl/workers/actor/dp_actor.py:161
↓ 1 callersFunction_parse_eval_args
(args: dict[str, Any] | list[str] | None = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:241
↓ 1 callersFunction_parse_infer_args
(args: dict[str, Any] | list[str] | None = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:235
↓ 1 callersFunction_parse_latex
Attempts to parse latex to an expression sympy can read.
src/verl/utils/reward_score/prime_math/__init__.py:74
↓ 1 callersFunction_parse_train_args
(args: dict[str, Any] | list[str] | None = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:208
↓ 1 callersFunction_parse_train_mca_args
(args: dict[str, Any] | list[str] | None = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:214
↓ 1 callersFunction_post_process_outputs
(tokenizer, output)
src/verl/workers/rollout/sglang_rollout/sglang_rollout.py:61
↓ 1 callersFunction_pre_process_inputs
(pad_token_id, prompt_token_ids: torch.Tensor)
src/verl/workers/rollout/sglang_rollout/sglang_rollout.py:52
↓ 1 callersFunction_pre_process_inputs
(pad_token_id, prompt_token_ids: torch.Tensor)
src/verl/workers/rollout/vllm_rollout/fire_vllm_rollout.py:50
↓ 1 callersFunction_pre_process_inputs
(pad_token_id, prompt_token_ids: torch.Tensor)
src/verl/workers/rollout/vllm_rollout/vllm_rollout.py:49
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds)
src/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:101
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds)
src/verl/models/llama/megatron/modeling_llama_megatron.py:101
↓ 1 callersMethod_prepare_dir
(self)
src/flashrag/config/config.py:238
↓ 1 callersMethod_prepare_model
(self)
src/flashrag/refiner/selective_context_compressor.py:71
↓ 1 callersMethod_prepare_phrase_tokenizer
(self)
src/flashrag/refiner/selective_context_compressor.py:60
↓ 1 callersMethod_read_files_and_process
(self)
src/verl/utils/dataset/multiturn_sft_dataset.py:61
↓ 1 callersMethod_read_files_and_tokenize
(self)
src/verl/utils/dataset/rm_dataset.py:85
↓ 1 callersMethod_read_files_and_tokenize
(self)
src/verl/utils/dataset/sft_dataset.py:76
↓ 1 callersFunction_remove_right_units
(string)
src/verl/utils/reward_score/prime_math/math_normalize.py:104
↓ 1 callersMethod_save_cache
(self)
src/flashrag/retriever/retriever.py:161
↓ 1 callersMethod_save_checkpoint
(self)
src/verl/trainer/ppo/ray_trainer.py:683
↓ 1 callersMethod_save_embedding
(self, all_embeddings)
src/flashrag/retriever/index_builder.py:220
↓ 1 callersMethod_save_results
(self, category_corrects: dict[str, "NDArray"], results: dict[str, dict[int, str]])
LLaMA-Factory/src/llamafactory/eval/evaluator.py:139
↓ 1 callersMethod_search
(self, query: str, num: int = None, return_score=False)
src/flashrag/retriever/retriever.py:271
↓ 1 callersMethod_set_additional_key
(self)
src/flashrag/config/config.py:121
↓ 1 callersMethod_set_seed
(self)
src/flashrag/config/config.py:256
↓ 1 callersFunction_setup_freeze_tuning
( model: "PreTrainedModel", finetuning_args: "FinetuningArguments", is_trainable: bool, cast_t
LLaMA-Factory/src/llamafactory/model/adapter.py:59
↓ 1 callersFunction_setup_full_tuning
( model: "PreTrainedModel", finetuning_args: "FinetuningArguments", is_trainable: bool, cast_t
LLaMA-Factory/src/llamafactory/model/adapter.py:40
↓ 1 callersFunction_setup_lora_tuning
( config: "PretrainedConfig", model: "PreTrainedModel", model_args: "ModelArguments", finetuni
LLaMA-Factory/src/llamafactory/model/adapter.py:143
↓ 1 callersFunction_str_to_int
(x: str)
src/verl/utils/reward_score/prime_math/__init__.py:120
↓ 1 callersMethod_stream_chat
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", processor: Optional["Pro
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:267
↓ 1 callersFunction_strip_string
(string)
src/verl/utils/reward_score/prime_math/math_normalize.py:129
↓ 1 callersMethod_switch_chat_template
(self, data: DataProto)
src/verl/workers/fsdp_workers.py:1095
↓ 1 callersFunction_sympy_parse
Parses an expression with sympy.
src/verl/utils/reward_score/prime_math/__init__.py:65
↓ 1 callersFunction_training_function
(config: dict[str, Any])
LLaMA-Factory/src/llamafactory/train/tuner.py:52
↓ 1 callersFunction_transform_params_to_json_serializable
(x, convert_list_to_dict: bool)
src/verl/utils/tracking.py:153
↓ 1 callersMethod_validate_config
(self)
src/verl/trainer/ppo/ray_trainer.py:297
↓ 1 callersMethod_validate_config
Validate config options not implemented for Megatron backend
src/verl/workers/critic/megatron_critic.py:69
↓ 1 callersMethod_validate_config
Validate config options not implemented for Megatron backend
src/verl/workers/actor/megatron_actor.py:138
↓ 1 callersFunctionabort_process
r"""Abort the processes recursively in a bottom-up way.
LLaMA-Factory/src/llamafactory/webui/common.py:46
↓ 1 callersFunctionacc_reward
(predict_str: str, ground_truth: str)
src/verl/utils/reward_score/geo3k.py:25
↓ 1 callersMethodadd_source
(self, result: Union[list, tuple], retriever)
src/flashrag/retriever/retriever.py:635
↓ 1 callersFunctionadd_z3_leaf_module
r"""Set module as a leaf module to skip partitioning in deepspeed zero3.
LLaMA-Factory/src/llamafactory/model/model_utils/moe.py:43
↓ 1 callersMethodadjust_data_index
Adjust dataset index by size and weight. Args: data_index (list[tuple[str, int]]): List of (dataset_name, sample_index).
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/loader.py:72
↓ 1 callersFunctionall_gather_tensor
(local_tensor: Tensor, group: Optional[dist.ProcessGroup] = None, async_op: bool = False)
src/verl/utils/ulysses.py:154
↓ 1 callersMethodallgather_params
allgather params of all pp ranks. Return a list of handles
src/verl/workers/sharding_manager/megatron_vllm.py:139
↓ 1 callersFunctionapply_checkpoint_wrapper
Wrap each block of the encoder to enable checkpointing.
src/flashrag/generator/fid.py:125
↓ 1 callersFunctionapply_kl_penalty
(data: DataProto, kl_ctrl: core_algos.AdaptiveKLController, kl_penalty='kl')
src/verl/trainer/ppo/ray_trainer.py:141
↓ 1 callersFunctionapply_liger_kernel
( config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool, require_logits
LLaMA-Factory/src/llamafactory/model/model_utils/liger_kernel.py:30
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
src/verl/models/llama/megatron/layers/parallel_attention.py:155
↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
src/verl/models/qwen2/megatron/layers/parallel_attention.py:304
↓ 1 callersFunctionapply_rotary_pos_emb_rmpad_flash
(q, k, cos, sin, cu_seqlens, max_seqlen)
src/verl/models/llama/megatron/layers/parallel_attention.py:360
↓ 1 callersFunctionare_equal_under_sympy
(ground_truth_normalized: str, given_normalized: str)
src/verl/utils/reward_score/prime_math/__init__.py:240
↓ 1 callersFunctionautocast_projector_dtype
r"""Cast projector output to half precision for fine-tuning quantized VLMs.
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:129
↓ 1 callersMethodbatch_execute
(self, env_list: List[str], tool_calls_list: List[List[str]])
src/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:357
↓ 1 callersMethodbatch_inference
(self, batch_input: dict[str, "torch.Tensor"])
LLaMA-Factory/src/llamafactory/eval/evaluator.py:72
↓ 1 callersMethodbco_loss
( self, chosen_logps: "torch.Tensor", rejected_logps: "torch.Tensor", referenc
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:160
↓ 1 callersMethodbeautify_context
(self, context: str)
src/flashrag/refiner/selective_context_compressor.py:239
↓ 1 callersFunctionbroadcast_params
(module)
src/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:69
↓ 1 callersFunctionbroadcast_params
(module)
src/verl/models/mcore/loader.py:67
↓ 1 callersFunctionbroadcast_params
(module)
src/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:73
↓ 1 callersMethodbuild_bm25_index_bm25s
Building BM25 index based on bm25s library.
src/flashrag/retriever/index_builder.py:190
↓ 1 callersMethodbuild_bm25_index_pyserini
Building BM25 index based on Pyserini library. Reference: https://github.com/castorini/pyserini/blob/master/docs/usage-index.md#building-a-
src/flashrag/retriever/index_builder.py:133
↓ 1 callersMethodbuild_dense_index
Obtain the representation of documents based on the embedding model(BERT-based) and construct a faiss index.
src/flashrag/retriever/index_builder.py:262
↓ 1 callersMethodbuild_index
r"""Constructing different indexes based on selective retrieval method.
src/flashrag/retriever/index_builder.py:121
↓ 1 callersFunctionbuild_memory_reference
Build the memory references. The memory buffers are built using the build_memory_buffer API. This API will allocate a weight buffer pointer to th
src/verl/utils/memory_buffer.py:116
↓ 1 callersMethodbuild_prompt_for_reasoning_chain
( self, hop, question, existing_triples, candidate_triples,
src/flashrag/refiner/kg_refiner.py:295
↓ 1 callersMethodbuild_single_doc_prompt
(self, question: str, doc_list: List[str])
src/flashrag/pipeline/branching_pipeline.py:25
↓ 1 callersMethodbuild_transform
(self, input_size)
src/flashrag/generator/multimodal_generator.py:161
↓ 1 callersFunctioncal_llm_judge_metric
(args)
scripts/evaluation/llm_judge.py:39
↓ 1 callersMethodcalculate_em
(self, prediction: str, golden_answers: list)
src/flashrag/evaluator/metrics.py:152
↓ 1 callersMethodcalculate_metric
(self, data)
src/flashrag/evaluator/metrics.py:479
↓ 1 callersMethodcalculate_sub_em
(self, prediction: str, golden_answers: list)
src/flashrag/evaluator/metrics.py:193
↓ 1 callersFunctioncall_method
(method, inputs)
src/verl/utils/reward_score/prime_code/testing_util.py:617
↓ 1 callersFunctionceildiv
(a, b)
src/verl/utils/seqlen_balancing.py:220
↓ 1 callersMethodcheck_consistency
Check the consistency of the DataProto. Mainly for batch and non_tensor_batch We expose this function as a public one so that user can call t
src/verl/protocol.py:280
↓ 1 callersFunctioncheck_dependencies
r"""Check the version of the required packages.
LLaMA-Factory/src/llamafactory/extras/misc.py:95
↓ 1 callersFunctionclean_prompt_image
(input)
src/flashrag/dataset/utils.py:96
↓ 1 callersFunctioncollect_dp_compute
(worker_group, output)
src/verl/single_controller/base/decorator.py:270
↓ 1 callersFunctioncollect_megatron_compute
Only collect the data from the tp=0 and pp=last and every dp ranks
src/verl/single_controller/base/decorator.py:103
↓ 1 callersFunctioncollect_megatron_pp_as_dp
treat pp as dp. Only collect data on tp=0
src/verl/single_controller/base/decorator.py:213
← previousnext →701–800 of 2,379, ranked by callers