Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/adamkarvonen/activation_oracles
/ functions
Functions
716 in github.com/adamkarvonen/activation_oracles
⨍
Functions
716
◇
Types & classes
122
Method
call_with_log_probs
( self, messages: ChatHistory, config: InferenceConfig, try_number: int = 1,
nl_probes/autointerp_detection_eval/caller.py:945
Method
call_with_log_probs
( self, messages: ChatHistory, config: InferenceConfig, try_number: int = 1 )
nl_probes/autointerp_detection_eval/caller.py:983
Method
call_with_schema
( self, messages: ChatHistory, schema: type[GenericBaseModel], config: Inferen
nl_probes/autointerp_detection_eval/caller.py:701
Method
call_with_schema
( self, messages: ChatHistory, schema: type[GenericBaseModel], config: Inferen
nl_probes/autointerp_detection_eval/caller.py:885
Method
call_with_schema
( self, messages: ChatHistory, schema: type[GenericBaseModel], config: Inferen
nl_probes/autointerp_detection_eval/caller.py:935
Method
call_with_schema
( self, messages: ChatHistory, schema: type[GenericBaseModel], config: Inferen
nl_probes/autointerp_detection_eval/caller.py:973
Function
collect_activations_lora_and_orig
( model: AutoModelForCausalLM, submodules: dict, inputs_BL: dict[str, torch.Tensor], act_layer
experiments/patchscopes/patchscopes_full_open_ended_eval.py:257
Function
collect_activations_lora_only
( model: AutoModelForCausalLM, submodules: dict, inputs_BL: dict[str, torch.Tensor], )
experiments/patchscopes/patchscopes_full_open_ended_eval.py:240
Function
compare_patchscope_responses
(response: str, target_response: str)
experiments/patchscopes/patchscopes_full_open_ended_eval.py:130
Method
copy_update
( self, temperature: float | NotGivenSentinel = NOT_GIVEN_SENTINEL, top_p: float | Not
nl_probes/autointerp_detection_eval/caller.py:303
Method
create_dataset
(self)
nl_probes/dataset_classes/classification.py:67
Method
create_dataset
(self)
nl_probes/dataset_classes/sae_training_data.py:198
Method
create_dataset
(self)
nl_probes/dataset_classes/sae_training_data.py:231
Method
create_dataset
(self)
nl_probes/dataset_classes/sae_training_data.py:263
Function
create_sae_train_test
(sae: SAEV2)
nl_probes/autointerp_detection_eval/eval_detection_v2.py:980
Function
create_sae_train_test_eval_data
(sae: SAEV2)
nl_probes/autointerp_detection_eval/local_eval.py:81
Function
create_sae_train_test_eval_data
(sae: SAEV2)
nl_probes/autointerp_detection_eval/lora_hf_eval.py:41
Function
do_extract
(pair: tuple[str, str])
experiments/final_paper_plots/plot_ssc_results.py:241
Function
do_extract
(pair: tuple[str, str])
experiments/final_paper_plots/plot_layer_comparison_secret_keeping.py:311
Function
do_extract
(pair: tuple[str, str])
experiments/final_paper_plots/plot_secret_keeping_results.py:363
Function
do_extract
(pair: tuple[str, str])
experiments/final_paper_plots/plot_model_progression_line_chart_shapes.py:617
Function
do_extract
(pair: tuple[str, str])
experiments/plotting/plot_ssc_results.py:193
Function
do_extract
(pair: tuple[str, str])
experiments/plotting/plot_secret_keeping_results.py:326
Function
download_hf_folder
Download a specific folder from a Hugging Face repo. Example: download_hf_folder("adamkarvonen/loras", "model_lora_Qwen_Qwen3-8B_evil
experiments/patchscopes/patchscopes_full_open_ended_eval.py:207
Method
explanation_text
(self)
nl_probes/autointerp_detection_eval/eval_detection_v2.py:328
Function
export_full_runs_for_entries
( entries: List[Tuple], *, export_dir: str = "export", config_path: str = CONFIG_PATH, bas
experiments/final_paper_plots/plot_agent_adam.py:175
Function
export_full_runs_for_entries
( entries: List[Tuple], *, export_dir: str = "export", config_path: str = CONFIG_PATH, bas
experiments/final_paper_plots/plot_em_agent_multi_bars.py:175
Function
export_full_runs_for_entries
( entries: List[Tuple], *, export_dir: str = "export", config_path: str = CONFIG_PATH, bas
experiments/final_paper_plots/plot_em_agent.py:167
Method
first_response
(self)
nl_probes/autointerp_detection_eval/caller.py:130
Method
first_response
(self)
nl_probes/autointerp_detection_eval/caller.py:348
Method
first_token_probability_for_target
(self, target: str)
nl_probes/autointerp_detection_eval/caller.py:357
Method
flush
(self)
nl_probes/autointerp_detection_eval/caller.py:442
Method
flush
(self)
nl_probes/autointerp_detection_eval/caller.py:549
Method
flush
(self)
nl_probes/autointerp_detection_eval/caller.py:578
Method
flush
(self)
nl_probes/autointerp_detection_eval/caller.py:820
Method
flush
(self)
nl_probes/autointerp_detection_eval/caller.py:913
Method
flush
(self)
nl_probes/autointerp_detection_eval/caller.py:959
Method
forward
(self, x: torch.Tensor)
experiments/linear_probe.py:173
Method
forward
Must be implemented by child classes
nl_probes/sae.py:111
Method
forward
(self, x: torch.Tensor)
nl_probes/sae.py:172
Method
forward
(self, x: torch.Tensor)
nl_probes/sae.py:264
Method
from_dataset_group
(group, **kwargs)
nl_probes/dataset_classes/classification_dataset_manager.py:825
Method
from_maybe_system
(content: str | None)
nl_probes/autointerp_detection_eval/caller.py:94
Method
from_sae
(cls, sae: SAEV2, feature_vector: list[float], position_id: int)
nl_probes/autointerp_detection_eval/detection_basemodels.py:80
Method
from_typed_dict
(cls, sae_data: "SAEVerlDataTypedDict")
nl_probes/autointerp_detection_eval/detection_basemodels.py:76
Method
from_yaml
(cls, path: str | Path)
nl_probes/trl_training/config.py:24
Function
gather_target_act_hook
(module, inputs, outputs)
nl_probes/utils/activation_utils.py:31
Method
get_all_loaders
()
nl_probes/dataset_classes/classification_dataset_manager.py:316
Method
get_all_loaders
()
nl_probes/dataset_classes/classification_dataset_manager.py:410
Function
get_feature_activations
( model: AutoModelForCausalLM, tokenizer: AutoTokenizer, submodule: torch.nn.Module, sae: Jump
nl_probes/sae.py:441
Method
get_log_probs_cache
(self, model: str)
nl_probes/autointerp_detection_eval/caller.py:826
Function
get_sort_key
(idx)
experiments/final_paper_plots/plot_all_data_diversity.py:478
Function
get_sort_key
(idx)
experiments/final_paper_plots/plot_secret_keeping_results.py:639
Function
get_sort_key
(idx)
experiments/final_paper_plots/plot_personaqa_results.py:272
Function
get_sort_key
(idx)
experiments/final_paper_plots/plot_personaqa_open_ended_results.py:312
Function
get_sort_key
(idx)
experiments/final_paper_plots/plot_classification_eval_all_models.py:343
Function
get_sort_key
(idx)
experiments/final_paper_plots/plot_personaqa_results_all_models.py:507
Function
get_vllm_steering_hook
Debug version of your steering hook with detailed logging
nl_probes/utils/steering_hooks.py:6
Method
has_reasoning
(self)
nl_probes/autointerp_detection_eval/caller.py:158
Method
has_response
(self)
nl_probes/autointerp_detection_eval/caller.py:165
Method
hit_content_filter
(self)
nl_probes/autointerp_detection_eval/caller.py:176
Function
hook_fn
(module, _input, output)
nl_probes/utils/steering_hooks.py:23
Function
inspect_training_data
Print out training data for inspection.
experiments/simple_llama_model_demo.py:258
Function
is_valid
(row)
datasets/classification_datasets/gmt/cities/data_gen.py:195
Function
is_valid
(row)
datasets/classification_datasets/gmt/common_claim/data_gen.py:7
Method
load
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:55
Method
load
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:114
Method
load
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:150
Method
load
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:222
Method
load
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:291
Method
load
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:330
Method
load
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:374
Method
load
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:425
Method
load
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:465
Method
load
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:555
Method
load
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:613
Method
load
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:727
Function
load_latentqa_dataset
Load all dataset components and return a LatentQADatasetSimple. Arguments - paths: DataPaths with JSON file paths. - filter_prefixes: opt
nl_probes/dataset_classes/misc/latentqa_loader.py:313
Function
load_lora_adapter
(model: AutoModelForCausalLM, lora_path: str)
nl_probes/base_experiment.py:579
Function
load_pooled_openai_caller
(cache_path: str)
nl_probes/autointerp_detection_eval/caller.py:1161
Method
lora_path
Get verbalizer_lora_path (new format) or investigator_lora_path from meta (old format).
experiments/final_paper_plots/plot_ssc_results.py:126
Function
make_sae_verl_typed_dict
(sae_data: SAEV2, position_id: int, feature_vector: list[float])
nl_probes/autointerp_detection_eval/detection_basemodels.py:90
Method
merge
(self, other: "MultiClientCaller")
nl_probes/autointerp_detection_eval/caller.py:910
Method
meta_or_config
Get config (new format) or meta (old format).
experiments/final_paper_plots/plot_ssc_results.py:116
Method
moderate
Moderates the given text using OpenAI's moderation API. Args: to_moderate (str): The text to be moderated. m
nl_probes/autointerp_detection_eval/caller.py:1003
Function
plot_f1_scores_by_model
Plot F1 scores by model using plotly.
nl_probes/autointerp_detection_eval/eval_detection_v2.py:716
Function
plot_per_word_accuracy
Create separate plots for each investigator showing per-word accuracy.
experiments/final_paper_plots/plot_old_personaqa_results.py:263
Function
plot_per_word_accuracy
Create separate plots for each investigator showing per-word accuracy.
experiments/final_paper_plots/plot_taboo_eval_results.py:377
Function
plot_per_word_accuracy
Create separate plots for each investigator showing per-word accuracy.
experiments/final_paper_plots/plot_personaqa_results.py:348
Function
plot_per_word_accuracy
Create separate plots for each investigator showing per-word accuracy.
experiments/final_paper_plots/plot_personaqa_open_ended_results.py:391
Function
plot_per_word_accuracy
Create separate plots for each investigator showing per-word accuracy.
experiments/plotting/plot_taboo_eval_results.py:332
Function
plot_per_word_accuracy
Create separate plots for each investigator showing per-word accuracy.
experiments/plotting/plot_personaqa_results.py:226
Function
plot_precision_vs_recall_by_model
Plot precision vs recall with models as dots using plotly.
nl_probes/autointerp_detection_eval/eval_detection_v2.py:764
Function
preview_dataset
Print and return up to `per_source` items for each present source. Returns a list of compact dict summaries in the printed order.
nl_probes/dataset_classes/misc/latentqa_loader.py:363
Method
proba
(self)
nl_probes/autointerp_detection_eval/caller.py:213
Method
prompt
Get investigator_prompt (old format) or verbalizer_prompt (new format).
experiments/final_paper_plots/plot_ssc_results.py:102
Function
read_sae_file_to_str
(sae_file: str, limit: int | None = None, start_index: int = 0)
nl_probes/autointerp_detection_eval/eval_detection_v2.py:87
Method
reasoning_content
(self)
nl_probes/autointerp_detection_eval/caller.py:149
Method
records_or_results
Get results (new format) or records (old format).
experiments/final_paper_plots/plot_ssc_results.py:121
Method
responses
(self)
nl_probes/autointerp_detection_eval/caller.py:140
← previous
next →
601–700 of 716, ranked by callers