MCPcopy Create free account

hub / github.com/Yuan-Li-FNLP/R3-RAG / functions

Functions1,737 in github.com/Yuan-Li-FNLP/R3-RAG

↓ 3 callersMethod_batch_search
(self, query, num, return_score)
tool/FlashRAG/flashrag/retriever/retriever.py:182
↓ 3 callersFunction_check_extra_dependencies
( model_args: "ModelArguments", finetuning_args: "FinetuningArguments", training_args: Optional["T
train/LLaMA-Factory/src/llamafactory/hparams/parser.py:121
↓ 3 callersMethod_close_thread_pool
(self)
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:230
↓ 3 callersFunction_configure_library_root_logger
r""" Configures root logger using a stdout stream handler with an explicit format.
train/LLaMA-Factory/src/llamafactory/extras/logging.py:106
↓ 3 callersFunction_create_stream_chat_completion_chunk
( completion_id: str, model: str, delta: "ChatCompletionMessage", index: Optional[int] = 0,
train/LLaMA-Factory/src/llamafactory/api/chat.py:130
↓ 3 callersFunction_get_init_kwargs
r""" Gets arguments to load config/tokenizer/model. Note: including inplace operation of model_args.
train/LLaMA-Factory/src/llamafactory/model/loader.py:47
↓ 3 callersFunction_get_library_root_logger
()
train/LLaMA-Factory/src/llamafactory/extras/logging.py:102
↓ 3 callersMethod_get_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], proces
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:492
↓ 3 callersMethod_initialize
(self, data: Dict["Component", Any], do_train: bool, from_preview: bool)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:59
↓ 3 callersFunction_jinja_escape
(content: str)
train/LLaMA-Factory/src/llamafactory/data/template.py:282
↓ 3 callersMethod_judge_input_modal
(self, query)
tool/FlashRAG/flashrag/retriever/retriever.py:504
↓ 3 callersMethod_parse_evaluate_args
(self, data: Dict["Component", Any])
tool/FlashRAG/webui/runner.py:240
↓ 3 callersMethod_search
r"""Retrieve topk relevant documents in corpus. Return: list: contains information related to the document, including:
tool/FlashRAG/flashrag/retriever/retriever.py:169
↓ 3 callersFunction_set_transformers_logging
()
train/LLaMA-Factory/src/llamafactory/hparams/parser.py:86
↓ 3 callersMethod_update_component
r""" Gets the dict to update the components.
train/LLaMA-Factory/src/llamafactory/webui/engine.py:39
↓ 3 callersFunction_verify_model_args
( model_args: "ModelArguments", data_args: "DataArguments", finetuning_args: "FinetuningArguments"
train/LLaMA-Factory/src/llamafactory/hparams/parser.py:92
↓ 3 callersFunctionconvert_image_to_base64
(image)
tool/FlashRAG/flashrag/generator/utils.py:70
↓ 3 callersMethodcopyfrom
(cls, source: "Self", **kwargs)
train/LLaMA-Factory/src/llamafactory/hparams/model_args.py:333
↓ 3 callersFunctioncreate_ref_model
r""" Creates reference model for PPO/DPO training. Evaluation mode is not supported. The valuehead parameter is randomly initialized since it
train/LLaMA-Factory/src/llamafactory/train/trainer_utils.py:110
↓ 3 callersFunctionfind_all_linear_modules
r""" Finds all available modules to apply LoRA, GaLore or APOLLO.
train/LLaMA-Factory/src/llamafactory/model/model_utils/misc.py:28
↓ 3 callersFunctionfind_sublist_first_occurrence
(list1, list2, start_index=0)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:1641
↓ 3 callersFunctionfind_sublist_first_occurrence
(list1, list2, start_index=0)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:1643
↓ 3 callersFunctionfind_sublist_first_occurrence
(list1, list2, start_index=0)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:1641
↓ 3 callersFunctionfind_sublist_first_occurrence
(list1, list2, start_index=0)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:1641
↓ 3 callersFunctionfix_valuehead_checkpoint
r""" The model is already unwrapped. There are three cases: 1. full tuning without ds_zero3: state_dict = {"model.layers.*": ..., "v_head
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:56
↓ 3 callersMethodformat_reference
(self, retrieval_result)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:825
↓ 3 callersMethodgenerate
(self, input_list: list, batch_size=None, **params)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:75
↓ 3 callersMethodget_base_elems
r""" Gets the base elements that are commonly used.
train/LLaMA-Factory/src/llamafactory/webui/manager.py:63
↓ 3 callersMethodget_elem_list
r""" Returns the list of all elements.
tool/FlashRAG/webui/manager.py:20
↓ 3 callersFunctionget_infer_args
(args: Optional[Union[Dict[str, Any], List[str]]] = None)
train/LLaMA-Factory/src/llamafactory/hparams/parser.py:394
↓ 3 callersFunctionget_logits_processor
r""" Gets logits processor that removes NaN and Inf logits.
train/LLaMA-Factory/src/llamafactory/extras/misc.py:179
↓ 3 callersFunctionget_train_args
(args: Optional[Union[Dict[str, Any], List[str]]] = None)
train/LLaMA-Factory/src/llamafactory/hparams/parser.py:181
↓ 3 callersFunctionload_config
r""" Loads model config.
train/LLaMA-Factory/src/llamafactory/model/loader.py:118
↓ 3 callersFunctionmystrip
(one_str)
startup/RRAG.py:6
↓ 3 callersFunctionmystrip
(one_str)
startup/R3-RAG.py:31
↓ 3 callersMethodnaive_run
(self, dataset, do_eval=True, pred_process_fun=None)
tool/FlashRAG/flashrag/pipeline/pipeline.py:71
↓ 3 callersFunctionparse_query
processing query for different encoders
tool/FlashRAG/flashrag/retriever/utils.py:100
↓ 3 callersFunctionprocess_sequence_data
(rate, start, end, sequence, is_dict=False)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:174
↓ 3 callersFunctionremove_images
(data: Any)
tool/FlashRAG/flashrag/dataset/utils.py:73
↓ 3 callersMethodrerank
r"""Rerank doc_list.
tool/FlashRAG/flashrag/retriever/reranker.py:35
↓ 3 callersMethodreset
(self)
train/LLaMA-Factory/src/llamafactory/extras/misc.py:63
↓ 3 callersFunctionreset_position_ids
(attention_mask)
train/R3RAG_OpenRLHF/openrlhf/models/utils.py:101
↓ 3 callersMethodrun
The overall inference process of a RAG framework.
tool/FlashRAG/flashrag/pipeline/pipeline.py:22
↓ 3 callersMethodrun
(self, dataset)
tool/FlashRAG/examples/methods/utils/get_lm_probs_dataset.py:29
↓ 3 callersMethodset_seed
(self, seed: int)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:68
↓ 3 callersMethodstream_chat
r""" Gets the response token-by-token of the chat model.
train/LLaMA-Factory/src/llamafactory/chat/chat_model.py:93
↓ 3 callersMethodtoken_level_scores
(self, prediction: str, ground_truths: list)
tool/FlashRAG/flashrag/evaluator/metrics.py:56
↓ 3 callersMethodtokenize_fn
(self, texts, max_length, padding=True, device=None)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:190
↓ 3 callersMethodtokenize_fn
(self, texts, max_length, padding=True, device=None)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:190
↓ 3 callersMethodtokenize_fn
(self, texts, max_length, padding=True, device=None)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:190
↓ 3 callersMethodtokenize_fn
(self, texts, max_length, padding=True, device=None)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:190
↓ 2 callersFunctionF1
(golds: list[str], response: str)
benchmark/R3-RAG/src/cal_metric.py:161
↓ 2 callersFunctionF1
(golds: list[str], response: str)
benchmark/batch_check/batch_check.py:95
↓ 2 callersFunctionGetRetrieval
(retrieve_url, querys)
benchmark/R3-RAG/src/inference_4gpu.py:116
↓ 2 callersFunctionGetRetrieval
(retrieve_url, querys)
benchmark/R3-RAG/src/inference_new.py:117
↓ 2 callersFunctionGetRetrieval
(retrieve_url, querys)
benchmark/R3-RAG/src/inference.py:116
↓ 2 callersMethod__init__
(self, *args, **kwargs)
tool/FlashRAG/webui/chat_pipelines/branching_pipeline.py:59
↓ 2 callersMethod__init__
(self, *args, **kwargs)
tool/FlashRAG/webui/chat_pipelines/sequential_pipeline.py:72
↓ 2 callersMethod__merge_token_to_word
(self, tokens, token_probs, force_tokens, token_map, force_reserve_digit)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:2190
↓ 2 callersMethod__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/hparams/training_args.py:34
↓ 2 callersMethod__token_prob_to_word_prob
(self, token_probs, convert_mode="mean")
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:2217
↓ 2 callersFunction_add_or_replace_eos_token
(tokenizer: "PreTrainedTokenizer", eos_token: str)
train/LLaMA-Factory/src/llamafactory/data/template.py:269
↓ 2 callersMethod_broadcast_to_vllm
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_actor.py:138
↓ 2 callersMethod_convert_elements_to_ids
r""" Converts elements to token ids.
train/LLaMA-Factory/src/llamafactory/data/template.py:140
↓ 2 callersMethod_create_thread_pool
(self, output_dir: str)
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:226
↓ 2 callersMethod_dump
(self)
train/LLaMA-Factory/src/llamafactory/train/rm/metric.py:33
↓ 2 callersMethod_dump
(self)
train/LLaMA-Factory/src/llamafactory/train/sft/metric.py:69
↓ 2 callersMethod_dump
(self)
train/LLaMA-Factory/src/llamafactory/train/sft/metric.py:101
↓ 2 callersMethod_encode
r""" Encodes formatted inputs to pairs of token ids. Turn 0: prefix + system + query resp Turn t: sep + query
train/LLaMA-Factory/src/llamafactory/data/template.py:102
↓ 2 callersFunction_encode_supervised_example
( prompt: Sequence[Dict[str, str]], response: Sequence[Dict[str, str]], system: Optional[str],
train/LLaMA-Factory/src/llamafactory/data/processors/supervised.py:34
↓ 2 callersFunction_fallback_score
(current_analysis, doc_precheck)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:1442
↓ 2 callersFunction_fallback_score
(current_analysis, doc_precheck)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:1444
↓ 2 callersFunction_fallback_score
(current_analysis, doc_precheck)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:1442
↓ 2 callersFunction_fallback_score
(current_analysis, doc_precheck)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:1442
↓ 2 callersMethod_form_config_dict
(self, data: Dict["Component", Any])
train/LLaMA-Factory/src/llamafactory/webui/runner.py:347
↓ 2 callersMethod_generate
( self, messages: Sequence[Dict[str, str]], system: Optional[str] = None, tool
train/LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:105
↓ 2 callersMethod_get_batch_logps
Compute the log probabilities of the given labels under the given logits. Args: logits: Logits of the model (unnormalized). Shape
train/R3RAG_OpenRLHF/openrlhf/trainer/kto_trainer.py:307
↓ 2 callersFunction_get_library_name
()
train/LLaMA-Factory/src/llamafactory/extras/logging.py:98
↓ 2 callersFunction_get_merged_dataset
r""" Gets the merged datasets in the standard format.
train/LLaMA-Factory/src/llamafactory/data/loader.py:153
↓ 2 callersFunction_get_ngrams
Extracts all n-grams upto a given maximum order from an input segment. Args: segment: text segment from which n-grams will be extracted.
tool/FlashRAG/flashrag/evaluator/_bleu.py:129
↓ 2 callersFunction_get_package_version
(name: str)
train/LLaMA-Factory/src/llamafactory/extras/packages.py:34
↓ 2 callersFunction_get_preprocessed_dataset
r""" Preprocesses the dataset, including format checking and tokenization.
train/LLaMA-Factory/src/llamafactory/data/loader.py:176
↓ 2 callersFunction_get_unsloth_kwargs
( config: "PretrainedConfig", model_name_or_path: str, model_args: "ModelArguments" )
train/LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:30
↓ 2 callersMethod_get_video_sample_frames
r""" Computes video sample frames according to fps.
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:101
↓ 2 callersFunction_is_nightly
()
train/R3RAG_OpenRLHF/setup.py:12
↓ 2 callersMethod_launch
(self, data: Dict["Component", Any], do_train: bool)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:325
↓ 2 callersFunction_load_data_file
(file_path: str)
train/LLaMA-Factory/src/llamafactory/webui/components/data.py:59
↓ 2 callersMethod_load_file_config
(self, config_file_path: str)
tool/FlashRAG/flashrag/config/config.py:48
↓ 2 callersMethod_load_generator
(self, config)
tool/FlashRAG/webui/runner.py:376
↓ 2 callersMethod_load_pipeline_instance
(self, config, generator, retriever)
tool/FlashRAG/webui/runner.py:395
↓ 2 callersMethod_load_retriever
(self, config)
tool/FlashRAG/webui/runner.py:387
↓ 2 callersFunction_noisy_mean_initialization
(embed_weight: "torch.Tensor", num_new_tokens: int)
train/LLaMA-Factory/src/llamafactory/model/model_utils/embedding.py:32
↓ 2 callersMethod_parse_eval_args
(self, data: Dict["Component", Any])
train/LLaMA-Factory/src/llamafactory/webui/runner.py:265
↓ 2 callersMethod_parse_example
r""" input: a dict with keys {"question", "A", "B", "C", "D", "answer"} output: a tuple of (prompt, response)
train/LLaMA-Factory/src/llamafactory/eval/template.py:28
↓ 2 callersMethod_parse_train_args
(self, data: Dict["Component", Any])
train/LLaMA-Factory/src/llamafactory/webui/runner.py:110
↓ 2 callersMethod_prepare_pipeline
(self, config, progress=gr.Progress())
tool/FlashRAG/webui/runner.py:417
↓ 2 callersMethod_preprocess_image
r""" Pre-processes a single image.
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:86
↓ 2 callersMethod_preview
(self, data: Dict["Component", Any], do_train: bool)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:315
↓ 2 callersMethod_process_args
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", processor: Optional["Pro
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:73
↓ 2 callersFunction_process_request
( request: "ChatCompletionRequest", )
train/LLaMA-Factory/src/llamafactory/api/chat.py:70
← previousnext →201–300 of 1,737, ranked by callers