Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yuan-Li-FNLP/R3-RAG
/ functions
Functions
1,737 in github.com/Yuan-Li-FNLP/R3-RAG
⨍
Functions
1,737
◇
Types & classes
293
↳
Endpoints
12
Method
fit
Train actor model with prompt datasets.
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_actor.py:343
Method
fix_spacing
(input_text)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:353
Function
flare
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
Method
flush
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:1181
Method
flush
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:1183
Method
flush
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:1181
Function
format_text
( text: str, underline: bool = False, bold: bool = False )
tool/FlashRAG/webui/utils.py:5
Method
forward
Generates critic values.
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_critic.py:150
Method
forward
( self, sequences: torch.LongTensor, num_actions: int = None, attention_mask:
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:83
Method
forward
( self, sequences: torch.LongTensor, attention_mask: Optional[torch.Tensor] = None, packed_seq_lens=No
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:131
Method
forward
(self, logits: torch.Tensor, labels: torch.Tensor)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:26
Method
forward
( self, log_probs: torch.Tensor, old_log_probs: torch.Tensor, advantages: torc
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:65
Method
forward
( self, values: torch.Tensor, old_values: torch.Tensor, returns: torch.Tensor,
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:89
Method
forward
( self, chosen_reward: torch.Tensor, reject_reward: torch.Tensor, margin: torch.Tensor = None )
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:113
Method
forward
( self, chosen_reward: torch.Tensor, reject_reward: torch.Tensor, margin: torch.Tensor = None )
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:129
Method
forward
( self, policy_chosen_logps: torch.Tensor, policy_rejected_logps: torch.Tensor,
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:147
Method
forward
( self, policy_chosen_logps: torch.FloatTensor, policy_rejected_logps: torch.FloatTens
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:184
Method
forward
( self, policy_chosen_logps: torch.FloatTensor, policy_rejected_logps: torch.FloatTens
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:226
Method
forward
(self, logits: torch.Tensor, teacher_logits: torch.Tensor, label: torch.Tensor)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:275
Method
forward
(self, inputs: torch.Tensor, logits: torch.Tensor, labels: torch.Tensor, *, return_acc: bool = False)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:299
Method
forward
Returns action log probs
train/R3RAG_OpenRLHF/openrlhf/models/actor.py:183
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch
train/R3RAG_OpenRLHF/openrlhf/models/model.py:182
Method
forward
( self, input_ids: torch.LongTensor = None, num_actions: Optional[Union[in
train/R3RAG_OpenRLHF/openrlhf/models/model.py:255
Method
forward
( ctx: "torch.autograd.Function", forward_function: "torch.Module", hidden
train/LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:49
Method
forward
(self, image_features: "torch.Tensor")
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:87
Method
forward
(self, hidden_states, attention_mask, position_bias, **kwargs)
tool/FlashRAG/flashrag/generator/fid.py:101
Method
forward
(self, input_ids=None, attention_mask=None, **kwargs)
tool/FlashRAG/flashrag/generator/fid.py:142
Method
forward
(self, input_ids=None, attention_mask=None,**kwargs)
tool/FlashRAG/flashrag/generator/fid.py:198
Method
forward_
(self, **kwargs)
tool/FlashRAG/flashrag/generator/fid.py:17
Method
function_formatter
(functions: List["FunctionCall"])
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:137
Method
function_formatter
(functions: List["FunctionCall"])
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:183
Method
function_formatter
(functions: List["FunctionCall"])
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:224
Method
function_formatter
(functions: List["FunctionCall"])
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:260
Method
function_formatter
(functions: List["FunctionCall"])
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:305
Function
gaokaomm_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
Method
generate
input_list: A list contains of messages, each message is a list, like: [ { "role": "system",
tool/FlashRAG/flashrag/generator/multimodal_generator.py:35
Method
generate
(self, input_list, **params)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:93
Method
generate
(self, input_list, **params)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:236
Method
generate
(self, input_list, **params)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:327
Method
generate
( self, input_list: list, batch_size=None, **params )
tool/FlashRAG/flashrag/generator/multimodal_generator.py:397
Method
generate
(self, input_list: List, batch_size=None, return_scores=False, **params)
tool/FlashRAG/flashrag/generator/openai_generator.py:122
Method
generate
(self, input_ids, attention_mask, **kwargs)
tool/FlashRAG/flashrag/generator/fid.py:156
Method
generate
(self, input_list: List, batch_size=None, **params)
tool/FlashRAG/flashrag/generator/generator.py:103
Method
generate
( self, input_list: List[str], return_raw_output=False, return_scores=False,
tool/FlashRAG/flashrag/generator/generator.py:213
Method
generate
Generate batches one by one. The generated content needs to exclude input.
tool/FlashRAG/flashrag/generator/generator.py:345
Method
generate_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
Method
generate_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
Method
generate_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
Method
generate_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
Function
get_all_env_variables
()
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/vllm_engine.py:13
Function
get_answer_directly
(args, ckpt, records, temperature=0)
benchmark/R3-RAG/src/inference_4gpu.py:315
Function
get_answer_directly
(args, ckpt, records, temperature=0)
benchmark/R3-RAG/src/inference_new.py:317
Function
get_answer_directly
(args, ckpt, records, temperature=0)
benchmark/R3-RAG/src/inference.py:315
Method
get_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
Method
get_batch_data
Get an attribute of dataset items in batch.
tool/FlashRAG/flashrag/dataset/dataset.py:165
Function
get_batch_dataset
(dataset: Dataset, batch_size=16)
tool/FlashRAG/flashrag/dataset/utils.py:58
Method
get_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
Method
get_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
Method
get_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
Method
get_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
Method
get_data_subfolders
Used in evaluate module to update the dataset_name dropdown.
tool/FlashRAG/webui/runner.py:282
Method
get_dataset_split
Get the dataset split
tool/FlashRAG/webui/runner.py:294
Method
get_distance_bge_llmembedder
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1903
Method
get_distance_bge_ranker
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1874
Method
get_distance_bm25
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1809
Method
get_distance_cohere
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1980
Method
get_distance_gzip
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1819
Method
get_distance_jinza
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1943
Method
get_distance_longllmlingua
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1991
Method
get_distance_openai
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1843
Method
get_distance_sentbert
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1831
Method
get_distance_sentbert_bge
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1862
Method
get_distance_voyageai
(corpus, query)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1965
Method
get_elem_iter_full
r""" Returns an iterator over all elements with their names.
tool/FlashRAG/webui/manager.py:40
Method
get_embed
(text)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1853
Method
get_gpu_memory
Get available memory for each GPU.
tool/FlashRAG/flashrag/generator/generator.py:532
Method
get_id_by_elem
r""" Gets id by element.
tool/FlashRAG/webui/manager.py:55
Function
get_input_embeddings
(self: "AutoModelForCausalLMWithValueHead")
train/LLaMA-Factory/src/llamafactory/model/patcher.py:186
Method
get_master_addr_port
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:49
Method
get_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:284
Method
get_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:338
Method
get_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:407
Method
get_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:534
Method
get_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:621
Method
get_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:695
Method
get_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:759
Method
get_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:868
Method
get_mm_inputs
( self, images: Sequence["ImageInput"], videos: Sequence["VideoInput"], imglen
train/LLaMA-Factory/src/llamafactory/data/mm_plugin.py:937
Function
get_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
Function
get_output_embeddings
(self: "AutoModelForCausalLMWithValueHead")
train/LLaMA-Factory/src/llamafactory/model/patcher.py:190
Function
get_preview
(dataset_dir: str, dataset: list, page_index: int)
train/LLaMA-Factory/src/llamafactory/webui/components/data.py:69
Method
get_ratio
(base: float, delta: float)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1103
Method
get_rerank_scores
(self, query_list, doc_list, batch_size)
tool/FlashRAG/flashrag/retriever/reranker.py:86
Method
get_rerank_scores
(self, query_list, doc_list, batch_size)
tool/FlashRAG/flashrag/retriever/reranker.py:122
Function
get_reward
(request: Request)
train/R3RAG_OpenRLHF/openrlhf/cli/serve_rm.py:111
Method
get_score
(x, y)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1820
Method
get_scores
( self, batch_input: List[str], **input_kwargs, )
train/LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:243
Method
get_scores
r""" Gets a list of scores of the reward model.
train/LLaMA-Factory/src/llamafactory/chat/base_engine.py:94
Method
get_scores
( self, batch_input: List[str], **input_kwargs, )
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:372
Method
get_string
(self, item)
tool/FlashRAG/flashrag/prompt/mm_prompt.py:9
← previous
next →
1,401–1,500 of 1,737, ranked by callers