MCPcopy Create free account

hub / github.com/Yuan-Li-FNLP/R3-RAG / functions

Functions1,737 in github.com/Yuan-Li-FNLP/R3-RAG

↓ 1 callersMethodget_cumulative_returns
Function that computes advantages and returns from rewards using REINFORCE. REINFORCE uses cumulative returns without the GAE (Genera
train/R3RAG_OpenRLHF/openrlhf/trainer/ppo_utils/experience_maker.py:829
↓ 1 callersFunctionget_custom_gradient_checkpointing_func
r""" Only applies gradient checkpointing to trainable layers.
train/LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:79
↓ 1 callersFunctionget_dataset_list
r""" Gets the attributes of the datasets.
train/LLaMA-Factory/src/llamafactory/data/parser.py:74
↓ 1 callersMethodget_dynamic_compression_ratio
( self, context: list, target_token: float, iterative_size: int, dynam
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1094
↓ 1 callersMethodget_elem_iter
r""" Returns an iterator over all elements with their names.
train/LLaMA-Factory/src/llamafactory/webui/manager.py:42
↓ 1 callersFunctionget_em
(args, records, llm)
benchmark/R3-RAG/src/cal_metric.py:337
↓ 1 callersFunctionget_em
(args, records, llm)
benchmark/batch_check/batch_check.py:285
↓ 1 callersMethodget_engine
(model_path, device='cpu', **kwargs)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:370
↓ 1 callersFunctionget_eval_args
(args: Optional[Union[Dict[str, Any], List[str]]] = None)
train/LLaMA-Factory/src/llamafactory/hparams/parser.py:427
↓ 1 callersFunctionget_eval_ds_config
( offload, stage=0, bf16=True, )
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed_utils.py:55
↓ 1 callersFunctionget_eval_results
r""" Gets scores after evaluation.
train/LLaMA-Factory/src/llamafactory/webui/utils.py:138
↓ 1 callersFunctionget_eval_template
(name: str)
train/LLaMA-Factory/src/llamafactory/eval/template.py:62
↓ 1 callersMethodget_examplars_for_reasoning_chain
(self, all_query)
tool/FlashRAG/flashrag/refiner/kg_refiner.py:167
↓ 1 callersMethodget_examplars_for_triple
(self, doc_list, batch_size=64)
tool/FlashRAG/flashrag/refiner/kg_refiner.py:134
↓ 1 callersMethodget_id_by_elem
r""" Gets id by element.
train/LLaMA-Factory/src/llamafactory/webui/manager.py:57
↓ 1 callersFunctionget_image_seqlen
r""" Computes the number of special tokens per image.
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:177
↓ 1 callersMethodget_inputs
r""" Generates model's responses given queries.
train/LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:342
↓ 1 callersFunctionget_logger
r""" Returns a logger with the specified name. It it not supposed to be accessed externally.
train/LLaMA-Factory/src/llamafactory/extras/logging.py:128
↓ 1 callersFunctionget_model_path
r""" Gets the model path according to the model name.
train/LLaMA-Factory/src/llamafactory/webui/common.py:101
↓ 1 callersFunctionget_optimizer_grouped_parameters
( model, weight_decay, no_decay_name_list=["bias", "layer_norm.weight", "layernorm.weight", "norm.
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed_utils.py:80
↓ 1 callersFunctionget_patch_size
r""" Computes the patch size of the vit.
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:194
↓ 1 callersFunctionget_peak_memory
r""" Gets the peak memory usage for the current device (in Bytes).
train/LLaMA-Factory/src/llamafactory/extras/misc.py:188
↓ 1 callersMethodget_prefix_length
(self, prefix: str, text: str)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1060
↓ 1 callersFunctionget_preprocess_and_print_func
( data_args: "DataArguments", stage: Literal["pt", "sft", "rm", "ppo", "kto"], template: "Template
train/LLaMA-Factory/src/llamafactory/data/preprocess.py:36
↓ 1 callersFunctionget_processor
(name)
train/R3RAG_OpenRLHF/openrlhf/utils/processor.py:99
↓ 1 callersMethodget_projector
(self, module: "torch.nn.Module")
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:46
↓ 1 callersFunctionget_ray_args
(args: Optional[Union[Dict[str, Any], List[str]]] = None)
train/LLaMA-Factory/src/llamafactory/hparams/parser.py:175
↓ 1 callersFunctionget_ray_trainer
( training_function: Callable, train_loop_config: Dict[str, Any], ray_args: "RayArguments", )
train/LLaMA-Factory/src/llamafactory/train/trainer_utils.py:605
↓ 1 callersMethodget_reasoning_chain
(self, all_query, all_doc_triples, triple_to_doc_ids)
tool/FlashRAG/flashrag/refiner/kg_refiner.py:379
↓ 1 callersFunctionget_refiner
(config, retriever=None, generator=None)
tool/FlashRAG/flashrag/utils/utils.py:119
↓ 1 callersFunctionget_requires
()
train/LLaMA-Factory/setup.py:30
↓ 1 callersMethodget_rerank_scores
Return flatten list of scores for each (query,doc) pair Args: query_list: List of N queries doc_list: Nested list of
tool/FlashRAG/flashrag/retriever/reranker.py:22
↓ 1 callersMethodget_reward
(self, queries)
train/R3RAG_OpenRLHF/openrlhf/cli/serve_rm.py:48
↓ 1 callersMethodget_rewards
r""" Computes scores using given reward model. Both inputs and outputs are put on CPU.
train/LLaMA-Factory/src/llamafactory/train/ppo/trainer.py:382
↓ 1 callersFunctionget_rewards_from_server
r""" Gets reward scores from the API server.
train/LLaMA-Factory/src/llamafactory/train/ppo/ppo_utils.py:34
↓ 1 callersFunctionget_ring_attn_group
()
train/R3RAG_OpenRLHF/openrlhf/models/ring_attn_utils.py:14
↓ 1 callersMethodget_self_information
(self, text: str)
tool/FlashRAG/flashrag/refiner/selective_context_compressor.py:101
↓ 1 callersFunctionget_seqlens_in_batch
r""" Gets the sequnce lengths in the current batch. e.g. ```python # input [ [1, 1, 2, 2, 2, 0], [1, 2, 2, 3, 3,
train/LLaMA-Factory/src/llamafactory/model/model_utils/packing.py:61
↓ 1 callersMethodget_structured_dynamic_compression_ratio
( self, context: list, iterative_size: int, dynamic_ratio: list, start
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1130
↓ 1 callersFunctionget_swanlab_callback
r""" Gets the callback for logging to SwanLab.
train/LLaMA-Factory/src/llamafactory/train/trainer_utils.py:585
↓ 1 callersFunctionget_template
r""" Gets the template name if the model is a chat model.
train/LLaMA-Factory/src/llamafactory/webui/common.py:136
↓ 1 callersFunctionget_time
r""" Gets current date and time.
train/LLaMA-Factory/src/llamafactory/webui/utils.py:147
↓ 1 callersFunctionget_train_ds_config
( offload, adam_offload=True, stage=2, bf16=True, max_norm=1.0, zpg=8, grad_accum_
train/R3RAG_OpenRLHF/openrlhf/utils/deepspeed/deepspeed_utils.py:9
↓ 1 callersFunctionget_trainer_info
r""" Gets training infomation for monitor.
train/LLaMA-Factory/src/llamafactory/webui/utils.py:154
↓ 1 callersFunctionget_unsloth_gradient_checkpointing_func
()
train/LLaMA-Factory/src/llamafactory/model/model_utils/checkpointing.py:41
↓ 1 callersFunctionget_unsloth_peft_model
r""" Gets the peft model for the pretrained model with unsloth. Used in training.
train/LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:66
↓ 1 callersFunctionget_version
()
train/LLaMA-Factory/setup.py:22
↓ 1 callersFunctionget_vision_feature_select_strategy
r""" Get the vision_feature_select_strategy.
train/LLaMA-Factory/src/llamafactory/model/model_utils/visual.py:202
↓ 1 callersFunctionget_visual
r""" Judges if the model is a vision language model.
train/LLaMA-Factory/src/llamafactory/webui/common.py:143
↓ 1 callersFunctiongreedy_knapsack
r""" An efficient greedy algorithm with binary search for the knapsack problem.
train/LLaMA-Factory/src/llamafactory/data/processors/processor_utils.py:27
↓ 1 callersFunctionhas_tokenized_data
r""" Checks if the path has a tokenized dataset.
train/LLaMA-Factory/src/llamafactory/extras/misc.py:200
↓ 1 callersFunctionhash_object
Returns a character hash code of arbitrary Python objects.
tool/FlashRAG/flashrag/utils/utils.py:164
↓ 1 callersFunctioninfer_optim_dtype
r""" Infers the optimal dtype according to the model_dtype and device compatibility.
train/LLaMA-Factory/src/llamafactory/extras/misc.py:207
↓ 1 callersFunctioninit_adapter
r""" Initializes the adapters. Support full-parameter, freeze and LoRA training. Note that the trainable parameters must be cast to floa
train/LLaMA-Factory/src/llamafactory/model/adapter.py:259
↓ 1 callersMethodinit_llmlingua2
( self, max_batch_size: int = 50, max_force_token: int = 100, )
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:257
↓ 1 callersFunctionis_apollo_available
()
train/LLaMA-Factory/src/llamafactory/extras/packages.py:53
↓ 1 callersFunctionis_begin_of_new_word
(token, model_name, force_tokens, token_map)
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:81
↓ 1 callersFunctionis_galore_available
()
train/LLaMA-Factory/src/llamafactory/extras/packages.py:49
↓ 1 callersFunctionis_gpu_or_npu_available
r""" Checks if the GPU or NPU is available.
train/LLaMA-Factory/src/llamafactory/extras/misc.py:219
↓ 1 callersFunctionis_pyav_available
()
train/LLaMA-Factory/src/llamafactory/extras/packages.py:41
↓ 1 callersFunctionis_rouge_available
()
train/LLaMA-Factory/src/llamafactory/extras/packages.py:77
↓ 1 callersFunctionis_starlette_available
()
train/LLaMA-Factory/src/llamafactory/extras/packages.py:81
↓ 1 callersFunctionis_uvicorn_available
()
train/LLaMA-Factory/src/llamafactory/extras/packages.py:95
↓ 1 callersFunctionis_vllm_available
()
train/LLaMA-Factory/src/llamafactory/extras/packages.py:99
↓ 1 callersFunctioniter_files
Walk through all files located under a root path.
tool/FlashRAG/scripts/preprocess_wiki_old.py:16
↓ 1 callersFunctioniter_files
Walk through all files located under a root path.
tool/FlashRAG/scripts/preprocess_wiki.py:17
↓ 1 callersMethoditerative_compress_prompt
( self, context: List[str], target_token: float, iterative_size: int = 200,
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:1540
↓ 1 callersFunctionjsonify
(data: "BaseModel")
train/LLaMA-Factory/src/llamafactory/api/common.py:30
↓ 1 callersFunctionlaunch
()
train/LLaMA-Factory/src/llamafactory/launcher.py:18
↓ 1 callersFunctionllama_attention_forward
( self: "LlamaAttention", hidden_states: "torch.Tensor", attention_mask: Optional["torch.Tensor"]
train/LLaMA-Factory/src/llamafactory/model/model_utils/longlora.py:49
↓ 1 callersMethodload_all_retriever
(self, config)
tool/FlashRAG/flashrag/retriever/retriever.py:595
↓ 1 callersMethodload_clip_model
(self)
tool/FlashRAG/flashrag/retriever/encoder.py:151
↓ 1 callersFunctionload_corpus
(dir_path)
tool/FlashRAG/scripts/preprocess_wiki_old.py:15
↓ 1 callersFunctionload_corpus
(dir_path)
tool/FlashRAG/scripts/preprocess_wiki.py:16
↓ 1 callersMethodload_corpus
(self, corpus)
tool/FlashRAG/flashrag/retriever/retriever.py:385
↓ 1 callersFunctionload_data
Load data from input JSON file.
benchmark/batch_check/batch_check.py:21
↓ 1 callersFunctionload_dataset_info
r""" Loads dataset_info.json.
train/LLaMA-Factory/src/llamafactory/webui/common.py:170
↓ 1 callersFunctionload_generator
(_config)
tool/FlashRAG/examples/quick_start/demo_en.py:23
↓ 1 callersFunctionload_generator
(_config)
tool/FlashRAG/examples/quick_start/demo_zh.py:22
↓ 1 callersMethodload_image
(self, image, input_size=448, max_num=12)
tool/FlashRAG/flashrag/generator/multimodal_generator.py:228
↓ 1 callersMethodload_index
(self)
tool/FlashRAG/flashrag/retriever/retriever.py:391
↓ 1 callersFunctionload_jsonl
(file_path)
tool/FlashRAG/scripts/chunk_doc_corpus.py:11
↓ 1 callersFunctionload_mod_pretrained_model
(**init_kwargs)
train/LLaMA-Factory/src/llamafactory/model/model_utils/mod.py:26
↓ 1 callersMethodload_model
(self)
tool/FlashRAG/flashrag/retriever/retriever.py:413
↓ 1 callersMethodload_model
(self, model_name: str, device_map: str = "cuda", model_config: dict = {})
tool/FlashRAG/flashrag/refiner/llmlingua_compressor.py:273
↓ 1 callersMethodload_model_corpus
(self, corpus)
tool/FlashRAG/flashrag/retriever/retriever.py:226
↓ 1 callersMethodload_prompts
(self)
tool/FlashRAG/flashrag/pipeline/branching_pipeline.py:77
↓ 1 callersFunctionload_retriever
(_config)
tool/FlashRAG/examples/quick_start/demo_en.py:18
↓ 1 callersFunctionload_retriever
(_config)
tool/FlashRAG/examples/quick_start/demo_zh.py:17
↓ 1 callersMethodload_special_tokens
(self, tokenizer, use_grounding, use_utility)
tool/FlashRAG/flashrag/pipeline/active_pipeline.py:155
↓ 1 callersFunctionload_unsloth_peft_model
r""" Loads peft model with unsloth. Used in both training and inference.
train/LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:82
↓ 1 callersFunctionload_unsloth_pretrained_model
r""" Optionally loads pretrained model with unsloth. Used in training.
train/LLaMA-Factory/src/llamafactory/model/model_utils/unsloth.py:47
↓ 1 callersFunctionlog_probs_from_logits
(logits: torch.Tensor, labels: torch.Tensor)
train/R3RAG_OpenRLHF/openrlhf/models/utils.py:77
↓ 1 callersFunctionlower
(text)
benchmark/R3-RAG/src/cal_metric.py:158
↓ 1 callersFunctionlower
(text)
benchmark/batch_check/batch_check.py:228
↓ 1 callersFunctionlower
(text)
tool/FlashRAG/flashrag/evaluator/utils.py:16
↓ 1 callersFunctionmain
()
startup/RRAG.py:275
↓ 1 callersFunctionmain
()
benchmark/batch_check/batch_check.py:414
↓ 1 callersFunctionmain
()
data/construct/01split_dataset/split.py:41
↓ 1 callersFunctionmain
()
train/LLaMA-Factory/setup.py:81
← previousnext →701–800 of 1,737, ranked by callers