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
↓ 1 callers
Function
judge_answer_with_llm
(predicted_answer: str, ground_truth_answer: str, question: str = "")
Evaluation/eval_boxed_accuracy.py:53
↓ 1 callers
Function
karmarkar_karp
(seqlen_list: List[int], k_partitions: int, equal_size: bool)
verl/utils/seqlen_balancing.py:97
↓ 1 callers
Method
load_data
Load the dataset and return a tuple: (splits_dict, answer_type). splits_dict: A dictionary where each key is a split name (e.g., 'tr
evaluation/datasets_loader.py:17
↓ 1 callers
Function
load_ground_truth
(parquet_file: str, file_name_filter: str = None)
Evaluation/eval_boxed_accuracy.py:74
↓ 1 callers
Function
load_params_config
(model: Union[str, Path], revision: Optional[str], **kwargs)
config.py:628
↓ 1 callers
Method
load_rng_state
(rng_state: Dict[str, Any])
verl/utils/checkpoint/checkpoint_manager.py:103
↓ 1 callers
Function
load_vqa_dataset
Load VQA dataset from parquet files
question_generate/question_generate.py:19
↓ 1 callers
Method
local_mkdir
(path: str)
verl/utils/checkpoint/checkpoint_manager.py:74
↓ 1 callers
Method
log_generation
(self, samples: List[Tuple[str, str, str, float]], step: int)
verl/utils/logger/logger.py:151
↓ 1 callers
Function
log_probs_from_logits_flash_attn
(logits: torch.Tensor, labels: torch.Tensor)
verl/utils/torch_functional.py:38
↓ 1 callers
Function
log_seqlen_unbalance
(seqlen_list: List[int], partitions: List[List[int]], prefix)
verl/utils/seqlen_balancing.py:184
↓ 1 callers
Function
main
()
setup.py:41
↓ 1 callers
Function
main
(args)
question_generate/question_generate.py:135
↓ 1 callers
Function
main
()
verl/trainer/main.py:98
↓ 1 callers
Function
main
()
Evaluation/eval_boxed_accuracy.py:155
↓ 1 callers
Function
masked_var
Compute variance of tensor with masked values.
verl/utils/torch_functional.py:77
↓ 1 callers
Function
match
(generation)
train_examples/reward_function/validation.py:109
↓ 1 callers
Function
match
(generation)
train_examples/reward_function/cot_val.py:138
↓ 1 callers
Function
match
(generation)
validation_examples/reward_function/validation.py:109
↓ 1 callers
Function
maybe_register_config_serialize_by_value
Try to register HF model configuration class to serialize by value If trust_remote_code is set, and the model's config file specifies an
config.py:560
↓ 1 callers
Function
merge_by_placement
(tensors: List[torch.Tensor], placement: Placement)
scripts_Qwen-VL-7B/model_merger.py:34
↓ 1 callers
Function
merge_by_placement
(tensors: List[torch.Tensor], placement: Placement)
scripts_MIMO-VL-7B/model_merger.py:34
↓ 1 callers
Function
merge_by_placement
(tensors: List[torch.Tensor], placement: Placement)
scripts_Qwen-VL-3B/model_merger.py:34
↓ 1 callers
Function
pad_dataproto_to_divisor
Pad a DataProto to size divisible by size_divisor Args: data (DataProto): the unpadded DataProto size_divisor (int): size divisor
verl/protocol.py:48
↓ 1 callers
Function
patch_rope_scaling
Provide backwards compatibility for RoPE.
config.py:186
↓ 1 callers
Function
patch_rope_scaling_dict
(rope_scaling: Dict[str, Any])
config.py:197
↓ 1 callers
Method
post_init
(self)
verl/trainer/config.py:112
↓ 1 callers
Function
prepare_fa2_from_position_ids
( query: torch.Tensor, key: torch.Tensor, value: torch.Tensor, position_ids: torch.Tensor )
verl/models/transformers/flash_attention_utils.py:43
↓ 1 callers
Function
print_model_size
Print the model size.
verl/utils/model_utils.py:66
↓ 1 callers
Method
process_image
(self, image: Union[Dict[str, Any], ImageObject])
verl/utils/dataset.py:69
↓ 1 callers
Function
process_image_for_vllm
Process image for vLLM multi-modal input, following ImageProcessMixin pattern. Args: image: PIL.Image.Image or dict with key "bytes"
question_generate/question_generate.py:54
↓ 1 callers
Function
process_single
Consolidates and grades vLLM outputs for a single question, returning a result dictionary.
vllm_service_init/start_vllm_server.py:185
↓ 1 callers
Function
recurse_elems
(elem: Any)
config.py:647
↓ 1 callers
Function
recursive_post_init
(dataclass_obj)
verl/trainer/config.py:25
↓ 1 callers
Function
remove_obsolete_ckpt
Remove the obsolete checkpoints that exceed the save_limit.
verl/utils/checkpoint/checkpoint_manager.py:138
↓ 1 callers
Method
reorder
Note that this operation is in-place
verl/protocol.py:548
↓ 1 callers
Method
run
(self, config: PPOConfig)
verl/trainer/main.py:34
↓ 1 callers
Function
save_responses_for_validation
(batch, tokenizer, output_path)
verl/trainer/ray_trainer.py:200
↓ 1 callers
Method
save_to_disk
(self, filepath: str)
verl/protocol.py:214
↓ 1 callers
Function
slice_input_tensor
(x: Tensor, dim: int, padding: bool = True, group: ProcessGroup = None)
verl/utils/ulysses.py:118
↓ 1 callers
Function
sort_placement_group_by_node_ip
Sort the placement groups by node ip, all bundles in a single placement group should be on the same node. FSDPCheckpointManager saves sharde
verl/single_controller/ray/base.py:54
↓ 1 callers
Method
spawn
spawn to a dictionary of worker groups, each with a subset of method with prefix.
verl/single_controller/ray/base.py:328
↓ 1 callers
Function
split_list
(lst, n=4)
train_examples/reward_function/validation.py:126
↓ 1 callers
Function
split_list
(lst, n=4)
train_examples/reward_function/cot_val.py:155
↓ 1 callers
Function
split_list
(lst, n=4)
validation_examples/reward_function/validation.py:126
↓ 1 callers
Method
to_dict
Serializes this instance to a Python dictionary. Returns: Dict[str, Any]: Dictionary of all the attributes that make up
configuration_utils.py:1378
↓ 1 callers
Method
to_dict
(self)
verl/single_controller/base/worker.py:80
↓ 1 callers
Method
to_dict
(self)
verl/workers/rollout/config.py:46
↓ 1 callers
Method
to_diff_dict
Removes all attributes from config which correspond to the default config attributes for better readability and serializes to a Pytho
configuration_utils.py:1160
↓ 1 callers
Method
to_json_file
Save this instance to a JSON file. Args: json_file_path (`str` or `os.PathLike`): Path to the JSON file
configuration_utils.py:1250
↓ 1 callers
Method
to_json_string
Serializes this instance to a JSON formatted string. Returns: str: JSON formatted string representing the configuration
configuration_utils.py:1395
↓ 1 callers
Method
to_str
(precision: torch.dtype)
verl/utils/torch_dtypes.py:50
↓ 1 callers
Function
unflatten_dict
(data: Dict[str, Any], sep: str = "/")
verl/utils/py_functional.py:76
↓ 1 callers
Function
union_numpy_dict
(tensor_dict1: Dict[str, NDArray], tensor_dict2: Dict[str, NDArray])
verl/protocol.py:100
↓ 1 callers
Function
union_tensor_dict
Union two tensordicts.
verl/protocol.py:84
↓ 1 callers
Function
union_two_dict
Union two dict. Will throw an error if there is an item not the same object with the same key.
verl/utils/py_functional.py:56
↓ 1 callers
Function
unit_convert
(number: float, level: str)
verl/utils/flops_counter.py:28
↓ 1 callers
Function
unpad_dataproto
(data: "DataProto", pad_size: int)
verl/protocol.py:77
↓ 1 callers
Method
update_actor
(self, data: DataProto)
verl/workers/fsdp_workers.py:428
↓ 1 callers
Method
update_critic
(self, data: DataProto)
verl/workers/fsdp_workers.py:582
↓ 1 callers
Method
update_policy
Update the policy with an iterator of DataProto Args: data (DataProto): an iterator over the DataProto that returns by
verl/workers/actor/base.py:53
↓ 1 callers
Method
update_sampling_params
(self, **kwargs)
verl/workers/rollout/vllm_rollout_spmd.py:107
↓ 1 callers
Function
upload_model_to_huggingface
(local_path: str, remote_path: str)
scripts_Qwen-VL-7B/model_merger.py:45
↓ 1 callers
Function
upload_model_to_huggingface
(local_path: str, remote_path: str)
scripts_MIMO-VL-7B/model_merger.py:45
↓ 1 callers
Function
upload_model_to_huggingface
(local_path: str, remote_path: str)
scripts_Qwen-VL-3B/model_merger.py:45
↓ 1 callers
Function
with_retry
(func: Callable[[], Any], log_msg: str, max_retries: int = 2, ret
config.py:92
Method
__call__
( self, placement_group: PlacementGroup, placement_group_bundle_idx: int, use_
verl/single_controller/ray/base.py:175
Method
__call__
(self)
verl/single_controller/base/worker_group.py:47
Method
__call__
(self)
verl/single_controller/base/worker_group.py:76
Method
__del__
(self)
verl/utils/logger/logger.py:154
Method
__enter__
(self)
verl/workers/sharding_manager/fsdp_vllm.py:66
Method
__enter__
(self)
verl/workers/sharding_manager/base.py:22
Method
__enter__
(self)
verl/workers/sharding_manager/fsdp_ulysses.py:34
Method
__eq__
(self, other)
configuration_utils.py:517
Method
__exit__
(self, exc_type, exc_value, traceback)
verl/workers/sharding_manager/fsdp_vllm.py:100
Method
__exit__
(self, exc_type, exc_value, traceback)
verl/workers/sharding_manager/base.py:25
Method
__exit__
(self, exc_type, exc_value, traceback)
verl/workers/sharding_manager/fsdp_ulysses.py:39
Method
__getitem__
(self, item: Union[int, slice])
verl/protocol.py:190
Method
__getitem__
(self, index)
verl/utils/dataset.py:257
Method
__getstate__
(self)
verl/protocol.py:196
Method
__hash__
(self)
configuration_utils.py:514
Method
__init__
(self, **kwargs)
configuration_utils.py:395
Method
__init__
( self, greenlist_ratio: Optional[float] = 0.25, bias: Optional[float] = 2.0,
configuration_utils.py:1444
Method
__init__
( self, ngram_len: int, keys: List[int], context_history_size: int = 1024,
configuration_utils.py:1545
Method
__init__
(self, config: "LlamaConfig")
verl/utils/flops_counter.py:67
Method
__init__
( self, data_path: str, tokenizer: PreTrainedTokenizer, processor: Optional[Pr
verl/utils/dataset.py:96
Method
__init__
(self)
verl/utils/seqlen_balancing.py:25
Method
__init__
(self, items: List[Tuple[int, int]], k: int)
verl/utils/seqlen_balancing.py:47
Method
__init__
AnyPrecisionAdamW: a flexible precision AdamW optimizer with optional Kahan summation for high precision weight updates. Allo
verl/utils/torch_functional.py:205
Method
__init__
(self, config: Dict[str, Any])
verl/utils/logger/logger.py:44
Method
__init__
(self, config: Dict[str, Any])
verl/utils/logger/logger.py:54
Method
__init__
(self, config: Dict[str, Any])
verl/utils/logger/logger.py:62
Method
__init__
(self, config: Dict[str, Any])
verl/utils/logger/logger.py:71
Method
__init__
(self, config: Dict[str, Any])
verl/utils/logger/logger.py:94
Method
__init__
(self, config: Dict[str, Any])
verl/utils/logger/logger.py:110
Method
__init__
(self, loggers: Union[str, List[str]] = "console", config: Optional[Dict[str, Any]] = None)
verl/utils/logger/logger.py:134
Method
__init__
(self, loggers: List[str])
verl/utils/logger/gen_logger.py:93
Method
__init__
( self, model: FSDP, optimizer: torch.optim.Optimizer, lr_scheduler: torch.opt
verl/utils/checkpoint/fsdp_checkpoint_manager.py:42
Method
__init__
( self, model: FSDP, optimizer: torch.optim.Optimizer, lr_scheduler: torch.opt
verl/utils/checkpoint/checkpoint_manager.py:49
Method
__init__
( self, process_on_nodes: List[int] = None, use_gpu: bool = True, name_prefix:
verl/single_controller/ray/base.py:76
← previous
next →
201–300 of 545, ranked by callers