MCPcopy Create free account

hub / github.com/cywinski/SAeUron / functions

Functions337 in github.com/cywinski/SAeUron

↓ 1 callersMethodinit_opt
(self)
Diffusion-MU-Attack/src/attackers/text_grad_.py:72
↓ 1 callersMethodinit_opt
(self)
Diffusion-MU-Attack/src/attackers/hard_prompt_.py:30
↓ 1 callersMethodinit_task
(self, task)
Diffusion-MU-Attack/src/execs/attack.py:178
↓ 1 callersFunctionload_datasets_from_dirs
Load and concatenate datasets from multiple directories. Args: base_dirs (list[str]): List of base directory paths containing the da
scripts/train.py:33
↓ 1 callersMethodload_from_hub
( name: str, hookpoint: str | None = None, device: str | torch.device = "cpu",
SAE/sae.py:118
↓ 1 callersMethodload_many
Load SAEs for multiple hookpoints on a single model and dataset.
SAE/sae.py:84
↓ 1 callersFunctionload_sae
(sae_checkpoint, hookpoint, device)
scripts/sample_unlearning_cls_distr.py:42
↓ 1 callersFunctionload_sae
(sae_checkpoint, hookpoint, device)
scripts/sweep_cls_distr.py:42
↓ 1 callersFunctionload_sae
(sae_checkpoint, hookpoint, device)
scripts/sample_unlearning_distr.py:42
↓ 1 callersFunctionload_sae
(sae_checkpoint, hookpoint, device)
scripts/sample_unlearning_sequential_distr.py:39
↓ 1 callersFunctionload_style_generated_images
Loads all .png or .jpg images from a given path Warnings: Expects all images to be of same dtype and shape. Args: path: relative path
scripts/fid_unlearncanvas.py:260
↓ 1 callersFunctionload_style_ref_images
Loads all .png or .jpg images from a given path Warnings: Expects all images to be of same dtype and shape. Args: path: relative path
scripts/fid_unlearncanvas.py:310
↓ 1 callersMethodlog
(self, data: dict)
Diffusion-MU-Attack/src/loggers/none_.py:7
↓ 1 callersMethodlog_disk_io
Log disk I/O statistics using psutil and send them to wandb.
SAE/trainer.py:574
↓ 1 callersMethodmake_config
(self, quiet=False)
Diffusion-MU-Attack/src/execs/attack.py:151
↓ 1 callersMethodmaybe_all_cat
Concatenate a tensor across all processes.
SAE/trainer.py:487
↓ 1 callersMethodpostprocess_output
(self, x_reconstruct, x_mean, x_std)
SAE/sae.py:281
↓ 1 callersFunctionpreprocess_image
Resizes and shifts the dynamic range of image to 0-1 Args: im: np.array, shape: (H, W, 3), dtype: float32 between 0-1 or np.uint8 Retu
scripts/fid_unlearncanvas.py:188
↓ 1 callersMethodrandom_token
(self,task)
Diffusion-MU-Attack/src/attackers/random_.py:14
↓ 1 callersMethodremove_gradient_parallel_to_decoder_directions
(self)
SAE/sae.py:366
↓ 1 callersFunctionrun
()
scripts/train.py:66
↓ 1 callersFunctionrun
()
scripts/collect_activations_unlearn_canvas.py:15
↓ 1 callersFunctionrun_scripts_sequentially
( classes_to_unlearn, input_dir, output_dir, style_ckpt, class_ckpt, batch_size )
scripts/run_acc_all_cls.py:8
↓ 1 callersFunctionrun_scripts_sequentially
(p1, p2_base, output_path_base, forget_themes)
scripts/run_fid_all.py:10
↓ 1 callersFunctionrun_scripts_sequentially
( themes_to_unlearn, input_dir, output_dir, style_ckpt, class_ckpt, batch_size )
scripts/run_acc_all_style.py:8
↓ 1 callersFunctionrun_scripts_sequentially
( themes_to_unlearn, input_dir, output_dir, style_ckpt, class_ckpt, batch_size )
scripts/run_acc_all_style_sequential.py:6
↓ 1 callersFunctionrun_scripts_sequentially
( classes_to_unlearn, multiplier, percentile, input_dir_base, output_dir_base, class_c
scripts/run_acc_all_cls_sweep.py:8
↓ 1 callersMethodsampling
( self, input_ids, text_embeddings, batch_size=1, seed=0, heig
Diffusion-MU-Attack/src/tasks/classifier_.py:355
↓ 1 callersMethodscatter_hiddens
Scatter & gather the hidden states across ranks.
SAE/trainer.py:512
↓ 1 callersFunctionseed_everything
(seed)
scripts/sample_unlearning_cls_distr.py:35
↓ 1 callersFunctionseed_everything
(seed)
scripts/sweep_cls_distr.py:35
↓ 1 callersFunctionseed_everything
(seed)
scripts/sample_unlearning_distr.py:35
↓ 1 callersFunctionseed_everything
(seed)
scripts/sample_unlearning_sequential_distr.py:32
↓ 1 callersMethodset_section
(self, section)
Diffusion-MU-Attack/fastargs/decorators.py:12
↓ 1 callersMethodsetup_seed
(self, seed: int)
Diffusion-MU-Attack/src/execs/attack.py:167
↓ 1 callersMethodsplit_embd
(self, input_embed, orig_prompt_len)
Diffusion-MU-Attack/src/attackers/text_grad_.py:77
↓ 1 callersMethodsplit_embd
(self,input_embed,orig_prompt_len)
Diffusion-MU-Attack/src/attackers/hard_prompt_.py:33
↓ 1 callersMethodsplit_id
(self, input_ids, orig_prompt_len)
Diffusion-MU-Attack/src/attackers/text_grad_.py:88
↓ 1 callersMethodsplit_id
(self,input_ids,orig_prompt_len)
Diffusion-MU-Attack/src/attackers/random_.py:24
↓ 1 callersMethodsplit_id
(self,input_ids,orig_prompt_len)
Diffusion-MU-Attack/src/attackers/hard_prompt_.py:40
↓ 1 callersMethodsummary
(self, target=sys.stderr)
Diffusion-MU-Attack/fastargs/config.py:262
↓ 1 callersFunctiontriton_coo_sparse_dense_matmul
( coo_indices: torch.Tensor, coo_values: torch.Tensor, dense: torch.Tensor, N: int, BLOCK_
SAE/kernels.py:53
↓ 1 callersFunctiontriton_dense_dense_sparseout_matmul
dense1: shape (A, B) dense2: shape (B, N) at_indices: shape (A, K) out values: shape (A, K) calculates dense1 @ dense2 only for t
SAE/kernels.py:286
↓ 1 callersFunctiontriton_sparse_dense_matmul
calculates sparse @ dense (i.e reducing along the uncollated dimension of sparse) dense must be contiguous along dim 0 (in other words, dense
SAE/kernels.py:177
↓ 1 callersFunctiontriton_sparse_transpose_dense_matmul
calculates sparse.T @ dense (i.e reducing along the collated dimension of sparse) dense must be contiguous along dim 0 (in other words, dense
SAE/kernels.py:10
↓ 1 callersMethodtruncate
(self, epoch: int)
Diffusion-MU-Attack/src/loggers/base.py:15
↓ 1 callersMethodvalidate
(self, value)
Diffusion-MU-Attack/fastargs/param.py:33
Method__call__
(self, module, input, output)
utils/hooks.py:15
Method__call__
(self, module, input, output)
utils/hooks.py:115
Method__call__
(self, module, input, output)
utils/hooks.py:194
Method__call__
(self, *args, **kwargs)
SAE/hooked_sd_noised_pipeline.py:672
Method__call__
(self, module, input, output)
Diffusion-MU-Attack/src/tasks/classifier_.py:94
Method__call__
(self, *args, **kwargs)
Diffusion-MU-Attack/fastargs/decorators.py:20
Method__getattr__
(self, name)
SAE/hooked_scheduler.py:34
Method__getattr__
(self, name)
SAE/hooked_sd_noised_pipeline.py:666
Method__getitem__
(self, idx)
Diffusion-MU-Attack/src/attackers/utils/datasets.py:47
Method__getitem__
(self, idx)
Diffusion-MU-Attack/src/tasks/utils/datasets.py:72
Method__getitem__
(self, idx)
Diffusion-MU-Attack/src/tasks/utils/datasets.py:117
Method__getitem__
(self, path)
Diffusion-MU-Attack/src/loggers/json_/parser.py:22
Method__getitem__
(self, path)
Diffusion-MU-Attack/fastargs/config.py:161
Method__getitem__
(self, idx)
scripts/accuracy_unlearncanvas_fast.py:97
Method__getitem__
(self, idx)
scripts/accuracy_unlearncanvas_cls_fast.py:97
Method__getitem__
(self, idx)
scripts/accuracy_unlearncanvas_cls_sweep_fast.py:77
Method__init__
( self, sae, )
utils/hooks.py:8
Method__init__
( self, concept_to_unlearn, percentile, multiplier, feature_importance
utils/hooks.py:55
Method__init__
Simple hook that multiplies specific SAE feature activations by a scalar. Args: sae: The trained SAE model feature_id
utils/hooks.py:176
Method__init__
(self, cfg: CacheActivationsRunnerConfig)
SAE/cache_activations_runner_unlearn_canvas.py:33
Method__init__
(self, scheduler)
SAE/hooked_scheduler.py:9
Method__init__
( self, d_in: int, cfg: SaeConfig, device: str | torch.device = "cpu",
SAE/sae.py:52
Method__init__
(self, pipe: parent_cls, use_hooked_scheduler: bool = False)
SAE/hooked_sd_noised_pipeline.py:36
Method__init__
(self, cfg: TrainConfig, dataset_dict: dict[str, Dataset])
SAE/trainer.py:24
Method__init__
(self)
Diffusion-MU-Attack/src/execs/attack.py:143
Method__init__
(self, lr=1e-2, weight_decay=0.1, rand_init=False, **kwargs)
Diffusion-MU-Attack/src/attackers/text_grad_.py:9
Method__init__
( self, iteration, seed_iteration, insertion_l
Diffusion-MU-Attack/src/attackers/base.py:3
Method__init__
( self, dataset_path, **kwargs )
Diffusion-MU-Attack/src/attackers/no_attack_.py:7
Method__init__
( self, **kwargs )
Diffusion-MU-Attack/src/attackers/random_.py:7
Method__init__
( self, **kwargs )
Diffusion-MU-Attack/src/attackers/seed_search_.py:7
Method__init__
( self, lr=1e-2, weight_decay=0.1, num_data =
Diffusion-MU-Attack/src/attackers/hard_prompt_.py:8
Method__init__
(self, root_dir, transform=None)
Diffusion-MU-Attack/src/attackers/utils/datasets.py:34
Method__init__
( self, styles_to_ablate, percentile, multiplier, feature_importance_f
Diffusion-MU-Attack/src/tasks/classifier_.py:34
Method__init__
( self, concept, sld, sld_concept, negative_prompt, model_name
Diffusion-MU-Attack/src/tasks/classifier_.py:179
Method__init__
(self, root_dir, transform=None)
Diffusion-MU-Attack/src/tasks/utils/datasets.py:44
Method__init__
(self, root_dir, concept, class_name, transform=None)
Diffusion-MU-Attack/src/tasks/utils/datasets.py:99
Method__init__
(self, text_encoder)
Diffusion-MU-Attack/src/tasks/utils/text_encoder.py:36
Method__init__
(self, **kwargs)
Diffusion-MU-Attack/src/loggers/none_.py:4
Method__init__
(self)
Diffusion-MU-Attack/src/loggers/base.py:7
Method__init__
(self, root, name, config, project)
Diffusion-MU-Attack/src/loggers/wandb_.py:9
Method__init__
(self, path)
Diffusion-MU-Attack/src/loggers/json_/parser.py:7
Method__init__
(self, root, name, config)
Diffusion-MU-Attack/src/loggers/json_/main.py:9
Method__init__
(self)
Diffusion-MU-Attack/fastargs/config.py:18
Method__init__
(self, dictionary, **kwargs)
Diffusion-MU-Attack/fastargs/dict_utils.py:7
Method__init__
(self, checker, desc='', default=None, required=False, is_flag=False)
Diffusion-MU-Attack/fastargs/param.py:5
Method__init__
(self, func)
Diffusion-MU-Attack/fastargs/decorators.py:5
Method__init__
(self, ns, desc=None, config_descriptor=None)
Diffusion-MU-Attack/fastargs/section.py:4
Method__init__
(self, *checkers)
Diffusion-MU-Attack/fastargs/validation.py:82
Method__init__
(self, min=float('-inf'), max=float('+inf'))
Diffusion-MU-Attack/fastargs/validation.py:96
Method__init__
(self, possible_values)
Diffusion-MU-Attack/fastargs/validation.py:110
Method__init__
(self)
Diffusion-MU-Attack/fastargs/validation.py:123
Method__init__
(self)
Diffusion-MU-Attack/fastargs/validation.py:134
Method__init__
(self, create_if_non_exist = False)
Diffusion-MU-Attack/fastargs/validation.py:158
← previousnext →101–200 of 337, ranked by callers