unsloth/studio/backend/core
danielhanchen 5d25ef3439 sandbox: degrade gracefully when site.getsitepackages is unavailable
_python_read_paths runs in the sandboxed exec path with no fallback, so an
AttributeError or unexpected exception from site.getsitepackages /
getusersitepackages (older virtualenv site.py, embedded / frozen Python) would
make every sandboxed tool call return an execution error. Guard both calls and
continue: sys.prefix / sys.base_prefix are bound regardless, so a venv's
site-packages under the prefix stays visible even when these helpers do not
resolve.

Regression: test_python_read_paths_survives_missing_site_helpers.
2026-07-13 13:11:44 +00:00
..
data_recipe Studio: harden background consumer loops and streaming paths against silent UI freezes (#6653) 2026-06-26 03:31:33 -07:00
export Studio: multi-select export formats, portable FP8/INT8, GGUF LoRA, and source parity (#6767) 2026-07-03 08:25:10 -07:00
inference sandbox: degrade gracefully when site.getsitepackages is unavailable 2026-07-13 13:11:44 +00:00
rag Run the malware gate on the RAG embedding model before it loads (#6887) 2026-07-07 04:30:21 -07:00
training Studio: startup loading banner and mute the benign bitsandbytes ROCm warning (#7085) 2026-07-12 18:19:33 -07:00
__init__.py Reduce and tighten code comments and docstrings repo-wide (#6095) 2026-06-08 23:09:51 -07:00
_torchao_stub.py Reduce and tighten code comments and docstrings repo-wide (#6095) 2026-06-08 23:09:51 -07:00
import_guards.py Studio: self-heal unsloth namespace shadows; clearer failed-load messages (#6532) 2026-06-21 22:43:31 -07:00
tool_healing.py Studio: parse Mistral [TOOL_CALLS] and rehearsal tool-call shapes (#5704) 2026-07-06 18:52:13 -07:00