unsloth/studio/backend
Daniel Han e235df6d2a Fix review issues: no module-level execv, Linux-only, use sys.orig_argv
Addresses all reviewer feedback:

1. Moved os.execv out of module-level code into a helper function
   _maybe_reexec_for_cuda_ld_path() that is called explicitly from
   run_server() and __main__. Importing run.py no longer replaces the
   host process -- safe for CLI, notebooks, tests, and embedders.

2. Changed platform guard from "not win32" to "linux only", since
   LD_LIBRARY_PATH is a Linux-specific linker mechanism.

3. Use sys.orig_argv (Python 3.10+) when available to preserve the
   original interpreter invocation (python -m, -c, -X flags, etc.).
   Falls back to [sys.executable] + sys.argv for older Python.
2026-03-18 05:13:44 +00:00
..
assets studio: improve onboarding UX, tooltips, and training defaults (#4355) 2026-03-17 07:46:07 -07:00
auth fix: remove old comments (#4292) 2026-03-14 16:50:13 +04:00
core Fix/studio full finetuning (#4391) 2026-03-17 20:47:26 -07:00
loggers Final cleanup 2026-03-12 18:28:04 +00:00
models studio: improve onboarding UX, tooltips, and training defaults (#4355) 2026-03-17 07:46:07 -07:00
plugins Final cleanup 2026-03-12 18:28:04 +00:00
requirements Trim ~255 MB of unused packages from Studio setup (#4395) 2026-03-17 21:32:38 -07:00
routes studio: improve onboarding UX, tooltips, and training defaults (#4355) 2026-03-17 07:46:07 -07:00
state Final cleanup 2026-03-12 18:28:04 +00:00
tests fix(seed): disable remote code execution in seed inspect dataset loads (#4275) 2026-03-13 19:37:43 +04:00
utils studio: improve onboarding UX, tooltips, and training defaults (#4355) 2026-03-17 07:46:07 -07:00
__init__.py Final cleanup 2026-03-12 18:28:04 +00:00
colab.py Fix/colab comment edits (#4317) 2026-03-16 16:15:46 -07:00
main.py studio: web search, KV cache dtype, training progress, inference fixes 2026-03-17 00:30:01 -07:00
run.py Fix review issues: no module-level execv, Linux-only, use sys.orig_argv 2026-03-18 05:13:44 +00:00