Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RUC-NLPIR/SmartSearch
/ functions
Functions
2,379 in github.com/RUC-NLPIR/SmartSearch
⨍
Functions
2,379
◇
Types & classes
411
↳
Endpoints
33
↓ 1 callers
Method
_build_model_optimizer
(self)
src/verl/trainer/fsdp_sft_trainer.py:185
↓ 1 callers
Method
_build_param_buffer
Build the parameter buffer in each pp rank
src/verl/workers/sharding_manager/megatron_vllm.py:90
↓ 1 callers
Method
_build_rm_model
(self, model_path, megatron_config: ModelParallelConfig, override_model_config)
src/verl/workers/megatron_workers.py:731
↓ 1 callers
Method
_build_rollout
(self, trust_remote_code=False)
src/verl/workers/megatron_workers.py:258
↓ 1 callers
Method
_build_rollout
(self, trust_remote_code=False)
src/verl/workers/fsdp_workers.py:303
↓ 1 callers
Method
_build_yaml_loader
(self)
src/flashrag/config/config.py:30
↓ 1 callers
Method
_calculate_lexical_unit
(self, tokens, self_info)
src/flashrag/refiner/selective_context_compressor.py:184
↓ 1 callers
Function
_check_and_sort_partitions
(partitions)
src/verl/utils/seqlen_balancing.py:170
↓ 1 callers
Method
_check_contain_doc
r"""Check if the index contains document content
src/flashrag/retriever/retriever.py:267
↓ 1 callers
Method
_check_dir
r"""Check if the dir path exists and if there is content.
src/flashrag/retriever/index_builder.py:111
↓ 1 callers
Function
_check_dispatch_mode
(dispatch_mode)
src/verl/single_controller/base/decorator.py:371
↓ 1 callers
Function
_check_execute_mode
(execute_mode)
src/verl/single_controller/base/decorator.py:380
↓ 1 callers
Method
_check_final_config
(self)
src/flashrag/config/config.py:94
↓ 1 callers
Method
_check_resource_available
Check if the resource pool can be satisfied in this ray cluster.
src/verl/trainer/ppo/ray_trainer.py:109
↓ 1 callers
Method
_collect_metrics
Collect all classes based on ```BaseMetric```.
src/flashrag/evaluator/evaluator.py:26
↓ 1 callers
Function
_compute_mlflow_params_from_objects
(params)
src/verl/utils/tracking.py:146
↓ 1 callers
Method
_configure_before_init
(self, register_center_name: str, rank: int)
src/verl/single_controller/base/worker.py:103
↓ 1 callers
Function
_configure_mca_training_args
Patch training args to avoid args checking errors and sync MCA settings.
LLaMA-Factory/src/llamafactory/hparams/parser.py:226
↓ 1 callers
Method
_configure_with_meta
This function should only be called inside by WorkerGroup
src/verl/single_controller/base/worker.py:180
↓ 1 callers
Function
_copy
(from_path: str, to_path: str, timeout: int = None)
src/verl/utils/hdfs_io.py:113
↓ 1 callers
Function
_create_adam_mini_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", )
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:471
↓ 1 callers
Function
_create_apollo_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", finetuning_args: "FinetuningArgume
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:286
↓ 1 callers
Function
_create_badam_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", finetuning_args: "FinetuningArgume
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:410
↓ 1 callers
Method
_create_dataloader
(self)
src/verl/trainer/ppo/ray_trainer.py:410
↓ 1 callers
Function
_create_galore_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", finetuning_args: "FinetuningArgume
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:198
↓ 1 callers
Function
_create_loraplus_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", finetuning_args: "FinetuningArgume
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:370
↓ 1 callers
Function
_create_muon_optimizer
( model: "PreTrainedModel", training_args: "TrainingArguments", )
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:496
↓ 1 callers
Function
_dft_cross_entropy
( source: torch.Tensor, target: torch.Tensor, num_items_in_batch: Optional[torch.Tensor] = None,
LLaMA-Factory/src/llamafactory/train/trainer_utils.py:654
↓ 1 callers
Method
_download
(self)
src/verl/utils/dataset/rm_dataset.py:70
↓ 1 callers
Method
_download
(self)
src/verl/utils/dataset/sft_dataset.py:72
↓ 1 callers
Method
_download
(self)
src/verl/utils/dataset/multiturn_sft_dataset.py:57
↓ 1 callers
Function
_ensure_kernels_loaded
Ensure all kernel implementations are imported and registered. This function dynamically imports all kernel implementation modules to trigger
LLaMA-Factory/src/llamafactory/v1/plugins/model_plugins/kernels/registry.py:161
↓ 1 callers
Function
_exists
hdfs capable to check whether a file_path is exists
src/verl/utils/hdfs_io.py:43
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
src/verl/utils/torch_functional.py:505
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
src/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:61
↓ 1 callers
Function
_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
src/verl/models/llama/megatron/modeling_llama_megatron.py:61
↓ 1 callers
Method
_expand_to_token_level
(self, data: DataProto, scores: torch.Tensor)
src/verl/workers/fsdp_workers.py:1080
↓ 1 callers
Function
_fetch_tp_shard_tensor_gate_up
fetch gate_up tensor in tp shards
src/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:138
↓ 1 callers
Function
_fetch_tp_shard_tensor_gate_up
fetch gate_up tensor in tp shards
src/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:142
↓ 1 callers
Function
_fetch_tp_shard_tensor_qkv
fetch tensor in tp shards across mp_group
src/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:168
↓ 1 callers
Function
_fetch_tp_shard_tensor_vocab
fetch tensor in tp shards
src/verl/models/qwen2/megatron/checkpoint_utils/qwen2_loader.py:106
↓ 1 callers
Function
_fetch_tp_shard_tensor_vocab
fetch tensor in tp shards
src/verl/models/llama/megatron/checkpoint_utils/llama_loader.py:110
↓ 1 callers
Method
_finalize
r"""Clean the cached memory and resets the runner.
LLaMA-Factory/src/llamafactory/webui/runner.py:116
↓ 1 callers
Function
_fix_a_slash_b
(string)
src/verl/utils/reward_score/prime_math/math_normalize.py:89
↓ 1 callers
Function
_fix_fracs
(string)
src/verl/utils/reward_score/prime_math/math_normalize.py:57
↓ 1 callers
Function
_fix_sqrt
(string)
src/verl/utils/reward_score/prime_math/math_normalize.py:114
↓ 1 callers
Function
_flatten_dict
(raw: Dict[str, Any], *, sep: str)
src/verl/utils/tracking.py:173
↓ 1 callers
Function
_format_response
r"""Post-process the response text. Based on: https://huggingface.co/spaces/Lyte/DeepSeek-R1-Distill-Qwen-1.5B-Demo-GGUF/blob/main/app.py
LLaMA-Factory/src/llamafactory/webui/chatter.py:46
↓ 1 callers
Method
_forward_head
(self, hidden_states)
src/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:307
↓ 1 callers
Method
_forward_head
(self, hidden_states)
src/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:610
↓ 1 callers
Method
_forward_head
(self, hidden_states)
src/verl/models/llama/megatron/modeling_llama_megatron.py:307
↓ 1 callers
Method
_forward_head
(self, hidden_states)
src/verl/models/llama/megatron/modeling_llama_megatron.py:565
↓ 1 callers
Method
_forward_micro_batch
(self, micro_batch)
src/verl/workers/fsdp_workers.py:1025
↓ 1 callers
Method
_generate_async
(self, input_list: List, batch_size=None, return_scores=False, **params)
src/flashrag/generator/openai_generator.py:83
↓ 1 callers
Method
_generate_minibatch
(self, prompts: DataProto)
src/verl/workers/rollout/hf_rollout.py:51
↓ 1 callers
Method
_get_batch_response
(self, input_list: List[List], batch_size, **params)
src/flashrag/generator/openai_generator.py:74
↓ 1 callers
Method
_get_dataset_info
Get dataset info from data arguments.
LLaMA-Factory/src/llamafactory/v1/core/data_engine.py:62
↓ 1 callers
Function
_get_default_logging_level
Return the default logging level.
LLaMA-Factory/src/llamafactory/v1/utils/logging.py:44
↓ 1 callers
Function
_get_default_logging_level
r"""Return the default logging level.
LLaMA-Factory/src/llamafactory/extras/logging.py:80
↓ 1 callers
Method
_get_final_config
(self)
src/flashrag/config/config.py:87
↓ 1 callers
Method
_get_free_port
(self)
src/verl/single_controller/base/worker.py:58
↓ 1 callers
Method
_get_internal_config
(self)
src/flashrag/config/config.py:80
↓ 1 callers
Method
_get_node_ip
(self)
src/verl/single_controller/base/worker.py:41
↓ 1 callers
Function
_get_package_version
(name: str)
LLaMA-Factory/src/llamafactory/v1/utils/packages.py:34
↓ 1 callers
Function
_get_parallel_model_architecture_from_config
(config: PretrainedConfig, value=False)
src/verl/utils/model.py:266
↓ 1 callers
Function
_get_quantization_dataset
r"""Prepare the tokenized dataset to perform AutoGPTQ. Do not use tensor output for JSON serialization.
LLaMA-Factory/src/llamafactory/model/model_utils/quantization.py:43
↓ 1 callers
Method
_get_response
(self, messages: List, **params)
src/flashrag/generator/openai_generator.py:66
↓ 1 callers
Function
_handle_device_visibility
Handle device visibility based on test markers.
LLaMA-Factory/tests_v1/conftest.py:83
↓ 1 callers
Function
_handle_device_visibility
Handle device visibility based on test markers.
LLaMA-Factory/tests/conftest.py:83
↓ 1 callers
Function
_handle_runs_on
Skip tests on specified device TYPES (cpu/cuda/npu).
LLaMA-Factory/tests_v1/conftest.py:49
↓ 1 callers
Function
_handle_runs_on
Skip tests on specified device TYPES (cpu/cuda/npu).
LLaMA-Factory/tests/conftest.py:49
↓ 1 callers
Function
_handle_slow_tests
Skip slow tests unless RUN_SLOW is enabled.
LLaMA-Factory/tests_v1/conftest.py:64
↓ 1 callers
Function
_handle_slow_tests
Skip slow tests unless RUN_SLOW is enabled.
LLaMA-Factory/tests/conftest.py:64
↓ 1 callers
Method
_init_device
(self)
src/flashrag/config/config.py:103
↓ 1 callers
Method
_init_head
(self, config: Qwen2Config)
src/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:295
↓ 1 callers
Method
_init_head
(self, config)
src/verl/models/qwen2/megatron/modeling_qwen2_megatron.py:549
↓ 1 callers
Method
_init_head
(self, config)
src/verl/models/llama/megatron/modeling_llama_megatron.py:295
↓ 1 callers
Method
_init_head
(self, config)
src/verl/models/llama/megatron/modeling_llama_megatron.py:553
↓ 1 callers
Method
_init_model
Init model. Let transformers handle the model init context. https://github.com/huggingface/transformers/blob/v5.0.0rc0/src/transforme
LLaMA-Factory/src/llamafactory/v1/core/model_loader.py:72
↓ 1 callers
Method
_init_model_config
Init model config.
LLaMA-Factory/src/llamafactory/v1/core/model_loader.py:65
↓ 1 callers
Method
_init_processor
Init processor.
LLaMA-Factory/src/llamafactory/v1/core/model_loader.py:57
↓ 1 callers
Method
_init_rope
(self)
src/verl/models/qwen2/megatron/layers/parallel_attention.py:208
↓ 1 callers
Method
_init_rope
(self)
src/verl/models/llama/megatron/layers/parallel_attention.py:236
↓ 1 callers
Method
_init_with_detached_workers
(self, worker_names)
src/verl/single_controller/ray/base.py:232
↓ 1 callers
Method
_init_with_resource_pool
(self, resource_pool, ray_cls_with_init, bin_pack, detached)
src/verl/single_controller/ray/base.py:237
↓ 1 callers
Function
_inject_implicit_mixed_number
Automatically make a mixed number evalable e.g. 7 3/4 => 7+3/4
src/verl/utils/reward_score/prime_math/__init__.py:126
↓ 1 callers
Function
_inner_call_method
(_method)
src/verl/utils/reward_score/prime_code/testing_util.py:633
↓ 1 callers
Function
_is_float
(num: str)
src/verl/utils/reward_score/prime_math/__init__.py:92
↓ 1 callers
Function
_is_int
(x: float)
src/verl/utils/reward_score/prime_math/__init__.py:100
↓ 1 callers
Method
_is_worker_alive
(self, worker)
src/verl/single_controller/base/worker_group.py:112
↓ 1 callers
Function
_last_boxed_only_string
(string)
src/verl/utils/reward_score/prime_math/__init__.py:333
↓ 1 callers
Method
_lexical_unit
(self, sents)
src/flashrag/refiner/selective_context_compressor.py:153
↓ 1 callers
Method
_load_checkpoint
(self)
src/verl/trainer/ppo/ray_trainer.py:729
↓ 1 callers
Method
_load_data
Load data from the provided dataset_path or directly download the file(TODO).
src/flashrag/dataset/dataset.py:113
↓ 1 callers
Method
_load_dataset
Load datasets according to dataset info.
LLaMA-Factory/src/llamafactory/v1/core/data_engine.py:75
↓ 1 callers
Method
_load_embedding
(self, embedding_path, corpus_size, hidden_size)
src/flashrag/retriever/index_builder.py:216
↓ 1 callers
Method
_load_model
(self)
src/flashrag/generator/multimodal_generator.py:70
↓ 1 callers
Method
_load_model
r"""Load model and tokenizer for generator.
src/flashrag/generator/generator.py:363
↓ 1 callers
Method
_load_params_to_cuda
(self, pp_rank, to_empty=False)
src/verl/workers/sharding_manager/megatron_vllm.py:113
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for bi-directional self-attention.
src/verl/utils/torch_functional.py:492
← previous
next →
601–700 of 2,379, ranked by callers