unsloth/studio
Roland Tannous 737017a511 fix(studio): lazy-import extract_model_size_b in llama_cpp to fix transformers 5.x version switch
PR #4769 (e4d14992) added a module-level `from utils.models import
extract_model_size_b` to llama_cpp.py.  Since core/inference/__init__.py
eagerly imports llama_cpp, the spawn subprocess now hits:

  core.inference.__init__  →  llama_cpp  →  utils.models  →
  model_config (line 8: `from transformers import AutoConfig`)

…before _activate_transformers_version() has a chance to prepend
.venv_t5/ to sys.path.  Python caches transformers 4.57.6 in
sys.modules, and no subsequent sys.path change can override it.

Fix: replace the eager import with a thin wrapper that defers the
import to first call.  This breaks the transitive chain so
transformers is not loaded until after version activation.
2026-04-02 21:42:56 +00:00
..
backend fix(studio): lazy-import extract_model_size_b in llama_cpp to fix transformers 5.x version switch 2026-04-02 21:42:56 +00:00
frontend UI Changes (#4782) 2026-04-02 08:05:55 -07:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
install_llama_prebuilt.py fix(studio): suppress fatal error when prebuilt manifest is missing (#4799) 2026-04-02 12:18:11 -07:00
install_python_stack.py studio: unify Windows installer/setup logging style, verbosity controls, and startup messaging (#4651) 2026-03-30 00:53:23 -07:00
LICENSE.AGPL-3.0 Add AGPL-3.0 license to studio folder 2026-03-09 19:36:25 +00:00
setup.bat Final cleanup 2026-03-12 18:28:04 +00:00
setup.ps1 fix(studio): revert llama.cpp default tag to latest (#4797) 2026-04-02 11:52:37 -07:00
setup.sh fix(studio): revert llama.cpp default tag to latest (#4797) 2026-04-02 11:52:37 -07:00
Unsloth_Studio_Colab.ipynb Allow install_python_stack to run on Colab (#4633) 2026-03-27 00:29:27 +04:00