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

pip uninstall doesn't flush the FSM cache #894

Open
chrsbats opened this issue May 16, 2024 · 0 comments
Open

pip uninstall doesn't flush the FSM cache #894

chrsbats opened this issue May 16, 2024 · 0 comments
Labels

Comments

@chrsbats
Copy link

chrsbats commented May 16, 2024

Describe the issue as clearly as possible:

After doing pip uninstall there's a bunch of numba jit stuff left behind in

/python3.11/site-packages/outlines/fsm/__pycache__/     
/python3.11/site-packages/outlines/text/__pycache__/     

I noticed this when upgrading to a new outlines version while trying to debug stuff.

This is probably harmless as the cache is probably invalidated when the source code changes but you never know.

https://numba.pydata.org/numba-doc/latest/developer/caching.html

"The cache is invalidated when the corresponding source file is modified. However, it is necessary sometimes to clear the cache directory manually. For instance, changes in the compiler will not be recognized because the source files are not modified.

To clear the cache, the cache directory can be simply removed."

Maybe it just requires documentation somewhere?

Steps/code to reproduce the bug:

pip install outlines
<compile some fsm>
pip uninstall outlines

Expected result:

/python3.11/site-packages/outlines/fsm/__pycache__/     
/python3.11/site-packages/outlines/text/__pycache__/     

to be empty.

Error message:

No response

Outlines/Python version information:

Version information
0.0.42

Context for the issue:

No response

@chrsbats chrsbats added the bug label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant