Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IBM/activation-steering
/ types & classes
Types & classes
8 in github.com/IBM/activation-steering
⨍
Functions
52
◇
Types & classes
8
↓ 5 callers
Class
LogConfig
Configuration class for logging settings. Attributes: enabled (bool): Whether logging is enabled. file_output (bool): Whethe
activation_steering/config.py:5
↓ 4 callers
Class
ContrastivePair
A dataclass representing a pair of contrasting strings. Attributes: positive: The positive string in the pair. negative: The
activation_steering/utils.py:38
↓ 2 callers
Class
LayerControlParams
activation_steering/utils.py:13
↓ 1 callers
Class
LeashLayer
A wrapper layer that implements conditional activation steering for language models. This layer can be applied to existing model layers to e
activation_steering/leash_layer.py:8
Class
GlobalConfig
Singleton class for global configuration settings. Class Attributes: console (Console): Rich console instance for pretty printing.
activation_steering/config.py:25
Class
MalleableModel
MalleableModel implements conditional activation steering for language models. This class wraps a pre-trained language model and provides me
activation_steering/malleable_model.py:24
Class
SteeringDataset
Create a formatted dataset for steering a language model. This class takes a list of examples (either contrastive messages or contrastive te
activation_steering/steering_dataset.py:8
Class
SteeringVector
A dataclass representing a steering vector used for guiding the language model. Attributes: model_type: The type of the model this v
activation_steering/steering_vector.py:21