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

[Bug Report] tutorials import #419

Open
Gregpy opened this issue Feb 5, 2025 · 0 comments · May be fixed by #420
Open

[Bug Report] tutorials import #419

Gregpy opened this issue Feb 5, 2025 · 0 comments · May be fixed by #420

Comments

@Gregpy
Copy link

Gregpy commented Feb 5, 2025

If you are submitting a bug report, please fill in the following details and use the tag [bug].

Describe the bug
A clear and concise description of what the bug is.
Cannot import from tutorials
Code example
Please try to provide a minimal example to reproduce the bug. Error messages and stack traces are also helpful.
ModuleNotFoundError Traceback (most recent call last)
Cell In[3], line 12
9 from sae_lens.analysis.neuronpedia_integration import get_neuronpedia_quick_list
11 # Enrichment Analysis Functions
---> 12 from tutorials.tsea import (
13 get_enrichment_df,
14 manhattan_plot_enrichment_scores,
15 plot_top_k_feature_projections_by_token_and_category,
16 )
17 from tutorials.tsea import (
18 get_baby_name_sets,
19 get_letter_gene_sets,
(...)
22 get_gene_set_from_regex,
23 )

ModuleNotFoundError: No module named 'tutorials'
https://github.com/jbloomAus/SAELens/blob/main/tutorials/logits_lens_with_features.ipynb
System Info
Describe the characteristic of your environment:

  • Describe how transformer_lens was installed (pip, docker, source, ...)
  • What OS are you using? (Linux, MacOS, Windows)
  • Python version (We suppourt 3.10 -3.12 currently)
    Python 3.12 locally or google colab
    Additional context
    Add any other context about the problem here.
    I could add it to the path with sys and import, or run it in the SAELens directory, but it could be fixed. The kernel crashes when I try to run it on google colab after, or locally (I may try somewhere with more RAM) though also.

Checklist

  • [x ] I have checked that there is no similar issue in the repo (required)
@chanind chanind linked a pull request Feb 9, 2025 that will close this issue
4 tasks
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 a pull request may close this issue.

1 participant