Skip to content

Remove hardcoded goodfire entity from SPDAdapter#467

Open
Antovigo wants to merge 1 commit intodevfrom
no_hardcoded_goodfire_refs
Open

Remove hardcoded goodfire entity from SPDAdapter#467
Antovigo wants to merge 1 commit intodevfrom
no_hardcoded_goodfire_refs

Conversation

@Antovigo
Copy link
Copy Markdown
Collaborator

@Antovigo Antovigo commented Apr 3, 2026

Description

SPDAdapter now accepts a full wandb_path instead of just a run ID, removing the hardcoded goodfire/spd/runs/ prefix.

Motivation and Context

The harvest pipeline was unusable for anyone with a different wandb entity because SPDAdapter.__init__ only took a run ID and hardcoded goodfire/spd/runs/{run_id}. Now the full wandb path flows through from the harvest config.

How Has This Been Tested?

  • make check passes (basedpyright + ruff)
  • Tested harvest submission on a non-goodfire wandb entity

Does this PR introduce a breaking change?

No. adapter_from_config still works the same way (reads wandb_path from SPDHarvestConfig). adapter_from_id now always goes through _load_method_config, which reads the full config from the harvest DB. This requires harvest data to exist, but adapter_from_id is only called from downstream steps (autointerp, intruder eval, graph_interp) that already depend on harvest.

SPDAdapter hardcoded "goodfire/spd/runs/{run_id}" when constructing
wandb paths, making the harvest pipeline unusable for other wandb
entities. Now accepts the full wandb_path from the config instead.
method config from the harvest DB (which is always populated before downstream
steps like autointerp run).
"""
if decomposition_id.startswith("s-"):
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not 100% sure what these lines were for. Are there special cases when one might want to use a SPDAdapter without running the harvest first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant