MCPcopy Create free account

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

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

↓ 1 callersMethodformat_ref
(titles, texts)
src/flashrag/pipeline/branching_pipeline.py:130
↓ 1 callersMethodformat_reference
(self, retrieval_result)
src/flashrag/prompt/base_prompt.py:192
↓ 1 callersMethodformat_reference
(self, retrieval_result)
src/flashrag/refiner/refiner.py:62
↓ 1 callersMethodformat_reference
(self, retrieval_result)
src/flashrag/refiner/refiner.py:115
↓ 1 callersMethodformat_reference
(self, retrieval_result)
src/flashrag/refiner/kg_refiner.py:543
↓ 1 callersMethodformat_reference
(self, doc_item)
src/flashrag/pipeline/branching_pipeline.py:28
↓ 1 callersFunctionformat_reward
(predict_str: str)
src/verl/utils/reward_score/geo3k.py:19
↓ 1 callersMethodformat_tool_call
Convert JSON function call description to Python executable code string.
src/re_call/inference/re_call.py:68
↓ 1 callersMethodformat_tool_call
Convert JSON function call description to Python executable code string.
src/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:319
↓ 1 callersMethodforward
(self, *inputs, **kwargs)
src/verl/workers/sharding_manager/megatron_vllm.py:149
↓ 1 callersMethodforward_batch
We assume: - The model takes input: (input_ids, attention_mask, position_ids). No rmpad for the input - The communication
src/verl/workers/reward_model/megatron/reward_model.py:180
↓ 1 callersMethodfrom_detached
(cls, worker_names=None, ray_cls_with_init=None)
src/verl/single_controller/ray/base.py:325
↓ 1 callersFunctionfunc_generator
(self, method_name, dispatch_fn, collect_fn, execute_fn, blocking)
src/verl/single_controller/ray/base.py:37
↓ 1 callersFunctiongather_from_labels
Gather the label from data. The value in label should be [0, vocab_size) Args: data: (..., vocab_size) label (torch.IntTensor
src/verl/utils/torch_functional.py:33
↓ 1 callersFunctiongen_cmd
r"""Generate CLI commands for previewing.
LLaMA-Factory/src/llamafactory/webui/common.py:182
↓ 1 callersFunctiongen_loss_plot
r"""Plot loss curves in LlamaBoard.
LLaMA-Factory/src/llamafactory/extras/ploting.py:49
↓ 1 callersFunctiongenerate_function
(name)
src/verl/single_controller/ray/base.py:435
↓ 1 callersFunctiongenerate_new_prompts
(prompts: DataProto, tokenizer: AutoTokenizer, ground_truth)
src/verl/workers/rollout/vllm_rollout/generate_new_prompts.py:171
↓ 1 callersFunctiongenerate_response
(curr_prompt)
src/verl/utils/reward_score/re_call.py:136
↓ 1 callersMethodgenerate_response
(self, curr_prompt)
scripts/data_construction/query_refinement.py:11
↓ 1 callersMethodgenerate_response
(self, curr_prompt)
scripts/data_construction/process_reward.py:11
↓ 1 callersMethodgenerate_tree_of_thoughts_batch
(self, initial_prompts_batch: List[str])
src/flashrag/pipeline/active_pipeline.py:1260
↓ 1 callersMethodget_all_params
Get all the parameters of the models in all pp ranks Returns: params: List[List[Dict[str, Tensor]]]: a list of parameters in a
src/verl/workers/sharding_manager/megatron_vllm.py:185
↓ 1 callersMethodget_answer_token_indices
Obtain the index of token corresponsding to the option
src/flashrag/refiner/kg_refiner.py:359
↓ 1 callersMethodget_availale_master_addr_port
(self)
src/verl/single_controller/base/worker.py:63
↓ 1 callersFunctionget_background_loop
()
src/flashrag/generator/openai_generator.py:14
↓ 1 callersFunctionget_checkpoint_tracker_filename
Tracker file rescords the latest chckpoint during training to restart from.
src/verl/utils/checkpoint/checkpoint_manager.py:144
↓ 1 callersMethodget_compressed_input
( self, loss, input_ids, attention_mask, end=200, iterat
src/flashrag/refiner/llmlingua_compressor.py:1437
↓ 1 callersFunctionget_current_memory
r"""Get the available and total memory for the current device (in Bytes).
LLaMA-Factory/src/llamafactory/extras/misc.py:181
↓ 1 callersFunctionget_custom_gradient_checkpointing_func
r"""Only applies gradient checkpointing to trainable layers.
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:80
↓ 1 callersFunctionget_custom_reward_fn
(config)
src/verl/trainer/main_ppo.py:24
↓ 1 callersFunctionget_custom_reward_fn
(config)
src/verl/trainer/main_eval.py:29
↓ 1 callersFunctionget_default_model_parallel_config
()
src/verl/utils/megatron/tensor_parallel.py:43
↓ 1 callersFunctionget_device_count
Get the number of available devices.
LLaMA-Factory/src/llamafactory/v1/accelerator/helper.py:110
↓ 1 callersFunctionget_device_flops
(unit="T")
src/verl/utils/flops_counter.py:21
↓ 1 callersMethodget_dynamic_compression_ratio
( self, context: list, target_token: float, iterative_size: int,
src/flashrag/refiner/llmlingua_compressor.py:1094
↓ 1 callersMethodget_elem_iter
r"""Return an iterator over all elements with their names.
LLaMA-Factory/src/llamafactory/webui/manager.py:41
↓ 1 callersMethodget_engine
(model_path, device='cpu', **kwargs)
src/flashrag/generator/multimodal_generator.py:370
↓ 1 callersFunctionget_eval_args
(args: dict[str, Any] | list[str] | None = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:511
↓ 1 callersMethodget_examplars_for_reasoning_chain
(self, all_query)
src/flashrag/refiner/kg_refiner.py:167
↓ 1 callersMethodget_examplars_for_triple
(self, doc_list, batch_size=64)
src/flashrag/refiner/kg_refiner.py:134
↓ 1 callersFunctionget_f1_score
(prediction: str, ground_truths: Union[str, List[str]])
src/verl/utils/reward_score/re_call.py:65
↓ 1 callersFunctionget_host_ip
()
scripts/train/get_host_ip.py:4
↓ 1 callersMethodget_id_by_elem
r"""Get id by element.
LLaMA-Factory/src/llamafactory/webui/manager.py:53
↓ 1 callersMethodget_inputs
r"""Generate model's responses given queries.
LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:338
↓ 1 callersFunctionget_kt_peft_model
r"""Get the peft model for the pretrained model with KTransformers. Used in training.
LLaMA-Factory/src/llamafactory/model/model_utils/ktransformers.py:117
↓ 1 callersFunctionget_layer_index
(layer_name: str)
src/verl/workers/sharding_manager/patch/fsdp_vllm_patch.py:36
↓ 1 callersFunctionget_local_temp_path
Return a local temp path that joins cache_dir and basename of hdfs_path Args: hdfs_path: cache_dir: Returns:
src/verl/utils/fs.py:40
↓ 1 callersFunctionget_logits_processor
r"""Get logits processor that removes NaN and Inf logits.
LLaMA-Factory/src/llamafactory/extras/misc.py:174
↓ 1 callersMethodget_megatron_global_info
(self)
src/verl/single_controller/base/megatron/worker.py:23
↓ 1 callersFunctionget_micro_data_parallel_rank
()
src/verl/workers/sharding_manager/megatron_vllm.py:485
↓ 1 callersFunctionget_model_path
r"""Get the model path according to the model name.
LLaMA-Factory/src/llamafactory/webui/common.py:103
↓ 1 callersFunctionget_model_score
(curr_prompt)
src/verl/utils/reward_score/re_call.py:192
↓ 1 callersFunctionget_model_score
(curr_prompt)
src/verl/workers/rollout/vllm_rollout/generate_new_prompts.py:112
↓ 1 callersMethodget_model_score
(self, curr_prompt)
scripts/data_construction/process_reward.py:93
↓ 1 callersFunctionget_model_size
(model: nn.Module, scale='auto')
src/verl/utils/model.py:119
↓ 1 callersFunctionget_modified_query
(curr_prompt)
src/verl/workers/rollout/vllm_rollout/generate_new_prompts.py:106
↓ 1 callersMethodget_modified_query
(self, curr_prompt)
scripts/data_construction/query_refinement.py:74
↓ 1 callersMethodget_n_gpus
Get the number of gpus in this cluster.
src/verl/trainer/ppo/ray_trainer.py:105
↓ 1 callersFunctionget_nccl_id_store_by_name
(name)
src/verl/utils/rendezvous/ray_backend.py:34
↓ 1 callersFunctionget_parallel_model_from_config
(config, megatron_config, pre_process=
src/verl/utils/model.py:248
↓ 1 callersMethodget_partitions
(self)
src/verl/utils/seqlen_balancing.py:63
↓ 1 callersFunctionget_peak_memory
r"""Get the peak memory usage (allocated, reserved) for the current device (in Bytes).
LLaMA-Factory/src/llamafactory/extras/misc.py:195
↓ 1 callersFunctionget_predefined_dispatch_fn
(dispatch_mode)
src/verl/single_controller/base/decorator.py:305
↓ 1 callersFunctionget_predefined_execute_fn
Note that here we only asks execute_all and execute_rank_zero to be implemented Leave the choice of how these two functions handle argument
src/verl/single_controller/base/decorator.py:355
↓ 1 callersMethodget_prefix_length
(self, prefix: str, text: str)
src/flashrag/refiner/llmlingua_compressor.py:1060
↓ 1 callersMethodget_projector
(self, module: "torch.nn.Module")
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:48
↓ 1 callersFunctionget_random_string
(length: int)
src/verl/single_controller/ray/base.py:30
↓ 1 callersFunctionget_rank
Get rank.
LLaMA-Factory/src/llamafactory/v1/accelerator/helper.py:80
↓ 1 callersFunctionget_ray_args
(args: dict[str, Any] | list[str] | None = None)
LLaMA-Factory/src/llamafactory/hparams/parser.py:247
↓ 1 callersFunctionget_ray_trainer
( training_function: Callable, train_loop_config: dict[str, Any], ray_args: "RayArguments", )
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:747
↓ 1 callersMethodget_reasoning_chain
(self, all_query, all_doc_triples, triple_to_doc_ids)
src/flashrag/refiner/kg_refiner.py:379
↓ 1 callersFunctionget_refiner
(config, retriever=None, generator=None)
src/flashrag/utils/utils.py:124
↓ 1 callersMethodget_rerank_scores
Return flatten list of scores for each (query,doc) pair Args: query_list: List of N queries doc_list: Nested list
src/flashrag/retriever/reranker.py:22
↓ 1 callersMethodget_rewards
r"""Compute scores using given reward model. Both inputs and outputs are put on CPU.
LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:376
↓ 1 callersFunctionget_rewards_from_server
r"""Get reward scores from the API server.
LLaMA-Factory/src/llamafactory/train/ppo/ppo_utils.py:34
↓ 1 callersMethodget_rng_state
collect rng state across data parallel ranks
src/verl/utils/checkpoint/megatron_checkpoint_manager.py:93
↓ 1 callersFunctionget_rope_index
Gets the position ids for Qwen2-VL, it should be generated before sharding the sequence. The batch dim has been removed and the input_ids s
src/verl/models/transformers/qwen2_vl.py:32
↓ 1 callersFunctionget_rope_index_func
(self: "AutoModelForCausalLMWithValueHead")
LLaMA-Factory/src/llamafactory/model/patcher.py:233
↓ 1 callersMethodget_self_information
(self, text: str)
src/flashrag/refiner/selective_context_compressor.py:101
↓ 1 callersFunctionget_spec_layer_idx_from_weight_name
(config: PretrainedConfig, weight_name: str)
src/verl/workers/sharding_manager/patch/fsdp_vllm_patch.py:26
↓ 1 callersMethodget_structured_dynamic_compression_ratio
( self, context: list, iterative_size: int, dynamic_ratio: list,
src/flashrag/refiner/llmlingua_compressor.py:1130
↓ 1 callersMethodget_supported_archs
()
src/verl/models/registry.py:52
↓ 1 callersFunctionget_swanlab_callback
r"""Get the callback for logging to SwanLab.
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:701
↓ 1 callersFunctionget_template
r"""Get the template name if the model is a chat/distill/instruct model.
LLaMA-Factory/src/llamafactory/webui/common.py:125
↓ 1 callersFunctionget_time
r"""Get current date and time.
LLaMA-Factory/src/llamafactory/webui/common.py:130
↓ 1 callersMethodget_token_num_to_request
(self, cur_step, warmup)
LLaMA-Factory/src/llamafactory/v1/utils/batching_queue.py:135
↓ 1 callersMethodget_token_num_to_request
(self)
LLaMA-Factory/src/llamafactory/v1/utils/batching_queue.py:178
↓ 1 callersFunctionget_trainer_info
r"""Get training infomation for monitor. If do_train is True: Inputs: top.lang, train.output_path Outputs: train.output_box, trai
LLaMA-Factory/src/llamafactory/webui/control.py:107
↓ 1 callersFunctionget_ulysses_sequence_parallel_rank
Get ulysses sequence parallel rank.
src/verl/utils/ulysses.py:53
↓ 1 callersFunctionget_unpad_data
r"""Prepare the indices and seqlens for flash attn varlen function. Returns: indices: indices of non-masked tokens from the flattened seq
LLaMA-Factory/src/llamafactory/model/model_utils/packing.py:81
↓ 1 callersFunctionget_unsloth_gradient_checkpointing_func
()
LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:43
↓ 1 callersFunctionget_unsloth_peft_model
r"""Get the peft model for the pretrained model with unsloth. Used in training.
LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:68
↓ 1 callersFunctionget_weight_loader
(arch: str)
src/verl/models/weight_loader_registry.py:16
↓ 1 callersFunctionget_weight_saver
(arch: str)
src/verl/models/weight_loader_registry.py:31
↓ 1 callersFunctionhandle_base
(x)
src/verl/utils/reward_score/prime_math/grader.py:138
↓ 1 callersFunctionhandle_pi
(string, pi)
src/verl/utils/reward_score/prime_math/grader.py:147
↓ 1 callersFunctionhash_object
Returns a character hash code of arbitrary Python objects.
src/flashrag/utils/utils.py:169
↓ 1 callersMethodinit_llmlingua2
( self, max_batch_size: int = 50, max_force_token: int = 100, )
src/flashrag/refiner/llmlingua_compressor.py:257
↓ 1 callersFunctioninit_logger
(log_path: str, log_name: str)
scripts/evaluation/utils.py:44
← previousnext →901–1,000 of 2,379, ranked by callers