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

Nested directories prevent methods from being visible to top-level package #43

Open
kewiechecki opened this issue Jan 5, 2025 · 0 comments

Comments

@kewiechecki
Copy link

kewiechecki commented Jan 5, 2025

The repo does not behave as expected when loaded as a package.

$ git clone https://github.com/EleutherAI/sae
>>> from sae import Sae
Traceback (most recent call last):
  File "<python-input-2>", line 1, in <module>
    from sae import Sae
ImportError: cannot import name 'Sae' from 'sae' (unknown location)

This can be resolved by moving sae/__main__.py to the top-level directory.

$ mv sae/sae/__main__.py sae/
>>> from sae import Sae
Triton not installed, using eager implementation of SAE decoder.
>>>
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