unsloth/studio
Daniel Han 58c640dfe5 Fix torch CUDA symbol errors caused by user LD_LIBRARY_PATH
When a user has LD_LIBRARY_PATH pointing at system CUDA libs (e.g.
/usr/local/cuda-13/lib64), the dynamic linker loads those instead of
the CUDA libs bundled with the torch wheel (in nvidia/*/lib/). This
causes symbol version mismatches and crashes on import.

Fix: before importing anything, detect torch's bundled CUDA lib paths
(without importing torch itself) and prepend them to LD_LIBRARY_PATH
so they take priority. Then re-exec so the dynamic linker picks up
the corrected path. A sentinel env var prevents infinite re-exec.

The user's original paths are preserved (just deprioritized), so
non-torch tools that need system CUDA still work.
2026-03-18 04:58:10 +00:00
..
backend Fix torch CUDA symbol errors caused by user LD_LIBRARY_PATH 2026-03-18 04:58:10 +00:00
frontend Unused return value causes build failures (#4385) 2026-03-17 20:57:27 -07:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
install_python_stack.py studio: improve Colab notebook, redesign ready popup, and clean up install output (#4339) 2026-03-16 21:39:25 -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 studio: improve onboarding UX, tooltips, and training defaults (#4355) 2026-03-17 07:46:07 -07:00
setup.sh studio: improve onboarding UX, tooltips, and training defaults (#4355) 2026-03-17 07:46:07 -07:00
Unsloth_Studio_Colab.ipynb Update Unsloth_Studio_Colab.ipynb 2026-03-17 15:42:38 -07:00