peal.sparse_dictionaries.interfaces¶
Base config and interface shared by every PEAL sparse dictionary.
A sparse dictionary (SAE, Matryoshka SAE, Procrustes/SVD, SpLICE, …) turns an
encoder activation vector into a sparse code over named components and back.
DiDAE edits a generator’s semantic latent along those components, and CFKD can
attach one to its generator via adaptor_config.sparse_dictionary. This module
holds the pydantic config every concrete dictionary config extends and the
abstract SparseDictionary API that sparse_dictionary_factory instantiates.
Classes
Abstract interface of a sparse dictionary. |
|
Common configuration fields of every sparse dictionary. |