MCPcopy Create free account

hub / github.com/RUC-NLPIR/SmartSearch / types & classes

Types & classes411 in github.com/RUC-NLPIR/SmartSearch

↓ 23 callersClassDataProto
A DataProto is a data structure that aims to provide a standard protocol for data exchange between functions. It contains a batch (TensorDi
src/verl/protocol.py:174
↓ 14 callersClassDistributedInterface
Distributed interface.
LLaMA-Factory/src/llamafactory/v1/accelerator/interface.py:105
↓ 12 callersClassPromptTemplate
src/flashrag/prompt/base_prompt.py:5
↓ 9 callersClassConfig
src/flashrag/config/config.py:9
↓ 9 callersClassDataLoader
Default DataLoader.
LLaMA-Factory/src/llamafactory/v1/core/trainer_utils/data_loader.py:80
↓ 9 callersClassSaveProcessorCallback
r"""A callback for saving the processor.
LLaMA-Factory/src/llamafactory/train/callbacks.py:110
↓ 8 callersClassChatModel
r"""General class for chat models. Backed by huggingface or vllm engines. Supports both sync and async methods. Sync methods: chat(), stream_
LLaMA-Factory/src/llamafactory/chat/chat_model.py:39
↓ 7 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 datas
src/flashrag/dataset/dataset.py:77
↓ 7 callersClassParallelLlamaRMSNorm
src/verl/models/llama/megatron/layers/parallel_rmsnorm.py:25
↓ 7 callersClassParallelQwen2RMSNorm
src/verl/models/qwen2/megatron/layers/parallel_rmsnorm.py:25
↓ 6 callersClassDataEngine
Data engine. Args: data_args: Data arguments.
LLaMA-Factory/src/llamafactory/v1/core/data_engine.py:40
↓ 6 callersClassFinetuningArguments
r"""Arguments pertaining to which techniques we are going to fine-tuning with.
LLaMA-Factory/src/llamafactory/hparams/finetuning_args.py:444
↓ 6 callersClassLexicalUnits
src/flashrag/refiner/selective_context_compressor.py:21
↓ 6 callersClassModelArguments
r"""Arguments pertaining to which model/config/tokenizer we are going to fine-tune or infer. The class on the most right will be displayed first.
LLaMA-Factory/src/llamafactory/hparams/model_args.py:527
↓ 6 callersClassRayClassWithInitArgs
src/verl/single_controller/ray/base.py:149
↓ 5 callersClassChatCompletionMessage
LLaMA-Factory/src/llamafactory/api/protocol.py:91
↓ 5 callersClassDataArguments
r"""Arguments pertaining to what data we are going to input our model for training and evaluation.
LLaMA-Factory/src/llamafactory/hparams/data_args.py:23
↓ 5 callersClassDynamicBatchSizeBuffer
A buffer to store samples for dynamic batch size.
LLaMA-Factory/src/llamafactory/v1/utils/batching_queue.py:21
↓ 5 callersClassEncoder
Encoder class for encoding queries using a specified model. Attributes: model_name (str): The name of the model. model_
src/flashrag/retriever/encoder.py:10
↓ 5 callersClassSequentialPipeline
src/flashrag/pipeline/pipeline.py:46
↓ 4 callersClassDocument
scripts/serving/retriever_serving.py:52
↓ 4 callersClassFSDPUlyssesShardingManager
Sharding manager to support data resharding when using FSDP + Ulysses
src/verl/workers/sharding_manager/fsdp_ulysses.py:32
↓ 4 callersClassFlopsCounter
Used to count mfu during training loop Example: flops_counter = FlopsCounter(config) flops_achieved, flops_promised = f
src/verl/utils/flops_counter.py:54
↓ 4 callersClassMultiModalDataCollatorForSeq2Seq
LLaMA-Factory/scripts/bench_qwen.py:79
↓ 4 callersClassPairwiseDataCollatorWithPadding
r"""Data collator for pairwise data.
LLaMA-Factory/scripts/stat_utils/cal_ppl.py:32
↓ 4 callersClassResponse
LLaMA-Factory/src/llamafactory/chat/base_engine.py:32
↓ 4 callersClassTextBatchingQueue
Batching text queue for text data.
LLaMA-Factory/src/llamafactory/v1/utils/batching_queue.py:144
↓ 3 callersClassCustomSeq2SeqTrainer
r"""Inherits Seq2SeqTrainer to compute generative metrics such as BLEU and ROUGE.
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:47
↓ 3 callersClassDistributedStrategy
Distributed strategy.
LLaMA-Factory/src/llamafactory/v1/accelerator/interface.py:51
↓ 3 callersClassItem
A container class used to store and manipulate a sample within a dataset. Information related to this sample during training/inference will be st
src/flashrag/dataset/dataset.py:9
↓ 3 callersClassModelLoader
Model loader. Args: model_args: Model arguments. is_trainable: Whether to train the model.
LLaMA-Factory/src/llamafactory/v1/core/model_loader.py:37
↓ 3 callersClassRayResourcePool
src/verl/single_controller/ray/base.py:70
↓ 3 callersClassStopWordCriteria
A stopping criteria that halts the text generation process if any specified stop word is encountered. Inspired by https://discuss.hugging
src/flashrag/generator/stop_word_criteria.py:11
↓ 2 callersClassAverageMeter
r"""Compute and store the average and current value.
LLaMA-Factory/src/llamafactory/extras/misc.py:57
↓ 2 callersClassClipEncoder
ClipEncoder class for encoding queries using CLIP.
src/flashrag/retriever/encoder.py:145
↓ 2 callersClassDataConverterPlugin
Plugin for data converters.
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/converter.py:57
↓ 2 callersClassDataParallelPPOActor
src/verl/workers/actor/dp_actor.py:39
↓ 2 callersClassDataProtoFuture
DataProtoFuture aims to eliminate actual data fetching on driver. By doing so, the driver doesn't have to wait for data so that asynchronou
src/verl/protocol.py:714
↓ 2 callersClassDefaultCollator
Example for now.
LLaMA-Factory/src/llamafactory/v1/core/trainer_utils/data_collator.py:69
↓ 2 callersClassDenseRetriever
r"""Dense retriever based on pre-built faiss index.
src/flashrag/retriever/retriever.py:334
↓ 2 callersClassDummyOptimizer
r"""A dummy optimizer used for the GaLore or APOLLO algorithm.
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:66
↓ 2 callersClassEncoderWrapper
src/flashrag/generator/fid.py:187
↓ 2 callersClassEngine
r"""A general engine to control the behaviors of Web UI.
LLaMA-Factory/src/llamafactory/webui/engine.py:28
↓ 2 callersClassEvaluator
Evaluator is used to summarize the results of all metrics.
src/flashrag/evaluator/evaluator.py:5
↓ 2 callersClassFSDPCheckpointManager
A checkpoint manager that saves and loads - model - optimizer - lr_scheduler - extra_states in a SPMD way. We sa
src/verl/utils/checkpoint/fsdp_checkpoint_manager.py:32
↓ 2 callersClassIRCOTPipeline
src/flashrag/pipeline/active_pipeline.py:1059
↓ 2 callersClassLogCallback
r"""A callback for logging training and evaluation status.
LLaMA-Factory/src/llamafactory/train/callbacks.py:170
↓ 2 callersClassMegatronCheckpointManager
A checkpoint manager that saves and loads - model - optimizer - lr_scheduler - extra_states in a SPMD way. We sa
src/verl/utils/checkpoint/megatron_checkpoint_manager.py:41
↓ 2 callersClassMegatronPPOActor
src/verl/workers/actor/megatron_actor.py:53
↓ 2 callersClassMemoryBuffer
A memory buffer is a contiguous torch tensor that may combine multiple tensors sharing with the underlying memory. It must have a unique ty
src/verl/utils/memory_buffer.py:24
↓ 2 callersClassParallelLlamaDecoderLayerRmPad
src/verl/models/llama/megatron/layers/parallel_decoder.py:103
↓ 2 callersClassParallelLlamaMLP
src/verl/models/llama/megatron/layers/parallel_mlp.py:31
↓ 2 callersClassParallelQwen2DecoderLayerRmPad
src/verl/models/qwen2/megatron/layers/parallel_decoder.py:103
↓ 2 callersClassParallelQwen2MLP
src/verl/models/qwen2/megatron/layers/parallel_mlp.py:31
↓ 2 callersClassQwenTemplate
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/template.py:30
↓ 2 callersClassReCall
src/re_call/inference/re_call.py:25
↓ 2 callersClassSTEncoder
STEncoder class for encoding queries using SentenceTransformers. Attributes: model_name (str): The name of the model. m
src/flashrag/retriever/encoder.py:86
↓ 2 callersClassState
src/verl/utils/seqlen_balancing.py:49
↓ 2 callersClassTokenClfDataset
src/flashrag/refiner/llmlingua_compressor.py:27
↓ 2 callersClassTracking
src/verl/utils/tracking.py:24
↓ 2 callersClassvLLMRollout
src/verl/workers/rollout/vllm_rollout/vllm_rollout.py:57
↓ 1 callersClassAdaptiveKLController
Adaptive KL controller described in the paper: https://arxiv.org/pdf/1909.08593.pdf
src/verl/trainer/ppo/core_algos.py:28
↓ 1 callersClassAllGatherPPModel
src/verl/workers/sharding_manager/megatron_vllm.py:41
↓ 1 callersClassBM25Retriever
r"""BM25 retriever based on pre-built pyserini index.
src/flashrag/retriever/retriever.py:219
↓ 1 callersClassBaseShardingManager
src/verl/workers/sharding_manager/base.py:21
↓ 1 callersClassCapturing
src/verl/utils/reward_score/prime_code/testing_util.py:74
↓ 1 callersClassChatCompletionResponse
LLaMA-Factory/src/llamafactory/api/protocol.py:129
↓ 1 callersClassChatCompletionResponseChoice
LLaMA-Factory/src/llamafactory/api/protocol.py:111
↓ 1 callersClassChatCompletionResponseUsage
LLaMA-Factory/src/llamafactory/api/protocol.py:123
↓ 1 callersClassChatCompletionStreamResponse
LLaMA-Factory/src/llamafactory/api/protocol.py:138
↓ 1 callersClassChatCompletionStreamResponseChoice
LLaMA-Factory/src/llamafactory/api/protocol.py:117
↓ 1 callersClassCheckpointWrapper
Wrapper replacing None outputs by empty tensors, which allows the use of checkpointing.
src/flashrag/generator/fid.py:91
↓ 1 callersClassCompositeModel
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:41
↓ 1 callersClassComputeAccuracy
r"""Compute reward accuracy and support `batch_eval_metrics`.
LLaMA-Factory/src/llamafactory/train/rm/metric.py:28
↓ 1 callersClassComputeAccuracy
r"""Compute accuracy and support `batch_eval_metrics`.
LLaMA-Factory/src/llamafactory/train/sft/metric.py:62
↓ 1 callersClassComputeSimilarity
r"""Compute text similarity scores and support `batch_eval_metrics`. Wraps the tokenizer into metric functions, used in CustomSeq2SeqTrainer.
LLaMA-Factory/src/llamafactory/train/sft/metric.py:88
↓ 1 callersClassCustomDPOTrainer
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:43
↓ 1 callersClassCustomKTOTrainer
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:42
↓ 1 callersClassCustomPPOTrainer
r"""Inherit PPOTrainer.
LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:64
↓ 1 callersClassCustomTrainer
r"""Inherit Trainer for custom optimizer.
LLaMA-Factory/src/llamafactory/train/pt/trainer.py:34
↓ 1 callersClassDataCollator
Default Data collator.
LLaMA-Factory/src/llamafactory/v1/core/trainer_utils/data_collator.py:35
↓ 1 callersClassDataCollatorWithVerbose
LLaMA-Factory/tests/train/test_sft_trainer.py:49
↓ 1 callersClassDataIndexPlugin
Plugin for adjusting dataset index.
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/loader.py:69
↓ 1 callersClassDataLoaderPlugin
Plugin for loading dataset.
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/loader.py:26
↓ 1 callersClassDataParallelPPOCritic
src/verl/workers/critic/dp_critic.py:39
↓ 1 callersClassDataProtoItem
src/verl/protocol.py:166
↓ 1 callersClassDataSelectorPlugin
Plugin for selecting dataset samples.
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/loader.py:94
↓ 1 callersClassDeviceType
LLaMA-Factory/src/llamafactory/v1/accelerator/helper.py:42
↓ 1 callersClassDistGlobalInfo
src/verl/single_controller/base/worker.py:32
↓ 1 callersClassDistRankInfo
src/verl/single_controller/base/worker.py:24
↓ 1 callersClassDummyDataset
LLaMA-Factory/scripts/bench_qwen.py:32
↓ 1 callersClassEvalTemplate
LLaMA-Factory/src/llamafactory/eval/template.py:22
↓ 1 callersClassEvaluator
LLaMA-Factory/src/llamafactory/eval/evaluator.py:61
↓ 1 callersClassFSDPSFTTrainer
src/verl/trainer/fsdp_sft_trainer.py:79
↓ 1 callersClassFSDPSGLangShardingManager
src/verl/workers/sharding_manager/fsdp_sglang.py:48
↓ 1 callersClassFSDPVLLMShardingManager
src/verl/workers/sharding_manager/fsdp_vllm.py:40
↓ 1 callersClassFixedKLController
Fixed KL controller.
src/verl/trainer/ppo/core_algos.py:46
↓ 1 callersClassFunction
LLaMA-Factory/src/llamafactory/api/protocol.py:50
↓ 1 callersClassFunctionCall
LLaMA-Factory/src/llamafactory/api/protocol.py:66
↓ 1 callersClassHFRollout
src/verl/workers/rollout/hf_rollout.py:35
next →1–100 of 411, ranked by callers