Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bruno686/VisPlay
/ functions
Functions
545 in github.com/bruno686/VisPlay
⨍
Functions
545
◇
Types & classes
97
↳
Endpoints
12
Method
execute_rank_zero_sync
(self, method_name: str, *args, **kwargs)
verl/single_controller/ray/base.py:356
Method
execute_with_func_generator
(self, func, *args, **kwargs)
verl/single_controller/base/worker.py:195
Function
extract_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
Function
extract_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
Function
extract_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
Function
extract_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
Function
extract_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
Function
extract_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
Function
extract_boxed
(text)
question_generate/question_generate.py:101
Function
extract_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
Function
extract_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
Function
extract_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
Function
extract_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
Function
extract_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
Function
extract_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
Function
extract_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
Function
extract_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
Function
extract_pg_from_exist
( resource_pools: Dict[str, RayResourcePool], src_role_names: List[str], resource_pool: RayResourcePool )
verl/single_controller/ray/base.py:120
Function
fetch
(index,i)
train_examples/reward_function/validation.py:130
Function
fetch
(index,i)
train_examples/reward_function/cot_val.py:159
Function
fetch
(index,i)
validation_examples/reward_function/validation.py:130
Function
find_latest_ckpt_path
(path: Optional[str] = None, directory_format: str = "global_step_{}")
verl/utils/checkpoint/checkpoint_manager.py:110
Method
finish
(self)
verl/utils/logger/logger.py:89
Method
finish
(self)
verl/utils/logger/logger.py:105
Method
finish
(self)
verl/utils/logger/logger.py:120
Function
float_representer
(dumper: Dumper, number: Union[float, np.float32, np.float64])
verl/utils/py_functional.py:35
Function
fold_batch_dim
Fold a batch dim from [bsz, xxx] into [new_bsz, bsz // new_bsz, xxx]
verl/protocol.py:125
Function
format_reward
(predict: str)
train_examples/reward_function/validation.py:73
Function
format_reward
(predict: str)
train_examples/reward_function/cot_val.py:103
Function
format_reward
(predict: str)
validation_examples/reward_function/validation.py:73
Method
forward
( ctx: Any, group: dist.ProcessGroup, local_input: Tensor, scatter_dim: int,
verl/utils/ulysses.py:168
Method
forward
( ctx: Any, group: dist.ProcessGroup, local_tensor: Tensor, gather_dim: int,
verl/utils/ulysses.py:200
Method
from_dict
Constructs a BaseWatermarkingConfig instance from a dictionary of parameters. Args: config_dict (Dict[str, Any]): Dictio
configuration_utils.py:1344
Function
generate
(prompt_question, reference, candidate)
Evaluation/utils/gemini_eval.py:39
Function
generate
(description, prompt_question)
Evaluation/utils/gemini_caption_eval.py:40
Method
generate_sequences
Generate sequences
verl/workers/rollout/base.py:25
Method
generate_sequences
(self, prompts: DataProto)
verl/workers/rollout/vllm_rollout_spmd.py:123
Function
get_cross_encoder_activation_function
(config: PretrainedConfig)
config.py:784
Method
get_cuda_visible_devices
(self)
verl/single_controller/base/worker.py:178
Method
get_data
()
verl/protocol.py:480
Method
get_generation_mode
Returns the generation mode triggered by the [`GenerationConfig`] instance. Arg: assistant_model (`PreTrainedModel`, *op
configuration_utils.py:528
Function
get_hf_image_processor_config
( model: Union[str, Path], hf_token: Optional[Union[bool, str]] = None, revision: Optional[str] =
config.py:713
Function
get_hf_text_config
Get the "sub" config relevant to llm for multi modal models. No op for pure text models.
config.py:731
Function
get_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
Method
get_master_addr_port
(self)
verl/single_controller/base/worker.py:175
Function
get_pooling_config
This function gets the pooling and normalize config from the model - only applies to sentence-transformers models. Args: mod
config.py:422
Method
get_rank_zero_info
(self)
verl/single_controller/base/register_center/ray.py:23
Function
get_response_mask
(response_ids, eos_token_id, dtype)
question_generate/question_generate.py:125
Function
get_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
Function
get_reverse_idx
(idx_map)
verl/utils/seqlen_balancing.py:258
Method
get_score
(self, responses: str, answers: str)
evaluation/datasets_loader.py:44
Function
get_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
Function
gpu_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
Function
greedy_partition
(seqlen_list: List[int], k_partitions: int, equal_size: bool)
verl/utils/seqlen_balancing.py:130
Function
hello
The main processing endpoint: reads a task file, invokes vLLM, consolidates answers, and writes results.
vllm_service_init/start_vllm_server.py:113
Function
infer
(prompt_question, reference, candidate)
Evaluation/utils/gpt_eval.py:122
Function
init_fn
(module: nn.Module)
verl/utils/fsdp_utils.py:38
Function
inner
(*args, **kwargs)
verl/single_controller/base/decorator.py:204
Method
is_bf16
(precision: str)
verl/utils/torch_dtypes.py:35
Function
is_encoder_decoder
Detect if the model with this config is used as an encoder/decoder.
config.py:232
Method
is_fp16
(precision: str)
verl/utils/torch_dtypes.py:27
Method
is_fp32
(precision: str)
verl/utils/torch_dtypes.py:31
Function
judge_sample
(sample)
Evaluation/eval_boxed_accuracy.py:131
Method
load_checkpoint
(self, path: Optional[str] = None)
verl/utils/checkpoint/fsdp_checkpoint_manager.py:51
Method
load_checkpoint
(self, *args, **kwargs)
verl/utils/checkpoint/checkpoint_manager.py:66
Method
load_data
(self)
evaluation/datasets_loader.py:57
Method
load_data
(self)
evaluation/datasets_loader.py:71
Method
load_data
(self)
evaluation/datasets_loader.py:82
Method
load_data
(self)
evaluation/datasets_loader.py:94
Method
load_data
(self)
evaluation/datasets_loader.py:106
Method
load_data
(self)
evaluation/datasets_loader.py:118
Method
load_data
(self)
evaluation/datasets_loader.py:131
Method
load_data
(self)
evaluation/datasets_loader.py:143
Method
load_data
(self)
evaluation/datasets_loader.py:176
Method
load_data
(self)
evaluation/datasets_loader.py:190
Method
load_data
(self)
evaluation/datasets_loader.py:220
Method
load_data
(self)
evaluation/datasets_loader.py:268
Method
load_from_disk
(filepath: str)
verl/protocol.py:219
Method
local_rank_list
(self)
verl/single_controller/base/worker_group.py:60
Method
local_world_size_list
(self)
verl/single_controller/base/worker_group.py:54
Method
log
(self, data: Dict[str, Any], step: int)
verl/utils/logger/logger.py:57
Method
log
(self, data: Dict[str, Any], step: int)
verl/utils/logger/logger.py:66
Method
log
(self, data: Dict[str, Any], step: int)
verl/utils/logger/logger.py:86
Method
log
(self, data: Dict[str, Any], step: int)
verl/utils/logger/logger.py:101
Method
log
(self, data: Dict[str, Any], step: int)
verl/utils/logger/logger.py:117
Method
log
(self, data: Dict[str, Any], step: int)
verl/utils/logger/logger.py:147
Method
log
(self, samples: List[Tuple[str, str, str, float]], step: int)
verl/utils/logger/gen_logger.py:39
Method
log
(self, samples: List[Tuple[str, str, str, float]], step: int)
verl/utils/logger/gen_logger.py:46
Method
log
(self, samples: List[Tuple[str, str, str, float]], step: int)
verl/utils/logger/gen_logger.py:73
Method
log
(self, samples: List[Tuple[str, str, str, float]], step: int)
verl/utils/logger/gen_logger.py:100
Function
log_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
Function
lookup_files
()
config.py:119
Function
lr_lambda
(current_step: int)
verl/utils/torch_functional.py:197
Method
make_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
Function
masked_whiten
Whiten values with masked values.
verl/utils/torch_functional.py:94
Method
master_address
(self)
verl/single_controller/ray/base.py:392
Method
master_port
(self)
verl/single_controller/ray/base.py:396
Method
merge
(self, other)
verl/utils/seqlen_balancing.py:65
Function
merge_resource_pool
(rp1: RayResourcePool, rp2: RayResourcePool)
verl/single_controller/ray/base.py:146
Function
pad_2d_list_to_length
Pad a 2D list (e.g. responses, log_probs) to a 2D tensor.
verl/utils/torch_functional.py:125
← previous
next →
401–500 of 545, ranked by callers