MCPcopy Create free account

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

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

Methodfit
Train actor model with prompt datasets.
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_actor.py:343
Methodfix_spacing
(input_text)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:353
Functionflare
Reference: Zhengbao Jiang et al. "Active Retrieval Augmented Generation" in EMNLP 2023. Official repo: https://github.com
tool/FlashRAG/examples/methods/run_exp.py:391
Methodflush
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:1181
Methodflush
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:1183
Methodflush
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:1181
Functionformat_text
( text: str, underline: bool = False, bold: bool = False )
tool/FlashRAG/webui/utils.py:5
Methodforward
Generates critic values.
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_critic.py:150
Methodforward
( self, sequences: torch.LongTensor, num_actions: int = None, attention_mask:
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:83
Methodforward
( self, sequences: torch.LongTensor, attention_mask: Optional[torch.Tensor] = None, packed_seq_lens=No
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:131
Methodforward
(self, logits: torch.Tensor, labels: torch.Tensor)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:26
Methodforward
( self, log_probs: torch.Tensor, old_log_probs: torch.Tensor, advantages: torc
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:65
Methodforward
( self, values: torch.Tensor, old_values: torch.Tensor, returns: torch.Tensor,
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:89
Methodforward
( self, chosen_reward: torch.Tensor, reject_reward: torch.Tensor, margin: torch.Tensor = None )
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:113
Methodforward
( self, chosen_reward: torch.Tensor, reject_reward: torch.Tensor, margin: torch.Tensor = None )
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:129
Methodforward
( self, policy_chosen_logps: torch.Tensor, policy_rejected_logps: torch.Tensor,
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:147
Methodforward
( self, policy_chosen_logps: torch.FloatTensor, policy_rejected_logps: torch.FloatTens
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:184
Methodforward
( self, policy_chosen_logps: torch.FloatTensor, policy_rejected_logps: torch.FloatTens
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:226
Methodforward
(self, logits: torch.Tensor, teacher_logits: torch.Tensor, label: torch.Tensor)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:275
Methodforward
(self, inputs: torch.Tensor, logits: torch.Tensor, labels: torch.Tensor, *, return_acc: bool = False)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:299
Methodforward
Returns action log probs
train/R3RAG_OpenRLHF/openrlhf/models/actor.py:183
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch
train/R3RAG_OpenRLHF/openrlhf/models/model.py:182
Methodforward
( self, input_ids: torch.LongTensor = None, num_actions: Optional[Union[in
train/R3RAG_OpenRLHF/openrlhf/models/model.py:255
Methodforward
( ctx: "torch.autograd.Function", forward_function: "torch.Module", hidden
train/LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:49
Methodforward
(self, image_features: "torch.Tensor")
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:87
Methodforward
(self, hidden_states, attention_mask, position_bias, **kwargs)
tool/FlashRAG/flashrag/generator/fid.py:101
Methodforward
(self, input_ids=None, attention_mask=None, **kwargs)
tool/FlashRAG/flashrag/generator/fid.py:142
Methodforward
(self, input_ids=None, attention_mask=None,**kwargs)
tool/FlashRAG/flashrag/generator/fid.py:198
Methodforward_
(self, **kwargs)
tool/FlashRAG/flashrag/generator/fid.py:17
Methodfunction_formatter
(functions: List["FunctionCall"])
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:137
Methodfunction_formatter
(functions: List["FunctionCall"])
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:183
Methodfunction_formatter
(functions: List["FunctionCall"])
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:224
Methodfunction_formatter
(functions: List["FunctionCall"])
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:260
Methodfunction_formatter
(functions: List["FunctionCall"])
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:305
Functiongaokaomm_pred_parse
Extract choice answer from model output. Format of model_output that is expected: 'single_choice': choice answer should be the last Capi
tool/FlashRAG/flashrag/utils/pred_parse.py:43
Methodgenerate
input_list: A list contains of messages, each message is a list, like: [ { "role": "system",
tool/FlashRAG/flashrag/generator/multimodal_generator.py:35
Methodgenerate
(self, input_list, **params)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:93
Methodgenerate
(self, input_list, **params)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:236
Methodgenerate
(self, input_list, **params)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:327
Methodgenerate
( self, input_list: list, batch_size=None, **params )
tool/FlashRAG/flashrag/generator/multimodal_generator.py:397
Methodgenerate
(self, input_list: List, batch_size=None, return_scores=False, **params)
tool/FlashRAG/flashrag/generator/openai_generator.py:122
Methodgenerate
(self, input_ids, attention_mask, **kwargs)
tool/FlashRAG/flashrag/generator/fid.py:156
Methodgenerate
(self, input_list: List, batch_size=None, **params)
tool/FlashRAG/flashrag/generator/generator.py:103
Methodgenerate
( self, input_list: List[str], return_raw_output=False, return_scores=False,
tool/FlashRAG/flashrag/generator/generator.py:213
Methodgenerate
Generate batches one by one. The generated content needs to exclude input.
tool/FlashRAG/flashrag/generator/generator.py:345
Methodgenerate_samples
Generate samples and return in batches. When not using vllm, we will fallback to the default implementation, in which actor
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:898
Methodgenerate_samples
Generate samples and return in batches. When not using vllm, we will fallback to the default implementation, in which actor
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:900
Methodgenerate_samples
Generate samples and return in batches. When not using vllm, we will fallback to the default implementation, in which actor
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:898
Methodgenerate_samples
Generate samples and return in batches. When not using vllm, we will fallback to the default implementation, in which actor
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:898
Functionget_all_env_variables
()
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/vllm_engine.py:13
Functionget_answer_directly
(args, ckpt, records, temperature=0)
benchmark/R3-RAG/src/inference_4gpu.py:315
Functionget_answer_directly
(args, ckpt, records, temperature=0)
benchmark/R3-RAG/src/inference_new.py:317
Functionget_answer_directly
(args, ckpt, records, temperature=0)
benchmark/R3-RAG/src/inference.py:315
Methodget_attr_data
For the attributes constructed later (not implemented using property), obtain a list of this attribute in the entire dataset.
tool/FlashRAG/flashrag/dataset/dataset.py:174
Methodget_batch_data
Get an attribute of dataset items in batch.
tool/FlashRAG/flashrag/dataset/dataset.py:165
Functionget_batch_dataset
(dataset: Dataset, batch_size=16)
tool/FlashRAG/flashrag/dataset/utils.py:58
Methodget_batch_loss_metrics
r""" Computes the DPO loss and other metrics for the given batch of inputs for train or test.
train/LLaMA-Factory/src/llamafactory/train/kto/trainer.py:203
Methodget_batch_loss_metrics
r""" Computes the DPO loss and other metrics for the given batch of inputs for train or test.
train/LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:232
Methodget_batch_samples
r""" Replaces the method of KTO Trainer with the one of the standard Trainer.
train/LLaMA-Factory/src/llamafactory/train/kto/trainer.py:132
Methodget_batch_samples
r""" Replaces the method of KTO Trainer with the one of the standard Trainer.
train/LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:131
Methodget_data_subfolders
Used in evaluate module to update the dataset_name dropdown.
tool/FlashRAG/webui/runner.py:282
Methodget_dataset_split
Get the dataset split
tool/FlashRAG/webui/runner.py:294
Methodget_distance_bge_llmembedder
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1903
Methodget_distance_bge_ranker
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1874
Methodget_distance_bm25
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1809
Methodget_distance_cohere
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1980
Methodget_distance_gzip
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1819
Methodget_distance_jinza
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1943
Methodget_distance_longllmlingua
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1991
Methodget_distance_openai
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1843
Methodget_distance_sentbert
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1831
Methodget_distance_sentbert_bge
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1862
Methodget_distance_voyageai
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1965
Methodget_elem_iter_full
r""" Returns an iterator over all elements with their names.
tool/FlashRAG/webui/manager.py:40
Methodget_embed
(text)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1853
Methodget_gpu_memory
Get available memory for each GPU.
tool/FlashRAG/flashrag/generator/generator.py:532
Methodget_id_by_elem
r""" Gets id by element.
tool/FlashRAG/webui/manager.py:55
Functionget_input_embeddings
(self: "AutoModelForCausalLMWithValueHead")
train/LLaMA-Factory/src/llamafactory/model/patcher.py:186
Methodget_master_addr_port
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:49
Methodget_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:284
Methodget_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:338
Methodget_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:407
Methodget_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:534
Methodget_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:621
Methodget_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:695
Methodget_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:759
Methodget_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:868
Methodget_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:937
Functionget_model_info
r""" Gets the necessary information of this model. Returns: model_path (str) template (str)
train/LLaMA-Factory/src/llamafactory/webui/common.py:125
Functionget_output_embeddings
(self: "AutoModelForCausalLMWithValueHead")
train/LLaMA-Factory/src/llamafactory/model/patcher.py:190
Functionget_preview
(dataset_dir: str, dataset: list, page_index: int)
train/LLaMA-Factory/src/llamafactory/webui/components/data.py:69
Methodget_ratio
(base: float, delta: float)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1103
Methodget_rerank_scores
(self, query_list, doc_list, batch_size)
tool/FlashRAG/flashrag/retriever/reranker.py:86
Methodget_rerank_scores
(self, query_list, doc_list, batch_size)
tool/FlashRAG/flashrag/retriever/reranker.py:122
Functionget_reward
(request: Request)
train/R3RAG_OpenRLHF/openrlhf/cli/serve_rm.py:111
Methodget_score
(x, y)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1820
Methodget_scores
( self, batch_input: List[str], **input_kwargs, )
train/LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:243
Methodget_scores
r""" Gets a list of scores of the reward model.
train/LLaMA-Factory/src/llamafactory/chat/base_engine.py:94
Methodget_scores
( self, batch_input: List[str], **input_kwargs, )
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:372
Methodget_string
(self, item)
tool/FlashRAG/flashrag/prompt/mm_prompt.py:9
← previousnext →1,401–1,500 of 1,737, ranked by callers