MCPcopy Create free account

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

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

Method__init__
( self, config: dict, prompt_template = None, retriever = None, genera
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:1076
Method__init__
(self, doc_scores: torch.FloatTensor)
tool/FlashRAG/flashrag/pipeline/replug_utils.py:211
Method__init__
(self, config_file_path=None, config_dict={})
tool/FlashRAG/flashrag/config/config.py:10
Method__init__
(self, config)
tool/FlashRAG/examples/methods/utils/get_lm_probs_dataset.py:23
Method__init__
(self, queue, original_stream)
tool/FlashRAG/webui/utils.py:53
Method__init__
( self, runner: "Runner", manager: "Manager" )
tool/FlashRAG/webui/chatter.py:8
Method__init__
(self, manager: Manager)
tool/FlashRAG/webui/runner.py:19
Method__init__
(self)
tool/FlashRAG/webui/engine.py:12
Method__init__
(self)
tool/FlashRAG/webui/manager.py:7
Method__init__
(self, *args, **kwargs)
tool/FlashRAG/webui/chat_pipelines/branching_pipeline.py:13
Method__init__
(self, *args, **kwargs)
tool/FlashRAG/webui/chat_pipelines/sequential_pipeline.py:11
Method__init__
inference stage: query -> judger -> sequential pipeline or naive generate
tool/FlashRAG/webui/chat_pipelines/conditional_pipeline.py:11
Method__init__
( self, config, prompt_template=None, retriever=None, generator=None
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:8
Method__init__
(self, config, prompt_template=None, retriever=None, generator=None)
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:59
Method__init__
(self, config, prompt_template=None, retriever=None, generator=None)
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:195
Method__init__
(self, config, prompt_template=None, retriever=None, generator=None)
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:285
Method__init__
(self, config)
tool/FlashRAG/webui/chat_pipelines/base_chat_pipeline.py:2
Method__iter__
(self)
train/R3RAG_OpenRLHF/openrlhf/utils/distributed_sampler.py:107
Method__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/utils/distributed_sampler.py:136
Method__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/datasets/sft_dataset.py:112
Method__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/datasets/process_reward_dataset.py:48
Method__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/datasets/prompts_dataset.py:57
Method__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/datasets/unpaired_preference_dataset.py:100
Method__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/datasets/reward_dataset.py:137
Method__len__
(self)
tool/FlashRAG/flashrag/dataset/dataset.py:183
Method__len__
(self)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:77
Method__new__
(cls, name_or_path, **kwargs)
tool/FlashRAG/flashrag/pipeline/replug_utils.py:229
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/data/collator.py:90
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:50
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:66
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:96
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:128
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/hparams/finetuning_args.py:445
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/hparams/model_args.py:313
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/hparams/data_args.py:127
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/hparams/training_args.py:46
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/hparams/evaluation_args.py:60
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/train/rm/metric.py:41
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/train/sft/metric.py:77
Method__post_init__
(self)
train/LLaMA-Factory/src/llamafactory/train/sft/metric.py:109
Method__radd__
(self, other)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:30
Method__repr__
(self)
train/LLaMA-Factory/src/llamafactory/data/parser.py:67
Method__repr__
(self)
tool/FlashRAG/flashrag/config/config.py:293
Method__setitem__
(self, key, value)
tool/FlashRAG/flashrag/config/config.py:273
Method__str__
Return a string representation of the dataset with a summary of items.
tool/FlashRAG/flashrag/dataset/dataset.py:194
Method_batch_search
(self, query, num: int = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:313
Method_batch_search
(self, query: List[str], num: int = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:447
Method_batch_search
(self, query: List[str], target_modal: str = "text", num: int = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:542
Method_chat
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", processor: Optional["Pro
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:190
Method_check_placeholder
(self)
tool/FlashRAG/flashrag/prompt/base_prompt.py:47
Function_convert_images
r""" Optionally concatenates image path to dataset dir when loading from local disk.
train/LLaMA-Factory/src/llamafactory/data/aligner.py:35
Function_convert_videos
r""" Optionally concatenates video path to dataset dir when loading from local disk.
train/LLaMA-Factory/src/llamafactory/data/aligner.py:58
Method_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:165
Function_fp32_forward_post_hook
( module: "torch.nn.Module", args: Tuple["torch.Tensor"], output: "torch.Tensor" )
train/LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:130
Method_get_scores
( model: "PreTrainedModelWrapper", tokenizer: "PreTrainedTokenizer", batch_input: List
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:284
Method_get_self_info_via_curie
(self, text: str)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:126
Method_get_self_info_via_gpt2
(self, text: str)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:105
Method_get_train_sampler
(self)
train/LLaMA-Factory/src/llamafactory/train/rm/trainer.py:83
Method_get_train_sampler
(self)
train/LLaMA-Factory/src/llamafactory/train/sft/trainer.py:85
Method_get_train_sampler
(self)
train/LLaMA-Factory/src/llamafactory/train/pt/trainer.py:70
Method_get_train_sampler
r""" Replaces the sequential sampler of KTO Trainer created by trl with the random sampler.
train/LLaMA-Factory/src/llamafactory/train/kto/trainer.py:122
Method_get_train_sampler
(self)
train/LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:124
Function_gradient_checkpointing_enable
r""" Activates gradient checkpointing for the current model. Modification of the original method to enable gradient checkpointing for block-w
train/LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:98
Method_load_model
(self)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:79
Method_load_model
(self)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:119
Method_load_model
(self)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:307
Method_load_model
r"""Load model and tokenizer for generator.
tool/FlashRAG/flashrag/generator/generator.py:529
Function_mm_projector_forward_post_hook
( module: "torch.nn.Module", args: Tuple["torch.Tensor"], output: "torch.Tensor" )
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:123
Function_mp_fn
(index)
train/LLaMA-Factory/src/train.py:22
Method_noun_phrases
(sent)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:217
Method_preprocess_image
(self, image: "ImageObject", **kwargs)
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:779
Method_regularize_videos
(self, videos: Sequence["VideoInput"], **kwargs)
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:796
Method_remove_duplicate_doc
(self, docs)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:835
Method_save_checkpoint
(self, args, tag, client_states)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_actor.py:161
Method_search
(self, query: str, num: int = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:432
Method_search
(self, query, target_modal: str = "text", num: int = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:513
Method_search_with_rerank
(self, *args, **kwargs)
tool/FlashRAG/flashrag/retriever/retriever.py:213
Method_set_abort
(self, signum, frame)
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:203
Function_start_background_loop
(loop: "asyncio.AbstractEventLoop")
train/LLaMA-Factory/src/llamafactory/chat/chat_model.py:34
Method_unit_info
(tokens, self_info, units)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:185
Method_write_log
(self, log_entry: str)
train/LLaMA-Factory/src/llamafactory/extras/logging.py:53
Method_write_log
(self, output_dir: str, logs: Dict[str, Any])
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:222
Functionaar
Reference: Zichun Yu et al. "Augmentation-Adapted Retriever Improves Generalization of Language Models as Generic Plug-In" in ACL
tool/FlashRAG/examples/methods/run_exp.py:43
Functionadaptive
(args)
tool/FlashRAG/examples/methods/run_exp.py:541
Functionadd_handler
r""" Adds a handler to the root logger.
train/LLaMA-Factory/src/llamafactory/extras/logging.py:139
Methodadd_to_head
(self, token, self_info)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:35
Methodadd_to_tail
(self, token, self_info)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:38
Methodapply
(self, **kwargs)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:60
Methodapply
(self, **kwargs)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:76
Methodapply
(self, **kwargs)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:100
Methodapply
(self, **kwargs)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:132
Methodasync_run_method
(self, method_name, *args, **kwargs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:311
Methodbackward
(ctx: "torch.autograd.Function", grad_output: "torch.Tensor")
train/LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:66
Functionbasic_pred_parse
(dataset)
tool/FlashRAG/flashrag/utils/pred_parse.py:34
Methodbatch_run
(self, dataset, batch_size=None)
tool/FlashRAG/flashrag/refiner/refiner.py:30
Methodbatch_run
(self, dataset)
tool/FlashRAG/flashrag/refiner/refiner.py:72
Methodbatch_run
(self, dataset)
tool/FlashRAG/flashrag/refiner/refiner.py:125
Methodbatch_run
(self, dataset, batch_size=16)
tool/FlashRAG/flashrag/refiner/refiner.py:160
Methodbatch_run
(self, dataset, batch_size=2)
tool/FlashRAG/flashrag/refiner/refiner.py:226
Methodbatch_run
(self, dataset)
tool/FlashRAG/flashrag/refiner/kg_refiner.py:556
← previousnext →1,201–1,300 of 1,737, ranked by callers