MCPcopy Create free account

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

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

↓ 1 callersFunctionsplit_response
(response)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:1188
↓ 1 callersFunctionstatistic
(input_file, output_file)
data/construct/03merge_samples/statistic.py:19
↓ 1 callersFunctionstatistic
(input_file, output_file)
data/construct/03merge_samples/format_direct_answer_list.py:25
↓ 1 callersFunctionstatistic
(input_file, output_file)
data/process/format_openrlhf/format.py:4
↓ 1 callersFunctionstatistics
(args, records, llm)
benchmark/R3-RAG/src/cal_metric.py:393
↓ 1 callersFunctionstatistics
(args, records, llm)
benchmark/batch_check/batch_check.py:341
↓ 1 callersMethodstop_remote_worker_execution_loop
(self)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/vllm_engine.py:77
↓ 1 callersFunctionstrip_sequence
(text, pad_token, eos_token)
train/R3RAG_OpenRLHF/openrlhf/cli/serve_rm.py:16
↓ 1 callersMethodstructured_compress_prompt
Compresses the given prompt context based on a specified structure. Each element of context should be segmented using one or more no
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:408
↓ 1 callersFunctionsweeper
()
train/LLaMA-Factory/src/llamafactory/api/app.py:55
↓ 1 callersMethodtie_weights
(self)
tool/FlashRAG/flashrag/generator/fid.py:88
↓ 1 callersMethodtoken_segment
( self, text_input_ids: List[int], iterative_size: int, segments: List[str],
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1171
↓ 1 callersFunctiontokenize_fn
(texts)
train/R3RAG_OpenRLHF/openrlhf/cli/batch_inference.py:111
↓ 1 callersMethodtokenize_fn
(self, texts, device)
train/R3RAG_OpenRLHF/openrlhf/cli/serve_rm.py:74
↓ 1 callersFunctiontokens_to_text
()
train/LLaMA-Factory/examples/id2text.py:4
↓ 1 callersMethodtool_extractor
r""" Extracts all the function calls from the assistant message. It should be an inverse function of `function_formatter`.
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:87
↓ 1 callersMethodtool_formatter
r""" Generates the system message describing all the available tools.
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:71
↓ 1 callersFunctiontrain
(args)
train/R3RAG_OpenRLHF/openrlhf/cli/train_ppo.py:16
↓ 1 callersFunctiontrain
(args)
train/R3RAG_OpenRLHF/openrlhf/cli/train_ppo_ray.py:46
↓ 1 callersFunctiontrain
(args)
train/R3RAG_OpenRLHF/openrlhf/cli/train_kto.py:14
↓ 1 callersFunctiontrain
(args)
train/R3RAG_OpenRLHF/openrlhf/cli/train_sft.py:14
↓ 1 callersFunctiontrain
(args)
train/R3RAG_OpenRLHF/openrlhf/cli/train_dpo.py:14
↓ 1 callersFunctiontrain
(args)
train/R3RAG_OpenRLHF/openrlhf/cli/train_rm.py:14
↓ 1 callersFunctiontrain
(args)
train/R3RAG_OpenRLHF/openrlhf/cli/train_kd.py:14
↓ 1 callersFunctiontrain
(args)
train/R3RAG_OpenRLHF/openrlhf/cli/train_prm.py:14
↓ 1 callersMethodtraining_step
(self, experience: Experience, global_steps)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_trainer.py:327
↓ 1 callersMethodtraining_step
(self, experience: Experience)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_critic.py:60
↓ 1 callersFunctiontry_download_model_from_other_hub
(model_args: "ModelArguments")
train/LLaMA-Factory/src/llamafactory/extras/misc.py:263
↓ 1 callersMethodunwrap_encoder
Unwrap Fusion-in-Decoder encoder, useful to load T5 weights.
tool/FlashRAG/flashrag/generator/fid.py:64
↓ 1 callersMethodunwrap_encoder
Unwrap Fusion-in-Decoder encoder, useful to load bart weights.
tool/FlashRAG/flashrag/generator/fid.py:169
↓ 1 callersMethodupdate_additional_setting
(self)
tool/FlashRAG/flashrag/generator/openai_generator.py:63
↓ 1 callersMethodupdate_additional_setting
(self)
tool/FlashRAG/flashrag/generator/generator.py:46
↓ 1 callersMethodupdate_additional_setting
(self)
tool/FlashRAG/flashrag/retriever/retriever.py:157
↓ 1 callersMethodupdate_base_setting
(self)
tool/FlashRAG/flashrag/generator/openai_generator.py:54
↓ 1 callersMethodupdate_base_setting
(self)
tool/FlashRAG/flashrag/generator/generator.py:36
↓ 1 callersMethodupdate_base_setting
(self)
tool/FlashRAG/flashrag/retriever/retriever.py:133
↓ 1 callersMethodupdate_evaluation_score
Update the evaluation score of this sample for a metric.
tool/FlashRAG/flashrag/dataset/dataset.py:31
↓ 1 callersFunctionupdate_ring_attn_params
Calculate the cu_seqlens for the current forward pass and pass the value to the substituted ring_flash_attn. Note that total_seq_len may
train/R3RAG_OpenRLHF/openrlhf/models/ring_attn_utils.py:43
↓ 1 callersFunctionwhite_space_fix
(text)
tool/FlashRAG/flashrag/evaluator/utils.py:9
↓ 1 callersFunctionwhitespace_fix
(text)
benchmark/R3-RAG/src/cal_metric.py:156
↓ 1 callersFunctionwhitespace_fix
(text)
benchmark/batch_check/batch_check.py:226
↓ 1 callersFunctionwrite_data_to_jsonl
(file_path, data)
data/construct/02sample_from_dataset/mainv1.py:51
↓ 1 callersFunctionwrite_data_to_jsonl
(file_path, data)
data/construct/02sample_from_dataset/main.py:49
↓ 1 callersFunctionzero_pad_sequences
(sequences: List[torch.Tensor], side: str = "left")
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/replay_buffer.py:79
Method__add__
(self, other)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:26
Method__call__
(self, features: Sequence[Dict[str, Any]])
train/LLaMA-Factory/src/llamafactory/data/collator.py:94
Method__call__
(self, features: Sequence[Dict[str, Any]])
train/LLaMA-Factory/src/llamafactory/data/collator.py:174
Method__call__
r""" Pads batched data to the longest sequence in the batch. We generate 2 * n examples where the first n examples represent chosen e
train/LLaMA-Factory/src/llamafactory/data/collator.py:198
Method__call__
(self, eval_preds: "EvalPrediction", compute_result: bool = True)
train/LLaMA-Factory/src/llamafactory/train/rm/metric.py:44
Method__call__
(self, eval_preds: "EvalPrediction", compute_result: bool = True)
train/LLaMA-Factory/src/llamafactory/train/sft/metric.py:80
Method__call__
(self, eval_preds: "EvalPrediction", compute_result: bool = True)
train/LLaMA-Factory/src/llamafactory/train/sft/metric.py:112
Method__call__
Determines whether to stop generation based on the presence of stop words. Stops if a stop word is found in *all* batch elements *an
tool/FlashRAG/flashrag/generator/stop_word_criteria.py:38
Method__call__
Tokenizes an input line with the tokenizer. :param line: a segment to tokenize :return: the tokenized line
tool/FlashRAG/flashrag/evaluator/_bleu.py:30
Method__call__
Common post-processing tokenizer for `13a` and `zh` tokenizers. :param line: a segment to tokenize :return: the tokenized line
tool/FlashRAG/flashrag/evaluator/_bleu.py:59
Method__call__
Tokenizes an input line using a relatively minimal tokenization that is however equivalent to mteval-v13a, used by WMT. :param line: a
tool/FlashRAG/flashrag/evaluator/_bleu.py:81
Method__call__
(self, *args, **kwargs)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:350
Method__call__
(self, text: str, reduce_ratio: float = 0.5, reduce_level: str = "phrase")
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:272
Method__call__
(self, input_ids, scores)
tool/FlashRAG/flashrag/pipeline/replug_utils.py:217
Method__contains__
(self, key)
tool/FlashRAG/flashrag/config/config.py:288
Method__getattr__
(self, attr_name: str)
tool/FlashRAG/flashrag/dataset/dataset.py:171
Method__getattr__
(self, item)
tool/FlashRAG/flashrag/config/config.py:278
Method__getitem__
(self, idx: int)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/replay_buffer.py:201
Method__getitem__
(self, idx)
train/R3RAG_OpenRLHF/openrlhf/datasets/sft_dataset.py:116
Method__getitem__
(self, idx)
train/R3RAG_OpenRLHF/openrlhf/datasets/process_reward_dataset.py:52
Method__getitem__
(self, idx)
train/R3RAG_OpenRLHF/openrlhf/datasets/prompts_dataset.py:61
Method__getitem__
(self, index)
train/R3RAG_OpenRLHF/openrlhf/datasets/unpaired_preference_dataset.py:103
Method__getitem__
(self, idx)
train/R3RAG_OpenRLHF/openrlhf/datasets/reward_dataset.py:141
Method__getitem__
(self, index: int)
tool/FlashRAG/flashrag/dataset/dataset.py:180
Method__getitem__
(self, index)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:57
Method__getitem__
(self, item)
tool/FlashRAG/flashrag/config/config.py:285
Function__init__
(self, data, **kwargs)
train/LLaMA-Factory/src/llamafactory/data/preprocess.py:56
Method__init__
(self, llm, sampling_params, config)
startup/RRAG.py:223
Method__init__
(self, llm, sampling_params, config)
startup/R3-RAG.py:134
Method__init__
(self)
startup/R3-RAG.py:315
Method__init__
( self, dataset: Dataset, num_replicas: Optional[int] = None, rank: Optional[i
train/R3RAG_OpenRLHF/openrlhf/utils/distributed_sampler.py:66
Method__init__
(self, fmt, datefmt=None)
train/R3RAG_OpenRLHF/openrlhf/utils/logging_utils.py:14
Method__init__
( self, seed: int = 42, max_norm: float = 0.0, micro_train_batch_size=1,
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:40
Method__init__
(self, args)
train/R3RAG_OpenRLHF/openrlhf/cli/serve_rm.py:29
Method__init__
( self, model, strategy, optim: Optimizer, train_dataloader, e
train/R3RAG_OpenRLHF/openrlhf/trainer/prm_trainer.py:28
Method__init__
( self, model, ref_model, strategy, tokenizer, optim: Optimize
train/R3RAG_OpenRLHF/openrlhf/trainer/kto_trainer.py:30
Method__init__
( self, model, strategy, optim: Optimizer, train_dataloader, e
train/R3RAG_OpenRLHF/openrlhf/trainer/rm_trainer.py:29
Method__init__
( self, model, ref_model, strategy, tokenizer, optim: Optimize
train/R3RAG_OpenRLHF/openrlhf/trainer/dpo_trainer.py:34
Method__init__
( self, strategy, actor: Actor, critic: nn.Module, reward_model: nn.Mo
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_trainer.py:58
Method__init__
( self, model, strategy, optim: Optimizer, train_dataloader, e
train/R3RAG_OpenRLHF/openrlhf/trainer/sft_trainer.py:32
Method__init__
( self, model, teacher_model, strategy, optim: Optimizer, trai
train/R3RAG_OpenRLHF/openrlhf/trainer/kd_trainer.py:30
Method__init__
(self, *args, **kwargs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/vllm_engine.py:47
Method__init__
(self, world_size, rank, master_addr, master_port)
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:17
Method__init__
( self, num_nodes, num_gpus_per_node, ray_actor_type: Type[BasePPORole],
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:158
Method__init__
PPOTrainer for ray. Args: vllm_engines (List, optional): vllm engines for text generation, if not specified, generate text by act
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_actor.py:25
Method__init__
(self, init_kl_coef, target, horizon)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/kl_controller.py:10
Method__init__
(self, kl_coef)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/kl_controller.py:25
Method__init__
( self, sample_batch_size: int, limit: int = 0, cpu_offload: bool = True, packing_samples: bool = Fals
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/replay_buffer.py:161
Method__init__
(self, *args, vllm_engines: List = None, packing_samples=False, **kwargs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:873
Method__init__
(self, *args, vllm_engines: List = None, packing_samples=False, **kwargs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:875
Method__init__
(self, *args, vllm_engines: List = None, packing_samples=False, **kwargs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:873
Method__init__
(self, *args, vllm_engines: List = None, packing_samples=False, **kwargs)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:873
Method__init__
( self, dataset, tokenizer: Callable, max_length: int, strategy,
train/R3RAG_OpenRLHF/openrlhf/datasets/sft_dataset.py:44
Method__init__
( self, dataset, tokenizer: Callable, max_length: int, strategy,
train/R3RAG_OpenRLHF/openrlhf/datasets/process_reward_dataset.py:22
Method__init__
( self, dataset, tokenizer, strategy, input_template=None, )
train/R3RAG_OpenRLHF/openrlhf/datasets/prompts_dataset.py:28
Method__init__
( self, dataset, tokenizer: Callable, max_length: int, strategy, input_template=None, num_processors=8
train/R3RAG_OpenRLHF/openrlhf/datasets/unpaired_preference_dataset.py:45
← previousnext →1,001–1,100 of 1,737, ranked by callers