MCPcopy Create free account

hub / github.com/bruno686/VisPlay / functions

Functions545 in github.com/bruno686/VisPlay

Methodexecute_rank_zero_sync
(self, method_name: str, *args, **kwargs)
verl/single_controller/ray/base.py:356
Methodexecute_with_func_generator
(self, func, *args, **kwargs)
verl/single_controller/base/worker.py:195
Functionextract_answer
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
train_examples/reward_function/validation.py:93
Functionextract_answer
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
train_examples/reward_function/cot_val_solver.py:44
Functionextract_answer
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
train_examples/reward_function/cot_val.py:123
Functionextract_answer
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
validation_examples/reward_function/validation.py:93
Functionextract_answer
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
validation_examples/reward_function/cot_val.py:64
Functionextract_answer
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
Evaluation/utils/math_utils.py:30
Functionextract_boxed
(text)
question_generate/question_generate.py:101
Functionextract_boxed_answer
Extracts the content inside \\boxed{...} from the predict string. Returns the content inside the boxed command, or None if not found.
train_examples/reward_function/cot_val_solver.py:56
Functionextract_description
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
train_examples/reward_function/validation.py:82
Functionextract_description
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
train_examples/reward_function/cot_val_solver.py:33
Functionextract_description
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
train_examples/reward_function/cot_val.py:112
Functionextract_description
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
validation_examples/reward_function/validation.py:82
Functionextract_description
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
validation_examples/reward_function/cot_val.py:53
Functionextract_description
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
Evaluation/utils/math_utils.py:42
Functionextract_judgment
Extracts the content of the <answer>…</answer> block from `predict`. Returns the inner text (with leading/trailing whitespace stripped),
Evaluation/utils/gpt_eval.py:20
Functionextract_pg_from_exist
( resource_pools: Dict[str, RayResourcePool], src_role_names: List[str], resource_pool: RayResourcePool )
verl/single_controller/ray/base.py:120
Functionfetch
(index,i)
train_examples/reward_function/validation.py:130
Functionfetch
(index,i)
train_examples/reward_function/cot_val.py:159
Functionfetch
(index,i)
validation_examples/reward_function/validation.py:130
Functionfind_latest_ckpt_path
(path: Optional[str] = None, directory_format: str = "global_step_{}")
verl/utils/checkpoint/checkpoint_manager.py:110
Methodfinish
(self)
verl/utils/logger/logger.py:89
Methodfinish
(self)
verl/utils/logger/logger.py:105
Methodfinish
(self)
verl/utils/logger/logger.py:120
Functionfloat_representer
(dumper: Dumper, number: Union[float, np.float32, np.float64])
verl/utils/py_functional.py:35
Functionfold_batch_dim
Fold a batch dim from [bsz, xxx] into [new_bsz, bsz // new_bsz, xxx]
verl/protocol.py:125
Functionformat_reward
(predict: str)
train_examples/reward_function/validation.py:73
Functionformat_reward
(predict: str)
train_examples/reward_function/cot_val.py:103
Functionformat_reward
(predict: str)
validation_examples/reward_function/validation.py:73
Methodforward
( ctx: Any, group: dist.ProcessGroup, local_input: Tensor, scatter_dim: int,
verl/utils/ulysses.py:168
Methodforward
( ctx: Any, group: dist.ProcessGroup, local_tensor: Tensor, gather_dim: int,
verl/utils/ulysses.py:200
Methodfrom_dict
Constructs a BaseWatermarkingConfig instance from a dictionary of parameters. Args: config_dict (Dict[str, Any]): Dictio
configuration_utils.py:1344
Functiongenerate
(prompt_question, reference, candidate)
Evaluation/utils/gemini_eval.py:39
Functiongenerate
(description, prompt_question)
Evaluation/utils/gemini_caption_eval.py:40
Methodgenerate_sequences
Generate sequences
verl/workers/rollout/base.py:25
Methodgenerate_sequences
(self, prompts: DataProto)
verl/workers/rollout/vllm_rollout_spmd.py:123
Functionget_cross_encoder_activation_function
(config: PretrainedConfig)
config.py:784
Methodget_cuda_visible_devices
(self)
verl/single_controller/base/worker.py:178
Methodget_data
()
verl/protocol.py:480
Methodget_generation_mode
Returns the generation mode triggered by the [`GenerationConfig`] instance. Arg: assistant_model (`PreTrainedModel`, *op
configuration_utils.py:528
Functionget_hf_image_processor_config
( model: Union[str, Path], hf_token: Optional[Union[bool, str]] = None, revision: Optional[str] =
config.py:713
Functionget_hf_text_config
Get the "sub" config relevant to llm for multi modal models. No op for pure text models.
config.py:731
Functionget_kl_controller
Adapted from https://github.com/huggingface/trl/blob/v0.11.0/trl/trainer/ppo_trainer.py#L319
verl/trainer/core_algos.py:75
Methodget_master_addr_port
(self)
verl/single_controller/base/worker.py:175
Functionget_pooling_config
This function gets the pooling and normalize config from the model - only applies to sentence-transformers models. Args: mod
config.py:422
Methodget_rank_zero_info
(self)
verl/single_controller/base/register_center/ray.py:23
Functionget_response_mask
(response_ids, eos_token_id, dtype)
question_generate/question_generate.py:125
Functionget_response_mask
Get the mask for the response ids, the mask will be 0 after the first eos token. eos_token_id can be int or list: 1 or [1, 2]. ``` e.g. e
verl/utils/torch_functional.py:100
Functionget_reverse_idx
(idx_map)
verl/utils/seqlen_balancing.py:258
Methodget_score
(self, responses: str, answers: str)
evaluation/datasets_loader.py:44
Functionget_sentence_transformer_tokenizer_config
Returns the tokenization configuration dictionary for a given Sentence Transformer BERT model. Parameters: - model (str): The name o
config.py:498
Functiongpu_idle_worker
This worker occupies the GPU with a continuous matrix multiplication loop when idle, preventing potential performance drops from GPU power st
vllm_service_init/start_vllm_server.py:65
Functiongreedy_partition
(seqlen_list: List[int], k_partitions: int, equal_size: bool)
verl/utils/seqlen_balancing.py:130
Functionhello
The main processing endpoint: reads a task file, invokes vLLM, consolidates answers, and writes results.
vllm_service_init/start_vllm_server.py:113
Functioninfer
(prompt_question, reference, candidate)
Evaluation/utils/gpt_eval.py:122
Functioninit_fn
(module: nn.Module)
verl/utils/fsdp_utils.py:38
Functioninner
(*args, **kwargs)
verl/single_controller/base/decorator.py:204
Methodis_bf16
(precision: str)
verl/utils/torch_dtypes.py:35
Functionis_encoder_decoder
Detect if the model with this config is used as an encoder/decoder.
config.py:232
Methodis_fp16
(precision: str)
verl/utils/torch_dtypes.py:27
Methodis_fp32
(precision: str)
verl/utils/torch_dtypes.py:31
Functionjudge_sample
(sample)
Evaluation/eval_boxed_accuracy.py:131
Methodload_checkpoint
(self, path: Optional[str] = None)
verl/utils/checkpoint/fsdp_checkpoint_manager.py:51
Methodload_checkpoint
(self, *args, **kwargs)
verl/utils/checkpoint/checkpoint_manager.py:66
Methodload_data
(self)
evaluation/datasets_loader.py:57
Methodload_data
(self)
evaluation/datasets_loader.py:71
Methodload_data
(self)
evaluation/datasets_loader.py:82
Methodload_data
(self)
evaluation/datasets_loader.py:94
Methodload_data
(self)
evaluation/datasets_loader.py:106
Methodload_data
(self)
evaluation/datasets_loader.py:118
Methodload_data
(self)
evaluation/datasets_loader.py:131
Methodload_data
(self)
evaluation/datasets_loader.py:143
Methodload_data
(self)
evaluation/datasets_loader.py:176
Methodload_data
(self)
evaluation/datasets_loader.py:190
Methodload_data
(self)
evaluation/datasets_loader.py:220
Methodload_data
(self)
evaluation/datasets_loader.py:268
Methodload_from_disk
(filepath: str)
verl/protocol.py:219
Methodlocal_rank_list
(self)
verl/single_controller/base/worker_group.py:60
Methodlocal_world_size_list
(self)
verl/single_controller/base/worker_group.py:54
Methodlog
(self, data: Dict[str, Any], step: int)
verl/utils/logger/logger.py:57
Methodlog
(self, data: Dict[str, Any], step: int)
verl/utils/logger/logger.py:66
Methodlog
(self, data: Dict[str, Any], step: int)
verl/utils/logger/logger.py:86
Methodlog
(self, data: Dict[str, Any], step: int)
verl/utils/logger/logger.py:101
Methodlog
(self, data: Dict[str, Any], step: int)
verl/utils/logger/logger.py:117
Methodlog
(self, data: Dict[str, Any], step: int)
verl/utils/logger/logger.py:147
Methodlog
(self, samples: List[Tuple[str, str, str, float]], step: int)
verl/utils/logger/gen_logger.py:39
Methodlog
(self, samples: List[Tuple[str, str, str, float]], step: int)
verl/utils/logger/gen_logger.py:46
Methodlog
(self, samples: List[Tuple[str, str, str, float]], step: int)
verl/utils/logger/gen_logger.py:73
Methodlog
(self, samples: List[Tuple[str, str, str, float]], step: int)
verl/utils/logger/gen_logger.py:100
Functionlog_probs_from_logits
Compute log probs on the label ids given logits. We may use torch compile to speed up computing. Args: logits (torch.Tensor): logits
verl/utils/torch_functional.py:48
Functionlookup_files
()
config.py:119
Functionlr_lambda
(current_step: int)
verl/utils/torch_functional.py:197
Methodmake_iterator
Make an iterator from the DataProto. This is built upon that TensorDict can be used as a normal Pytorch dataset. See https://pytorch.org/tenso
verl/protocol.py:447
Functionmasked_whiten
Whiten values with masked values.
verl/utils/torch_functional.py:94
Methodmaster_address
(self)
verl/single_controller/ray/base.py:392
Methodmaster_port
(self)
verl/single_controller/ray/base.py:396
Methodmerge
(self, other)
verl/utils/seqlen_balancing.py:65
Functionmerge_resource_pool
(rp1: RayResourcePool, rp2: RayResourcePool)
verl/single_controller/ray/base.py:146
Functionpad_2d_list_to_length
Pad a 2D list (e.g. responses, log_probs) to a 2D tensor.
verl/utils/torch_functional.py:125
← previousnext →401–500 of 545, ranked by callers