Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RUC-NLPIR/SmartSearch
/ types & classes
Types & classes
411 in github.com/RUC-NLPIR/SmartSearch
⨍
Functions
2,379
◇
Types & classes
411
↳
Endpoints
33
↓ 23 callers
Class
DataProto
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 callers
Class
DistributedInterface
Distributed interface.
LLaMA-Factory/src/llamafactory/v1/accelerator/interface.py:105
↓ 12 callers
Class
PromptTemplate
src/flashrag/prompt/base_prompt.py:5
↓ 9 callers
Class
Config
src/flashrag/config/config.py:9
↓ 9 callers
Class
DataLoader
Default DataLoader.
LLaMA-Factory/src/llamafactory/v1/core/trainer_utils/data_loader.py:80
↓ 9 callers
Class
SaveProcessorCallback
r"""A callback for saving the processor.
LLaMA-Factory/src/llamafactory/train/callbacks.py:110
↓ 8 callers
Class
ChatModel
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 callers
Class
Dataset
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 callers
Class
ParallelLlamaRMSNorm
src/verl/models/llama/megatron/layers/parallel_rmsnorm.py:25
↓ 7 callers
Class
ParallelQwen2RMSNorm
src/verl/models/qwen2/megatron/layers/parallel_rmsnorm.py:25
↓ 6 callers
Class
DataEngine
Data engine. Args: data_args: Data arguments.
LLaMA-Factory/src/llamafactory/v1/core/data_engine.py:40
↓ 6 callers
Class
FinetuningArguments
r"""Arguments pertaining to which techniques we are going to fine-tuning with.
LLaMA-Factory/src/llamafactory/hparams/finetuning_args.py:444
↓ 6 callers
Class
LexicalUnits
src/flashrag/refiner/selective_context_compressor.py:21
↓ 6 callers
Class
ModelArguments
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 callers
Class
RayClassWithInitArgs
src/verl/single_controller/ray/base.py:149
↓ 5 callers
Class
ChatCompletionMessage
LLaMA-Factory/src/llamafactory/api/protocol.py:91
↓ 5 callers
Class
DataArguments
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 callers
Class
DynamicBatchSizeBuffer
A buffer to store samples for dynamic batch size.
LLaMA-Factory/src/llamafactory/v1/utils/batching_queue.py:21
↓ 5 callers
Class
Encoder
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 callers
Class
SequentialPipeline
src/flashrag/pipeline/pipeline.py:46
↓ 4 callers
Class
Document
scripts/serving/retriever_serving.py:52
↓ 4 callers
Class
FSDPUlyssesShardingManager
Sharding manager to support data resharding when using FSDP + Ulysses
src/verl/workers/sharding_manager/fsdp_ulysses.py:32
↓ 4 callers
Class
FlopsCounter
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 callers
Class
MultiModalDataCollatorForSeq2Seq
LLaMA-Factory/scripts/bench_qwen.py:79
↓ 4 callers
Class
PairwiseDataCollatorWithPadding
r"""Data collator for pairwise data.
LLaMA-Factory/scripts/stat_utils/cal_ppl.py:32
↓ 4 callers
Class
Response
LLaMA-Factory/src/llamafactory/chat/base_engine.py:32
↓ 4 callers
Class
TextBatchingQueue
Batching text queue for text data.
LLaMA-Factory/src/llamafactory/v1/utils/batching_queue.py:144
↓ 3 callers
Class
CustomSeq2SeqTrainer
r"""Inherits Seq2SeqTrainer to compute generative metrics such as BLEU and ROUGE.
LLaMA-Factory/src/llamafactory/train/sft/trainer.py:47
↓ 3 callers
Class
DistributedStrategy
Distributed strategy.
LLaMA-Factory/src/llamafactory/v1/accelerator/interface.py:51
↓ 3 callers
Class
Item
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 callers
Class
ModelLoader
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 callers
Class
RayResourcePool
src/verl/single_controller/ray/base.py:70
↓ 3 callers
Class
StopWordCriteria
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 callers
Class
AverageMeter
r"""Compute and store the average and current value.
LLaMA-Factory/src/llamafactory/extras/misc.py:57
↓ 2 callers
Class
ClipEncoder
ClipEncoder class for encoding queries using CLIP.
src/flashrag/retriever/encoder.py:145
↓ 2 callers
Class
DataConverterPlugin
Plugin for data converters.
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/converter.py:57
↓ 2 callers
Class
DataParallelPPOActor
src/verl/workers/actor/dp_actor.py:39
↓ 2 callers
Class
DataProtoFuture
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 callers
Class
DefaultCollator
Example for now.
LLaMA-Factory/src/llamafactory/v1/core/trainer_utils/data_collator.py:69
↓ 2 callers
Class
DenseRetriever
r"""Dense retriever based on pre-built faiss index.
src/flashrag/retriever/retriever.py:334
↓ 2 callers
Class
DummyOptimizer
r"""A dummy optimizer used for the GaLore or APOLLO algorithm.
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:66
↓ 2 callers
Class
EncoderWrapper
src/flashrag/generator/fid.py:187
↓ 2 callers
Class
Engine
r"""A general engine to control the behaviors of Web UI.
LLaMA-Factory/src/llamafactory/webui/engine.py:28
↓ 2 callers
Class
Evaluator
Evaluator is used to summarize the results of all metrics.
src/flashrag/evaluator/evaluator.py:5
↓ 2 callers
Class
FSDPCheckpointManager
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 callers
Class
IRCOTPipeline
src/flashrag/pipeline/active_pipeline.py:1059
↓ 2 callers
Class
LogCallback
r"""A callback for logging training and evaluation status.
LLaMA-Factory/src/llamafactory/train/callbacks.py:170
↓ 2 callers
Class
MegatronCheckpointManager
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 callers
Class
MegatronPPOActor
src/verl/workers/actor/megatron_actor.py:53
↓ 2 callers
Class
MemoryBuffer
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 callers
Class
ParallelLlamaDecoderLayerRmPad
src/verl/models/llama/megatron/layers/parallel_decoder.py:103
↓ 2 callers
Class
ParallelLlamaMLP
src/verl/models/llama/megatron/layers/parallel_mlp.py:31
↓ 2 callers
Class
ParallelQwen2DecoderLayerRmPad
src/verl/models/qwen2/megatron/layers/parallel_decoder.py:103
↓ 2 callers
Class
ParallelQwen2MLP
src/verl/models/qwen2/megatron/layers/parallel_mlp.py:31
↓ 2 callers
Class
QwenTemplate
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/template.py:30
↓ 2 callers
Class
ReCall
src/re_call/inference/re_call.py:25
↓ 2 callers
Class
STEncoder
STEncoder class for encoding queries using SentenceTransformers. Attributes: model_name (str): The name of the model. m
src/flashrag/retriever/encoder.py:86
↓ 2 callers
Class
State
src/verl/utils/seqlen_balancing.py:49
↓ 2 callers
Class
TokenClfDataset
src/flashrag/refiner/llmlingua_compressor.py:27
↓ 2 callers
Class
Tracking
src/verl/utils/tracking.py:24
↓ 2 callers
Class
vLLMRollout
src/verl/workers/rollout/vllm_rollout/vllm_rollout.py:57
↓ 1 callers
Class
AdaptiveKLController
Adaptive KL controller described in the paper: https://arxiv.org/pdf/1909.08593.pdf
src/verl/trainer/ppo/core_algos.py:28
↓ 1 callers
Class
AllGatherPPModel
src/verl/workers/sharding_manager/megatron_vllm.py:41
↓ 1 callers
Class
BM25Retriever
r"""BM25 retriever based on pre-built pyserini index.
src/flashrag/retriever/retriever.py:219
↓ 1 callers
Class
BaseShardingManager
src/verl/workers/sharding_manager/base.py:21
↓ 1 callers
Class
Capturing
src/verl/utils/reward_score/prime_code/testing_util.py:74
↓ 1 callers
Class
ChatCompletionResponse
LLaMA-Factory/src/llamafactory/api/protocol.py:129
↓ 1 callers
Class
ChatCompletionResponseChoice
LLaMA-Factory/src/llamafactory/api/protocol.py:111
↓ 1 callers
Class
ChatCompletionResponseUsage
LLaMA-Factory/src/llamafactory/api/protocol.py:123
↓ 1 callers
Class
ChatCompletionStreamResponse
LLaMA-Factory/src/llamafactory/api/protocol.py:138
↓ 1 callers
Class
ChatCompletionStreamResponseChoice
LLaMA-Factory/src/llamafactory/api/protocol.py:117
↓ 1 callers
Class
CheckpointWrapper
Wrapper replacing None outputs by empty tensors, which allows the use of checkpointing.
src/flashrag/generator/fid.py:91
↓ 1 callers
Class
CompositeModel
LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:41
↓ 1 callers
Class
ComputeAccuracy
r"""Compute reward accuracy and support `batch_eval_metrics`.
LLaMA-Factory/src/llamafactory/train/rm/metric.py:28
↓ 1 callers
Class
ComputeAccuracy
r"""Compute accuracy and support `batch_eval_metrics`.
LLaMA-Factory/src/llamafactory/train/sft/metric.py:62
↓ 1 callers
Class
ComputeSimilarity
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 callers
Class
CustomDPOTrainer
LLaMA-Factory/src/llamafactory/train/dpo/trainer.py:43
↓ 1 callers
Class
CustomKTOTrainer
LLaMA-Factory/src/llamafactory/train/kto/trainer.py:42
↓ 1 callers
Class
CustomPPOTrainer
r"""Inherit PPOTrainer.
LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:64
↓ 1 callers
Class
CustomTrainer
r"""Inherit Trainer for custom optimizer.
LLaMA-Factory/src/llamafactory/train/pt/trainer.py:34
↓ 1 callers
Class
DataCollator
Default Data collator.
LLaMA-Factory/src/llamafactory/v1/core/trainer_utils/data_collator.py:35
↓ 1 callers
Class
DataCollatorWithVerbose
LLaMA-Factory/tests/train/test_sft_trainer.py:49
↓ 1 callers
Class
DataIndexPlugin
Plugin for adjusting dataset index.
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/loader.py:69
↓ 1 callers
Class
DataLoaderPlugin
Plugin for loading dataset.
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/loader.py:26
↓ 1 callers
Class
DataParallelPPOCritic
src/verl/workers/critic/dp_critic.py:39
↓ 1 callers
Class
DataProtoItem
src/verl/protocol.py:166
↓ 1 callers
Class
DataSelectorPlugin
Plugin for selecting dataset samples.
LLaMA-Factory/src/llamafactory/v1/plugins/data_plugins/loader.py:94
↓ 1 callers
Class
DeviceType
LLaMA-Factory/src/llamafactory/v1/accelerator/helper.py:42
↓ 1 callers
Class
DistGlobalInfo
src/verl/single_controller/base/worker.py:32
↓ 1 callers
Class
DistRankInfo
src/verl/single_controller/base/worker.py:24
↓ 1 callers
Class
DummyDataset
LLaMA-Factory/scripts/bench_qwen.py:32
↓ 1 callers
Class
EvalTemplate
LLaMA-Factory/src/llamafactory/eval/template.py:22
↓ 1 callers
Class
Evaluator
LLaMA-Factory/src/llamafactory/eval/evaluator.py:61
↓ 1 callers
Class
FSDPSFTTrainer
src/verl/trainer/fsdp_sft_trainer.py:79
↓ 1 callers
Class
FSDPSGLangShardingManager
src/verl/workers/sharding_manager/fsdp_sglang.py:48
↓ 1 callers
Class
FSDPVLLMShardingManager
src/verl/workers/sharding_manager/fsdp_vllm.py:40
↓ 1 callers
Class
FixedKLController
Fixed KL controller.
src/verl/trainer/ppo/core_algos.py:46
↓ 1 callers
Class
Function
LLaMA-Factory/src/llamafactory/api/protocol.py:50
↓ 1 callers
Class
FunctionCall
LLaMA-Factory/src/llamafactory/api/protocol.py:66
↓ 1 callers
Class
HFRollout
src/verl/workers/rollout/hf_rollout.py:35
next →
1–100 of 411, ranked by callers