MCPcopy Create free account

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

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

↓ 2 callersFunctionload_fsdp_optimizer
(optimizer, device_id)
src/verl/utils/fsdp_utils.py:164
↓ 2 callersFunctionload_image_from_source
(image_path)
src/flashrag/generator/utils.py:99
↓ 2 callersMethodload_json
(self, input_file)
scripts/data_construction/transfer_dpo.py:79
↓ 2 callersFunctionload_model
(model_path: str, use_fp16: bool = False)
src/flashrag/retriever/utils.py:54
↓ 2 callersFunctionload_valuehead_params
r"""Load value head parameters from Hugging Face Hub or local disk. Returns: dict with keys `v_head.summary.weight` and `v_head.summary.bias`.
LLaMA-Factory/src/llamafactory/model/model_utils/valuehead.py:33
↓ 2 callersMethodlocal_mkdir
(path)
src/verl/utils/checkpoint/checkpoint_manager.py:86
↓ 2 callersMethodlog
(self, data, step)
src/verl/utils/logger/aggregate_logger.py:40
↓ 2 callersMethodmake_iterator
r"""Make an iterator from the DataProto. This is built upon that TensorDict can be used as a normal Pytorch dataset. See https://pytorch.org/
src/verl/protocol.py:561
↓ 2 callersMethodmake_minibatch_iterator
Make minibatch iterator for updating the actor Args: data (DataProto): a DataProto containing keys ``input_
src/verl/workers/actor/megatron_actor.py:209
↓ 2 callersFunctionmakedirs
r"""Works like os.makedirs() but supports hdfs. Super-mkdir; create a leaf directory and all intermediate ones. Works like mkdir, except
src/verl/utils/hdfs_io.py:50
↓ 2 callersFunctionmath_equal
Exact match of math if and only if: 1. numerical equal: both can convert to float and are equal 2. symbolic equal: both can convert to
src/verl/utils/reward_score/prime_math/grader.py:174
↓ 2 callersFunctionmd5_encode
(path: str)
src/verl/utils/fs.py:36
↓ 2 callersFunctionmerge_dataset
(dataset_split: dict, split_symbol: list)
src/flashrag/dataset/utils.py:46
↓ 2 callersMethodmulti_gpu_encode
(self, query_list: Union[List[str], str], batch_size=64, is_query=True)
src/flashrag/retriever/encoder.py:79
↓ 2 callersFunctionnormalize
(answer, pi)
src/verl/utils/reward_score/prime_math/grader.py:119
↓ 2 callersFunctionnormalize_answer
(s)
src/verl/utils/reward_score/re_call.py:49
↓ 2 callersMethodoffload_params_to_cpu
(self)
src/verl/workers/reward_model/megatron/reward_model.py:254
↓ 2 callersFunctionpad_sequence_to_length
pad a 2D tensors (e.g. responses, logprobs) in the last dim to max_seq_length. input shape: [bs, seq_length] output shape: [bs, max_seq_l
src/verl/workers/rollout/vllm_rollout/generate_new_prompts.py:144
↓ 2 callersFunctionpooling
(pooler_output, last_hidden_state, attention_mask=None, pooling_method="mean")
src/flashrag/retriever/utils.py:66
↓ 2 callersFunctionprint_env
()
LLaMA-Factory/src/llamafactory/extras/env.py:25
↓ 2 callersFunctionprocess_message
(raw_messages: list[OpenaiMessage])
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/converter.py:166
↓ 2 callersFunctionread_args
r"""Get arguments from the command line or a config file.
LLaMA-Factory/src/llamafactory/hparams/parser.py:68
↓ 2 callersFunctionreduce_metrics
(metrics: Dict[str, List[Any]])
src/verl/trainer/ppo/metric_utils.py:26
↓ 2 callersFunctionremove_boxed
(s)
src/verl/utils/reward_score/re_call.py:7
↓ 2 callersFunctionremove_boxed
Remove the LaTeX boxed command from a string. Args: s: String with format "\\boxed{content}" Returns: The
src/verl/utils/reward_score/math_dapo.py:51
↓ 2 callersMethodremove_previous_save_local_path
(self, path)
src/verl/utils/checkpoint/checkpoint_manager.py:75
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen,
src/verl/models/qwen2/megatron/layers/parallel_attention.py:131
↓ 2 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen,
src/verl/models/llama/megatron/layers/parallel_attention.py:163
↓ 2 callersFunctionreplace_model
r"""Replace the default/reward modules in the model. The model is already unwrapped.
LLaMA-Factory/src/llamafactory/train/ppo/ppo_utils.py:43
↓ 2 callersFunctionresolve_tokens
Resolve between max_tokens and max_new_tokens values based on priority. Returns the resolved token value or None if no valid value
src/flashrag/generator/utils.py:22
↓ 2 callersMethodrrf_merge
Perform Reciprocal Rank Fusion (RRF) on retrieval results. Args: results (list of list of dict): Retrieval results f
src/flashrag/retriever/retriever.py:780
↓ 2 callersMethodrun
r"""Get refining result. Args: item: dataset item, contains question, retrieval result... Returns: str
src/flashrag/refiner/refiner.py:19
↓ 2 callersFunctionsave_args
r"""Save the training configuration to config path.
LLaMA-Factory/src/llamafactory/webui/common.py:163
↓ 2 callersMethodsave_checkpoint
(self, local_path, hdfs_path=None, global_step=0, max_ckpt_to_keep=None)
src/verl/workers/fsdp_workers.py:891
↓ 2 callersMethodselect
Select dataset samples. Args: data_index (list[tuple[str, int]]): List of (dataset_name, sample_index). index (Union[
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/loader.py:97
↓ 2 callersFunctionset_ulysses_sequence_parallel_group
Set ulysses sequence parallel process group.
src/verl/utils/ulysses.py:29
↓ 2 callersFunctionslice_input_tensor
(x: Tensor, dim: int, padding: bool = True, group: ProcessGroup = None)
src/verl/utils/ulysses.py:116
↓ 2 callersFunctionsmooth
r"""EMA implementation according to TensorBoard.
LLaMA-Factory/src/llamafactory/extras/ploting.py:34
↓ 2 callersMethodspawn
spawn to a dictionary of worker groups, each with a subset of method with prefix.
src/verl/single_controller/ray/base.py:332
↓ 2 callersFunctionsplit_dataset
(dataset: Dataset, split_symbol: list)
src/flashrag/dataset/utils.py:34
↓ 2 callersFunctionsplit_tuple
Split the elements in a tuple/interval, while handling well-formatted commas in large numbers
src/verl/utils/reward_score/prime_math/__init__.py:254
↓ 2 callersFunctionstrip_string
(string)
src/verl/utils/reward_score/math.py:165
↓ 2 callersFunctionstripped_string_compare
(s1, s2)
src/verl/utils/reward_score/prime_code/testing_util.py:611
↓ 2 callersMethodto_dict
Convert all information within the data sample into a dict. Information generated during the inference will be saved into output field.
src/flashrag/dataset/dataset.py:53
↓ 2 callersMethodupdate_config
(self)
src/flashrag/generator/openai_generator.py:50
↓ 2 callersMethodupdate_config
(self)
src/flashrag/generator/generator.py:35
↓ 2 callersMethodupdate_config
(self)
src/flashrag/retriever/retriever.py:131
↓ 2 callersMethodupdate_options
(self, options: Dict)
src/verl/single_controller/ray/base.py:160
↓ 2 callersMethodupdate_params
(self, updated_params)
src/verl/workers/sharding_manager/fsdp_vllm.py:174
↓ 2 callersMethodupdate_policy
Update the policy with an iterator of DataProto Args: data (DataProto): an iterator over the DataProto that returns by
src/verl/workers/actor/base.py:54
↓ 2 callersMethodupdate_sampling_params
(self, **kwargs)
src/verl/workers/rollout/vllm_rollout/fire_vllm_rollout.py:86
↓ 2 callersMethodvalidation_step
(self, batch: TensorDict)
src/verl/trainer/fsdp_sft_trainer.py:427
↓ 2 callersFunctionverify_fp8_status
Verify that FP8 training is actually working after model preparation. Args: accelerator: The HuggingFace Accelerator instance mod
LLaMA-Factory/src/llamafactory/train/fp8_utils.py:144
↓ 2 callersMethodwrap_encoder
Wrap T5 encoder to obtain a Fusion-in-Decoder model.
src/flashrag/generator/fid.py:57
↓ 2 callersMethodwrap_encoder
Wrap T5 encoder to obtain a Fusion-in-Decoder model.
src/flashrag/generator/fid.py:163
↓ 1 callersMethod__call__
Collate features into a batch.
LLaMA-Factory/src/llamafactory/v1/core/trainer_utils/data_collator.py:44
↓ 1 callersMethod__call__
(self, raw_sample: dict[str, Any])
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/converter.py:60
↓ 1 callersMethod__chunk_context
(self, origin_text, chunk_end_tokens)
src/flashrag/refiner/llmlingua_compressor.py:2167
↓ 1 callersMethod__get_context_prob
( self, context_list: list, token_to_word="mean", force_tokens: List[str]
src/flashrag/refiner/llmlingua_compressor.py:2094
↓ 1 callersMethod__getattr__
(self, attr_name: str)
src/flashrag/dataset/dataset.py:39
↓ 1 callersMethod__getstate__
(self)
src/verl/protocol.py:232
↓ 1 callersMethod__init__
(self, model_path, device='cpu', max_input_len=4096)
src/flashrag/generator/multimodal_generator.py:60
↓ 1 callersMethod__init__
(self, config)
src/flashrag/judger/judger.py:42
↓ 1 callersMethod__init__
(self, config)
src/flashrag/retriever/reranker.py:112
↓ 1 callersMethod__init__
(self, config, prompt_template=None, retriever=None, generator=None)
src/flashrag/pipeline/branching_pipeline.py:65
↓ 1 callersMethod__init__
(self, numel: int, numel_padded: int, dtype: torch.dtype, source: Optional[torch.Tensor] = None)
src/verl/utils/memory_buffer.py:30
↓ 1 callersMethod__init__
(self, resource_pool: RayResourcePool, ray_cls_with_init: RayClassWithInit
src/verl/single_controller/ray/megatron.py:44
↓ 1 callersMethod__init__
A vLLM rollout. It requires the module is supported by the vllm. Args: module: module here follows huggingface APIs
src/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:71
↓ 1 callersMethod__init__
(self, config: Qwen2Config, megatron_config: ModelParallelConfig, layer_idx: int)
src/verl/models/qwen2/megatron/layers/parallel_decoder.py:37
↓ 1 callersMethod__init__
(self, input_size, num_heads, num_key_value_heads,
src/verl/models/qwen2/megatron/layers/parallel_linear.py:23
↓ 1 callersMethod__init__
(self, config: LlamaConfig, megatron_config: ModelParallelConfig, layer_idx: int)
src/verl/models/llama/megatron/layers/parallel_decoder.py:37
↓ 1 callersMethod__init__
(self, config: "LlavaConfig")
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:85
↓ 1 callersMethod__init__
(self, token_micro_bsz, bsz_warmup_steps, bsz_warmup_init_mbtoken)
LLaMA-Factory/src/llamafactory/v1/utils/batching_queue.py:127
↓ 1 callersMethod__init__
(self, manager: "Manager", demo_mode: bool = False, lazy_init: bool = True)
LLaMA-Factory/src/llamafactory/webui/chatter.py:81
↓ 1 callersMethod__new__
(cls, *args: Any, **kwargs: Any)
LLaMA-Factory/src/llamafactory/v1/plugins/model_plugins/kernels/registry.py:28
↓ 1 callersMethod__next__
(self)
LLaMA-Factory/src/llamafactory/v1/core/trainer_utils/data_loader.py:128
↓ 1 callersMethod__setstate__
(self, data)
src/verl/protocol.py:242
↓ 1 callersMethod__str__
Return a string representation of the item with its main attributes.
src/flashrag/dataset/dataset.py:72
↓ 1 callersFunction_apply_llama_patch
()
LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:352
↓ 1 callersMethod_balance_batch
Reorder the data on single controller such that each dp rank gets similar total tokens
src/verl/trainer/ppo/ray_trainer.py:782
↓ 1 callersMethod_batch_search_with_rerank
(self, *args, **kwargs)
src/flashrag/retriever/retriever.py:211
↓ 1 callersMethod_bind_worker_method
Bind the worker method to the WorkerGroup
src/verl/single_controller/base/worker_group.py:138
↓ 1 callersFunction_bind_workers_method_to_parent
Binds the methods of each worker to the WorkerDict. Note that we only bind public methods that are decorated by register
src/verl/single_controller/ray/base.py:420
↓ 1 callersMethod_block_until_all_workers_alive
(self)
src/verl/single_controller/base/worker_group.py:115
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
src/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:227
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
src/verl/models/qwen2/megatron/checkpoint_utils/qwen2_saver.py:206
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
src/verl/models/mcore/saver.py:220
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
src/verl/models/mcore/loader.py:227
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
src/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:206
↓ 1 callersFunction_broadcast_tp_shard_tensor_gate_up
broadcast tensor in tp shards across mp_group
src/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:231
↓ 1 callersFunction_broadcast_tp_shard_tensor_qkv
broadcast tensor in tp shards across mp_group
src/verl/models/llama/megatron/checkpoint_utils/llama_saver.py:259
↓ 1 callersFunction_broadcast_tp_shard_tensor_qkv
broadcast tensor in tp shards across mp_group
src/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:285
↓ 1 callersFunction_broadcast_tp_shard_tensor_vocab
broadcast tensor in tp shards across mp_group
src/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader_depracated.py:134
↓ 1 callersFunction_broadcast_tp_shard_tensor_vocab
broadcast tensor in tp shards across mp_group
src/verl/models/mcore/loader.py:134
↓ 1 callersFunction_broadcast_tp_shard_tensor_vocab
broadcast tensor in tp shards across mp_group
src/verl/models/llama/megatron/checkpoint_utils/llama_loader_depracated.py:138
↓ 1 callersMethod_build_critic_model_optimizer
(self, model_path, megatron_conf
src/verl/workers/megatron_workers.py:529
↓ 1 callersMethod_build_critic_model_optimizer
(self, config)
src/verl/workers/fsdp_workers.py:678
↓ 1 callersMethod_build_data_index
Build dataset index.
LLaMA-Factory/src/llamafactory/v1/core/data_engine.py:90
↓ 1 callersMethod_build_dataloader
(self)
src/verl/trainer/fsdp_sft_trainer.py:122
↓ 1 callersMethod_build_model
(self, config)
src/verl/workers/fsdp_workers.py:960
← previousnext →501–600 of 2,379, ranked by callers