MCPcopy Create free account

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

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

↓ 1 callersMethodsave_to_jsonl
(self, evaluated_data, output_file)
scripts/data_construction/transfer_regenerate.py:40
↓ 1 callersFunctionsave_weight
(input_dir: str, output_dir: str, shard_size: str, save_safetensors: bool)
LLaMA-Factory/scripts/convert_ckpt/llamafy_baichuan2.py:31
↓ 1 callersFunctionsave_weight
(input_dir: str, output_dir: str, shard_size: str, save_safetensors: bool)
LLaMA-Factory/scripts/convert_ckpt/llamafy_qwen.py:39
↓ 1 callersMethodsegment_structured_context
( self, context: List[str], global_rate: float, )
src/flashrag/refiner/llmlingua_compressor.py:2030
↓ 1 callersMethodselect_best_path_single_turn
(self, final_outputs)
src/flashrag/pipeline/active_pipeline.py:1365
↓ 1 callersMethodselect_best_prediction
(self, results)
src/flashrag/pipeline/active_pipeline.py:503
↓ 1 callersMethodself_info_mask
(self, sents: List[str], self_info: List[float], mask_level)
src/flashrag/refiner/selective_context_compressor.py:243
↓ 1 callersFunctionset_basic_config
This function sets the global logging format and level. It will be called when import verl
src/verl/utils/logging_utils.py:20
↓ 1 callersFunctionset_default_instruction
(model_name, is_query=True, is_zh=False)
src/flashrag/retriever/utils.py:82
↓ 1 callersMethodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes
src/verl/models/llama/megatron/modeling_llama_megatron.py:462
↓ 1 callersFunctionset_pad_token_id
Set pad_token_id to eos_token_id if it is None. Args: tokenizer (transformers.PreTrainedTokenizer): The tokenizer to be set.
src/verl/utils/tokenizer.py:20
↓ 1 callersMethodsetup_embeddings_and_output_layer
Sets up embedding layer in first stage and output layer in last stage. This function initalizes word embeddings in the final stage when we
src/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:563
↓ 1 callersFunctionshould_allow_eval
(expr: str)
src/verl/utils/reward_score/prime_math/__init__.py:223
↓ 1 callersMethodsimpo_loss
r"""Compute SimPO loss for batched log probabilities of the policy model.
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:152
↓ 1 callersMethodsingle_batch_encode
(self, query_list: Union[List[str], str], is_query=True)
src/flashrag/retriever/encoder.py:38
↓ 1 callersMethodsingle_batch_encode
(self, query_list: Union[List[str], str], modal="image")
src/flashrag/retriever/encoder.py:185
↓ 1 callersFunctionsingle_compute_score
(evaluation_func, completion, reference, task, task_extra_info, executor, timeout=300.)
src/verl/workers/reward_manager/prime.py:26
↓ 1 callersFunctionskip_check_imports
r"""Avoid flash attention import error in custom model files.
LLaMA-Factory/src/llamafactory/extras/misc.py:248
↓ 1 callersMethodslice
Slice the DataProto and return a new DataProto object. This is an improved version of direct slicing which returns a DataProtoItem.
src/verl/protocol.py:438
↓ 1 callersFunctionsort_placement_group_by_node_ip
Sort the placement groups by node ip, all bundles in a single placement group should be on the same node. FSDPCheckpointManager saves sha
src/verl/single_controller/ray/base.py:50
↓ 1 callersMethodsplit_model
(self)
src/flashrag/generator/multimodal_generator.py:134
↓ 1 callersFunctionstring_int_check
(val)
src/verl/utils/reward_score/prime_code/testing_util.py:93
↓ 1 callersMethodstructured_compress_prompt
Compresses the given prompt context based on a specified structure. Each element of context should be segmented using one or more
src/flashrag/refiner/llmlingua_compressor.py:408
↓ 1 callersFunctionsweeper
()
LLaMA-Factory/src/llamafactory/api/app.py:54
↓ 1 callersFunctionsymbolic_equal
(a, b, tolerance, timeout=10.0)
src/verl/utils/reward_score/prime_math/grader.py:310
↓ 1 callersFunctiontest_alpaca_converter
(num_samples: int)
LLaMA-Factory/tests_v1/plugins/data_plugins/test_converter.py:26
↓ 1 callersFunctiontest_chat
r"""Test the SGLang engine's basic chat functionality.
LLaMA-Factory/tests/e2e/test_sglang.py:44
↓ 1 callersFunctiontest_map_dataset
(num_samples: int)
LLaMA-Factory/tests_v1/core/test_data_engine.py:25
↓ 1 callersFunctiontest_pair_converter
(num_samples: int)
LLaMA-Factory/tests_v1/plugins/data_plugins/test_converter.py:75
↓ 1 callersFunctiontest_sharegpt_converter
()
LLaMA-Factory/tests_v1/plugins/data_plugins/test_converter.py:52
↓ 1 callersFunctiontest_stream_chat
r"""Test the SGLang engine's streaming chat functionality.
LLaMA-Factory/tests/e2e/test_sglang.py:54
↓ 1 callersFunctiontest_tiny_qwen
()
LLaMA-Factory/tests_v1/core/test_model_loader.py:21
↓ 1 callersMethodtie_weights
(self)
src/flashrag/generator/fid.py:88
↓ 1 callersMethodto_dtype
(precision: str | torch.dtype)
LLaMA-Factory/src/llamafactory/v1/utils/dtype.py:63
↓ 1 callersFunctionto_qwen3_messages
(template: QwenTemplate, messages: list[dict])
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/template.py:86
↓ 1 callersMethodtoken_segment
( self, text_input_ids: List[int], iterative_size: int, segments: List[str
src/flashrag/refiner/llmlingua_compressor.py:1171
↓ 1 callersMethodtraining_step
(self, batch: TensorDict)
src/verl/trainer/fsdp_sft_trainer.py:387
↓ 1 callersMethodtransfer
(self, data)
scripts/data_construction/transfer_regenerate.py:8
↓ 1 callersMethodtransfer
(self, data1, data2)
scripts/data_construction/transfer_dpo.py:29
↓ 1 callersMethodtransfer
(self, data)
scripts/data_construction/transfer_sft.py:8
↓ 1 callersFunctiontry_download_model_from_other_hub
(model_args: "ModelArguments")
LLaMA-Factory/src/llamafactory/extras/misc.py:267
↓ 1 callersFunctionunion_numpy_dict
(tensor_dict1: dict[str, np.ndarray], tensor_dict2: dict[str, np.ndarray])
src/verl/protocol.py:88
↓ 1 callersFunctionunion_tensor_dict
Union two tensordicts.
src/verl/protocol.py:74
↓ 1 callersFunctionunion_two_dict
Union two dict. Will throw an error if there is an item not the same object with the same key. Args: dict1: dict2: Ret
src/verl/utils/py_functional.py:22
↓ 1 callersFunctionunit_convert
(number, level)
src/verl/utils/flops_counter.py:23
↓ 1 callersFunctionunpad_dataproto
(data: 'DataProto', pad_size)
src/verl/protocol.py:68
↓ 1 callersMethodunwrap_encoder
Unwrap Fusion-in-Decoder encoder, useful to load T5 weights.
src/flashrag/generator/fid.py:64
↓ 1 callersMethodunwrap_encoder
Unwrap Fusion-in-Decoder encoder, useful to load bart weights.
src/flashrag/generator/fid.py:169
↓ 1 callersMethodupdate_actor
(self, data: DataProto)
src/verl/workers/fsdp_workers.py:454
↓ 1 callersMethodupdate_additional_setting
(self)
src/flashrag/generator/openai_generator.py:63
↓ 1 callersMethodupdate_additional_setting
(self)
src/flashrag/generator/generator.py:48
↓ 1 callersMethodupdate_additional_setting
(self)
src/flashrag/retriever/retriever.py:159
↓ 1 callersFunctionupdate_attr
(obj: Any, name: str, value: Any)
LLaMA-Factory/src/llamafactory/webui/chatter.py:73
↓ 1 callersMethodupdate_base_setting
(self)
src/flashrag/generator/openai_generator.py:54
↓ 1 callersMethodupdate_base_setting
(self)
src/flashrag/generator/generator.py:38
↓ 1 callersMethodupdate_base_setting
(self)
src/flashrag/retriever/retriever.py:135
↓ 1 callersMethodupdate_critic
(self, data: DataProto)
src/verl/workers/fsdp_workers.py:855
↓ 1 callersMethodupdate_evaluation_score
Update the evaluation score of this sample for a metric.
src/flashrag/dataset/dataset.py:33
↓ 1 callersMethodupdate_sampling_params
(self, **kwargs)
src/verl/workers/rollout/sglang_rollout/sglang_rollout.py:196
↓ 1 callersMethodupdate_sampling_params
(self, **kwargs)
src/verl/workers/rollout/vllm_rollout/vllm_rollout.py:141
↓ 1 callersFunctionuse_kt
()
LLaMA-Factory/src/llamafactory/extras/misc.py:316
↓ 1 callersFunctionvalidate_args
Validate arguments.
LLaMA-Factory/src/llamafactory/v1/config/arg_parser.py:33
↓ 1 callersFunctionvalidate_template_format
(text: str)
src/verl/utils/reward_score/re_call.py:98
↓ 1 callersMethodvalidate_template_format
(self, text: str)
scripts/data_construction/detect_redundancy.py:8
↓ 1 callersMethodvalidate_tool_calls
(self, output_str)
src/re_call/inference/re_call.py:125
↓ 1 callersMethodvalidate_tool_calls
(self, output_str)
src/verl/workers/rollout/vllm_rollout/vllm_rollout_spmd.py:330
↓ 1 callersFunctionverify
Verify if the solution is correct. Args: solution_str: The solution string to verify answer: The ground truth answer
src/verl/utils/reward_score/math_dapo.py:239
↓ 1 callersMethodverify
(self, data)
src/verl/workers/reward_manager/batch.py:29
↓ 1 callersMethodverify
verify the batch and save as ``acc`` tensor
src/verl/workers/reward_manager/prime.py:102
↓ 1 callersFunctionvocab_parallel_entropy
Compute entropy when the logits are sharded in tp ranks Args: vocab_parallel_logits: (total_nnz, vocab_size // tp_size) Ret
src/verl/utils/megatron/tensor_parallel.py:135
↓ 1 callersMethodwarning_rank0
(self, *args, **kwargs)
LLaMA-Factory/src/llamafactory/v1/utils/logging.py:37
↓ 1 callersMethodwarning_rank0_once
(self, *args, **kwargs)
LLaMA-Factory/src/llamafactory/v1/utils/logging.py:40
↓ 1 callersFunctionwhite_space_fix
(text)
src/flashrag/evaluator/utils.py:9
↓ 1 callersFunctionwhite_space_fix
(text)
src/verl/utils/reward_score/re_call.py:53
Method__add__
(self, other)
src/flashrag/refiner/selective_context_compressor.py:26
Method__call__
Determines whether to stop generation based on the presence of stop words. Stops if a stop word is found in *all* batch elements
src/flashrag/generator/stop_word_criteria.py:38
Method__call__
Tokenizes an input line with the tokenizer. :param line: a segment to tokenize :return: the tokenized line
src/flashrag/evaluator/_bleu.py:30
Method__call__
Common post-processing tokenizer for `13a` and `zh` tokenizers. :param line: a segment to tokenize :return: the tokenized line
src/flashrag/evaluator/_bleu.py:59
Method__call__
Tokenizes an input line using a relatively minimal tokenization that is however equivalent to mteval-v13a, used by WMT. :param line:
src/flashrag/evaluator/_bleu.py:81
Method__call__
(self, *args, **kwargs)
src/flashrag/refiner/llmlingua_compressor.py:350
Method__call__
(self, text: str, reduce_ratio: float = 0.5, reduce_level: str = "phrase")
src/flashrag/refiner/selective_context_compressor.py:272
Method__call__
(self, input_ids, scores)
src/flashrag/pipeline/replug_utils.py:217
Method__call__
(self, placement_group, placement_group_bundle_idx, use_
src/verl/single_controller/ray/base.py:163
Method__call__
(self)
src/verl/single_controller/base/worker_group.py:43
Method__call__
(self)
src/verl/single_controller/base/worker_group.py:78
Method__call__
(self, *inputs, **kwargs)
src/verl/workers/sharding_manager/megatron_vllm.py:168
Method__call__
(self, data: DataProto, return_dict=False)
src/verl/workers/reward_manager/batch.py:56
Method__call__
We will expand this function gradually based on the available datasets
src/verl/workers/reward_manager/dapo.py:42
Method__call__
We will expand this function gradually based on the available datasets
src/verl/workers/reward_manager/prime.py:133
Method__call__
We will expand this function gradually based on the available datasets
src/verl/workers/reward_manager/re_call.py:30
Method__call__
We will expand this function gradually based on the available datasets
src/verl/workers/reward_manager/naive.py:31
Method__call__
(self, samples)
LLaMA-Factory/src/llamafactory/v1/utils/batching_queue.py:132
Method__call__
Call the registered function with the given arguments. Example usage: ```python PrintPlugin("hello")() ```
LLaMA-Factory/src/llamafactory/v1/utils/plugin.py:63
Method__call__
(self, messages: list[list[dict[str, Any]]])
LLaMA-Factory/src/llamafactory/v1/core/trainer_utils/data_collator.py:75
Method__call__
(self, features: Sequence[dict[str, "torch.Tensor"]])
LLaMA-Factory/src/llamafactory/v1/core/trainer_utils/data_collator.py:110
Method__call__
(self, model: HFModel, config: dict, is_train: bool)
LLaMA-Factory/src/llamafactory/v1/plugins/model_plugins/peft.py:44
Method__call__
(self, eval_preds: "EvalPrediction", compute_result: bool = True)
LLaMA-Factory/src/llamafactory/train/rm/metric.py:42
Method__call__
(self, eval_preds: "EvalPrediction", compute_result: bool = True)
LLaMA-Factory/src/llamafactory/train/sft/metric.py:76
Method__call__
(self, eval_preds: "EvalPrediction", compute_result: bool = True)
LLaMA-Factory/src/llamafactory/train/sft/metric.py:107
Method__call__
(self, features: list[dict[str, Any]])
LLaMA-Factory/scripts/bench_qwen.py:91
← previousnext →1,201–1,300 of 2,379, ranked by callers