MCPcopy Create free account

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

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

↓ 1 callersFunctionmain
()
train/LLaMA-Factory/src/train.py:18
↓ 1 callersFunctionmain
()
train/LLaMA-Factory/src/api.py:23
↓ 1 callersFunctionmain
()
train/LLaMA-Factory/src/webui.py:20
↓ 1 callersFunctionmain
()
train/LLaMA-Factory/src/llamafactory/cli.py:76
↓ 1 callersFunctionmain
()
tool/FlashRAG/flashrag/retriever/index_builder.py:366
↓ 1 callersMethodmake_experience
Turn samples into experience by calculating logprobs, values, rewards, and kl divergence.
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:658
↓ 1 callersMethodmake_experience
Turn samples into experience by calculating logprobs, values, rewards, and kl divergence.
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:660
↓ 1 callersMethodmake_experience
Turn samples into experience by calculating logprobs, values, rewards, and kl divergence.
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:658
↓ 1 callersMethodmake_experience
Turn samples into experience by calculating logprobs, values, rewards, and kl divergence.
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:658
↓ 1 callersMethodmake_experience_list
Make a list of experience with the micro_rollout_batch_size. This method will first calculate the response sequences and rewards for
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:210
↓ 1 callersMethodmake_experience_list
Make a list of experience with the micro_rollout_batch_size. This method will first calculate the response sequences and rewards for
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:210
↓ 1 callersMethodmake_experience_list
Make a list of experience with the micro_rollout_batch_size. This method will first calculate the response sequences and rewards for
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:210
↓ 1 callersMethodmask_a_sent
(self, sent, level)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:260
↓ 1 callersFunctionmerge_dataset
r""" Merges multiple datasets to a unified dataset.
train/LLaMA-Factory/src/llamafactory/data/data_utils.py:49
↓ 1 callersMethodmonitor
(self)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:369
↓ 1 callersMethodmoving_average
(self, model, model_ema, beta=0.992, device="cpu")
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:269
↓ 1 callersFunctionmystrip
(one_str)
benchmark/NaiveRAG/src/inference.py:24
↓ 1 callersFunctionmystrip
(one_str)
benchmark/NaiveGeneration/src/inference.py:17
↓ 1 callersFunctionmystrip
(one_str)
benchmark/R3-RAG/src/inference_4gpu.py:21
↓ 1 callersFunctionmystrip
(one_str)
benchmark/R3-RAG/src/inference_new.py:21
↓ 1 callersFunctionmystrip
(one_str)
benchmark/R3-RAG/src/inference.py:21
↓ 1 callersFunctionmystrip
(one_str)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:1260
↓ 1 callersFunctionmystrip
(one_str)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:1262
↓ 1 callersFunctionmystrip
(one_str)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:1260
↓ 1 callersFunctionmystrip
(one_str)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:1260
↓ 1 callersMethododds_ratio_loss
r""" Computes ORPO's odds ratio (OR) loss for batched log probabilities of the policy model.
train/LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:137
↓ 1 callersMethodon_log
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:279
↓ 1 callersMethodon_save
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:123
↓ 1 callersMethodon_step_end
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:263
↓ 1 callersMethodon_train_begin
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:246
↓ 1 callersMethodon_train_end
(self, args: "TrainingArguments", state: "TrainerState", control: "TrainerControl", **kwargs)
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:253
↓ 1 callersFunctionparse_args
()
benchmark/batch_check/batch_check.py:12
↓ 1 callersFunctionparse_image
(image)
tool/FlashRAG/flashrag/retriever/utils.py:154
↓ 1 callersMethodparse_triple_output
(self, doc_list, output_list)
tool/FlashRAG/flashrag/refiner/kg_refiner.py:183
↓ 1 callersFunctionpatch_config
( config: "PretrainedConfig", tokenizer: "PreTrainedTokenizer", model_args: "ModelArguments",
train/LLaMA-Factory/src/llamafactory/model/patcher.py:77
↓ 1 callersFunctionpatch_model
( model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer", model_args: "ModelArguments", is
train/LLaMA-Factory/src/llamafactory/model/patcher.py:141
↓ 1 callersFunctionpatch_processor
( processor: "ProcessorMixin", config: "PretrainedConfig", tokenizer: "PreTrainedTokenizer", m
train/LLaMA-Factory/src/llamafactory/model/patcher.py:61
↓ 1 callersFunctionpatch_target_modules
r""" Freezes vision tower for VLM LoRA tuning.
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:212
↓ 1 callersFunctionpatch_tokenizer
(tokenizer: "PreTrainedTokenizer")
train/LLaMA-Factory/src/llamafactory/model/patcher.py:56
↓ 1 callersFunctionpatch_valuehead_model
(model: "AutoModelForCausalLMWithValueHead")
train/LLaMA-Factory/src/llamafactory/model/patcher.py:181
↓ 1 callersMethodpin_memory
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:115
↓ 1 callersMethodpin_memory
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:115
↓ 1 callersMethodpin_memory
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:115
↓ 1 callersMethodpin_memory
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:115
↓ 1 callersMethodpost_process_result
(self, query: Union[str, list], result_list, score_list, num)
tool/FlashRAG/flashrag/retriever/retriever.py:731
↓ 1 callersMethodpostprocess_long_form
(self, pred, intermediate)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:555
↓ 1 callersMethodppo_train
(self, global_steps=0)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_trainer.py:263
↓ 1 callersMethodppo_train
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_critic.py:21
↓ 1 callersMethodppo_train
r""" Implements training loop for the PPO stage, like _inner_training_loop() in Huggingface's Trainer.
train/LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:189
↓ 1 callersFunctionprecess_jsonKVpair
(k, v, value_type, rate)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:136
↓ 1 callersFunctionprepare_4d_attention_mask
r""" Expands the attention mask with indices from (batch_size, seq_len) to (batch_size, 1, seq_len, seq_len), while handles packed sequences a
train/LLaMA-Factory/src/llamafactory/data/collator.py:40
↓ 1 callersMethodprepare_datasets
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_actor.py:280
↓ 1 callersFunctionprepare_model_for_training
r""" Includes: (1) cast the layernorm in fp32 (2) make output embedding layer require grads (3) add the upcasting of the l
train/LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:136
↓ 1 callersFunctionprepare_valuehead_model
(model: "PreTrainedModel")
train/LLaMA-Factory/src/llamafactory/model/model_utils/valuehead.py:62
↓ 1 callersFunctionpreprocess_data
(data, input_template=None, input_key="input", output_key=None, apply_chat_template=None)
train/R3RAG_OpenRLHF/openrlhf/datasets/sft_dataset.py:10
↓ 1 callersFunctionpreprocess_data
(data, input_template=None, input_key="input", apply_chat_template=None)
train/R3RAG_OpenRLHF/openrlhf/datasets/prompts_dataset.py:5
↓ 1 callersFunctionpreprocess_data
Preprocess data from raw dataset to prompt, response, label Args: data: raw data from dataset
train/R3RAG_OpenRLHF/openrlhf/datasets/unpaired_preference_dataset.py:9
↓ 1 callersFunctionpreprocess_data
( data, input_template=None, prompt_key=None, chosen_key="chosen", rejected_key="rejected"
train/R3RAG_OpenRLHF/openrlhf/datasets/reward_dataset.py:10
↓ 1 callersMethodpreprocess_eval_data
(self, items: List)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:1096
↓ 1 callersFunctionprint_attn_implementation
(config: "PretrainedConfig")
train/LLaMA-Factory/src/llamafactory/model/model_utils/attention.py:78
↓ 1 callersFunctionprint_env
()
train/LLaMA-Factory/src/llamafactory/extras/env.py:32
↓ 1 callersMethodprocess_experiences
Process experiences, this can be used to filter out some experiences or do some processing on the rewards. Output: - experie
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:750
↓ 1 callersMethodprocess_experiences
Process experiences, this can be used to filter out some experiences or do some processing on the rewards. Output: - experie
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:752
↓ 1 callersMethodprocess_experiences
Process experiences, this can be used to filter out some experiences or do some processing on the rewards. Output: - experie
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:750
↓ 1 callersMethodprocess_experiences
Process experiences, this can be used to filter out some experiences or do some processing on the rewards. Output: - experie
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:750
↓ 1 callersFunctionprocess_image_pil
(image)
tool/FlashRAG/flashrag/generator/utils.py:82
↓ 1 callersFunctionprocess_structured_json_data
(json_data, json_config)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:109
↓ 1 callersFunctionread_yaml_file
(file_path: str)
tool/FlashRAG/webui/utils.py:22
↓ 1 callersFunctionregister_autoclass
(config: "PretrainedConfig", model: "PreTrainedModel", tokenizer: "PreTrainedTokenizer")
train/LLaMA-Factory/src/llamafactory/model/model_utils/misc.py:84
↓ 1 callersFunctionremove_articles
(text)
benchmark/R3-RAG/src/cal_metric.py:152
↓ 1 callersFunctionremove_articles
(text)
benchmark/batch_check/batch_check.py:222
↓ 1 callersFunctionremove_articles
(text)
tool/FlashRAG/flashrag/evaluator/utils.py:6
↓ 1 callersFunctionremove_consecutive_commas
(text)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:194
↓ 1 callersFunctionremove_padding_in_sequences
(items)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/replay_buffer.py:116
↓ 1 callersFunctionremove_punc
(text)
tool/FlashRAG/flashrag/evaluator/utils.py:12
↓ 1 callersFunctionremove_punctuation
(text)
benchmark/R3-RAG/src/cal_metric.py:154
↓ 1 callersFunctionremove_punctuation
(text)
benchmark/batch_check/batch_check.py:224
↓ 1 callersMethodreorder
batch_search: original result like: [[bm25-q1-d1, bm25-q1-d2],[bm25-q2-d1, bm25-q2-d2], [e5-q1-d1, e5-q1-d2], [e5-q2-d1, e5-q2-d2]]
tool/FlashRAG/flashrag/retriever/retriever.py:705
↓ 1 callersFunctionreplace_added_token
(token, token_map)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:94
↓ 1 callersFunctionrequest_api_wrapper
Synchronous request API wrapper
train/R3RAG_OpenRLHF/openrlhf/utils/remote_rm_utils.py:11
↓ 1 callersFunctionreset_ring_attn_position_ids
Calculate position ids for packed_seq_ids[start:end]. For example, if the packed_seq_lens is [3, 2, 4, 1], start=2, end=8, the position i
train/R3RAG_OpenRLHF/openrlhf/models/ring_attn_utils.py:18
↓ 1 callersFunctionresize_embedding_layer
r""" Resize token embeddings.
train/LLaMA-Factory/src/llamafactory/model/model_utils/embedding.py:40
↓ 1 callersFunctionrestore_layernorm
r""" Restores the layernorm parameters in the model. The model is already unwrapped (and gathered).
train/LLaMA-Factory/src/llamafactory/train/ppo/ppo_utils.py:82
↓ 1 callersFunctionreward_normalization
(objs)
train/R3RAG_OpenRLHF/openrlhf/utils/processor.py:5
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
tool/FlashRAG/flashrag/pipeline/branching_pipeline.py:34
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
tool/FlashRAG/flashrag/pipeline/branching_pipeline.py:172
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
tool/FlashRAG/flashrag/pipeline/pipeline.py:161
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
tool/FlashRAG/flashrag/pipeline/pipeline.py:231
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:26
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None, long_form=False)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:618
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=None)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:799
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=selfask_pred_parse)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:918
↓ 1 callersMethodrun
(self, dataset, do_eval=True, pred_process_fun=ircot_pred_parse)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:1035
↓ 1 callersMethodrun
(self, dataset, do_eval = True)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:1236
↓ 1 callersFunctionrun_api
()
train/LLaMA-Factory/src/llamafactory/api/app.py:128
↓ 1 callersMethodrun_batch
(self, items)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:949
↓ 1 callersFunctionrun_chat
()
train/LLaMA-Factory/src/llamafactory/chat/chat_model.py:150
↓ 1 callersFunctionrun_dpo
( model_args: "ModelArguments", data_args: "DataArguments", training_args: "Seq2SeqTrainingArgumen
train/LLaMA-Factory/src/llamafactory/train/dpo/workflow.py:36
↓ 1 callersFunctionrun_eval
()
train/LLaMA-Factory/src/llamafactory/eval/evaluator.py:157
↓ 1 callersMethodrun_item
(self, item)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:752
← previousnext →801–900 of 1,737, ranked by callers