MCPcopy Create free account

hub / github.com/OpenBMB/VisRAG / functions

Functions5,024 in github.com/OpenBMB/VisRAG

↓ 268 callersMethodto
Move the batch to device Args: device (torch.device): the device to move to. non_blocking (bool, optional): whether t
src/rsgrpo/verl/protocol.py:325
↓ 198 callersMethodsplit
Split the batch among dim=0 into chunks. The meta_info is passed to each DataProto after split. Args: split_size (int): the size
src/rsgrpo/verl/protocol.py:571
↓ 162 callersFunction_cfg
(url: str = '', **kwargs)
timm_modified/timm/models/vision_transformer.py:1069
↓ 162 callersMethodpop
Pop a subset of the DataProto via `batch_keys` and `meta_info_keys` Args: batch_keys (list, optional): a list of strings indicati
src/rsgrpo/verl/protocol.py:421
↓ 153 callersMethodget
Get value by key at specified index (indices) if idx == None, returns value for key at each output index if idx is an integer, return
timm_modified/timm/models/_features.py:43
↓ 135 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/efficientnet.py:893
↓ 87 callersFunctioncreate_optimizer_v2
Create an optimizer. TODO currently the model is passed in and all parameters are selected for optimization. For more general use an interfa
timm_modified/timm/optim/optim_factory.py:194
↓ 84 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distributi
timm_modified/timm/layers/weight_init.py:43
↓ 83 callersFunction_create_vision_transformer
(variant: str, pretrained: bool = False, **kwargs)
timm_modified/timm/models/vision_transformer.py:1767
↓ 83 callersMethodformat
(self, record)
timm_modified/timm/utils/log.py:13
↓ 80 callersFunction_create_resnet
(variant, pretrained: bool = False, **kwargs)
timm_modified/timm/models/resnet.py:583
↓ 78 callersFunctionbuild_model_with_cfg
Build model with specified default_cfg and optional model_cfg This helper fn aids in the construction of a model including: * handling def
timm_modified/timm/models/_builder.py:340
↓ 76 callersFunctiongenerate_default_cfgs
(cfgs: Dict[str, Union[Dict[str, Any], PretrainedCfg]])
timm_modified/timm/models/_registry.py:43
↓ 68 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/maxxvit.py:1824
↓ 67 callersFunction_test_basic_cases
(constructor, scheduler_constructors=None)
timm_modified/tests/test_optim.py:139
↓ 66 callersFunctioncreate_conv2d
Select a 2d convolution implementation based on arguments Creates and returns one of torch.nn.Conv2d, Conv2dSame, MixedConv2d, or CondConv2d.
timm_modified/timm/layers/create_conv2d.py:11
↓ 61 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/convnext.py:494
↓ 57 callersFunction_assert
(condition: bool, message: str)
timm_modified/timm/layers/trace_utils.py:4
↓ 56 callersFunction_create_maxxvit
(variant, cfg_variant=None, pretrained=False, **kwargs)
timm_modified/timm/models/maxxvit.py:1810
↓ 52 callersFunction_ttcfg
(url='', **kwargs)
timm_modified/timm/models/resnet.py:602
↓ 52 callersFunctionmake_divisible
(v, divisor=8, min_value=None, round_limit=.9)
timm_modified/timm/layers/helpers.py:25
↓ 50 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/metaformer.py:672
↓ 47 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/resnet.py:587
↓ 46 callersMethodget
(self)
src/rsgrpo/verl/protocol.py:694
↓ 44 callersMethodadd
(self, idx: int, val: int)
src/rsgrpo/verl/utils/seqlen_balancing.py:32
↓ 43 callersMethodstate_dict
(self)
timm_modified/timm/utils/cuda.py:37
↓ 42 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/xcit.py:514
↓ 42 callersFunctioncheckpoint_seq
r"""A helper function for checkpointing sequential models. Sequential models execute a list of modules/functions in order (sequentially). The
timm_modified/timm/models/_manipulate.py:186
↓ 41 callersFunction_create_byobnet
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/byobnet.py:1746
↓ 41 callersMethodlog
(self, data: Dict[str, Any], step: int)
src/rsgrpo/verl/utils/logger/logger.py:49
↓ 40 callersFunction_n2p
(w, t=True)
timm_modified/timm/models/vision_transformer.py:802
↓ 39 callersMethoddownsample
Feature map down-sampling.
timm_modified/timm/models/coat.py:292
↓ 36 callersFunction_create_regnet
(variant, pretrained, **kwargs)
timm_modified/timm/models/regnet.py:673
↓ 35 callersFunction_create_normfreenet
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/nfnet.py:612
↓ 35 callersFunction_dcfg
(url='', **kwargs)
timm_modified/timm/models/nfnet.py:625
↓ 34 callersFunctioncreate_classifier
( num_features: int, num_classes: int, pool_type: str = 'avg', use_conv: bool
timm_modified/timm/layers/classifier.py:49
↓ 34 callersFunctioncreate_pool2d
(pool_type, kernel_size, stride=None, **kwargs)
timm_modified/timm/layers/pool2d_same.py:56
↓ 33 callersMethodload
( cls, data_args: DataArguments = None, data: List[Dict] = None, data_files: U
src/openmatch/dataset/inference_dataset.py:115
↓ 33 callersMethodupdate
(self, model)
timm_modified/timm/utils/model_ema.py:69
↓ 32 callersFunction_rcfg
(url='', **kwargs)
timm_modified/timm/models/resnet.py:609
↓ 32 callersMethodupdate
Update kl_coef according to current KL.
src/rsgrpo/verl/trainer/core_algos.py:43
↓ 30 callersFunction_build_params_dict_single
(weight, bias, **kwargs)
timm_modified/tests/test_optim.py:276
↓ 30 callersMethodfrom_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
src/openmatch/modeling/modeling_siglip/configuration_siglip.py:120
↓ 30 callersFunctionget_act_layer
Activation Layer Factory Fetching activation layers by name with this function allows export or torch script friendly functions to be returne
timm_modified/timm/layers/create_act.py:130
↓ 28 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/eva.py:676
↓ 28 callersFunction_create_xcit
(variant, pretrained=False, default_cfg=None, **kwargs)
timm_modified/timm/models/xcit.py:500
↓ 28 callersFunction_gen_efficientnet
Creates an EfficientNet model. Ref impl: https://github.com/tensorflow/tpu/blob/master/models/official/efficientnet/efficientnet_model.py Pap
timm_modified/timm/models/efficientnet.py:492
↓ 27 callersFunction_cfgtv2
(url='', **kwargs)
timm_modified/timm/models/regnet.py:701
↓ 27 callersMethodstages
(self, x)
timm_modified/timm/models/hrnet.py:747
↓ 26 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/mlp_mixer.py:346
↓ 26 callersFunction_cfgv2
(url='', **kwargs)
timm_modified/timm/models/convnext.py:505
↓ 26 callersFunctioninterleave_blocks
interleave 2 block types in stack
timm_modified/timm/models/byobnet.py:119
↓ 26 callersMethodrepeat
Repeat the batch data a specified number of times. Args: repeat_times (int): Number of times to repeat the data.
src/rsgrpo/verl/protocol.py:613
↓ 25 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/resnetv2.py:552
↓ 25 callersFunction_create_convnext
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/convnext.py:480
↓ 24 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/deit.py:135
↓ 24 callersFunction_cfgpyc
(url='', **kwargs)
timm_modified/timm/models/regnet.py:691
↓ 24 callersFunctiondecode_arch_def
Decode block architecture definition strings -> block kwargs Args: arch_def: architecture definition strings, list of list of strings
timm_modified/timm/models/_efficientnet_builder.py:233
↓ 24 callersFunctionnamed_apply
( fn: Callable, module: nn.Module, name='', depth_first: bool = True, include_
timm_modified/timm/models/_manipulate.py:24
↓ 24 callersFunctionresolve_bn_args
(kwargs)
timm_modified/timm/models/_efficientnet_builder.py:45
↓ 23 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/cspnet.py:909
↓ 23 callersFunction_create_cspnet
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/cspnet.py:895
↓ 22 callersFunction_cfg
(url: str = '', **kwargs)
timm_modified/timm/models/mobilenetv3.py:584
↓ 22 callersFunctioncreate_act_layer
(name: Union[Type[nn.Module], str], inplace=None, **kwargs)
timm_modified/timm/layers/create_act.py:151
↓ 22 callersMethodreset
(self)
timm_modified/timm/optim/adabelief.py:72
↓ 21 callersFunction_cfgr
(url='', **kwargs)
timm_modified/timm/models/byobnet.py:1764
↓ 21 callersFunction_gcfg
(url='', **kwargs)
timm_modified/timm/models/resnet.py:624
↓ 21 callersFunctionget_norm_act_layer
(norm_layer, act_layer=None)
timm_modified/timm/layers/create_norm_act.py:52
↓ 21 callersFunctionuse_fused_attn
(experimental: bool = False)
timm_modified/timm/layers/config.py:130
↓ 20 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/levit.py:770
↓ 20 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/byobnet.py:1754
↓ 20 callersFunction_get_data_proto
( tensors: Optional[Dict[str, List[Any]]] = None, non_tensors: Optional[Dict[str, List[Any]]] = None,
src/rsgrpo/tests/test_dataproto.py:26
↓ 20 callersFunctioncreate_levit
(variant, cfg_variant=None, pretrained=False, distilled=True, **kwargs)
timm_modified/timm/models/levit.py:746
↓ 20 callersFunctionregister_model_deprecations
(module_name: str, deprecation_map: Dict[str, Optional[str]])
timm_modified/timm/models/_registry.py:149
↓ 20 callersFunctionresolve_act_layer
(kwargs, default='relu')
timm_modified/timm/models/_efficientnet_builder.py:56
↓ 19 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/hgnet.py:638
↓ 19 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/swin_transformer.py:679
↓ 19 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/efficientvit_mit.py:897
↓ 19 callersFunctioncreate_model
Create a model. Lookup model's entrypoint function and pass relevant args to create a new model. <Tip> **kwargs will be passed throu
timm_modified/timm/models/_factory.py:38
↓ 19 callersMethodinterpolate
Feature map interpolation.
timm_modified/timm/models/coat.py:296
↓ 19 callersFunctionndgrid
generate N-D grid in dimension order. The ndgrid function is like meshgrid except that the order of the first two input arguments are switched.
timm_modified/timm/layers/grid.py:6
↓ 18 callersFunction_create_effnet
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/efficientnet.py:270
↓ 18 callersFunction_create_metaformer
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/metaformer.py:656
↓ 18 callersMethodchunk
Split the batch among dim=0 into chunks. The meta_info is passed to each DataProto after split. Args: chunks (int): the number of
src/rsgrpo/verl/protocol.py:543
↓ 18 callersMethodstep
Performs a single optimization step.
timm_modified/timm/optim/adan.py:72
↓ 17 callersMethoddecode
This method forwards all its arguments to SiglipTokenizer's [`~PreTrainedTokenizer.decode`]. Please refer to the docstring of this me
src/openmatch/modeling/modeling_siglip/processing_siglip.py:133
↓ 17 callersFunctionget_norm_layer
(norm_layer)
timm_modified/timm/layers/create_norm.py:36
↓ 16 callersFunction_build_params_dict
(weight, bias, **kwargs)
timm_modified/tests/test_optim.py:272
↓ 16 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/vision_transformer_hybrid.py:163
↓ 16 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/mobilevit.py:563
↓ 16 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/swin_transformer_v2_cr.py:782
↓ 16 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/regnet.py:681
↓ 16 callersFunction_create_deit
(variant, pretrained=False, distilled=False, **kwargs)
timm_modified/timm/models/deit.py:121
↓ 16 callersFunction_create_eva
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/eva.py:665
↓ 16 callersFunction_create_swin_transformer_v2_cr
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/swin_transformer_v2_cr.py:769
↓ 16 callersFunction_test_rosenbrock
(constructor, scheduler_constructors=None)
timm_modified/tests/test_optim.py:224
↓ 16 callersFunctionget_attn
(attn_type)
timm_modified/timm/layers/create_attn.py:21
↓ 16 callersMethodupdate
(self, val, n=1)
timm_modified/timm/utils/metrics.py:18
↓ 15 callersMethod__init__
( self, in_chs: int, out_chs: int, kernel_size: int = 3,
timm_modified/timm/models/maxxvit.py:1070
↓ 15 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/byoanet.py:272
next →1–100 of 5,024, ranked by callers