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

[Question] How to keep the consistency of ActivationStore #297

Open
luckyeric320 opened this issue Sep 21, 2024 · 0 comments
Open

[Question] How to keep the consistency of ActivationStore #297

luckyeric320 opened this issue Sep 21, 2024 · 0 comments

Comments

@luckyeric320
Copy link

Hi, I am trying to use ActivationsStore method to generate batched tokens but I fail to maintain the consistence of these tokens for each run in Jupyter Notebook.

Here is the code:

from sae_lens import ActivationsStore activation_store = ActivationsStore.from_sae( model=model, sae=sae, streaming=True, store_batch_size_prompts=8, train_batch_size_tokens=4096, n_batches_in_buffer=32, device=device, )

I set the random seed for random, numpy and pytorch but the results keep changing each time I run the cell. Is there a way to keep the consistencey of batched tokens getted from ActivationsStore?

Also, I am wondering whether it is possible to change the dataset for ActivationsStore so that I can control the content of the dataset, probably making it related to certain concept or theme.

I am new to this library and would very appreciate any help or advice.

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

1 participant