MCPcopy Create free account

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

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

Functionprint_pretrain_dataset_example
(example: Dict[str, List[int]], tokenizer: "PreTrainedTokenizer")
train/LLaMA-Factory/src/llamafactory/data/processors/pretrain.py:57
Functionprint_supervised_dataset_example
(example: Dict[str, List[int]], tokenizer: "PreTrainedTokenizer")
train/LLaMA-Factory/src/llamafactory/data/processors/supervised.py:214
Methodprint_trainable_parameters
(self)
train/R3RAG_OpenRLHF/openrlhf/models/actor.py:241
Functionprint_unsupervised_dataset_example
(example: Dict[str, List[int]], tokenizer: "PreTrainedTokenizer")
train/LLaMA-Factory/src/llamafactory/data/processors/unsupervised.py:100
Methodprocess_data
(self, data)
train/R3RAG_OpenRLHF/openrlhf/datasets/sft_dataset.py:85
Methodprocess_data
(self, data)
train/R3RAG_OpenRLHF/openrlhf/datasets/unpaired_preference_dataset.py:80
Methodprocess_data
(self, data)
train/R3RAG_OpenRLHF/openrlhf/datasets/reward_dataset.py:104
Functionprocess_image
(content_dict)
tool/FlashRAG/flashrag/generator/utils.py:91
Methodprocess_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:259
Methodprocess_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:299
Methodprocess_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:353
Methodprocess_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:422
Methodprocess_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:572
Methodprocess_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:651
Methodprocess_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:713
Methodprocess_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:819
Methodprocess_messages
( self, messages: Sequence[Dict[str, str]], images: Sequence["ImageInput"], vi
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:883
Methodprocess_question
处理问题并返回可视化结果
startup/R3-RAG.py:367
Methodprocess_retriever
(retriever)
tool/FlashRAG/flashrag/retriever/retriever.py:666
Methodprocess_token_ids
( self, input_ids: List[int], labels: Optional[List[int]], images: Sequence["I
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:675
Functionprompt_question
(previous_steps, question)
data/construct/02sample_from_dataset/prompt_template.py:122
Functionprompt_question_end
(previous_steps, question)
data/construct/02sample_from_dataset/prompt_template.py:505
Functionprompt_question_endv2
(previous_steps, question)
data/construct/02sample_from_dataset/prompt_template.py:624
Functionprompt_question_endv3
(previous_steps, question)
data/construct/02sample_from_dataset/prompt_template.py:706
Functionprompt_question_init
(question)
data/construct/02sample_from_dataset/prompt_template.py:1
Functionprompt_question_new
(previous_steps, question)
data/construct/02sample_from_dataset/prompt_template.py:233
Methodquestion
(self)
tool/FlashRAG/flashrag/dataset/dataset.py:150
Functionre_init_no_answer_records
(records)
benchmark/R3-RAG/src/inference_4gpu.py:291
Functionre_init_no_answer_records
(records)
benchmark/R3-RAG/src/inference_new.py:293
Functionre_init_no_answer_records
(records)
benchmark/R3-RAG/src/inference.py:291
Functionread_jsonl
(file_path)
tool/FlashRAG/flashrag/retriever/utils.py:137
Functionread_jsonl_file
(file_path)
tool/FlashRAG/scripts/preprocess_wiki_old.py:27
Functionread_jsonl_file
(file_path)
tool/FlashRAG/scripts/preprocess_wiki.py:28
Functionrecomp
Reference: Fangyuan Xu et al. "RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentation" in ICLR 202
tool/FlashRAG/examples/methods/run_exp.py:127
Methodrecover
( self, original_prompt: str, compressed_prompt: str, response: str, )
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1743
Functionrejection_sampling_processor
(args, objs)
train/R3RAG_OpenRLHF/openrlhf/utils/processor.py:40
Functionremote_rm_fn_ray
(api_url, queries, score_key="rewards")
train/R3RAG_OpenRLHF/openrlhf/utils/remote_rm_utils.py:44
Functionremove_handler
r""" Removes a handler to the root logger.
train/LLaMA-Factory/src/llamafactory/extras/logging.py:147
Functionreplug
Reference: Weijia Shi et al. "REPLUG: Retrieval-Augmented Black-Box Language Models".
tool/FlashRAG/examples/methods/run_exp.py:274
Functionrerank_manager
Decorator used for reranking retrieved documents.
tool/FlashRAG/flashrag/retriever/retriever.py:92
Methodresume
(self)
train/LLaMA-Factory/src/llamafactory/webui/engine.py:50
Methodresume
(self)
tool/FlashRAG/webui/engine.py:34
Functionretrobust
Reference: Ori Yoran et al. "Making Retrieval-Augmented Language Models Robust to Irrelevant Context" in ICLR 2024. Offic
tool/FlashRAG/examples/methods/run_exp.py:215
Functionreward_fn
(rewards: List[torch.Tensor])
train/R3RAG_OpenRLHF/openrlhf/cli/train_ppo_ray.py:21
Methodring_attn_group
(self)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:114
Functionrqrag
Function to run the RQRAGPipeline.
tool/FlashRAG/examples/methods/run_exp.py:563
Methodrun
The overall inference process of a RAG framework.
tool/FlashRAG/flashrag/pipeline/mm_pipeline.py:19
Methodrun
(self, dataset, do_eval=True, perform_modality_dict=PERFORM_MODALITY_DICT, pred_process_func=None)
tool/FlashRAG/flashrag/pipeline/mm_pipeline.py:61
Methodrun_batch_pred
(self, dataset)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:632
Methodrun_batch_pred_long_form
(self, dataset)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:587
Methodrun_eval
(self, data)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:366
Methodrun_evaluate
(self, data: Dict["Component", Any], progress=gr.Progress())
tool/FlashRAG/webui/runner.py:485
Methodrun_task
(queue)
tool/FlashRAG/webui/runner.py:492
Methodrun_train
(self, data)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:363
Methodsave_args
(self, data)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:423
Functionsave_config
r""" Saves user config.
train/LLaMA-Factory/src/llamafactory/webui/common.py:84
Methodsave_configs
Used in preview modulde to save the configs and write them to a file.
tool/FlashRAG/webui/runner.py:336
Functionsave_model
( lang: str, model_name: str, model_path: str, finetuning_type: str, checkpoint_path: Unio
train/LLaMA-Factory/src/llamafactory/webui/components/export.py:42
Methodsave_model
(self, model: nn.Module, tokenizer, output_dir, **kwargs)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:299
Methodsave_model
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_critic.py:183
Functionsc
Reference: Yucheng Li et al. "Compressing Context to Enhance Inference Efficiency of Large Language Models" in EMNLP 2023.
tool/FlashRAG/examples/methods/run_exp.py:175
Functionscheduler_hook
(param: "torch.nn.Parameter")
train/LLaMA-Factory/src/llamafactory/train/trainer_utils.py:536
Functionsearch
(query_request: QueryRequest)
startup/retriever_service.py:43
Functionsearch
(query_request: QueryRequest)
benchmark/retriever/src/retrive_server.py:47
Functionsearch
(query_request: QueryRequest)
benchmark/retriever/src/retrive_server_bm25.py:33
Functionsearch
(query_request: QueryRequest)
benchmark/retriever/src/retrive_server_bge.py:47
Functionsearch
(query_request: QueryRequest)
tool/utils/retriever/retriever_service.py:45
Functionsearch
(query_request: QueryRequest)
tool/utils/retriever/retriever_service_bge.py:45
Functionsearch
(query_request: QueryRequest)
tool/utils/retriever/retriever_service_bm25.py:45
Methodsearch
(self, *args, **kwargs)
tool/FlashRAG/flashrag/retriever/retriever.py:200
Methodsearch
(self, query, target_modal="text", num: Union[list, int, None] = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:832
Functionselfask_pred_parse
Parsing the prediction results of self-ask format.
tool/FlashRAG/flashrag/utils/pred_parse.py:3
Functionselfrag
Reference: Akari Asai et al. " SELF-RAG: Learning to Retrieve, Generate and Critique through self-reflection" in ICLR 2024.
tool/FlashRAG/examples/methods/run_exp.py:345
Methodset_abort
(self)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:54
Methodset_checkpoint
Enable or disable checkpointing in the encoder. See https://pytorch.org/docs/stable/checkpoint.html
tool/FlashRAG/flashrag/generator/fid.py:80
Methodset_pooling_method
(method, model2pooling)
tool/FlashRAG/flashrag/config/config.py:122
Methodset_retrieval_keys
(model2path, model2pooling, method2index, config)
tool/FlashRAG/flashrag/config/config.py:128
Methodsignature
Returns a signature for the tokenizer. :return: signature string
tool/FlashRAG/flashrag/evaluator/_bleu.py:23
Methodsignature
(self)
tool/FlashRAG/flashrag/evaluator/_bleu.py:40
Functionsingle_worker
(docs)
tool/FlashRAG/scripts/preprocess_wiki_old.py:153
Functionsingle_worker
(docs)
tool/FlashRAG/scripts/preprocess_wiki.py:139
Functionskr
Reference: Yile Wang et al. "Self-Knowledge Guided Retrieval Augmentation for Large Language Models" in EMNLP Findings 2023.
tool/FlashRAG/examples/methods/run_exp.py:294
Functionsplit_answer
(response_text)
benchmark/R3-RAG/src/inference_4gpu.py:79
Functionsplit_answer
(response_text)
benchmark/R3-RAG/src/split_server.py:19
Functionsplit_answer
(response_text)
benchmark/R3-RAG/src/inference_new.py:79
Functionsplit_answer
(response_text)
benchmark/R3-RAG/src/inference.py:79
Methodsplit_arg
(arg)
train/LLaMA-Factory/src/llamafactory/hparams/finetuning_args.py:446
Methodsplit_arg
(arg)
train/LLaMA-Factory/src/llamafactory/hparams/data_args.py:128
Functionsplit_by_question_mark
(text)
startup/RRAG.py:43
Functionsplit_query_endpoint
(request: SplitRequest)
benchmark/R3-RAG/src/split_server.py:68
Methodsplit_string_to_words
(input_string)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:2237
Functionspring
Reference: Yutao Zhu et al. "One Token Can Help! Learning Scalable and Pluggable Virtual Tokens for Retrieval-Augmented Large Language Mo
tool/FlashRAG/examples/methods/run_exp.py:498
Methodstream
()
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:274
Methodstream
( self, chatbot: List[List[Optional[str]]], messages: Sequence[Dict[str, str]],
train/LLaMA-Factory/src/llamafactory/webui/chatter.py:130
Methodstream_chat
( self, messages: Sequence[Dict[str, str]], system: Optional[str] = None, tool
train/LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:226
Methodstream_chat
r""" Gets the response token-by-token of the chat model.
train/LLaMA-Factory/src/llamafactory/chat/base_engine.py:79
Methodstream_chat
( self, messages: Sequence[Dict[str, str]], system: Optional[str] = None, tool
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:336
Functionsure
Reference: Jaehyung Kim et al. "SuRe: Summarizing Retrievals using Answer Candidates for Open-domain QA of LLMs" in ICLR 2024
tool/FlashRAG/examples/methods/run_exp.py:255
Methodsync_sentence
(sentences, text)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1309
Functiontask_to_execute
在这里实现你需要定时执行的任务
benchmark/retriever/call_retriever_in_time.py:32
← previousnext →1,601–1,700 of 1,737, ranked by callers