MCPcopy Create free account

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

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

Method__init__
( self, dataset, tokenizer: Callable, max_length: int, strategy,
train/R3RAG_OpenRLHF/openrlhf/datasets/reward_dataset.py:59
Method__init__
(self, ring_attn_group=None)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:16
Method__init__
(self, clip_eps: float = 0.2)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:61
Method__init__
(self, clip_eps: float = None)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:85
Method__init__
(self, beta: float, label_smoothing: float = 0.0, ipo: bool = False)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:141
Method__init__
(self, beta: float)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:180
Method__init__
( self, beta: float, desirable_weight: float, undesirable_weight: float, world_size: int, device: torc
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:216
Method__init__
(self, placeholder_token_id: int, reward_token_ids: Optional[list[int]] = None)
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:292
Method__init__
( self, pretrain_or_model, use_flash_attention_2=False, bf16=True, loa
train/R3RAG_OpenRLHF/openrlhf/models/actor.py:35
Method__init__
(self, config: AutoConfig)
train/R3RAG_OpenRLHF/openrlhf/models/model.py:236
Method__init__
(self, vision_hidden_size: int, text_hidden_size: int, projector_hidden_act: str)
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:108
Method__init__
( self, model_args: "ModelArguments", data_args: "DataArguments", finetuning_a
train/LLaMA-Factory/src/llamafactory/chat/vllm_engine.py:50
Method__init__
r""" Initializes an inference engine.
train/LLaMA-Factory/src/llamafactory/chat/base_engine.py:51
Method__init__
(self, args: Optional[Dict[str, Any]] = None)
train/LLaMA-Factory/src/llamafactory/chat/chat_model.py:48
Method__init__
( self, model_args: "ModelArguments", data_args: "DataArguments", finetuning_a
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:46
Method__init__
(self, args: Optional[Dict[str, Any]] = None)
train/LLaMA-Factory/src/llamafactory/eval/evaluator.py:62
Method__init__
(self, output_dir: str)
train/LLaMA-Factory/src/llamafactory/extras/logging.py:39
Method__init__
(self)
train/LLaMA-Factory/src/llamafactory/extras/misc.py:60
Method__init__
( self, lr: float = 1e-3, optimizer_dict: Optional[Dict["torch.nn.Parameter", "torch.optim.Optimizer"]
train/LLaMA-Factory/src/llamafactory/train/trainer_utils.py:68
Method__init__
(self, processor: "ProcessorMixin")
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:119
Method__init__
(self)
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:184
Method__init__
( self, model_args: "ModelArguments", data_args: "DataArguments", finetuning_a
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:355
Method__init__
( self, finetuning_args: "FinetuningArguments", processor: Optional["ProcessorMixin"], **kwargs )
train/LLaMA-Factory/src/llamafactory/train/rm/trainer.py:48
Method__init__
( self, finetuning_args: "FinetuningArguments", processor: Optional["ProcessorMixin"], **kwargs )
train/LLaMA-Factory/src/llamafactory/train/sft/trainer.py:51
Method__init__
( self, model_args: "ModelArguments", training_args: "Seq2SeqTrainingArguments",
train/LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:69
Method__init__
( self, finetuning_args: "FinetuningArguments", processor: Optional["ProcessorMixin"], **kwargs )
train/LLaMA-Factory/src/llamafactory/train/pt/trainer.py:38
Method__init__
( self, model: Union["PreTrainedModel", torch.nn.Module], ref_model: Optional[Union["P
train/LLaMA-Factory/src/llamafactory/train/kto/trainer.py:44
Method__init__
( self, model: Union["PreTrainedModel", torch.nn.Module], ref_model: Optional[Union["P
train/LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:44
Method__init__
(self, manager: "Manager", demo_mode: bool = False)
train/LLaMA-Factory/src/llamafactory/webui/runner.py:43
Method__init__
(self, demo_mode: bool = False, pure_chat: bool = False)
train/LLaMA-Factory/src/llamafactory/webui/engine.py:30
Method__init__
(self)
train/LLaMA-Factory/src/llamafactory/webui/manager.py:23
Method__init__
(self, config)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:24
Method__init__
(self, config)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:384
Method__init__
(self, config)
tool/FlashRAG/flashrag/generator/openai_generator.py:25
Method__init__
(self, module, use_checkpoint=False)
tool/FlashRAG/flashrag/generator/fid.py:96
Method__init__
(self, config)
tool/FlashRAG/flashrag/generator/fid.py:138
Method__init__
(self, encoder,use_checkpoint=False)
tool/FlashRAG/flashrag/generator/fid.py:188
Method__init__
(self, config)
tool/FlashRAG/flashrag/generator/generator.py:64
Method__init__
(self, config)
tool/FlashRAG/flashrag/generator/generator.py:174
Method__init__
(self, config, model=None)
tool/FlashRAG/flashrag/generator/generator.py:278
Method__init__
(self, config, model=None)
tool/FlashRAG/flashrag/generator/generator.py:526
Method__init__
Initializes the StopWordCriteria with the necessary parameters for checking stop words during text generation. Parameters:
tool/FlashRAG/flashrag/generator/stop_word_criteria.py:19
Method__init__
(self, item_dict: Dict[str, Any])
tool/FlashRAG/flashrag/dataset/dataset.py:15
Method__init__
( self, config: Optional[Dict[str, Any]] = None, dataset_path: Optional[str] = None,
tool/FlashRAG/flashrag/dataset/dataset.py:80
Method__init__
(self, config, system_prompt="", user_prompt="", reference_template=None, enable_chat=True)
tool/FlashRAG/flashrag/prompt/base_prompt.py:14
Method__init__
(self, config, system_prompt=None, user_prompt=None)
tool/FlashRAG/flashrag/prompt/mm_prompt.py:5
Method__init__
(self, config, system_prompt=None, user_prompt=None)
tool/FlashRAG/flashrag/prompt/mm_prompt.py:47
Method__init__
(self, config)
tool/FlashRAG/flashrag/judger/judger.py:16
Method__init__
(self, config)
tool/FlashRAG/flashrag/judger/judger.py:136
Method__init__
(self)
tool/FlashRAG/flashrag/evaluator/_bleu.py:43
Method__init__
(self)
tool/FlashRAG/flashrag/evaluator/_bleu.py:77
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/evaluator.py:8
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:15
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:53
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:101
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:120
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:142
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:183
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:224
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:256
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:287
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:315
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:334
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:353
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:374
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:405
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:425
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:444
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:527
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:578
Method__init__
(self, config)
tool/FlashRAG/flashrag/evaluator/metrics.py:612
Method__init__
( self, retrieval_method, model_path, corpus_path, save_dir, m
tool/FlashRAG/flashrag/retriever/index_builder.py:20
Method__init__
(self, config)
tool/FlashRAG/flashrag/retriever/retriever.py:195
Method__init__
(self, config, corpus=None)
tool/FlashRAG/flashrag/retriever/retriever.py:220
Method__init__
(self, config: dict, corpus=None)
tool/FlashRAG/flashrag/retriever/retriever.py:378
Method__init__
(self, config: dict, corpus=None)
tool/FlashRAG/flashrag/retriever/retriever.py:477
Method__init__
(self, config)
tool/FlashRAG/flashrag/retriever/retriever.py:584
Method__init__
(self, model_name, model_path, pooling_method, max_length, use_fp16, instruction)
tool/FlashRAG/flashrag/retriever/encoder.py:27
Method__init__
(self, model_name, model_path, max_length, use_fp16, instruction)
tool/FlashRAG/flashrag/retriever/encoder.py:101
Method__init__
(self, model_name, model_path)
tool/FlashRAG/flashrag/retriever/encoder.py:145
Method__init__
(self, config)
tool/FlashRAG/flashrag/retriever/reranker.py:13
Method__init__
(self, config)
tool/FlashRAG/flashrag/retriever/reranker.py:78
Method__init__
( self, texts, max_len=512, tokenizer=None, model_name="bert-base-mult
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:28
Method__init__
( self, model_name: str = "NousResearch/Llama-2-7b-hf", device_map: str = "cuda",
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:235
Method__init__
(self, model_type="gpt2", model_path="openai-community/gpt2", lang="en")
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:44
Method__init__
(self, config)
tool/FlashRAG/flashrag/refiner/refiner.py:37
Method__init__
(self, config)
tool/FlashRAG/flashrag/refiner/refiner.py:103
Method__init__
(self, config)
tool/FlashRAG/flashrag/refiner/refiner.py:144
Method__init__
(self, config)
tool/FlashRAG/flashrag/refiner/refiner.py:214
Method__init__
(self, config, retriever=None, generator=None)
tool/FlashRAG/flashrag/refiner/kg_refiner.py:14
Method__init__
(self, config, prompt_template=None, retriever=None, generator=None)
tool/FlashRAG/flashrag/pipeline/branching_pipeline.py:13
Method__init__
(self, config, prompt_template=None)
tool/FlashRAG/flashrag/pipeline/mm_pipeline.py:9
Method__init__
(self, config, prompt_template=None, retriever=None, generator=None)
tool/FlashRAG/flashrag/pipeline/mm_pipeline.py:42
Method__init__
inference stage: query -> pre-retrieval -> retriever -> post-retrieval -> generator
tool/FlashRAG/flashrag/pipeline/pipeline.py:45
Method__init__
inference stage: query -> judger -> sequential pipeline or naive generate
tool/FlashRAG/flashrag/pipeline/pipeline.py:134
Method__init__
( self, config, norag_template=None, single_hop_prompt_template=None,
tool/FlashRAG/flashrag/pipeline/pipeline.py:183
Method__init__
(self, config, prompt_template=None, iter_num=3, retriever=None, generator=None)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:15
Method__init__
( self, config, threshold=0.2, max_depth=2, beam_width=2, w_re
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:99
Method__init__
(self, config, prompt_template=None, max_iter=5, single_hop=True, retriever=None, generator=None)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:810
Method__init__
( self, config, prompt_template=None, max_iter=2, retriever=None, generator=None )
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:930
← previousnext →1,101–1,200 of 1,737, ranked by callers