peal.sparse_dictionaries.batch_topk.BatchTopKSAEConfig¶
- class peal.sparse_dictionaries.batch_topk.BatchTopKSAEConfig[source]¶
Bases:
SparseDictionaryConfigConfig of
BatchTopKSAE.- Parameters:
n_components (
int) – Dictionary size (number of SAE latents).top_k (
int) – Number of active latents kept per batch on average (BatchTopK).lr (
float) – Adam learning rate and the L1 / orthogonality penalty weights.l1_coeff (
float) – Adam learning rate and the L1 / orthogonality penalty weights.orth_coeff (
float) – Adam learning rate and the L1 / orthogonality penalty weights.base_path (
str) – Directory for TensorBoard logs and evaluation outputs.weights_path (
str) – Wherefit_with_evaluationsaves the trained weights.device (
str) – Device the SAE trains and lives on.batch_size (
int) – Activation batch size and total number of activations processed;num_tokens // batch_sizeis the number of training steps.num_tokens (
int) – Activation batch size and total number of activations processed;num_tokens // batch_sizeis the number of training steps.n_batches_to_dead (
int,int,float) – Dead-latent detection window and the auxiliary loss that revives dead latents.top_k_aux (
int,int,float) – Dead-latent detection window and the auxiliary loss that revives dead latents.aux_penalty (
int,int,float) – Dead-latent detection window and the auxiliary loss that revives dead latents.input_unit_norm (
bool) – Whether the dependency normalises inputs to unit norm.eval_epoch_interval (
int) – Step interval of the (currently disabled) periodic F1 evaluation.cfg (
dict) – If non-empty, used verbatim as the dependency’s config instead of being assembled from the fields above.
Methods
Attributes