MCPcopy Create free account

hub / github.com/OpenBMB/VisRAG / functions

Functions5,024 in github.com/OpenBMB/VisRAG

↓ 3 callersMethodlog
(self, samples: List[Tuple[str, str, str, float]], step: int)
src/rsgrpo/verl/utils/logger/gen_logger.py:34
↓ 3 callersFunctionmanual_var
(x, dim: Union[int, Sequence[int]], diff_sqm: bool = False)
timm_modified/timm/layers/evo_norm.py:52
↓ 3 callersFunctionmasked_mean
Compute mean of tensor with a masked values.
src/rsgrpo/verl/utils/torch_functional.py:72
↓ 3 callersFunctionnatural_key
See http://www.codinghorror.com/blog/archives/001018.html
timm_modified/timm/utils/misc.py:10
↓ 3 callersFunctionnchw_to
(x: torch.Tensor, fmt: Format)
timm_modified/timm/layers/format.py:41
↓ 3 callersFunctionoverride_kwargs
Override model level attn/self-attn/block kwargs w/ block level NOTE: kwargs are NOT merged across levels, block_kwargs will fully replace model
timm_modified/timm/models/byobnet.py:1019
↓ 3 callersFunctionpad_sequence_to_length
Pad a nD tensors in the last dim to max_seq_len.
src/rsgrpo/verl/utils/torch_functional.py:140
↓ 3 callersMethodprocess_one
(self, example)
src/openmatch/dataset/inference_dataset.py:203
↓ 3 callersMethodrename
Note that this function only rename the key in the batch
src/rsgrpo/verl/protocol.py:454
↓ 3 callersFunctionreparameterize_model
(model: torch.nn.Module, inplace=False)
timm_modified/timm/utils/model.py:225
↓ 3 callersFunctionresize_rel_pos_bias_table
Resize relative position bias table using more advanced interpolation. Modified from code in Microsoft Unilm (https://github.com/microsoft/unilm
timm_modified/timm/layers/pos_embed_rel.py:152
↓ 3 callersFunctionrestore_dynamic_batch
Restore a batch from dynamic batching. Args: data (torch.Tensor): The input data. batch_idx_list (List[List[int]]): The list
src/rsgrpo/verl/utils/seqlen_balancing.py:317
↓ 3 callersFunctionset_fast_norm
(enable=True)
timm_modified/timm/layers/fast_norm.py:35
↓ 3 callersMethodset_grad_checkpointing
(self, enable=True)
timm_modified/timm/models/dla.py:349
↓ 3 callersFunctionset_jit_fuser
(fuser)
timm_modified/timm/utils/jit.py:23
↓ 3 callersFunctionsetup_default_logging
(default_level=logging.INFO, log_path='')
timm_modified/timm/utils/log.py:19
↓ 3 callersMethodswitch_to_deploy
(self)
timm_modified/timm/models/repghost.py:110
↓ 3 callersFunctionulysses_pad_and_slice_inputs
Pad and slice input_ids to be divisible by sp_size Pad position_ids to be divisible by sp_size. Note both input_ids_rmpad and position_i
src/rsgrpo/verl/utils/ulysses.py:294
↓ 2 callersMethod__init__
(self, model_name, device='cuda', profiler='', **kwargs)
timm_modified/benchmark.py:507
↓ 2 callersMethod__init__
(self, model, decay=0.9999, device='', resume='')
timm_modified/timm/utils/model_ema.py:38
↓ 2 callersMethod__init__
(self, in_channels, use_scale=True, rd_ratio=1/8, rd_channels=None, rd_divisor=8, **kwargs)
timm_modified/timm/layers/non_local_attn.py:23
↓ 2 callersMethod__init__
( self, channels, rd_ratio=1. / 16, rd_channels=None, rd_divisor=8, add_maxpool=False,
timm_modified/timm/layers/squeeze_excite.py:28
↓ 2 callersMethod__init__
(self, embed_len_decoder: int)
timm_modified/timm/layers/ml_decoder.py:93
↓ 2 callersMethod__init__
( self, window_size, num_heads=8, hidden_dim=128,
timm_modified/timm/layers/pos_embed_rel.py:338
↓ 2 callersMethod__init__
( self, max_res: int = 224, num_bands: int = 64, concat_grid=T
timm_modified/timm/layers/pos_embed_sincos.py:152
↓ 2 callersMethod__init__
(self, block_size=4)
timm_modified/timm/layers/space_to_depth.py:8
↓ 2 callersMethod__init__
(self, in_channels, out_channels, reps, strides=1, start_with_relu=True, grow_first=True)
timm_modified/timm/models/xception.py:50
↓ 2 callersMethod__init__
( self, layers, in_chans=3, num_classes=1000, widt
timm_modified/timm/models/tresnet.py:121
↓ 2 callersMethod__init__
( self, cfgs, num_classes=1000, width=1.0, in_chan
timm_modified/timm/models/repghost.py:206
↓ 2 callersMethod__init__
Args: block (nn.Module): class for the residual block. Options are BasicBlock, Bottleneck. layers (List[int]) : numbe
timm_modified/timm/models/resnet.py:394
↓ 2 callersMethod__init__
( self, lm_q: PreTrainedModel, feature: str = "last_hidden_state", pooling: st
src/openmatch/modeling/dense_retrieval_model.py:47
↓ 2 callersMethod__init__
(self, text_config=None, vision_config=None, **kwargs)
src/openmatch/modeling/modeling_siglip/configuration_siglip.py:280
↓ 2 callersMethod_add_eos_if_not_present
Do not add eos again if user already added it.
src/openmatch/modeling/modeling_siglip/tokenization_siglip.py:202
↓ 2 callersMethod_add_noise
(self, lrs, t)
timm_modified/timm/scheduler/scheduler.py:100
↓ 2 callersFunction_add_samples
(info, fn)
timm_modified/timm/data/readers/reader_image_in_tar.py:129
↓ 2 callersFunction_add_submodule
(module, name, submodule)
timm_modified/timm/utils/model.py:147
↓ 2 callersMethod_attn
(self, q, k, v)
timm_modified/timm/models/efficientvit_mit.py:328
↓ 2 callersFunction_backward
(_loss)
timm_modified/train.py:1012
↓ 2 callersMethod_build_messages
(self, example: Dict[str, Any])
src/rsgrpo/verl/utils/dataset.py:153
↓ 2 callersFunction_calc
(src, dst)
timm_modified/timm/layers/pos_embed_rel.py:204
↓ 2 callersMethod_calc_window_shift
(self, target_window_size)
timm_modified/timm/models/swin_transformer_v2_cr.py:286
↓ 2 callersMethod_calculate_noise
(self, t)
timm_modified/timm/scheduler/scheduler.py:116
↓ 2 callersFunction_canonical_mask
( mask: Optional[Tensor], mask_name: str, other_type: Optional[DType], other_n
src/openmatch/modeling/weighted_selection/MiniCPMV20/resampler.py:683
↓ 2 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/visformer.py:448
↓ 2 callersFunction_cfg
(url='', **kwargs)
timm_modified/timm/models/tnt.py:24
↓ 2 callersMethod_collect
(self, x)
timm_modified/timm/models/_features.py:226
↓ 2 callersFunction_convert_openai_clip
( state_dict: Dict[str, torch.Tensor], model: VisionTransformer, prefix: str = 'visual
timm_modified/timm/models/vision_transformer.py:929
↓ 2 callersFunction_create_fc
(num_features, num_classes, use_conv=False)
timm_modified/timm/layers/classifier.py:39
↓ 2 callersFunction_create_tnt
(variant, pretrained=False, **kwargs)
timm_modified/timm/models/tnt.py:346
↓ 2 callersFunction_create_visformer
(variant, pretrained=False, default_cfg=None, **kwargs)
timm_modified/timm/models/visformer.py:441
↓ 2 callersFunction_decode_and_center_crop
Crops to center of image with padding then scales image_size.
timm_modified/timm/data/tf_preprocessing.py:114
↓ 2 callersMethod_erase
(self, img, chan, img_h, img_w, dtype)
timm_modified/timm/data/random_erasing.py:78
↓ 2 callersFunction_expand_filter
expand a 'base_filter' to 'base_filter.*' if no tag portion
timm_modified/timm/models/_registry.py:176
↓ 2 callersMethod_filename
(self, index, basename=False, absolute=False)
timm_modified/timm/data/readers/reader.py:9
↓ 2 callersFunction_forward
()
timm_modified/train.py:1004
↓ 2 callersMethod_forward_micro_batch
(self, micro_batch: Dict[str, torch.Tensor])
src/rsgrpo/verl/workers/critic/dp_critic.py:54
↓ 2 callersMethod_forward_micro_batch
Returns: log_probs: # (bs, response_len)
src/rsgrpo/verl/workers/actor/dp_actor.py:68
↓ 2 callersFunction_freeze_unfreeze
Freeze or unfreeze parameters of the specified modules and those of all their hierarchical descendants. This is done in place. Args:
timm_modified/timm/utils/model.py:106
↓ 2 callersMethod_fuse_bn
Method to fuse batchnorm layer with conv layer. Args: conv: Convolutional kernel weights. bn: Batchnorm 2d layer.
timm_modified/timm/models/fastvit.py:398
↓ 2 callersMethod_fuse_bn_tensor
(conv, bn, in_channels=None, device=None)
timm_modified/timm/models/repghost.py:88
↓ 2 callersFunction_gen_efficientnetv2_l
Creates an EfficientNet-V2 Large model Ref impl: https://github.com/google/automl/tree/master/efficientnetv2 Paper: `EfficientNetV2: Smaller
timm_modified/timm/models/efficientnet.py:742
↓ 2 callersFunction_gen_efficientnetv2_m
Creates an EfficientNet-V2 Medium model Ref impl: https://github.com/google/automl/tree/master/efficientnetv2 Paper: `EfficientNetV2: Smalle
timm_modified/timm/models/efficientnet.py:712
↓ 2 callersFunction_gen_efficientnetv2_xl
Creates an EfficientNet-V2 Xtra-Large model Ref impl: https://github.com/google/automl/tree/master/efficientnetv2 Paper: `EfficientNetV2: Sm
timm_modified/timm/models/efficientnet.py:772
↓ 2 callersFunction_gen_mixnet_s
Creates a MixNet Small model. Ref impl: https://github.com/tensorflow/tpu/tree/master/models/official/mnasnet/mixnet Paper: https://arxiv.org
timm_modified/timm/models/efficientnet.py:802
↓ 2 callersFunction_get_input_embeds
( model: "Qwen2VLModel", input_ids: torch.LongTensor, attention_mask: Optional[torch.Tensor] = Non
src/rsgrpo/verl/models/transformers/qwen2_vl.py:199
↓ 2 callersMethod_get_rel_pos_bias
(self)
timm_modified/timm/models/beit.py:128
↓ 2 callersMethod_get_rel_pos_bias
(self)
timm_modified/timm/models/swin_transformer.py:142
↓ 2 callersFunction_get_return_layers
(feature_info, out_map)
timm_modified/timm/models/_features.py:159
↓ 2 callersMethod_get_values
(self, t: int, on_epoch: bool = True)
timm_modified/timm/scheduler/scheduler.py:71
↓ 2 callersFunction_info_convert
(dict_info)
timm_modified/timm/data/readers/reader_wds.py:76
↓ 2 callersMethod_init_dist_mesh
(self, config: Union[ActorConfig, CriticConfig], role: Literal["actor", "critic"])
src/rsgrpo/verl/workers/fsdp_workers.py:108
↓ 2 callersMethod_init_input
(self)
timm_modified/benchmark.py:297
↓ 2 callersMethod_is_apply_noise
Return True if scheduler in noise range.
timm_modified/timm/scheduler/scheduler.py:106
↓ 2 callersMethod_lazy_init
Lazily initialize worker (in worker processes)
timm_modified/timm/data/readers/reader_hfids.py:121
↓ 2 callersMethod_lazy_init
Lazily initialize worker (in worker processes)
timm_modified/timm/data/readers/reader_wds.py:350
↓ 2 callersMethod_lazy_init
Lazily initialize the dataset. This is necessary to init the Tensorflow dataset pipeline in the (dataloader) process that will be us
timm_modified/timm/data/readers/reader_tfds.py:196
↓ 2 callersMethod_make_attention_mask
Method generates the attention mask used in shift case.
timm_modified/timm/models/swin_transformer_v2_cr.py:291
↓ 2 callersMethod_make_conv_level
(self, inplanes, planes, convs, stride=1, dilation=1)
timm_modified/timm/models/dla.py:322
↓ 2 callersMethod_make_head
(self, pre_stage_channels, incre_only=False, conv_bias=True)
timm_modified/timm/models/hrnet.py:613
↓ 2 callersMethod_make_layer
(self, block_type, inplanes, planes, block_types, stride=1)
timm_modified/timm/models/hrnet.py:678
↓ 2 callersMethod_make_pair_wise_relative_positions
Method initializes the pair-wise relative positions to compute the positional biases.
timm_modified/timm/models/swin_transformer_v2_cr.py:141
↓ 2 callersFunction_module_list
(module, flatten_sequential=False)
timm_modified/timm/models/_features.py:135
↓ 2 callersMethod_normalize
(self, x)
timm_modified/timm/data/dataset.py:188
↓ 2 callersMethod_num_samples_per_worker
(self)
timm_modified/timm/data/readers/reader_hfids.py:154
↓ 2 callersMethod_num_samples_per_worker
(self)
timm_modified/timm/data/readers/reader_wds.py:411
↓ 2 callersMethod_num_samples_per_worker
(self)
timm_modified/timm/data/readers/reader_tfds.py:278
↓ 2 callersFunction_pad_tensor
(x: Tensor, dim: int, padding_size: int)
src/rsgrpo/verl/utils/ulysses.py:105
↓ 2 callersMethod_params_per_batch
(self)
timm_modified/timm/data/mixup.py:141
↓ 2 callersMethod_pos_embed
(self, x: torch.Tensor)
timm_modified/timm/models/vision_transformer.py:600
↓ 2 callersMethod_process_list
( # pad input tensors self, tokenizer, data_list: List[str], max_inp_length: Optional[int] = None, pad
src/openmatch/modeling/modeling_minicpmv/modeling_minicpmv.py:202
↓ 2 callersFunction_resolve_pretrained_source
(pretrained_cfg)
timm_modified/timm/models/_builder.py:31
↓ 2 callersFunction_retrieve_one_shard
( corpus_shard_path: str, encoded_queries_tensor: torch.Tensor, topk: int, device: str, )
src/openmatch/retriever/dense_retriever.py:13
↓ 2 callersMethod_rms
(tensor)
timm_modified/timm/optim/adafactor.py:71
↓ 2 callersMethod_save
(self, save_path, epoch, metric=None)
timm_modified/timm/utils/checkpoint_saver.py:99
↓ 2 callersMethod_save_checkpoint
(self)
src/rsgrpo/verl/trainer/ray_trainer.py:312
↓ 2 callersFunction_scale_stage_depth
Per-stage depth scaling Scales the block repeats in each stage. This depth scaling impl maintains compatibility with the EfficientNet scaling
timm_modified/timm/models/_efficientnet_builder.py:195
↓ 2 callersFunction_search_split
(root, split)
timm_modified/timm/data/dataset_factory.py:43
↓ 2 callersMethod_set_cos_sin_cache
(self, seq_len, device, dtype)
src/openmatch/modeling/weighted_selection/MiniCPMV20/modeling_minicpm.py:162
↓ 2 callersMethod_set_cos_sin_cache
(self, seq_len, device, dtype)
src/openmatch/modeling/modeling_minicpmv/modeling_minicpm.py:162
↓ 2 callersMethod_set_transforms
(self, x)
timm_modified/timm/data/dataset.py:174
← previousnext →501–600 of 5,024, ranked by callers