The studio backend lazily imports unsloth_zoo submodules (export's llama_cpp, hardware's vllm_utils, mlx, chat_templates). Each imports the top-level unsloth_zoo, which raises 'Please install Unsloth via pip install unsloth' unless UNSLOTH_IS_PRESENT is set (normally by import unsloth). Only hardware.py set it per-site; the rest crash on a clean install, and it surfaced on Windows. Set it once at backend startup (as unsloth does on import) so every site, and the DiffusionGemma runner, works across platforms. Follow-up to #6259 (which covered only the shim subprocess env). |
||
|---|---|---|
| .. | ||
| backend | ||
| frontend | ||
| src-tauri | ||
| __init__.py | ||
| install_llama_prebuilt.py | ||
| install_python_stack.py | ||
| LICENSE.AGPL-3.0 | ||
| package-lock.json | ||
| package.json | ||
| setup.bat | ||
| setup.ps1 | ||
| setup.sh | ||
| Unsloth_Studio_Colab.ipynb | ||