MCPcopy Create free account

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

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

↓ 1 callersMethod_initiate_actors
(self, pg, num_gpus_per_actor)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:178
↓ 1 callersMethod_lexical_unit
(self, sents)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:153
↓ 1 callersMethod_load_data
Load data from the provided dataset_path or directly download the file(TODO).
tool/FlashRAG/flashrag/dataset/dataset.py:111
↓ 1 callersMethod_load_embedding
(self, embedding_path, corpus_size, hidden_size)
tool/FlashRAG/flashrag/retriever/index_builder.py:218
↓ 1 callersMethod_load_model
(self)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:70
↓ 1 callersMethod_load_model
r"""Load model and tokenizer for generator.
tool/FlashRAG/flashrag/generator/generator.py:289
↓ 1 callersFunction_load_single_dataset
r""" Loads a single dataset and aligns it to the standard format.
train/LLaMA-Factory/src/llamafactory/data/loader.py:44
↓ 1 callersMethod_merge_external_config
(self)
tool/FlashRAG/flashrag/config/config.py:73
↓ 1 callersMethod_packed_get_batch_logps
( self, logits: torch.FloatTensor, labels: torch.LongTensor, attention_mask,
train/R3RAG_OpenRLHF/openrlhf/trainer/dpo_trainer.py:426
↓ 1 callersFunction_parse_eval_args
(args: Optional[Union[Dict[str, Any], List[str]]] = None)
train/LLaMA-Factory/src/llamafactory/hparams/parser.py:170
↓ 1 callersFunction_parse_infer_args
(args: Optional[Union[Dict[str, Any], List[str]]] = None)
train/LLaMA-Factory/src/llamafactory/hparams/parser.py:165
↓ 1 callersFunction_parse_train_args
(args: Optional[Union[Dict[str, Any], List[str]]] = None)
train/LLaMA-Factory/src/llamafactory/hparams/parser.py:160
↓ 1 callersMethod_preivew_eval
(self, data: Dict["Component", Any])
tool/FlashRAG/webui/runner.py:273
↓ 1 callersMethod_preivew_pipeline
(self, data: Dict["Component", Any])
tool/FlashRAG/webui/runner.py:264
↓ 1 callersMethod_prepare_dir
(self)
tool/FlashRAG/flashrag/config/config.py:238
↓ 1 callersMethod_prepare_model
(self)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:71
↓ 1 callersMethod_prepare_phrase_tokenizer
(self)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:60
↓ 1 callersMethod_save_cache
(self)
tool/FlashRAG/flashrag/retriever/retriever.py:159
↓ 1 callersMethod_save_checkpoint
(self, args, tag, client_states)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_trainer.py:506
↓ 1 callersMethod_save_embedding
(self, all_embeddings)
tool/FlashRAG/flashrag/retriever/index_builder.py:222
↓ 1 callersMethod_save_results
(self, category_corrects: Dict[str, "NDArray"], results: Dict[str, Dict[int, str]])
train/LLaMA-Factory/src/llamafactory/eval/evaluator.py:139
↓ 1 callersMethod_search
(self, query: str, num: int = None, return_score=False)
tool/FlashRAG/flashrag/retriever/retriever.py:271
↓ 1 callersMethod_set_additional_key
(self)
tool/FlashRAG/flashrag/config/config.py:121
↓ 1 callersMethod_set_seed
(self)
tool/FlashRAG/flashrag/config/config.py:256
↓ 1 callersFunction_setup_freeze_tuning
( model: "PreTrainedModel", finetuning_args: "FinetuningArguments", is_trainable: bool, cast_t
train/LLaMA-Factory/src/llamafactory/model/adapter.py:58
↓ 1 callersFunction_setup_full_tuning
( model: "PreTrainedModel", finetuning_args: "FinetuningArguments", is_trainable: bool, cast_t
train/LLaMA-Factory/src/llamafactory/model/adapter.py:39
↓ 1 callersFunction_setup_logger
()
train/R3RAG_OpenRLHF/openrlhf/utils/logging_utils.py:29
↓ 1 callersFunction_setup_lora_tuning
( config: "PretrainedConfig", model: "PreTrainedModel", model_args: "ModelArguments", finetuni
train/LLaMA-Factory/src/llamafactory/model/adapter.py:139
↓ 1 callersMethod_stream_chat
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", processor: Optional["Pro
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:241
↓ 1 callersFunction_training_function
(config: Dict[str, Any])
train/LLaMA-Factory/src/llamafactory/train/tuner.py:49
↓ 1 callersMethod_update_component
( self, input_dict: Dict[str, Dict[str, Any]] )
tool/FlashRAG/webui/engine.py:17
↓ 1 callersFunction_validate_args
(args)
train/R3RAG_OpenRLHF/openrlhf/cli/train_ppo_ray.py:25
↓ 1 callersFunctionabort_process
r""" Aborts the processes recursively in a bottom-up way.
train/LLaMA-Factory/src/llamafactory/webui/utils.py:37
↓ 1 callersMethodadd_new_tokens
(self, token_embedding_path, token_name_func=lambda idx: f"[ref{idx+1}]")
tool/FlashRAG/flashrag/generator/generator.py:308
↓ 1 callersMethodadd_source
(self, result: Union[list, tuple], retriever)
tool/FlashRAG/flashrag/retriever/retriever.py:641
↓ 1 callersFunctionadd_z3_leaf_module
r""" Sets module as a leaf module to skip partitioning in deepspeed zero3.
train/LLaMA-Factory/src/llamafactory/model/model_utils/moe.py:36
↓ 1 callersFunctionalign_dataset
r""" Aligned dataset: _prompt: [{"role": "user", "content": "..."}] * (2T - 1) _response: [{"role": "assistant", "content": "..."}
train/LLaMA-Factory/src/llamafactory/data/aligner.py:233
↓ 1 callersMethodall_gather
(self, data)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:388
↓ 1 callersFunctionapply_checkpoint_wrapper
Wrap each block of the encoder to enable checkpointing.
tool/FlashRAG/flashrag/generator/fid.py:125
↓ 1 callersFunctionapply_liger_kernel
( config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool, require_logits
train/LLaMA-Factory/src/llamafactory/model/model_utils/liger_kernel.py:30
↓ 1 callersFunctionapply_lora
(model_name_or_path, lora_path, output_path, is_rm, bf16)
train/R3RAG_OpenRLHF/openrlhf/cli/lora_combiner.py:8
↓ 1 callersMethodasync_fit_actor_model
Train actor model. Args: critic_model_group (PPORayActorGroup): critic model group. initial_model_group (PPORayActorG
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:244
↓ 1 callersFunctionautocast_projector_dtype
r""" Casts projector output to half precision for fine-tuning quantized VLMs.
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:118
↓ 1 callersFunctionbasic_process
(title, text)
tool/FlashRAG/scripts/preprocess_wiki_old.py:58
↓ 1 callersFunctionbasic_process
(title, text)
tool/FlashRAG/scripts/preprocess_wiki.py:44
↓ 1 callersFunctionbatch_generate
(args)
train/R3RAG_OpenRLHF/openrlhf/cli/batch_inference.py:91
↓ 1 callersFunctionbatch_generate_vllm
(args)
train/R3RAG_OpenRLHF/openrlhf/cli/batch_inference.py:16
↓ 1 callersMethodbatch_inference
(self, batch_input: Dict[str, "torch.Tensor"])
train/LLaMA-Factory/src/llamafactory/eval/evaluator.py:72
↓ 1 callersFunctionbatch_rm_inference
(args)
train/R3RAG_OpenRLHF/openrlhf/cli/batch_inference.py:202
↓ 1 callersMethodbeautify_context
(self, context: str)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:239
↓ 1 callersMethodbuild_bm25_index_bm25s
Building BM25 index based on bm25s library.
tool/FlashRAG/flashrag/retriever/index_builder.py:190
↓ 1 callersMethodbuild_bm25_index_pyserini
Building BM25 index based on Pyserini library. Reference: https://github.com/castorini/pyserini/blob/master/docs/usage-index.md#building-a-bm
tool/FlashRAG/flashrag/retriever/index_builder.py:133
↓ 1 callersMethodbuild_dense_index
Obtain the representation of documents based on the embedding model(BERT-based) and construct a faiss index.
tool/FlashRAG/flashrag/retriever/index_builder.py:264
↓ 1 callersMethodbuild_index
r"""Constructing different indexes based on selective retrieval method.
tool/FlashRAG/flashrag/retriever/index_builder.py:121
↓ 1 callersMethodbuild_prompt_for_reasoning_chain
( self, hop, question, existing_triples, candidate_triples, ge
tool/FlashRAG/flashrag/refiner/kg_refiner.py:295
↓ 1 callersMethodbuild_transform
(self, input_size)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:161
↓ 1 callersMethodcal_gen_probs
(self, prev, next)
tool/FlashRAG/flashrag/generator/generator.py:506
↓ 1 callersFunctioncalculate_doc_score
(problem, history_steps, current_analysis, current_query, retrieved_docs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:1451
↓ 1 callersFunctioncalculate_doc_score
(problem, history_steps, current_analysis, current_query, retrieved_docs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:1451
↓ 1 callersFunctioncalculate_doc_score
(problem, history_steps, current_analysis, current_query, retrieved_docs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:1451
↓ 1 callersMethodcalculate_em
(self, prediction: str, golden_answers: list)
tool/FlashRAG/flashrag/evaluator/metrics.py:146
↓ 1 callersMethodcalculate_metric
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:473
↓ 1 callersMethodcalculate_prob
(self, prompt, answer)
tool/FlashRAG/examples/methods/utils/get_lm_probs_dataset.py:48
↓ 1 callersMethodcalculate_sub_em
(self, prediction: str, golden_answers: list)
tool/FlashRAG/flashrag/evaluator/metrics.py:187
↓ 1 callersFunctioncheck_correctness
(str1, str2, standard_answers, client, model)
data/construct/02sample_from_dataset/mainv1.py:145
↓ 1 callersFunctioncheck_correctness
(str1, str2, standard_answers)
data/construct/02sample_from_dataset/main.py:143
↓ 1 callersFunctioncheck_correctness
(str1, str2, standard_answers)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:1276
↓ 1 callersFunctioncheck_correctness
(str1, str2, standard_answers)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:1278
↓ 1 callersFunctioncheck_correctness
(str1, str2, standard_answers)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:1276
↓ 1 callersFunctioncheck_dependencies
r""" Checks the version of the required packages.
train/LLaMA-Factory/src/llamafactory/extras/misc.py:92
↓ 1 callersFunctioncheck_prompt
(question, output, standard_answers)
benchmark/R3-RAG/src/cal_metric.py:24
↓ 1 callersFunctioncheck_prompt
(question, output, standard_answers)
benchmark/batch_check/batch_check.py:60
↓ 1 callersFunctionclean_prompt_image
(input)
tool/FlashRAG/flashrag/dataset/utils.py:96
↓ 1 callersMethodcompress_prompt_llmlingua2
Compresses the given context, instruction and question. Args: context (List[str]): List of context strings that form the
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:825
↓ 1 callersFunctioncompute_em_f1
Compute EM and F1 using your provided F1 function. Args: gold_list (list[str]): List of ground-truth answers. pred_list
benchmark/R3-RAG/src/cal_metric.py:178
↓ 1 callersFunctioncompute_em_f1
Compute EM and F1 using your provided F1 function. Args: gold_list (list[str]): List of ground-truth answers. pred_list
benchmark/batch_check/batch_check.py:261
↓ 1 callersMethodcompute_model_logps
(self, model, input_ids, attention_mask, labels, prompt_id_lens)
train/R3RAG_OpenRLHF/openrlhf/trainer/kto_trainer.py:296
↓ 1 callersMethodcompute_preference_loss
r""" Computes loss for preference learning.
train/LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:159
↓ 1 callersMethodcompute_reference_log_probs
r""" Computes log probabilities of the reference model.
train/LLaMA-Factory/src/llamafactory/train/kto/trainer.py:182
↓ 1 callersMethodcompute_reference_log_probs
r""" Computes log probabilities of the reference model.
train/LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:210
↓ 1 callersMethodconcate_segment_info
( self, segment_info: List[List[tuple]], )
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:2078
↓ 1 callersMethodconcatenated_inputs
Concatenate the chosen and rejected inputs into a single tensor. Args: batch: A batch of data. Must contain the keys 'chosen_inpu
train/R3RAG_OpenRLHF/openrlhf/trainer/rm_trainer.py:324
↓ 1 callersMethodconcatenated_inputs
Concatenate the chosen and rejected inputs into a single tensor. Args: batch: A batch of data. Must contain the keys 'chosen_inpu
train/R3RAG_OpenRLHF/openrlhf/trainer/dpo_trainer.py:334
↓ 1 callersFunctionconfigure_attn_implementation
( config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool )
train/LLaMA-Factory/src/llamafactory/model/model_utils/attention.py:32
↓ 1 callersFunctionconfigure_longlora
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
train/LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:359
↓ 1 callersFunctionconfigure_moe
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
train/LLaMA-Factory/src/llamafactory/model/model_utils/moe.py:70
↓ 1 callersFunctionconfigure_packing
(model_args: "ModelArguments", is_trainable: bool)
train/LLaMA-Factory/src/llamafactory/model/model_utils/packing.py:117
↓ 1 callersFunctionconfigure_quantization
r""" Priority: PTQ-quantized (train/infer) > AutoGPTQ (export) > On-the-fly quantization (train/infer)
train/LLaMA-Factory/src/llamafactory/model/model_utils/quantization.py:100
↓ 1 callersFunctionconfigure_rope
(config: "PretrainedConfig", model_args: "ModelArguments", is_trainable: bool)
train/LLaMA-Factory/src/llamafactory/model/model_utils/rope.py:34
↓ 1 callersFunctionconfigure_visual_model
r""" Patches VLMs before loading them.
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:139
↓ 1 callersMethodcontrol_context_budget
( self, context: List[str], context_tokens_length: List[int], target_token: fl
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1223
↓ 1 callersMethodcontrol_sentence_budget
( self, context: List[str], target_token: float, keep_first_sentence: int = 0,
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1288
↓ 1 callersMethodconvert_candidate_triples_to_choices
(self, candidates)
tool/FlashRAG/flashrag/refiner/kg_refiner.py:289
↓ 1 callersFunctionconvert_numpy
(data: Any)
tool/FlashRAG/flashrag/dataset/utils.py:6
↓ 1 callersFunctionconvert_numpy
Recursively convert numpy objects in nested dictionaries or lists to native Python types.
tool/FlashRAG/flashrag/retriever/utils.py:11
↓ 1 callersFunctionconvert_numpy_to_lists
将NumPy数组转换为嵌套列表结构
benchmark/retriever/src/retrive_server_bm25.py:24
↓ 1 callersFunctionconvert_pretrained_model_to_mod
( model: "PreTrainedModel", config: "PretrainedConfig", model_args: "ModelArguments" )
train/LLaMA-Factory/src/llamafactory/model/model_utils/mod.py:32
↓ 1 callersFunctionconvert_to_standard_jsonl
(input_file, output_file)
data/construct/03merge_samples/format.py:34
↓ 1 callersFunctioncreate_basic
(engine: "Engine")
tool/FlashRAG/webui/components/basic.py:7
↓ 1 callersFunctioncreate_chat
(engine: "Engine")
tool/FlashRAG/webui/components/chat.py:7
← previousnext →501–600 of 1,737, ranked by callers