MCPcopy Create free account

hub / github.com/RUC-NLPIR/SmartSearch / functions

Functions2,379 in github.com/RUC-NLPIR/SmartSearch

Method__call__
r"""Pad batched data to the longest sequence in the batch.
LLaMA-Factory/scripts/stat_utils/cal_ppl.py:37
Method__call__
(self, features: list[dict[str, Any]])
LLaMA-Factory/tests/train/test_sft_trainer.py:52
Method__contains__
(self, key)
src/flashrag/config/config.py:288
Method__del__
(self)
src/verl/utils/tracking.py:109
Method__del__
r"""Ensure server is cleaned up when object is deleted.
LLaMA-Factory/src/llamafactory/chat/sglang_engine.py:283
Method__enter__
(self)
src/verl/utils/reward_score/math_dapo.py:75
Method__enter__
(self)
src/verl/utils/reward_score/prime_code/testing_util.py:76
Method__enter__
(self)
src/verl/workers/sharding_manager/fsdp_vllm.py:78
Method__enter__
(self)
src/verl/workers/sharding_manager/base.py:23
Method__enter__
(self)
src/verl/workers/sharding_manager/fsdp_sglang.py:83
Method__enter__
(self)
src/verl/workers/sharding_manager/fsdp_ulysses.py:42
Method__enter__
(self)
src/verl/workers/sharding_manager/megatron_vllm.py:406
Method__exit__
(self, type, value, traceback)
src/verl/utils/reward_score/math_dapo.py:79
Method__exit__
(self, *args)
src/verl/utils/reward_score/prime_code/testing_util.py:83
Method__exit__
(self, exc_type, exc_value, traceback)
src/verl/workers/sharding_manager/fsdp_vllm.py:130
Method__exit__
(self, exc_type, exc_value, traceback)
src/verl/workers/sharding_manager/base.py:26
Method__exit__
(self, exc_type, exc_value, traceback)
src/verl/workers/sharding_manager/fsdp_sglang.py:110
Method__exit__
(self, exc_type, exc_value, traceback)
src/verl/workers/sharding_manager/fsdp_ulysses.py:50
Method__exit__
(self, exc_type, exc_value, traceback)
src/verl/workers/sharding_manager/megatron_vllm.py:433
Method__getattr__
(self, attr_name: str)
src/flashrag/dataset/dataset.py:173
Method__getattr__
(self, item)
src/flashrag/config/config.py:278
Method__getitem__
(self, index: int)
src/flashrag/dataset/dataset.py:182
Method__getitem__
(self, index)
src/flashrag/refiner/llmlingua_compressor.py:57
Method__getitem__
(self, item)
src/flashrag/config/config.py:285
Method__getitem__
Enhanced indexing for DataProto objects. Args: item: Can be one of: - int: A single index
src/verl/protocol.py:198
Method__getitem__
(self, item)
src/verl/utils/dataset/rm_dataset.py:114
Method__getitem__
(self, item)
src/verl/utils/dataset/sft_dataset.py:113
Method__getitem__
Note that we also return the raw_input_ids so that it can be combined with other chat template
src/verl/utils/dataset/rl_dataset.py:173
Method__getitem__
(self, item)
src/verl/utils/dataset/multiturn_sft_dataset.py:81
Method__getitem__
(self, idx)
LLaMA-Factory/tests_v1/core/test_data_loader.py:52
Method__getitem__
Get dataset item. Args: index (int): Dataset index. Returns: Sample: Dataset item.
LLaMA-Factory/src/llamafactory/v1/core/data_engine.py:137
Method__getitem__
(self, index: int)
LLaMA-Factory/scripts/bench_qwen.py:57
Method__getstate__
(self)
src/verl/utils/dataset/rl_dataset.py:258
Method__init__
(self, config)
src/flashrag/generator/multimodal_generator.py:24
Method__init__
(self, config)
src/flashrag/generator/multimodal_generator.py:384
Method__init__
(self, config)
src/flashrag/generator/openai_generator.py:25
Method__init__
(self, module, use_checkpoint=False)
src/flashrag/generator/fid.py:96
Method__init__
(self, config)
src/flashrag/generator/fid.py:138
Method__init__
(self, encoder,use_checkpoint=False)
src/flashrag/generator/fid.py:188
Method__init__
(self, config)
src/flashrag/generator/generator.py:66
Method__init__
(self, config)
src/flashrag/generator/generator.py:176
Method__init__
(self, config)
src/flashrag/generator/generator.py:294
Method__init__
(self, config, model=None)
src/flashrag/generator/generator.py:352
Method__init__
(self, config, model=None)
src/flashrag/generator/generator.py:600
Method__init__
Initializes the StopWordCriteria with the necessary parameters for checking stop words during text generation. Parameters:
src/flashrag/generator/stop_word_criteria.py:19
Method__init__
(self, item_dict: Dict[str, Any])
src/flashrag/dataset/dataset.py:15
Method__init__
( self, config: Optional[Dict[str, Any]] = None, dataset_path: Optional[str] = None
src/flashrag/dataset/dataset.py:82
Method__init__
(self, config, system_prompt="", user_prompt="", reference_template=None, enable_chat=True)
src/flashrag/prompt/base_prompt.py:14
Method__init__
(self, config, system_prompt=None, user_prompt=None)
src/flashrag/prompt/mm_prompt.py:5
Method__init__
(self, config, system_prompt=None, user_prompt=None)
src/flashrag/prompt/mm_prompt.py:47
Method__init__
(self, config)
src/flashrag/judger/judger.py:16
Method__init__
(self, config)
src/flashrag/judger/judger.py:136
Method__init__
(self)
src/flashrag/evaluator/_bleu.py:43
Method__init__
(self)
src/flashrag/evaluator/_bleu.py:77
Method__init__
(self, config)
src/flashrag/evaluator/evaluator.py:8
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:17
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:55
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:107
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:126
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:148
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:189
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:230
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:262
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:293
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:321
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:340
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:359
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:380
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:411
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:431
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:450
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:533
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:584
Method__init__
(self, config)
src/flashrag/evaluator/metrics.py:618
Method__init__
( self, retrieval_method, model_path, corpus_path, save_dir,
src/flashrag/retriever/index_builder.py:20
Method__init__
(self, config)
src/flashrag/retriever/retriever.py:197
Method__init__
(self, config, corpus=None)
src/flashrag/retriever/retriever.py:222
Method__init__
(self, config: dict, corpus=None)
src/flashrag/retriever/retriever.py:337
Method__init__
(self, config: dict)
src/flashrag/retriever/retriever.py:448
Method__init__
(self, config: dict, corpus=None)
src/flashrag/retriever/retriever.py:471
Method__init__
(self, config)
src/flashrag/retriever/retriever.py:578
Method__init__
(self, model_name, model_path, pooling_method, max_length, use_fp16, instruction)
src/flashrag/retriever/encoder.py:27
Method__init__
(self, model_name, model_path, max_length, use_fp16, instruction)
src/flashrag/retriever/encoder.py:104
Method__init__
(self, model_name, model_path)
src/flashrag/retriever/encoder.py:148
Method__init__
(self, config)
src/flashrag/retriever/reranker.py:13
Method__init__
(self, config)
src/flashrag/retriever/reranker.py:78
Method__init__
( self, texts, max_len=512, tokenizer=None, model_name="bert-base
src/flashrag/refiner/llmlingua_compressor.py:28
Method__init__
( self, model_name: str = "NousResearch/Llama-2-7b-hf", device_map: str = "cuda",
src/flashrag/refiner/llmlingua_compressor.py:235
Method__init__
(self, model_type="gpt2", model_path="openai-community/gpt2", lang="en")
src/flashrag/refiner/selective_context_compressor.py:44
Method__init__
(self, config)
src/flashrag/refiner/refiner.py:37
Method__init__
(self, config)
src/flashrag/refiner/refiner.py:103
Method__init__
(self, config)
src/flashrag/refiner/refiner.py:144
Method__init__
(self, config)
src/flashrag/refiner/refiner.py:214
Method__init__
(self, config, retriever=None, generator=None)
src/flashrag/refiner/kg_refiner.py:14
Method__init__
(self, config, prompt_template=None, retriever=None, generator=None)
src/flashrag/pipeline/branching_pipeline.py:13
Method__init__
(self, config, prompt_template=None)
src/flashrag/pipeline/mm_pipeline.py:9
Method__init__
(self, config, prompt_template=None, retriever=None, generator=None)
src/flashrag/pipeline/mm_pipeline.py:42
Method__init__
inference stage: query -> pre-retrieval -> retriever -> post-retrieval -> generator
src/flashrag/pipeline/pipeline.py:47
Method__init__
inference stage: query -> judger -> sequential pipeline or naive generate
src/flashrag/pipeline/pipeline.py:154
Method__init__
( self, config, norag_template=None, single_hop_prompt_template=None,
src/flashrag/pipeline/pipeline.py:203
← previousnext →1,301–1,400 of 2,379, ranked by callers