MCPcopy Create free account

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

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

Methodbatch_search
(self, *args, **kwargs)
tool/FlashRAG/flashrag/retriever/retriever.py:205
Methodbatch_search
(self, query, target_modal="text", num: Union[list, int, None] = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:845
Methodbatched_forward_pass
r""" Calculates model outputs in multiple batches. Subclass and override to inject custom behavior.
train/LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:417
Functioncache_manager
Decorator used for retrieving document cache. With the decorator, The retriever can store each retrieved document as a file and reuse it.
tool/FlashRAG/flashrag/retriever/retriever.py:18
Functioncalculate_doc_score
(problem, history_steps, current_analysis, current_query, retrieved_docs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:1453
Methodcalculate_metric
Get the total score of this metric and score for each sample. Args: data object: it contains basic information and generated info
tool/FlashRAG/flashrag/evaluator/metrics.py:19
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:84
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:104
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:123
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:166
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:207
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:228
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:260
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:318
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:337
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:356
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:409
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:428
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:447
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:558
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:600
Methodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:615
Methodcalculate_rouge
(self, pred, golden_answers)
tool/FlashRAG/flashrag/evaluator/metrics.py:380
Functioncalculate_step_score
(problem, history_steps, current_analysis, current_query, retrieved_docs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:1331
Functioncalculate_step_score
(problem, history_steps, current_analysis, current_query, retrieved_docs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:1333
Functioncalculate_step_score
(problem, history_steps, current_analysis, current_query, retrieved_docs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:1331
Functioncalculate_step_score
(problem, history_steps, current_analysis, current_query, retrieved_docs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:1331
Functioncan_preview
(dataset_dir: str, dataset: list)
train/LLaMA-Factory/src/llamafactory/webui/components/data.py:42
Functioncan_quantize
r""" Judges if the quantization is available in this finetuning type.
train/LLaMA-Factory/src/llamafactory/webui/utils.py:52
Functioncan_quantize
(checkpoint_path: Union[str, List[str]])
train/LLaMA-Factory/src/llamafactory/webui/components/export.py:35
Functioncan_quantize_to
r""" Returns the available quantization bits.
train/LLaMA-Factory/src/llamafactory/webui/utils.py:62
Methodchange_lang
(self, lang: str)
train/LLaMA-Factory/src/llamafactory/webui/engine.py:76
Methodchange_lang
(self, lang: str)
tool/FlashRAG/webui/engine.py:27
Functionchange_stage
r""" Modifys states after changing the training stage.
train/LLaMA-Factory/src/llamafactory/webui/utils.py:76
Methodchat
( self, messages: Sequence[Dict[str, str]], system: Optional[str] = None, tool
train/LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:198
Methodchat
r""" Gets a list of responses of the chat model.
train/LLaMA-Factory/src/llamafactory/chat/base_engine.py:64
Methodchat
( self, messages: Sequence[Dict[str, str]], system: Optional[str] = None, tool
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:305
Methodchat
(self, query)
tool/FlashRAG/webui/chat_pipelines/branching_pipeline.py:18
Methodchat
(self, query)
tool/FlashRAG/webui/chat_pipelines/branching_pipeline.py:64
Methodchat
(self, query)
tool/FlashRAG/webui/chat_pipelines/sequential_pipeline.py:16
Methodchat
(self, query)
tool/FlashRAG/webui/chat_pipelines/sequential_pipeline.py:77
Methodchat
(self, query)
tool/FlashRAG/webui/chat_pipelines/conditional_pipeline.py:41
Methodchat
(self, query)
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:26
Methodchat
(self, query)
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:68
Methodchat
(self, query)
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:204
Methodchat
(self, query)
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:294
Functioncheck_correctness
(str1, str2, standard_answers)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:1276
Functioncheck_json_schema
r""" Checks if the json schema is valid.
train/LLaMA-Factory/src/llamafactory/webui/utils.py:83
Functioncheck_lora_model
(model: "LoraModel")
train/LLaMA-Factory/src/llamafactory/train/test_utils.py:45
Methodcheck_output_dir
(self, lang: str, model_name: str, finetuning_type: str, output_dir: str)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:451
Methodcollate_fn
(self, batch)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/replay_buffer.py:204
Methodcollate_fn
(self, item_list)
train/R3RAG_OpenRLHF/openrlhf/datasets/sft_dataset.py:145
Methodcollate_fn
(self, item_list)
train/R3RAG_OpenRLHF/openrlhf/datasets/process_reward_dataset.py:97
Methodcollate_fn
(self, item_list)
train/R3RAG_OpenRLHF/openrlhf/datasets/unpaired_preference_dataset.py:106
Methodcollate_fn
(self, item_list)
train/R3RAG_OpenRLHF/openrlhf/datasets/reward_dataset.py:182
Functioncompare_model
(model_a: "torch.nn.Module", model_b: "torch.nn.Module", diff_keys: Sequence[str] = [])
train/LLaMA-Factory/src/llamafactory/train/test_utils.py:34
Methodcompress_json
( self, json_data: dict, json_config: Union[str, dict], instruction: str = "",
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:353
Methodcompute_loss
r""" Computes pairwise loss. The first n examples are chosen and the last n examples are rejected. Subclass and override to inject cu
train/LLaMA-Factory/src/llamafactory/train/rm/trainer.py:90
Methodcompute_loss
r""" Fixes the loss value. See https://github.com/huggingface/transformers/pull/35438 for details. It should be removed after https:/
train/LLaMA-Factory/src/llamafactory/train/sft/trainer.py:92
Methodcompute_loss
r""" Fixes the loss value. See https://github.com/huggingface/transformers/pull/35438 for details. It should be removed after https:/
train/LLaMA-Factory/src/llamafactory/train/pt/trainer.py:77
Methodcompute_loss
r""" Fixes the loss value. See https://github.com/huggingface/transformers/pull/35438 for details.
train/LLaMA-Factory/src/llamafactory/train/kto/trainer.py:255
Methodcompute_loss
r""" Fixes the loss value. See https://github.com/huggingface/transformers/pull/35438 for details.
train/LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:277
Functionconditional_sft_processor
(args, objs)
train/R3RAG_OpenRLHF/openrlhf/utils/processor.py:18
Methodconfig
(self)
tool/FlashRAG/flashrag/generator/openai_generator.py:42
Methodconfig
(self)
tool/FlashRAG/flashrag/generator/generator.py:25
Methodconfig
(self)
tool/FlashRAG/flashrag/retriever/retriever.py:121
Functionconvert_alpaca
r""" Converts alpaca format dataset to the standard format.
train/LLaMA-Factory/src/llamafactory/data/aligner.py:81
Functionconvert_sharegpt
r""" Converts sharegpt format dataset to the standard format.
train/LLaMA-Factory/src/llamafactory/data/aligner.py:137
Methodcos_sim
(a, b)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1947
Functioncreate_chat_completion
(request: ChatCompletionRequest)
train/LLaMA-Factory/src/llamafactory/api/app.py:103
Functioncreate_index_builder
(engine: "Engine")
tool/FlashRAG/webui/components/index_builder.py:7
Methodcreate_optimizer
(self)
train/LLaMA-Factory/src/llamafactory/train/rm/trainer.py:70
Methodcreate_optimizer
(self)
train/LLaMA-Factory/src/llamafactory/train/sft/trainer.py:72
Methodcreate_optimizer
(self)
train/LLaMA-Factory/src/llamafactory/train/pt/trainer.py:57
Methodcreate_optimizer
(self)
train/LLaMA-Factory/src/llamafactory/train/kto/trainer.py:109
Methodcreate_optimizer
(self)
train/LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:111
Functioncreate_or_update_model_card
(self: "AutoModelForCausalLMWithValueHead", output_dir: str)
train/LLaMA-Factory/src/llamafactory/model/patcher.py:194
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
train/LLaMA-Factory/src/llamafactory/train/rm/trainer.py:76
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
train/LLaMA-Factory/src/llamafactory/train/sft/trainer.py:78
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
train/LLaMA-Factory/src/llamafactory/train/pt/trainer.py:63
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
train/LLaMA-Factory/src/llamafactory/train/kto/trainer.py:115
Methodcreate_scheduler
( self, num_training_steps: int, optimizer: Optional["torch.optim.Optimizer"] = None )
train/LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:117
Functioncreate_score_evaluation
(request: ScoreEvaluationRequest)
train/LLaMA-Factory/src/llamafactory/api/app.py:119
Functioncreate_segments
(doc_text, max_length, stride)
tool/FlashRAG/scripts/preprocess_wiki_old.py:43
Methodcustom_forward
(*inputs)
tool/FlashRAG/flashrag/generator/fid.py:104
Functioncustom_gradient_checkpointing_func
(func: Callable, *args: Union["torch.Tensor", Any], **kwargs)
train/LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:85
Methodcustom_serializer
(obj)
tool/FlashRAG/flashrag/retriever/retriever.py:162
Methodemit
(self, record)
train/LLaMA-Factory/src/llamafactory/extras/logging.py:57
Methodempty_cache
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:102
Methodencode
(self, query_list: Union[List[str], str], batch_size=64, is_query=True)
tool/FlashRAG/flashrag/retriever/encoder.py:115
Methodencode_image
(self, image_list: List)
tool/FlashRAG/flashrag/retriever/encoder.py:207
Methodencode_text
(self, text_list: List[str])
tool/FlashRAG/flashrag/retriever/encoder.py:224
Functioneval_logit_processor
r""" Computes the token with the largest likelihood to reduce memory footprint.
train/LLaMA-Factory/src/llamafactory/train/sft/metric.py:47
Methodevaluate
Calculate all metric indicators and summarize them.
tool/FlashRAG/flashrag/evaluator/evaluator.py:46
Methodextract
(self, content: str)
train/LLaMA-Factory/src/llamafactory/data/formatter.py:141
Methodextract_answers
Extracts generated answers by removing prompts and optionally stopping at the first stop word. Parameters: input_ids (to
tool/FlashRAG/flashrag/generator/stop_word_criteria.py:72
Functionfilter_dataset
(dataset: Dataset, filter_func=None)
tool/FlashRAG/flashrag/dataset/utils.py:24
Methodfinalize_options
(self)
train/R3RAG_OpenRLHF/setup.py:44
Methodfind_descendants
(base_class, subclasses=None)
tool/FlashRAG/flashrag/evaluator/evaluator.py:29
Methodfit
Train critic model with the replay buffer.
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_critic.py:171
← previousnext →1,301–1,400 of 1,737, ranked by callers