MCPcopy Create free account

hub / github.com/Yuan-Li-FNLP/R3-RAG / types & classes

Types & classes293 in github.com/Yuan-Li-FNLP/R3-RAG

↓ 188 callersClassStringFormatter
train/LLaMA-Factory/src/llamafactory/data/formatter.py:65
↓ 32 callersClassEmptyFormatter
train/LLaMA-Factory/src/llamafactory/data/formatter.py:49
↓ 27 callersClassConfig
tool/FlashRAG/flashrag/config/config.py:9
↓ 24 callersClassPromptTemplate
tool/FlashRAG/flashrag/prompt/base_prompt.py:5
↓ 19 callersClassDataset
A container class used to store the whole dataset. Inside the class, each data sample will be stored in `Item` class. The properties of the datase
tool/FlashRAG/flashrag/dataset/dataset.py:75
↓ 16 callersClassActor
Base class for Actor models in reinforcement learning. This class serves as a foundation for implementing various actor models, which are re
train/R3RAG_OpenRLHF/openrlhf/models/actor.py:15
↓ 15 callersClassFunctionFormatter
train/LLaMA-Factory/src/llamafactory/data/formatter.py:95
↓ 15 callersClassItem
A container class used to store and manipulate a sample within a dataset. Information related to this sample during training/inference will be sto
tool/FlashRAG/flashrag/dataset/dataset.py:9
↓ 15 callersClassToolFormatter
train/LLaMA-Factory/src/llamafactory/data/formatter.py:127
↓ 12 callersClassSequentialPipeline
tool/FlashRAG/flashrag/pipeline/pipeline.py:44
↓ 7 callersClassDenseRetriever
r"""Dense retriever based on pre-built faiss index.
tool/FlashRAG/flashrag/retriever/retriever.py:375
↓ 7 callersClassSFTDataset
Dataset for SFT model Args: dataset: dataset for SFT model tokenizer: tokenizer for SFT model max_length: max length
train/R3RAG_OpenRLHF/openrlhf/datasets/sft_dataset.py:34
↓ 6 callersClassDatasetAttr
r""" Dataset attributes.
train/LLaMA-Factory/src/llamafactory/data/parser.py:27
↓ 6 callersClassFunctionCall
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:27
↓ 6 callersClassLexicalUnits
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:21
↓ 6 callersClassSaveProcessorCallback
r""" A callback for saving the processor.
train/LLaMA-Factory/src/llamafactory/train/callbacks.py:114
↓ 5 callersClassChatCompletionMessage
train/LLaMA-Factory/src/llamafactory/api/protocol.py:89
↓ 5 callersClassEncoder
Encoder class for encoding queries using a specified model. Attributes: model_name (str): The name of the model. model_path
tool/FlashRAG/flashrag/retriever/encoder.py:10
↓ 5 callersClassSamples
Samples is a batch of data. There can be 2 formats to store the samples, batched or packed. The batched format means padding is applied to the
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:128
↓ 5 callersClassSamples
Samples is a batch of data. There can be 2 formats to store the samples, batched or packed. The batched format means padding is applied to the
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:128
↓ 5 callersClassSamples
Samples is a batch of data. There can be 2 formats to store the samples, batched or packed. The batched format means padding is applied to the
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:128
↓ 5 callersClassSamples
Samples is a batch of data. There can be 2 formats to store the samples, batched or packed. The batched format means padding is applied to the
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:128
↓ 4 callersClassPPORayActorGroup
A group of ray actors Functions start with 'async' should return list of object refs Args: num_nodes (int): Number of nodes for
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/launcher.py:143
↓ 4 callersClassPromptDataset
Dataset for PPO model Args: dataset: dataset for PPO model tokenizer: tokenizer for PPO model max_length: max length
train/R3RAG_OpenRLHF/openrlhf/datasets/prompts_dataset.py:18
↓ 4 callersClassRewardDataset
Dataset for reward model Args: dataset: dataset for reward model self.tokenizer: self.tokenizer for reward model sel
train/R3RAG_OpenRLHF/openrlhf/datasets/reward_dataset.py:49
↓ 3 callersClassBM25Retriever
r"""BM25 retriever based on pre-built pyserini index.
tool/FlashRAG/flashrag/retriever/retriever.py:217
↓ 3 callersClassChatModel
r""" General class for chat models. Backed by huggingface or vllm engines. Supports both sync and async methods. Sync methods: chat(), st
train/LLaMA-Factory/src/llamafactory/chat/chat_model.py:39
↓ 3 callersClassEvaluator
Evaluator is used to summarize the results of all metrics.
tool/FlashRAG/flashrag/evaluator/evaluator.py:5
↓ 3 callersClassExperience
Experience is a batch of data. These data should have the the sequence length and number of actions. Left padding for sequences is applied.
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:74
↓ 3 callersClassFinetuningArguments
r""" Arguments pertaining to which techniques we are going to fine-tuning with.
train/LLaMA-Factory/src/llamafactory/hparams/finetuning_args.py:389
↓ 3 callersClassGPTLMLoss
GPT Language Model Loss
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:11
↓ 3 callersClassIRCOTPipeline
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:926
↓ 3 callersClassStopWordCriteria
A stopping criteria that halts the text generation process if any specified stop word is encountered. Inspired by https://discuss.huggingfac
tool/FlashRAG/flashrag/generator/stop_word_criteria.py:11
↓ 2 callersClassAverageMeter
r""" Computes and stores the average and current value.
train/LLaMA-Factory/src/llamafactory/extras/misc.py:55
↓ 2 callersClassClipEncoder
ClipEncoder class for encoding queries using CLIP.
tool/FlashRAG/flashrag/retriever/encoder.py:142
↓ 2 callersClassDummyOptimizer
r""" A dummy optimizer used for the GaLore or APOLLO algorithm.
train/LLaMA-Factory/src/llamafactory/train/trainer_utils.py:63
↓ 2 callersClassEncoderWrapper
tool/FlashRAG/flashrag/generator/fid.py:187
↓ 2 callersClassEngine
train/LLaMA-Factory/src/llamafactory/webui/engine.py:29
↓ 2 callersClassExperience
Experience is a batch of data. These data should have the the sequence length and number of actions. Left padding for sequences is applied.
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_prm_orm.py:74
↓ 2 callersClassExperience
Experience is a batch of data. These data should have the the sequence length and number of actions. Left padding for sequences is applied.
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_orm.py:74
↓ 2 callersClassExperience
Experience is a batch of data. These data should have the the sequence length and number of actions. Left padding for sequences is applied.
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker_only_prm.py:74
↓ 2 callersClassNaivePipeline_Chat
tool/FlashRAG/webui/chat_pipelines/sequential_pipeline.py:71
↓ 2 callersClassPairwiseDataCollatorWithPadding
r""" Data collator for pairwise data.
train/LLaMA-Factory/src/llamafactory/data/collator.py:193
↓ 2 callersClassProcessRewardDataset
Dataset for process reward model Args: dataset: dataset for reward model self.tokenizer: self.tokenizer for reward model
train/R3RAG_OpenRLHF/openrlhf/datasets/process_reward_dataset.py:12
↓ 2 callersClassREPLUGLogitsProcessor
Merge logits of different docs in one batch. Reference: fastRAG
tool/FlashRAG/flashrag/pipeline/replug_utils.py:204
↓ 2 callersClassResponse
train/LLaMA-Factory/src/llamafactory/chat/base_engine.py:30
↓ 2 callersClassSTEncoder
STEncoder class for encoding queries using SentenceTransformers. Attributes: model_name (str): The name of the model. model_
tool/FlashRAG/flashrag/retriever/encoder.py:83
↓ 2 callersClassSequentialPipeline_Chat
tool/FlashRAG/webui/chat_pipelines/sequential_pipeline.py:10
↓ 2 callersClassTeeStream
tool/FlashRAG/webui/utils.py:52
↓ 2 callersClassTokenClfDataset
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:27
↓ 2 callersClassUnpairedPreferenceDataset
Unpaired preference dataset for algorithm, like KTO Args: dataset: raw dataset self.tokenizer: self.tokenizer for model
train/R3RAG_OpenRLHF/openrlhf/datasets/unpaired_preference_dataset.py:35
↓ 1 callersClassActorPPOTrainer
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_actor.py:24
↓ 1 callersClassAdaptiveKLController
Adaptive KL controller described in the paper: https://arxiv.org/pdf/1909.08593.pdf
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/kl_controller.py:4
↓ 1 callersClassAdaptivePipeline
tool/FlashRAG/flashrag/pipeline/pipeline.py:182
↓ 1 callersClassBufferItem
BufferItem is an item of experience data. Shapes of each tensor: sequences: (S) action_log_probs: (A) values: (1) returns: (1)
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/replay_buffer.py:14
↓ 1 callersClassChatCompletionResponse
train/LLaMA-Factory/src/llamafactory/api/protocol.py:126
↓ 1 callersClassChatCompletionResponseChoice
train/LLaMA-Factory/src/llamafactory/api/protocol.py:108
↓ 1 callersClassChatCompletionResponseUsage
train/LLaMA-Factory/src/llamafactory/api/protocol.py:120
↓ 1 callersClassChatCompletionStreamResponse
train/LLaMA-Factory/src/llamafactory/api/protocol.py:135
↓ 1 callersClassChatCompletionStreamResponseChoice
train/LLaMA-Factory/src/llamafactory/api/protocol.py:114
↓ 1 callersClassChatSession
startup/RRAG.py:222
↓ 1 callersClassChatter
tool/FlashRAG/webui/chatter.py:7
↓ 1 callersClassCheckpointWrapper
Wrapper replacing None outputs by empty tensors, which allows the use of checkpointing.
tool/FlashRAG/flashrag/generator/fid.py:91
↓ 1 callersClassCompositeModel
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:40
↓ 1 callersClassComputeAccuracy
r""" Computes reward accuracy and supports `batch_eval_metrics`.
train/LLaMA-Factory/src/llamafactory/train/rm/metric.py:28
↓ 1 callersClassComputeAccuracy
r""" Computes accuracy and supports `batch_eval_metrics`.
train/LLaMA-Factory/src/llamafactory/train/sft/metric.py:64
↓ 1 callersClassComputeSimilarity
r""" Computes text similarity scores and supports `batch_eval_metrics`. Wraps the tokenizer into metric functions, used in CustomSeq2SeqTrain
train/LLaMA-Factory/src/llamafactory/train/sft/metric.py:92
↓ 1 callersClassConditionalPipeline
tool/FlashRAG/flashrag/pipeline/pipeline.py:133
↓ 1 callersClassCriticPPOTrainer
train/R3RAG_OpenRLHF/openrlhf/trainer/ray/ppo_critic.py:20
↓ 1 callersClassCustomDPOTrainer
train/LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:43
↓ 1 callersClassCustomKTOTrainer
train/LLaMA-Factory/src/llamafactory/train/kto/trainer.py:43
↓ 1 callersClassCustomPPOTrainer
r""" Inherits PPOTrainer.
train/LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:64
↓ 1 callersClassCustomSeq2SeqTrainer
r""" Inherits Seq2SeqTrainer to compute generative metrics such as BLEU and ROUGE.
train/LLaMA-Factory/src/llamafactory/train/sft/trainer.py:46
↓ 1 callersClassCustomTrainer
r""" Inherits Trainer for custom optimizer.
train/LLaMA-Factory/src/llamafactory/train/pt/trainer.py:33
↓ 1 callersClassDPOLoss
DPO Loss
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:136
↓ 1 callersClassDPOTrainer
Trainer for Direct Preference Optimization (DPO) training. Args: model (torch.nn.Module): The primary model to be trained. r
train/R3RAG_OpenRLHF/openrlhf/trainer/dpo_trainer.py:14
↓ 1 callersClassDeepspeedStrategy
The strategy for training with Accelerator.
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed.py:35
↓ 1 callersClassDefaultToolUtils
r""" Default tool using template.
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:96
↓ 1 callersClassDistributedSampler
r"""Sampler that restricts data loading to a subset of the dataset. It is especially useful in conjunction with :class:`torch.nn.parallel.Dis
train/R3RAG_OpenRLHF/openrlhf/utils/distributed_sampler.py:17
↓ 1 callersClassEmpty
train/R3RAG_OpenRLHF/openrlhf/cli/interactive_chat.py:9
↓ 1 callersClassEmpty
train/R3RAG_OpenRLHF/openrlhf/cli/batch_inference.py:20
↓ 1 callersClassEngine
tool/FlashRAG/webui/engine.py:11
↓ 1 callersClassEvalTemplate
train/LLaMA-Factory/src/llamafactory/eval/template.py:23
↓ 1 callersClassEvaluator
train/LLaMA-Factory/src/llamafactory/eval/evaluator.py:61
↓ 1 callersClassFLAREPipeline
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:692
↓ 1 callersClassFixedKLController
Fixed KL controller.
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/kl_controller.py:22
↓ 1 callersClassFunction
train/LLaMA-Factory/src/llamafactory/api/protocol.py:51
↓ 1 callersClassFunctionCall
train/LLaMA-Factory/src/llamafactory/api/protocol.py:67
↓ 1 callersClassGLM4ToolUtils
r""" GLM-4 tool using template.
train/LLaMA-Factory/src/llamafactory/data/tool_utils.py:165
↓ 1 callersClassHF_REPLUG
Creates a HF model that inherits from REPLUG_Generation class
tool/FlashRAG/flashrag/pipeline/replug_utils.py:226
↓ 1 callersClassHuggingfaceEngine
train/LLaMA-Factory/src/llamafactory/chat/hf_engine.py:45
↓ 1 callersClassIRCOTPipeline_Chat
tool/FlashRAG/webui/chat_pipelines/active_pipeline.py:284
↓ 1 callersClassIndex_Builder
r"""A tool class used to build an index used in retrieval.
tool/FlashRAG/flashrag/retriever/index_builder.py:17
↓ 1 callersClassIterativePipeline
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:14
↓ 1 callersClassKDLoss
Language Model Knowledge Distillation Loss
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:266
↓ 1 callersClassKDTrainer
Trainer for Knowledge Distillation. Args: model (torch.nn.Module): The model to be trained. strategy (Strategy): The trainin
train/R3RAG_OpenRLHF/openrlhf/trainer/kd_trainer.py:12
↓ 1 callersClassKTODataCollatorWithPadding
r""" Data collator for KTO data.
train/LLaMA-Factory/src/llamafactory/data/collator.py:221
↓ 1 callersClassKTOLoss
KTO loss for uneven sampling
train/R3RAG_OpenRLHF/openrlhf/models/loss.py:211
↓ 1 callersClassKTOTrainer
Trainer for KTO training. Args: model (torch.nn.Module): The primary model to be trained. ref_model (torch.nn.Module): The r
train/R3RAG_OpenRLHF/openrlhf/trainer/kto_trainer.py:12
↓ 1 callersClassLLMLinguaRefiner
Implementation for (Long)LLMLingua.
tool/FlashRAG/flashrag/refiner/refiner.py:34
next →1–100 of 293, ranked by callers