MCPcopy Create free account

hub / github.com/lingeringlight/START / functions

Functions223 in github.com/lingeringlight/START

↓ 60 callersFunctionprint
(*args, **kwargs)
utils.py:179
↓ 8 callersFunctionevaluate
(data_loader, model, device, amp_autocast)
engine_dg.py:100
↓ 7 callersMethodupdate
(self, **kwargs)
utils.py:85
↓ 6 callersMethod__init__
( self, d_model, d_state=16, # d_state="auto", # 20240109
models/vmamba.py:231
↓ 6 callersFunctionget_split_dataset_info_from_txt
(txt_path, domain, domain_label, val_percentage=None)
data/JigsawLoader.py:121
↓ 6 callersMethodstep
(self, hidden_states, conv_state, ssm_state)
models/mamba_simple.py:248
↓ 5 callersFunction_dataset_info
(txt_labels)
data/JigsawLoader.py:29
↓ 5 callersFunctionget_flops_einsum
(input_shapes, equation)
models/vmamba.py:61
↓ 5 callersFunctionselective_scan_fn
if return_last_state is True, returns (out, last_state) last_state has shape (batch, dim, dstate). Note that the gradient of the last state is
models/mamba_ssm/selective_scan_interface.py:79
↓ 4 callersMethoddt_init
(dt_rank, d_inner, dt_scale=1.0, dt_init="random", dt_min=0.001, dt_max=0.1, dt_init_floor=1e-4,
models/vmamba.py:340
↓ 4 callersFunctionget_split_domain_info_from_dir
(domain_path, dataset_name=None, val_percentage=None, domain_label=None)
data/JigsawLoader.py:53
↓ 4 callersFunctionget_val_transformer
(args)
data/data_helper.py:163
↓ 3 callersMethod__init__
(self, names, labels, jig_classes=100, img_transformer=None, tile_transformer=None, patches=True, bias_whole_i
data/JigsawLoader.py:165
↓ 3 callersMethod__iter__
(self)
data/samplers.py:145
↓ 3 callersFunctionfind_classes
(dir_name)
data/JigsawLoader.py:42
↓ 3 callersFunctionget_random_subset
:param names: list of names :param labels: list of labels :param percent: 0 < float < 1 :return:
data/JigsawLoader.py:11
↓ 3 callersFunctionis_dist_avail_and_initialized
()
utils.py:187
↓ 2 callersMethod__init__
Simple block wrapping a mixer class with LayerNorm/RMSNorm and residual connection" This Block has a slightly different structure co
models_mamba.py:68
↓ 2 callersMethod_reparameterize
(self, mu, std)
perturb_style/DSU.py:21
↓ 2 callersFunctionget_train_transformers
(args)
data/data_helper.py:140
↓ 2 callersMethodlog_every
(self, iterable, print_freq, header=None)
utils.py:115
↓ 2 callersFunctionmamba_inner_fn
( xz, conv1d_weight, conv1d_bias, x_proj_weight, delta_proj_weight, out_proj_weight, out_proj_
models/mamba_ssm/selective_scan_interface.py:648
↓ 2 callersFunctionmamba_inner_fn_no_out_proj
( xz, conv1d_weight, conv1d_bias, x_proj_weight, delta_proj_weight, A, B=None, C=None, D=None,
models/mamba_ssm/selective_scan_interface.py:670
↓ 2 callersFunctionnew_data_aug_generator
(args = None)
augment.py:95
↓ 2 callersMethodset_epoch
(self, epoch)
samplers.py:63
↓ 2 callersMethodsqrtvar
(self, x)
perturb_style/DSU.py:25
↓ 2 callersMethodsynchronize_between_processes
(self)
utils.py:108
↓ 2 callersFunctiontrain_one_epoch
(model: torch.nn.Module, criterion: DistillationLoss, data_loader: Iterable, optimizer: to
engine_dg.py:19
↓ 2 callersMethodupdate
(self, value, n=1)
utils.py:31
↓ 1 callersMethodA_log_init
(d_state, d_inner, copies=1, device=None, merge=True)
models/vmamba.py:368
↓ 1 callersMethodD_init
(d_inner, copies=1, device=None, merge=True)
models/vmamba.py:385
↓ 1 callersMethod__init__
(self, p=0.5, eps=1e-6, mask_size=0.5, factor=0.8, mask_or_model=0)
perturb_style/ALOFT.py:15
↓ 1 callersMethod__init__
( self, d_model, d_state=16, d_conv=4, expand=2, dt_rank="auto
models/mamba_simple.py:35
↓ 1 callersMethod__init__
( self, d_model, d_state=16, d_conv=4, expand=2, dt_rank="auto
models/mamba_ssm/mamba_simple_vim.py:42
↓ 1 callersMethod__iter__
(self)
data/samplers.py:91
↓ 1 callersMethod__iter__
(self)
data/samplers.py:199
↓ 1 callersMethod__retrieve_permutations
(self, classes)
data/JigsawLoader.py:220
↓ 1 callersMethod_get_states_from_cache
(self, inference_params, batch_size, initialize_states=False)
models/mamba_simple.py:308
↓ 1 callersMethod_get_states_from_cache
(self, inference_params, batch_size, initialize_states=False)
models/mamba_ssm/mamba_simple_vim.py:388
↓ 1 callersMethodadd_meter
(self, name, meter)
utils.py:112
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
models_mamba.py:140
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
models/mamba_simple.py:295
↓ 1 callersMethodallocate_inference_cache
(self, batch_size, max_seqlen, dtype=None, **kwargs)
models/mamba_ssm/mamba_simple_vim.py:375
↓ 1 callersMethodbackward
(ctx, y: torch.Tensor)
models/csm_triton.py:203
↓ 1 callersFunctionbimamba_inner_fn
( xz, conv1d_weight, conv1d_bias, x_proj_weight, delta_proj_weight, out_proj_weight, out_proj_
models/mamba_ssm/selective_scan_interface.py:659
↓ 1 callersFunctionbuild_transform
(is_train, args)
datasets.py:78
↓ 1 callersFunctionbuild_transform
(is_train, args, infer_no_resize=False)
data/datasets.py:154
↓ 1 callersFunctioncreate_block
( d_model, ssm_cfg=None, norm_epsilon=1e-5, drop_path=0., rms_norm=False, residual_in_
models_mamba.py:144
↓ 1 callersFunctioncreate_folder
(folder_path)
main_dg.py:47
↓ 1 callersFunctioncreate_folder
(folder_path)
text_complexity.py:49
↓ 1 callersMethodcumsum
(sequence)
data/concat_dataset.py:22
↓ 1 callersMethodforward_backbone
(self, x)
models/vmamba.py:803
↓ 1 callersMethodforward_features
(self, x, inference_params=None, if_random_cls_token_position=False, if_random_token_rank=False)
models_mamba.py:391
↓ 1 callersFunctionget_args_parser
()
main_dg.py:52
↓ 1 callersFunctionget_args_parser
()
text_complexity.py:54
↓ 1 callersFunctionget_domain
(name)
main_dg.py:299
↓ 1 callersFunctionget_domain
(name)
text_complexity.py:345
↓ 1 callersMethodget_image
(self, index)
data/JigsawLoader.py:193
↓ 1 callersFunctionget_rank
()
utils.py:201
↓ 1 callersMethodget_tile
(self, img, n)
data/JigsawLoader.py:185
↓ 1 callersFunctionis_main_process
()
utils.py:207
↓ 1 callersFunctionmain
(args)
main_dg.py:304
↓ 1 callersFunctionmain
(args)
text_complexity.py:350
↓ 1 callersMethodmake_grid
(x)
data/JigsawLoader.py:181
↓ 1 callersMethodmax
(self)
utils.py:64
↓ 1 callersMethodscores_to_mask
(self, scores, mask_prob=0.75)
perturb_style/SeqTokenAug.py:30
↓ 1 callersFunctionsetup_for_distributed
This function disables printing when not in master process
utils.py:172
↓ 1 callersMethodstep
(self, hidden_states, conv_state, ssm_state)
models/mamba_ssm/mamba_simple_vim.py:328
Method__call__
(self, img)
augment.py:38
Method__call__
(self, img)
augment.py:57
Method__call__
(self, img)
augment.py:71
Method__call__
(self, img)
augment.py:87
Method__getattr__
(self, attr)
utils.py:92
Method__getitem__
(self, idx)
data/data_helper.py:27
Method__getitem__
(self, item)
data/datasets.py:67
Method__getitem__
(self, index)
data/JigsawLoader.py:198
Method__getitem__
(self, index)
data/JigsawLoader.py:233
Method__getitem__
(self, index)
data/JigsawLoader.py:256
Method__getitem__
(self, index)
data/JigsawLoader.py:323
Method__getitem__
(self, index)
data/JigsawLoader.py:345
Method__getitem__
(self, idx)
data/concat_dataset.py:42
Method__init__
(self, dataset, num_replicas=None, rank=None, shuffle=True, num_repeats: int = 3)
samplers.py:16
Method__init__
(self, window_size=20, fmt=None)
utils.py:23
Method__init__
(self, delimiter="\t")
utils.py:81
Method__init__
(self, base_criterion: torch.nn.Module, teacher_model: torch.nn.Module, distillation_type: st
losses.py:15
Method__init__
(self, img_size=224, patch_size=16, stride=16, in_chans=3, embed_dim=768, norm_layer=None, flatten=True)
models_mamba.py:43
Method__init__
(self, img_size=224, patch_size=16, stride=16,
models_mamba.py:232
Method__init__
(self, root, train=True, year=2018, transform=None, target_transform=None, category='name', l
datasets.py:14
Method__init__
(self, p=0.1, radius_min=0.1, radius_max=2.)
augment.py:33
Method__init__
(self, p=0.2)
augment.py:54
Method__init__
(self, p=0.2)
augment.py:67
Method__init__
(self, p=0.2,activate_pred=False)
augment.py:83
Method__init__
(self, dataset, batch_size)
data/samplers.py:13
Method__init__
(self, data_source, batch_size, n_domain)
data/samplers.py:71
Method__init__
(self, data_source, batch_size)
data/samplers.py:125
Method__init__
(self, data_source, batch_size, n_ins)
data/samplers.py:179
Method__init__
(self, dataset, limit)
data/data_helper.py:22
Method__init__
(self, root, train=True, transform=None)
data/datasets.py:37
Method__init__
(self, root, train=True, year=2018, transform=None, target_transform=None, category='name', l
data/datasets.py:80
Method__init__
(self, *args, **xargs)
data/JigsawLoader.py:230
next →1–100 of 223, ranked by callers