A successful on-demand wheel install writes into site-packages after the import system already cached that directory's listing, so the very next find_spec / import in the same process can miss the freshly installed package when the install lands within the directory mtime's resolution. That silently falls set_attention_backend back to native on first use. Call importlib.invalidate_caches() after a successful install so the kernel is picked up immediately, and cover both the success and failure paths in the attention installer tests. |
||
|---|---|---|
| .. | ||
| backend | ||
| frontend | ||
| src-tauri | ||
| __init__.py | ||
| install_llama_prebuilt.py | ||
| install_node_prebuilt.py | ||
| install_python_stack.py | ||
| install_sd_cpp_prebuilt.py | ||
| LICENSE.AGPL-3.0 | ||
| node_prebuilt_pins.json | ||
| package-lock.json | ||
| package.json | ||
| setup.bat | ||
| setup.ps1 | ||
| setup.sh | ||
| Unsloth_Studio_Colab.ipynb | ||