Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files with activations to run viewer locally #2

Open
WuTheFWasThat opened this issue Jun 12, 2024 · 4 comments
Open

Files with activations to run viewer locally #2

WuTheFWasThat opened this issue Jun 12, 2024 · 4 comments

Comments

@WuTheFWasThat
Copy link

[this issue is migrated from a previous version of the repo]

@elephantmipt and @zdaiot ask:

Hi, thank you for releasing great tool! It would be great if you provide more details on which files SAE viewer uses for rendering particular feature. When I run published code locally, I get an error Failed to load resource: net::ERR_CONNECTION_REFUSED because here

export const load_file_no_cache = async(path: string) => {
const data = {
path: path
}
const url = new URL("/load_az", window.location.href)
url.port = '8000';
return await (
await fetch(url, {
method: "POST", // or 'PUT'
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(data),
})
).json()
}

we try to connect to localhost:8000 load_az method.

I need an example of a file with activations that I can pass as JSON here

const result = await load_fn(`${prefix}/${ae.subject}/${ae.path}/atoms/${feature.atom}${ablated ? '-ablated': ''}.json`)

, in case I want to view features from my custom SAE. However, I am unsure of the format to use. Could you please provide example files with activations so that anyone can run the demo locally and/or modify the activations and models?

@zdaiot
Copy link

zdaiot commented Jun 13, 2024

@WuTheFWasThat Can you give me the process of how to generate these json files?

@WuTheFWasThat
Copy link
Author

we just ran the model+autoencoder over a pretraining dataset and tracked highest activations per latent and random positive activations per latent. we don't have a plan to release the code atm, but if that would be helpful we can consider it

@zdaiot
Copy link

zdaiot commented Jun 13, 2024

we just ran the model+autoencoder over a pretraining dataset and tracked highest activations per latent and random positive activations per latent. we don't have a plan to release the code atm, but if that would be helpful we can consider it

Thanks a lot. I think it will be very helpful. Please consider it.

Thank you for such an excellent job. Can I ask, when release training code?

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

No branches or pull requests

2 participants