MCPcopy Create free account

hub / github.com/adamkarvonen/activation_oracles / functions

Functions716 in github.com/adamkarvonen/activation_oracles

Methodcall_with_log_probs
( self, messages: ChatHistory, config: InferenceConfig, try_number: int = 1,
nl_probes/autointerp_detection_eval/caller.py:945
Methodcall_with_log_probs
( self, messages: ChatHistory, config: InferenceConfig, try_number: int = 1 )
nl_probes/autointerp_detection_eval/caller.py:983
Methodcall_with_schema
( self, messages: ChatHistory, schema: type[GenericBaseModel], config: Inferen
nl_probes/autointerp_detection_eval/caller.py:701
Methodcall_with_schema
( self, messages: ChatHistory, schema: type[GenericBaseModel], config: Inferen
nl_probes/autointerp_detection_eval/caller.py:885
Methodcall_with_schema
( self, messages: ChatHistory, schema: type[GenericBaseModel], config: Inferen
nl_probes/autointerp_detection_eval/caller.py:935
Methodcall_with_schema
( self, messages: ChatHistory, schema: type[GenericBaseModel], config: Inferen
nl_probes/autointerp_detection_eval/caller.py:973
Functioncollect_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
Functioncollect_activations_lora_only
( model: AutoModelForCausalLM, submodules: dict, inputs_BL: dict[str, torch.Tensor], )
experiments/patchscopes/patchscopes_full_open_ended_eval.py:240
Functioncompare_patchscope_responses
(response: str, target_response: str)
experiments/patchscopes/patchscopes_full_open_ended_eval.py:130
Methodcopy_update
( self, temperature: float | NotGivenSentinel = NOT_GIVEN_SENTINEL, top_p: float | Not
nl_probes/autointerp_detection_eval/caller.py:303
Methodcreate_dataset
(self)
nl_probes/dataset_classes/classification.py:67
Methodcreate_dataset
(self)
nl_probes/dataset_classes/sae_training_data.py:198
Methodcreate_dataset
(self)
nl_probes/dataset_classes/sae_training_data.py:231
Methodcreate_dataset
(self)
nl_probes/dataset_classes/sae_training_data.py:263
Functioncreate_sae_train_test
(sae: SAEV2)
nl_probes/autointerp_detection_eval/eval_detection_v2.py:980
Functioncreate_sae_train_test_eval_data
(sae: SAEV2)
nl_probes/autointerp_detection_eval/local_eval.py:81
Functioncreate_sae_train_test_eval_data
(sae: SAEV2)
nl_probes/autointerp_detection_eval/lora_hf_eval.py:41
Functiondo_extract
(pair: tuple[str, str])
experiments/final_paper_plots/plot_ssc_results.py:241
Functiondo_extract
(pair: tuple[str, str])
experiments/final_paper_plots/plot_layer_comparison_secret_keeping.py:311
Functiondo_extract
(pair: tuple[str, str])
experiments/final_paper_plots/plot_secret_keeping_results.py:363
Functiondo_extract
(pair: tuple[str, str])
experiments/final_paper_plots/plot_model_progression_line_chart_shapes.py:617
Functiondo_extract
(pair: tuple[str, str])
experiments/plotting/plot_ssc_results.py:193
Functiondo_extract
(pair: tuple[str, str])
experiments/plotting/plot_secret_keeping_results.py:326
Functiondownload_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
Methodexplanation_text
(self)
nl_probes/autointerp_detection_eval/eval_detection_v2.py:328
Functionexport_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
Functionexport_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
Functionexport_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
Methodfirst_response
(self)
nl_probes/autointerp_detection_eval/caller.py:130
Methodfirst_response
(self)
nl_probes/autointerp_detection_eval/caller.py:348
Methodfirst_token_probability_for_target
(self, target: str)
nl_probes/autointerp_detection_eval/caller.py:357
Methodflush
(self)
nl_probes/autointerp_detection_eval/caller.py:442
Methodflush
(self)
nl_probes/autointerp_detection_eval/caller.py:549
Methodflush
(self)
nl_probes/autointerp_detection_eval/caller.py:578
Methodflush
(self)
nl_probes/autointerp_detection_eval/caller.py:820
Methodflush
(self)
nl_probes/autointerp_detection_eval/caller.py:913
Methodflush
(self)
nl_probes/autointerp_detection_eval/caller.py:959
Methodforward
(self, x: torch.Tensor)
experiments/linear_probe.py:173
Methodforward
Must be implemented by child classes
nl_probes/sae.py:111
Methodforward
(self, x: torch.Tensor)
nl_probes/sae.py:172
Methodforward
(self, x: torch.Tensor)
nl_probes/sae.py:264
Methodfrom_dataset_group
(group, **kwargs)
nl_probes/dataset_classes/classification_dataset_manager.py:825
Methodfrom_maybe_system
(content: str | None)
nl_probes/autointerp_detection_eval/caller.py:94
Methodfrom_sae
(cls, sae: SAEV2, feature_vector: list[float], position_id: int)
nl_probes/autointerp_detection_eval/detection_basemodels.py:80
Methodfrom_typed_dict
(cls, sae_data: "SAEVerlDataTypedDict")
nl_probes/autointerp_detection_eval/detection_basemodels.py:76
Methodfrom_yaml
(cls, path: str | Path)
nl_probes/trl_training/config.py:24
Functiongather_target_act_hook
(module, inputs, outputs)
nl_probes/utils/activation_utils.py:31
Methodget_all_loaders
()
nl_probes/dataset_classes/classification_dataset_manager.py:316
Methodget_all_loaders
()
nl_probes/dataset_classes/classification_dataset_manager.py:410
Functionget_feature_activations
( model: AutoModelForCausalLM, tokenizer: AutoTokenizer, submodule: torch.nn.Module, sae: Jump
nl_probes/sae.py:441
Methodget_log_probs_cache
(self, model: str)
nl_probes/autointerp_detection_eval/caller.py:826
Functionget_sort_key
(idx)
experiments/final_paper_plots/plot_all_data_diversity.py:478
Functionget_sort_key
(idx)
experiments/final_paper_plots/plot_secret_keeping_results.py:639
Functionget_sort_key
(idx)
experiments/final_paper_plots/plot_personaqa_results.py:272
Functionget_sort_key
(idx)
experiments/final_paper_plots/plot_personaqa_open_ended_results.py:312
Functionget_sort_key
(idx)
experiments/final_paper_plots/plot_classification_eval_all_models.py:343
Functionget_sort_key
(idx)
experiments/final_paper_plots/plot_personaqa_results_all_models.py:507
Functionget_vllm_steering_hook
Debug version of your steering hook with detailed logging
nl_probes/utils/steering_hooks.py:6
Methodhas_reasoning
(self)
nl_probes/autointerp_detection_eval/caller.py:158
Methodhas_response
(self)
nl_probes/autointerp_detection_eval/caller.py:165
Methodhit_content_filter
(self)
nl_probes/autointerp_detection_eval/caller.py:176
Functionhook_fn
(module, _input, output)
nl_probes/utils/steering_hooks.py:23
Functioninspect_training_data
Print out training data for inspection.
experiments/simple_llama_model_demo.py:258
Functionis_valid
(row)
datasets/classification_datasets/gmt/cities/data_gen.py:195
Functionis_valid
(row)
datasets/classification_datasets/gmt/common_claim/data_gen.py:7
Methodload
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:55
Methodload
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:114
Methodload
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:150
Methodload
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:222
Methodload
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:291
Methodload
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:330
Methodload
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:374
Methodload
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:425
Methodload
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:465
Methodload
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:555
Methodload
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:613
Methodload
(self, num_qa_per_sample: int)
nl_probes/dataset_classes/classification_dataset_manager.py:727
Functionload_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
Functionload_lora_adapter
(model: AutoModelForCausalLM, lora_path: str)
nl_probes/base_experiment.py:579
Functionload_pooled_openai_caller
(cache_path: str)
nl_probes/autointerp_detection_eval/caller.py:1161
Methodlora_path
Get verbalizer_lora_path (new format) or investigator_lora_path from meta (old format).
experiments/final_paper_plots/plot_ssc_results.py:126
Functionmake_sae_verl_typed_dict
(sae_data: SAEV2, position_id: int, feature_vector: list[float])
nl_probes/autointerp_detection_eval/detection_basemodels.py:90
Methodmerge
(self, other: "MultiClientCaller")
nl_probes/autointerp_detection_eval/caller.py:910
Methodmeta_or_config
Get config (new format) or meta (old format).
experiments/final_paper_plots/plot_ssc_results.py:116
Methodmoderate
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
Functionplot_f1_scores_by_model
Plot F1 scores by model using plotly.
nl_probes/autointerp_detection_eval/eval_detection_v2.py:716
Functionplot_per_word_accuracy
Create separate plots for each investigator showing per-word accuracy.
experiments/final_paper_plots/plot_old_personaqa_results.py:263
Functionplot_per_word_accuracy
Create separate plots for each investigator showing per-word accuracy.
experiments/final_paper_plots/plot_taboo_eval_results.py:377
Functionplot_per_word_accuracy
Create separate plots for each investigator showing per-word accuracy.
experiments/final_paper_plots/plot_personaqa_results.py:348
Functionplot_per_word_accuracy
Create separate plots for each investigator showing per-word accuracy.
experiments/final_paper_plots/plot_personaqa_open_ended_results.py:391
Functionplot_per_word_accuracy
Create separate plots for each investigator showing per-word accuracy.
experiments/plotting/plot_taboo_eval_results.py:332
Functionplot_per_word_accuracy
Create separate plots for each investigator showing per-word accuracy.
experiments/plotting/plot_personaqa_results.py:226
Functionplot_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
Functionpreview_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
Methodproba
(self)
nl_probes/autointerp_detection_eval/caller.py:213
Methodprompt
Get investigator_prompt (old format) or verbalizer_prompt (new format).
experiments/final_paper_plots/plot_ssc_results.py:102
Functionread_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
Methodreasoning_content
(self)
nl_probes/autointerp_detection_eval/caller.py:149
Methodrecords_or_results
Get results (new format) or records (old format).
experiments/final_paper_plots/plot_ssc_results.py:121
Methodresponses
(self)
nl_probes/autointerp_detection_eval/caller.py:140
← previousnext →601–700 of 716, ranked by callers