MCPcopy Create free account

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

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

↓ 367 callersMethodappend
( self, message, chatbot, )
tool/FlashRAG/webui/chatter.py:16
↓ 170 callersMethodappend
(self, experience: Experience)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/replay_buffer.py:174
↓ 163 callersMethodappend
( self, chatbot: List[List[Optional[str]]], messages: Sequence[Dict[str, str]],
train/LLaMA-Factory/src/llamafactory/webui/chatter.py:121
↓ 107 callersMethodformat
(self, record)
train/R3RAG_OpenRLHF/openrlhf/utils/logging_utils.py:17
↓ 93 callersMethodupdate
(self, val, n=1)
train/LLaMA-Factory/src/llamafactory/extras/misc.py:69
↓ 90 callersMethodinfo_rank0
(self, *args, **kwargs)
train/LLaMA-Factory/src/llamafactory/extras/logging.py:74
↓ 82 callersFunctionregister_model_group
( models: Dict[str, Dict[DownloadSource, str]], template: Optional[str] = None, vision: bool = Fal
train/LLaMA-Factory/src/llamafactory/extras/constants.py:101
↓ 80 callersMethodis_rank_0
(self)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:407
↓ 78 callersMethodupdate_output
Update the output dict and keep a key in self.output can be used as an attribute.
tool/FlashRAG/flashrag/dataset/dataset.py:24
↓ 77 callersFunction_register_template
r""" Registers a chat template. To add the following chat template: ``` <s><user>user prompt here <model>model response here</s>
train/LLaMA-Factory/src/llamafactory/data/template.py:208
↓ 66 callersMethodappend
Append experience to replay buffer.
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_critic.py:167
↓ 64 callersMethodeval
(self)
train/LLaMA-Factory/src/llamafactory/eval/evaluator.py:79
↓ 53 callersMethodwarning_rank0
(self, *args, **kwargs)
train/LLaMA-Factory/src/llamafactory/extras/logging.py:77
↓ 47 callersMethodwrite
(self, message)
tool/FlashRAG/webui/utils.py:57
↓ 44 callersMethodgenerate
(self, input_ids, attention_mask, **kwargs)
tool/FlashRAG/flashrag/generator/fid.py:48
↓ 41 callersMethodprint
(self, *msg)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:403
↓ 40 callersMethodtokenizer
(prompt, response)
train/R3RAG_OpenRLHF/openrlhf/datasets/unpaired_preference_dataset.py:107
↓ 39 callersMethodget_string
(self, question=None, retrieval_result=None, formatted_reference=None, previous_gen=None, messages=None, **par
tool/FlashRAG/flashrag/prompt/base_prompt.py:96
↓ 38 callersFunctioncheck_version
r""" Optionally checks the package version.
train/LLaMA-Factory/src/llamafactory/extras/misc.py:76
↓ 33 callersMethodencode
(self, query_list: List[str], batch_size=64, is_query=True)
tool/FlashRAG/flashrag/retriever/encoder.py:68
↓ 33 callersMethodget_elem_by_id
r""" Gets element by id. Example: top.lang, train.dataset
train/LLaMA-Factory/src/llamafactory/webui/manager.py:49
↓ 31 callersMethodsearch
(self, *args, **kwargs)
tool/FlashRAG/flashrag/retriever/retriever.py:185
↓ 27 callersMethodupdate
(self, current, n_steps)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/kl_controller.py:28
↓ 26 callersMethoddisplay_middle_result
(self, middle_result, display_message)
tool/FlashRAG/webui/chat_pipelines/base_chat_pipeline.py:19
↓ 23 callersMethodget_rank
(self)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:410
↓ 22 callersMethod_validate_input
r""" Validates if this model accepts the input modalities.
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:68
↓ 22 callersFunctionget_dataset
Load dataset from config.
tool/FlashRAG/flashrag/utils/utils.py:8
↓ 20 callersMethodbatch_search
(self, *args, **kwargs)
tool/FlashRAG/flashrag/retriever/retriever.py:188
↓ 20 callersMethodchat
r""" Gets a list of responses of the chat model.
train/LLaMA-Factory/src/llamafactory/chat/chat_model.py:62
↓ 20 callersMethodempty_cache
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:139
↓ 20 callersFunctionget_generator
Automatically select generator class based on config.
tool/FlashRAG/flashrag/utils/utils.py:40
↓ 19 callersMethodall_reduce
(self, data, op="mean")
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:365
↓ 19 callersMethodapply
r""" Forms a list of slots according to the inputs to encode.
train/LLaMA-Factory/src/llamafactory/data/formatter.py:33
↓ 19 callersMethodencode
(self, contents: list)
tool/FlashRAG/flashrag/judger/judger.py:67
↓ 18 callersMethod__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:465
↓ 18 callersMethod__len__
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/replay_buffer.py:198
↓ 18 callersMethodsetup_dataloader
( self, replay_buffer, batch_size: int, pin_memory: bool = False, shuf
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:143
↓ 17 callersFunctionget_mm_plugin
( name: str, image_token: Optional[str] = None, video_token: Optional[str] = None, )
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:964
↓ 17 callersFunctionget_retriever
r"""Automatically select retriever class based on config's retrieval method Args: config (dict): configuration with 'retrieval_method' ke
tool/FlashRAG/flashrag/utils/utils.py:71
↓ 17 callersFunctionget_save_dir
r""" Gets the path to saved model checkpoints.
train/LLaMA-Factory/src/llamafactory/webui/common.py:54
↓ 16 callersMethodget_token_length
( self, text: str, add_special_tokens: bool = True, use_oai_tokenizer: bool =
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1049
↓ 16 callersFunctionload_tokenizer
r""" Loads pretrained tokenizer and optionally loads processor. Note: including inplace operation of model_args.
train/LLaMA-Factory/src/llamafactory/model/loader.py:63
↓ 16 callersMethodlog
r""" Log `logs` on the various objects watching training, including stored metrics.
train/LLaMA-Factory/src/llamafactory/train/kto/trainer.py:271
↓ 16 callersFunctionunpacking_samples
(values: torch.Tensor, packed_seqlens: list[int])
train/R3RAG_OpenRLHF/openrlhf/models/utils.py:113
↓ 15 callersFunctionget_tokenizer
(pretrain, model, padding_side="left", strategy=None, use_fast=True)
train/R3RAG_OpenRLHF/openrlhf/utils/utils.py:7
↓ 15 callersFunctionload_model
r""" Loads pretrained model.
train/LLaMA-Factory/src/llamafactory/model/loader.py:126
↓ 15 callersMethodprepare
( self, *models_or_model_optim_pairs: ModelOrModelOptimPair, is_rlhf=False )
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:185
↓ 14 callersMethodget_dataset_answer
(self, data)
tool/FlashRAG/flashrag/evaluator/metrics.py:33
↓ 14 callersMethodto_dict
(self)
train/LLaMA-Factory/src/llamafactory/hparams/data_args.py:165
↓ 13 callersFunction_is_package_available
(name: str)
train/LLaMA-Factory/src/llamafactory/extras/packages.py:30
↓ 13 callersFunctionblending_datasets
( datasets, probabilities, strategy=None, seed=42, max_count=5000000, return_eval=True
train/R3RAG_OpenRLHF/openrlhf/utils/utils.py:38
↓ 13 callersFunctionmasked_mean
(tensor: torch.Tensor, mask: Optional[torch.Tensor], dim: int = None)
train/R3RAG_OpenRLHF/openrlhf/models/utils.py:83
↓ 12 callersMethod_get_mm_inputs
r""" Processes visual inputs. Returns: (llava and paligemma) pixel_values: tensor with shape (B, C, H, W) Return
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:157
↓ 12 callersMethodevaluate
The evaluation process after finishing overall generation
tool/FlashRAG/flashrag/pipeline/pipeline.py:26
↓ 12 callersMethodget_ds_train_config
(self, is_actor)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:221
↓ 12 callersFunctionis_gradio_available
()
train/LLaMA-Factory/src/llamafactory/extras/packages.py:57
↓ 12 callersMethodrun
Get judgement result. Args: item: dataset item, contains question, retrieval result... Returns: judgement: b
tool/FlashRAG/flashrag/judger/judger.py:22
↓ 12 callersMethodsave_model
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_actor.py:414
↓ 11 callersMethodget_elem_by_id
r""" Gets element by id. Example: top.lang, train.dataset
tool/FlashRAG/webui/manager.py:47
↓ 11 callersFunctionget_template_and_fix_tokenizer
r""" Gets chat template and fixes the tokenizer.
train/LLaMA-Factory/src/llamafactory/data/template.py:349
↓ 11 callersMethodgradient_checkpointing_enable
(self, gradient_checkpointing_kwargs={"use_reentrant": False})
train/R3RAG_OpenRLHF/openrlhf/models/actor.py:235
↓ 11 callersFunctionmystrip
(one_str)
data/construct/format_single_query/format.py:4
↓ 11 callersMethodupdate_output
Update the overall output field for each sample in the dataset.
tool/FlashRAG/flashrag/dataset/dataset.py:143
↓ 11 callersFunctionzero_pad_sequences
(sequences, side: str = "left", value=0)
train/R3RAG_OpenRLHF/openrlhf/datasets/utils.py:5
↓ 10 callersMethodcreate_optimizer
(self, model, **kwargs)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:117
↓ 10 callersFunctionget_strategy
(args)
train/R3RAG_OpenRLHF/openrlhf/utils/utils.py:23
↓ 10 callersFunctionis_transformers_version_greater_than
(content: str)
train/LLaMA-Factory/src/llamafactory/extras/packages.py:86
↓ 10 callersMethodload_ckpt
( self, model, load_dir, tag=None, load_module_strict=True, lo
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:446
↓ 10 callersFunctionnormalize_answer
(s)
tool/FlashRAG/flashrag/evaluator/utils.py:5
↓ 10 callersMethodsample
( self, input_ids: torch.LongTensor, logits_processor: Optional[LogitsProcessorList] =
tool/FlashRAG/flashrag/pipeline/replug_utils.py:29
↓ 10 callersMethodsave_ckpt
(self, model, save_dir, tag=None, max_num=3, max_mem=1000, client_state={}, save_latest=True)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:413
↓ 10 callersMethodsetup_distributed
(self, timeout=timedelta(minutes=60))
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:74
↓ 9 callersFunction_register_composite_model
( model_type: str, projector_key: Optional[str] = None, vision_model_keys: Optional[List[str]] = N
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:56
↓ 9 callersMethodbackward
(self, loss: torch.Tensor, model: nn.Module, optimizer: optim.Optimizer, **kwargs)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:126
↓ 9 callersMethodclose
(self)
train/LLaMA-Factory/src/llamafactory/extras/logging.py:64
↓ 9 callersMethodget_ds_eval_config
(self, offload=False)
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:261
↓ 9 callersFunctioninit_logger
(name: str)
train/R3RAG_OpenRLHF/openrlhf/utils/logging_utils.py:50
↓ 9 callersFunctionpin_memory
(tensor: Union[torch.Tensor, list[torch.Tensor]])
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:68
↓ 9 callersFunctionpin_memory
(tensor: Union[torch.Tensor, list[torch.Tensor]])
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:68
↓ 9 callersFunctionpin_memory
(tensor: Union[torch.Tensor, list[torch.Tensor]])
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:68
↓ 9 callersFunctionpin_memory
(tensor: Union[torch.Tensor, list[torch.Tensor]])
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:68
↓ 9 callersMethodprocess_messages
r""" Pre-processes input messages before tokenization for VLMs.
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:205
↓ 9 callersFunctionshift
(state: "torch.Tensor")
train/LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:89
↓ 9 callersFunctionto
(tensor: Union[torch.Tensor, list[torch.Tensor]], device)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:62
↓ 9 callersFunctionto
(tensor: Union[torch.Tensor, list[torch.Tensor]], device)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:62
↓ 9 callersFunctionto
(tensor: Union[torch.Tensor, list[torch.Tensor]], device)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:62
↓ 9 callersFunctionto
(tensor: Union[torch.Tensor, list[torch.Tensor]], device)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:62
↓ 8 callersMethod__init__
(self, config, prompt_template=None, retriever=None, generator=None)
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:131
↓ 8 callersMethodadd_elems
r""" Adds elements to manager.
tool/FlashRAG/webui/manager.py:11
↓ 8 callersFunctioncompute_approx_kl
Compute the approximate KL divergence between two distributions. Schulman blog: http://joschu.net/blog/kl-approx.html Args: log_
train/R3RAG_OpenRLHF/openrlhf/models/utils.py:7
↓ 8 callersMethoddisplay_retrieval_result
(self, retrieval_results)
tool/FlashRAG/webui/chat_pipelines/base_chat_pipeline.py:16
↓ 8 callersMethodencode_oneturn
r""" Returns a single pair of token ids representing prompt and response respectively.
train/LLaMA-Factory/src/llamafactory/data/template.py:55
↓ 8 callersMethodgenerate
(self, *args, **kwargs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/vllm_engine.py:56
↓ 8 callersFunctionload_corpus
(corpus_path: str)
tool/FlashRAG/flashrag/retriever/utils.py:121
↓ 8 callersMethodoptimizer_step
( self, optimizer: optim.Optimizer, model: nn.Module, scheduler, name=
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:131
↓ 8 callersMethodset_attr
(self, key: str, obj: Dict[str, Any], default: Optional[Any] = None)
train/LLaMA-Factory/src/llamafactory/data/parser.py:70
↓ 8 callersMethodto_device
(self, device: torch.device)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:103
↓ 7 callersMethod__init__
(self)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:271
↓ 7 callersMethodadd_elems
r""" Adds elements to manager.
train/LLaMA-Factory/src/llamafactory/webui/manager.py:27
↓ 7 callersFunctionclean_string
(str)
data/construct/02sample_from_dataset/mainv1.py:97
next →1–100 of 1,737, ranked by callers