MCPcopy Create free account

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

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

Methodrun
(self, dataset, do_eval=True, pred_process_fun=None, long_form=False)
src/flashrag/pipeline/active_pipeline.py:745
Methodrun
(self, dataset, do_eval=True, pred_process_fun=selfask_pred_parse)
src/flashrag/pipeline/active_pipeline.py:1051
Methodrun
(self, dataset, do_eval = True)
src/flashrag/pipeline/active_pipeline.py:1381
Methodrun_batch_pred
(self, dataset)
src/flashrag/pipeline/active_pipeline.py:759
Methodrun_batch_pred_long_form
(self, dataset)
src/flashrag/pipeline/active_pipeline.py:714
Functionrun_dpo
( model_args: ModelArguments, data_args: DataArguments, training_args: McaSeq2SeqTrainingArguments
LLaMA-Factory/src/llamafactory/train/mca/workflow.py:222
Functionrun_eval
()
LLaMA-Factory/src/llamafactory/eval/evaluator.py:157
Methodrun_eval
(self, data)
LLaMA-Factory/src/llamafactory/webui/runner.py:401
Methodrun_item
(self, item)
src/flashrag/pipeline/active_pipeline.py:105
Methodrun_item
(self, item)
src/flashrag/pipeline/active_pipeline.py:879
Functionrun_judge
(line)
scripts/evaluation/llm_judge.py:64
Functionrun_pt
( model_args: ModelArguments, data_args: DataArguments, training_args: McaSeq2SeqTrainingArguments
LLaMA-Factory/src/llamafactory/train/mca/workflow.py:89
Functionrun_sft
( model_args: ModelArguments, data_args: DataArguments, training_args: McaSeq2SeqTrainingArguments
LLaMA-Factory/src/llamafactory/train/mca/workflow.py:144
Methodrun_train
(self, data)
LLaMA-Factory/src/llamafactory/webui/runner.py:398
Methodsave_args
r"""Save the training configuration to config path.
LLaMA-Factory/src/llamafactory/webui/runner.py:462
Methodsave_checkpoint
(self, local_path: str, hdfs_path: str = None, global_step: int = 0, max_ckpt_to_keep=None)
src/verl/utils/checkpoint/fsdp_checkpoint_manager.py:113
Methodsave_checkpoint
(self, local_path: str, hdfs_path: str = None,
src/verl/utils/checkpoint/checkpoint_manager.py:63
Methodsave_checkpoint
(self, local_path: str, hdfs_path: str = None, global_step: int = 0, max_ckpt_to_keep=None)
src/verl/utils/checkpoint/megatron_checkpoint_manager.py:222
Methodsave_checkpoint
(self, checkpoint_path, hdfs_path=None, global_step=0, max_ckpt_to_keep=None)
src/verl/workers/megatron_workers.py:481
Methodsave_checkpoint
(self, local_path, hdfs_path=None, global_step=0, max_ckpt_to_keep=None)
src/verl/workers/fsdp_workers.py:601
Functionsave_config
r"""Save user config.
LLaMA-Factory/src/llamafactory/webui/common.py:83
Functionsave_full_model
Load the saved thinker module and the original model, replace the thinker in the original model. Then save the complete model along with its toke
LLaMA-Factory/scripts/qwen_omni_merge.py:90
Functionsave_model
( lang: str, model_name: str, model_path: str, finetuning_type: str, checkpoint_path: str
LLaMA-Factory/src/llamafactory/webui/components/export.py:47
Methodsave_to_disk
(self, filepath)
src/verl/protocol.py:253
Functionsave_to_hdfs
(data: io.BytesIO, name, hdfs_dir, verbose)
src/verl/utils/debug/trajectory_tracker.py:33
Functionscheduler_hook
(param: "torch.nn.Parameter")
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:583
Functionsearch
(request: QueryRequest)
scripts/serving/retriever_serving.py:57
Methodsearch
(self, *args, **kwargs)
src/flashrag/retriever/retriever.py:202
Methodsearch
(self, query, target_modal="text", num: Union[list, int, None] = None, return_score=False)
src/flashrag/retriever/retriever.py:826
Functionselfask_pred_parse
Parsing the prediction results of self-ask format.
src/flashrag/utils/pred_parse.py:3
Methodseries_to_item
(ls)
src/verl/utils/dataset/sft_dataset.py:78
Methodseries_to_item
(ls)
src/verl/utils/dataset/multiturn_sft_dataset.py:63
Methodset_abort
(self)
LLaMA-Factory/src/llamafactory/webui/runner.py:69
Methodset_additional_resource
(self, additional_resource)
src/verl/single_controller/ray/base.py:157
Methodset_checkpoint
Enable or disable checkpointing in the encoder. See https://pytorch.org/docs/stable/checkpoint.html
src/flashrag/generator/fid.py:80
Functionset_device
Set current accelerator.
LLaMA-Factory/src/llamafactory/v1/accelerator/helper.py:122
Methodset_dtype
(self, precision: str | torch.dtype)
LLaMA-Factory/src/llamafactory/v1/utils/dtype.py:85
Methodset_epoch
(self, epoch: int)
LLaMA-Factory/src/llamafactory/v1/core/trainer_utils/data_loader.py:41
Methodset_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/qwen2/megatron/modeling_qwen2_megatron.py:538
Methodset_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:542
Methodset_pooling_method
(method, model2pooling)
src/flashrag/config/config.py:122
Methodset_retrieval_keys
(model2path, model2pooling, method2index, config)
src/flashrag/config/config.py:128
Methodsetup
(self, args: "TrainingArguments", state: "TrainerState", model: "PreTrainedModel", **kwargs)
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:719
Functionsharegpt_converter
Convert ShareGPT sample to SFT sample. See raw example at: https://huggingface.co/datasets/llamafactory/glaive_toolcall_en Args: raw
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/converter.py:102
Functionsignal_handler
(signum, frame)
src/verl/utils/reward_score/prime_math/grader.py:347
Methodsignature
Returns a signature for the tokenizer. :return: signature string
src/flashrag/evaluator/_bleu.py:23
Methodsignature
(self)
src/flashrag/evaluator/_bleu.py:40
Methodsplit_arg
(arg)
LLaMA-Factory/src/llamafactory/hparams/finetuning_args.py:527
Methodsplit_arg
(arg)
LLaMA-Factory/src/llamafactory/hparams/data_args.py:142
Methodsplit_string_to_words
(input_string)
src/flashrag/refiner/llmlingua_compressor.py:2237
Methodspread
(self)
src/verl/utils/seqlen_balancing.py:60
Functionsqueeze
(x)
src/verl/utils/model.py:38
Methodstart_worker_aliveness_check
(self, every_n_seconds=1)
src/verl/single_controller/base/worker_group.py:123
Methodstore
(self)
src/verl/single_controller/base/worker_group.py:47
Methodstream
()
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:304
Methodstream
r"""Generate output text in stream. Inputs: infer.chatbot, infer.messages, infer.system, infer.tools, infer.image, infer.video, ... O
LLaMA-Factory/src/llamafactory/webui/chatter.py:193
Methodstream_chat
( self, messages: list[dict[str, str]], system: Optional[str] = None, tools: O
LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:248
Methodstream_chat
r"""Get the response token-by-token of the chat model.
LLaMA-Factory/src/llamafactory/chat/base_engine.py:78
Methodstream_chat
( self, messages: list[dict[str, str]], system: Optional[str] = None, tools: O
LLaMA-Factory/src/llamafactory/chat/sglang_engine.py:258
Methodstream_chat
( self, messages: list[dict[str, str]], system: Optional[str] = None, tools: O
LLaMA-Factory/src/llamafactory/chat/kt_engine.py:254
Methodstream_chat
( self, messages: list[dict[str, str]], system: Optional[str] = None, tools: O
LLaMA-Factory/src/llamafactory/chat/hf_engine.py:366
Methodstream_request
()
LLaMA-Factory/src/llamafactory/chat/sglang_engine.py:209
Methodsupported_type
(precision: Union[str, int])
src/verl/utils/torch_dtypes.py:43
Methodsupported_types
()
src/verl/utils/torch_dtypes.py:47
Functionswitch_hub
r"""Switch model hub. Inputs: top.hub_name
LLaMA-Factory/src/llamafactory/webui/control.py:41
Methodsync
Synchronize all processes.
LLaMA-Factory/src/llamafactory/v1/accelerator/interface.py:235
Methodsync_sentence
(sentences, text)
src/flashrag/refiner/llmlingua_compressor.py:1309
Functionsynchronize
Synchronize all processes.
LLaMA-Factory/src/llamafactory/v1/accelerator/helper.py:116
Functiontest_add_tokens
(special_tokens: bool)
LLaMA-Factory/tests/model/model_utils/test_add_tokens.py:29
Functiontest_all_device
()
LLaMA-Factory/tests_v1/accelerator/test_interface.py:48
Methodtest_append_and_token_count
(self)
LLaMA-Factory/tests_v1/utils/test_batching_queue.py:26
Functiontest_apply_all_kernels
(mock_get_accelerator: MagicMock)
LLaMA-Factory/tests_v1/plugins/model_plugins/test_kernel_plugin.py:53
Functiontest_apply_kernel
(mock_get_accelerator: MagicMock)
LLaMA-Factory/tests_v1/plugins/model_plugins/test_kernel_plugin.py:33
Functiontest_attention
()
LLaMA-Factory/tests/model/model_utils/test_attention.py:43
Functiontest_base
()
LLaMA-Factory/tests/model/test_base.py:33
Methodtest_basic_functionality
Test DataLoader without packing and without dynamic batching.
LLaMA-Factory/tests_v1/core/test_data_loader.py:117
Methodtest_basic_functionality
Test DataLoader without packing but with dynamic batching.
LLaMA-Factory/tests_v1/core/test_data_loader.py:150
Functiontest_chat
()
LLaMA-Factory/tests/e2e/test_chat.py:41
Functiontest_eval_template_en
()
LLaMA-Factory/tests/eval/test_eval_template.py:21
Functiontest_eval_template_zh
()
LLaMA-Factory/tests/eval/test_eval_template.py:60
Functiontest_expanded_modules
()
LLaMA-Factory/tests/model/model_utils/test_misc.py:28
Functiontest_export
()
LLaMA-Factory/tests/e2e/test_train.py:70
Methodtest_flush_removes_used_samples
(self)
LLaMA-Factory/tests_v1/utils/test_batching_queue.py:53
Methodtest_force_return_first_sample
(self)
LLaMA-Factory/tests_v1/utils/test_batching_queue.py:44
Functiontest_freeze_inference
()
LLaMA-Factory/tests/model/test_freeze.py:68
Functiontest_freeze_train_all_modules
()
LLaMA-Factory/tests/model/test_freeze.py:46
Functiontest_freeze_train_extra_modules
()
LLaMA-Factory/tests/model/test_freeze.py:57
Functiontest_full_inference
()
LLaMA-Factory/tests/model/test_full.py:53
Functiontest_full_train
()
LLaMA-Factory/tests/model/test_full.py:46
Methodtest_get_micro_batch_integration
(self)
LLaMA-Factory/tests_v1/utils/test_batching_queue.py:97
Methodtest_get_samples_within_budget
(self)
LLaMA-Factory/tests_v1/utils/test_batching_queue.py:34
Functiontest_get_seqlens_in_batch
(attention_mask, golden_seq_lens)
LLaMA-Factory/tests/model/model_utils/test_packing.py:37
Functiontest_get_unpad_data
(attention_mask, golden_indices, golden_cu_seqlens, golden_max_seqlen)
LLaMA-Factory/tests/model/model_utils/test_packing.py:63
Methodtest_is_full_filled
(self)
LLaMA-Factory/tests_v1/utils/test_batching_queue.py:70
Functiontest_lora_inference
()
LLaMA-Factory/tests/model/test_lora.py:100
Functiontest_lora_train_all_modules
()
LLaMA-Factory/tests/model/test_lora.py:64
Functiontest_lora_train_extra_modules
()
LLaMA-Factory/tests/model/test_lora.py:70
Functiontest_lora_train_new_adapters
()
LLaMA-Factory/tests/model/test_lora.py:82
Functiontest_lora_train_old_adapters
()
LLaMA-Factory/tests/model/test_lora.py:76
Functiontest_lora_train_qv_modules
()
LLaMA-Factory/tests/model/test_lora.py:58
← previousnext →2,201–2,300 of 2,379, ranked by callers