MCPcopy Create free account

hub / github.com/OpenBMB/VisRAG / functions

Functions5,024 in github.com/OpenBMB/VisRAG

↓ 2 callersFunctionis_within_5_percent
(responds, answer)
src/openmatch/generation_utils.py:113
↓ 2 callersFunctionlast_token_pool
(last_hidden_states: Tensor, attention_mask: Tensor)
src/openmatch/modeling/dense_retrieval_model.py:26
↓ 2 callersFunctionlist_json_files
(directory)
visrag_scripts/data/batch_api.py:151
↓ 2 callersMethodload_checkpoint
(self, path: str)
src/rsgrpo/verl/workers/fsdp_workers.py:431
↓ 2 callersFunctionload_from_trec
Load the rank result from TREC format: <query_id> Q0 <doc_id> <rank> <score> <run_id> or <query_id> <doc_id> <score>
src/openmatch/utils.py:143
↓ 2 callersFunctionload_fsdp_optimizer
(optimizer: Optimizer, empty_cache: bool = True)
src/rsgrpo/verl/utils/fsdp_utils.py:128
↓ 2 callersFunctionload_state_dict_from_hf
(model_id: str, filename: str = HF_WEIGHTS_NAME)
timm_modified/timm/models/_hub.py:171
↓ 2 callersFunctionmap_mx_to_torch_model
(mx_name)
timm_modified/convert/convert_from_mxnet.py:74
↓ 2 callersFunctionmixup_target
(target, num_classes, lam=1., smoothing=0.0)
timm_modified/timm/data/mixup.py:22
↓ 2 callersFunctionmodel_parameters
(model: nn.Module, exclude_head: bool = False)
timm_modified/timm/models/_manipulate.py:16
↓ 2 callersMethodmulti_head_attention_forward
( self, query: Tensor, key: Tensor, value: Tensor, embed_dim_to_check:
src/openmatch/modeling/weighted_selection/MiniCPMV20/resampler.py:348
↓ 2 callersFunctionnorm_cdf
(x)
timm_modified/timm/layers/weight_init.py:11
↓ 2 callersFunctionnorm_cdf
(x)
src/openmatch/modeling/modeling_siglip/modeling_siglip.py:83
↓ 2 callersFunctionnormalize_answer_qa
(s)
src/evisrag/eval.py:39
↓ 2 callersFunctionnormalize_final_answer
Normalize a final answer to a quantitative reasoning question. Args: final_answer: The answer string to normalize Returns: N
src/rsgrpo/examples/reward_function/test.py:59
↓ 2 callersFunctionnormalize_final_answer
Normalize a final answer to a quantitative reasoning question. Args: final_answer: The answer string to normalize Returns: N
src/rsgrpo/examples/reward_function/dapo.py:78
↓ 2 callersFunctionone_hot
(x, num_classes, on_value=1., off_value=0.)
timm_modified/timm/data/mixup.py:17
↓ 2 callersFunctionoptimizer_kwargs
cfg/argparse to kwargs helper Convert optimizer args in argparse args or cfg like object to keyword args for updated create fn.
timm_modified/timm/optim/optim_factory.py:160
↓ 2 callersFunctionpad_dataproto_to_divisor
Pad a DataProto to size divisible by size_divisor Args: data (DataProto): the unpadded DataProto size_divisor (int): size divisor
src/rsgrpo/verl/protocol.py:48
↓ 2 callersFunctionparse_model_name
(model_name: str)
timm_modified/timm/models/_factory.py:15
↓ 2 callersMethodprepare_rollout_engine
(self)
src/rsgrpo/verl/workers/fsdp_workers.py:542
↓ 2 callersFunctionprofile_deepspeed
(model, input_size=(3, 224, 224), batch_size=1, detailed=False)
timm_modified/benchmark.py:193
↓ 2 callersFunctionprofile_fvcore
(model, input_size=(3, 224, 224), batch_size=1, detailed=False, force_cpu=False)
timm_modified/benchmark.py:206
↓ 2 callersFunctionprojection
(p, grad, perturb, delta: float, wd_ratio: float, eps: float)
timm_modified/timm/optim/adamp.py:25
↓ 2 callersFunctionreduce_feat_size
(feat_size, stride=2)
timm_modified/timm/models/byobnet.py:1015
↓ 2 callersFunctionregister_block
(block_type:str, block_fn: nn.Module)
timm_modified/timm/models/byobnet.py:903
↓ 2 callersFunctionregister_notrace_module
Any module not under timm.models.layers should get this decorator if we don't want to trace through it.
timm_modified/timm/models/_features_fx.py:59
↓ 2 callersFunctionrel_logits_1d
Compute relative logits along one dimension As per: https://gist.github.com/aravindsrinivas/56359b79f0ce4449bcb04ab4b56a57a2 Originally from
timm_modified/timm/layers/bottleneck_attn.py:28
↓ 2 callersFunctionrel_logits_1d
Compute relative logits along one dimension As per: https://gist.github.com/aravindsrinivas/56359b79f0ce4449bcb04ab4b56a57a2 Originally from
timm_modified/timm/layers/halo_attn.py:30
↓ 2 callersMethodrelease_rollout_engine
(self)
src/rsgrpo/verl/workers/fsdp_workers.py:546
↓ 2 callersFunctionremove_obsolete_ckpt
Remove the obsolete checkpoints that exceed the save limit.
src/rsgrpo/verl/utils/checkpoint/checkpoint_manager.py:138
↓ 2 callersMethodremove_punctuation
(self, text: str)
src/openmatch/modeling/modeling_siglip/tokenization_siglip.py:280
↓ 2 callersMethodreorder
Note that this operation is in-place
src/rsgrpo/verl/protocol.py:605
↓ 2 callersFunctionreshape
(input_list)
src/openmatch/dataset/data_collator.py:6
↓ 2 callersFunctionresize
(x_np, _new_size)
timm_modified/timm/layers/patch_embed.py:184
↓ 2 callersMethodresize_mat
(self, x, t: int)
timm_modified/timm/layers/non_local_attn.py:85
↓ 2 callersFunctionresize_pos_embed
Rescale the grid of position embeddings when loading from state_dict Expected shape of position embeddings is (1, T, N, C), and considers onl
timm_modified/timm/models/nest.py:459
↓ 2 callersFunctionresnet26d
Constructs a ResNet-26-D model.
timm_modified/timm/models/resnet.py:1310
↓ 2 callersFunctionresnet50d
Constructs a ResNet-50-D model.
timm_modified/timm/models/resnet.py:1334
↓ 2 callersFunctionresolve_pretrained_cfg
( variant: str, pretrained_cfg=None, pretrained_cfg_overlay=None, )
timm_modified/timm/models/_builder.py:305
↓ 2 callersFunctionrms_norm
( x: torch.Tensor, normalized_shape: List[int], weight: Optional[torch.Tensor] = None, eps: fl
timm_modified/timm/layers/fast_norm.py:87
↓ 2 callersFunctionrosenbrock
(tensor)
timm_modified/tests/test_optim.py:214
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
src/openmatch/modeling/weighted_selection/MiniCPMV20/modeling_minicpm.py:252
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
src/openmatch/modeling/modeling_minicpmv/modeling_minicpm.py:252
↓ 2 callersMethodrun
(self)
timm_modified/benchmark.py:518
↓ 2 callersMethodrun
(self, src)
timm_modified/timm/data/readers/reader_wds.py:197
↓ 2 callersFunctionrun_function
(start, end, functions)
timm_modified/timm/models/_manipulate.py:231
↓ 2 callersFunctionsafe_model_name
(model_name: str, remove_source: bool = True)
timm_modified/timm/models/_factory.py:29
↓ 2 callersMethodsave_checkpoint
(self, path: str, save_model_only: bool = False)
src/rsgrpo/verl/workers/fsdp_workers.py:420
↓ 2 callersFunctionscheduler_kwargs
cfg/argparse to kwargs helper Convert scheduler args in argparse args or cfg (.dot) like object to keyword args.
timm_modified/timm/scheduler/scheduler_factory.py:16
↓ 2 callersMethodset_epoch
(self, count)
timm_modified/timm/data/dataset.py:143
↓ 2 callersFunctionset_ulysses_sequence_parallel_group
Set ulysses sequence parallel process group.
src/rsgrpo/verl/utils/ulysses.py:31
↓ 2 callersFunctionsetup_file
(path_from_hf_repo, path)
src/openmatch/driver/eval.py:235
↓ 2 callersFunctionslice_image
( image, max_slice_nums=9, scale_resolution=448, patch_size=14, never_split=False )
src/openmatch/modeling/weighted_selection/MiniCPMV20/modeling_minicpmv.py:518
↓ 2 callersFunctionslice_image
( image, max_slice_nums=9, scale_resolution=448, patch_size=14, never_split=False)
src/openmatch/modeling/modeling_minicpmv/modeling_minicpmv.py:482
↓ 2 callersFunctionslice_input_tensor
(x: Tensor, dim: int, padding: bool = True, group: ProcessGroup = None)
src/rsgrpo/verl/utils/ulysses.py:118
↓ 2 callersFunctionsoft_overlong_punishment
(response_length: int, max_response_length: int, overlong_buffer_length: int, min_response_length: int)
src/rsgrpo/examples/reward_function/evidencecot.py:188
↓ 2 callersFunctionstack
(list_of_lists)
src/openmatch/dataset/data_collator.py:15
↓ 2 callersMethodstep_update
(self, num_updates: int, metric: float = None)
timm_modified/timm/scheduler/scheduler.py:84
↓ 2 callersFunctionto_device
Recursively move tensors in a nested list, tuple, or dictionary to the specified device.
src/openmatch/trainer/dense_trainer.py:28
↓ 2 callersFunctionunitwise_norm
(x, norm_type=2.0)
timm_modified/timm/utils/agc.py:21
↓ 2 callersFunctionunpad_dataproto
(data: "DataProto", pad_size: int)
src/rsgrpo/verl/protocol.py:77
↓ 2 callersMethodupdate_input_size
Method updates the image resolution to be processed and window size and so the pair-wise relative positions. Args: new_window_siz
timm_modified/timm/models/swin_transformer_v2_cr.py:659
↓ 2 callersMethodupdate_options
(self, options: Dict)
src/rsgrpo/verl/single_controller/ray/base.py:172
↓ 2 callersMethodupdate_slow
(self, group)
timm_modified/timm/optim/lookahead.py:36
↓ 2 callersFunctionvalidate
(args)
timm_modified/validate.py:164
↓ 2 callersFunctionvalidate
( model, loader, loss_fn, args, device=torch.device('cuda'), a
timm_modified/train.py:1106
↓ 2 callersFunctionvariance_scaling_
(tensor, scale=1.0, mode="fan_in", distribution="normal")
src/openmatch/modeling/modeling_siglip/modeling_siglip.py:155
↓ 2 callersFunctionwindow_partition
Partition into non-overlapping windows with padding if needed. Args: x (tensor): input tokens with [B, H, W, C]. window_size
timm_modified/timm/models/swin_transformer.py:41
↓ 2 callersFunctionwindow_partition
(x, window_size: List[int])
timm_modified/timm/models/maxxvit.py:632
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
timm_modified/timm/models/swin_transformer_v2_cr.py:61
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
timm_modified/timm/models/swin_transformer_v2.py:35
↓ 2 callersFunctionwindow_reverse
(windows, window_size: List[int], img_size: List[int])
timm_modified/timm/models/maxxvit.py:642
↓ 2 callersFunctionworld_info_from_env
()
timm_modified/timm/utils/distributed.py:57
↓ 1 callersFunctionCCOT
(query)
src/evisrag/prompt.py:122
↓ 1 callersFunctionCOCOT
(query)
src/evisrag/prompt.py:104
↓ 1 callersFunctionDDCOT
(query)
src/evisrag/prompt.py:142
↓ 1 callersMethod__call__
(self, pos_scores: Tensor, neg_scores: Tensor)
src/openmatch/loss.py:79
↓ 1 callersMethod__init__
( self, loader, mean=IMAGENET_DEFAULT_MEAN, std=IMAGENET_DEFAU
timm_modified/timm/data/loader.py:78
↓ 1 callersMethod__init__
(self)
timm_modified/timm/data/dataset_info.py:7
↓ 1 callersMethod__init__
(self, tf: tarfile.TarFile = None, ti: tarfile.TarInfo = None)
timm_modified/timm/data/readers/reader_image_in_tar.py:33
↓ 1 callersMethod__init__
( self, root: str, name: Optional[str] = None, split: str = 't
timm_modified/timm/data/readers/reader_wds.py:263
↓ 1 callersMethod__init__
(self, drop_prob: float = 0., scale_by_keep: bool = True)
timm_modified/timm/layers/drop.py:173
↓ 1 callersMethod__init__
(self, feat_size, dim_head, scale)
timm_modified/timm/layers/bottleneck_attn.py:61
↓ 1 callersMethod__init__
( self, in_features: int, feat_size: Union[int, Tuple[int, int]],
timm_modified/timm/layers/attention_pool2d.py:88
↓ 1 callersMethod__init__
(self, kernel_size: int, stride=None, padding=0, ceil_mode=False, count_include_pad=True)
timm_modified/timm/layers/pool2d_same.py:24
↓ 1 callersMethod__init__
Args: in_features: The number of input features. num_classes: The number of classes for the final classifier layer (
timm_modified/timm/layers/classifier.py:78
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size=3, stride=1, dilation=1, padding='', bias=False,
timm_modified/timm/layers/separable_conv.py:54
↓ 1 callersMethod__init__
( self, in_channels, out_channels, kernel_size, st
timm_modified/timm/layers/conv2d_same.py:34
↓ 1 callersMethod__init__
( self, channels=None, kernel_size=3, gamma=2, beta=1, act_layer=None, gate_layer='sigmoid',
timm_modified/timm/layers/eca.py:60
↓ 1 callersMethod__init__
( self, in_channels, out_channels, kernel_size=1,
timm_modified/timm/layers/conv_bn_act.py:13
↓ 1 callersMethod__init__
(self, in_channels, out_channels=None, kernel_size=3, stride=1, padding=None, dilation=1, gro
timm_modified/timm/layers/split_attn.py:36
↓ 1 callersMethod__init__
( self, dim, dim_out=None, feat_size=None, stride=1, num_heads=8, dim_head=None, block_size=8, hal
timm_modified/timm/layers/halo_attn.py:125
↓ 1 callersMethod__init__
(self, num_features, apply_act=True, eps=1e-5, rms=True, **_)
timm_modified/timm/layers/filter_response_norm.py:20
↓ 1 callersMethod__init__
( self, img_size: Optional[int] = 224, patch_size: int = 16, i
timm_modified/timm/layers/patch_embed.py:31
↓ 1 callersMethod__init__
Selective Kernel Convolution Module As described in Selective Kernel Networks (https://arxiv.org/abs/1903.06586) with some modifications.
timm_modified/timm/layers/selective_kernel.py:51
↓ 1 callersMethod__init__
( self, backbone, img_size=224, patch_size=1, feat
timm_modified/timm/models/vision_transformer_hybrid.py:38
↓ 1 callersMethod__init__
Args: block_args: Arguments for blocks of the network. num_classes: Number of classes for classification head.
timm_modified/timm/models/mobilenetv3.py:45
↓ 1 callersMethod__init__
( self, in_chans=3, num_classes=1000, global_pool='avg',
timm_modified/timm/models/rexnet.py:171
↓ 1 callersMethod__init__
(self, model, out_indices, out_map=None)
timm_modified/timm/models/_features_fx.py:106
← previousnext →701–800 of 5,024, ranked by callers