unsloth/unsloth_cli/commands
Daniel Han 7e2292f2e4 Read RECORD directly, and only clear a marker this attempt created
Distribution.files drops entries whose paths no longer exist, which is
precisely the set the last change looked for, so on 3.13 (what both
desktop installers pick) the check could never fire. Verified against a
dist-info whose RECORD names a deleted file: files returned 3 of 4
entries and the damaged package read as complete. RECORD is parsed
directly now, and the test builds a real dist-info rather than a stub so
it would have caught this.

The marker is also not always ours. A retry after an interrupted install
finds the earlier one still there, and a repair that then fails to spawn
was deleting it, losing the classification the next launch depends on.
Creation reports whether it created the file; the pre-spawn and elevation
paths clear only then, and success still clears unconditionally.
2026-07-27 19:05:48 +00:00
..
__init__.py Rename cli/ to unsloth_cli/ to fix namespace collision with stringzilla (#4393) 2026-03-17 20:40:21 -07:00
_password_prompt.py Studio: reject whitespace-only passwords (#7341) 2026-07-23 00:44:37 -07:00
chat.py Fix local CLI streamed generation error handling (#7135) 2026-07-20 23:14:58 -03:00
export.py Formatting: ruff line-length 100, kwarg-spacing passes, drop blank after short local imports (#6079) 2026-06-08 04:24:13 -07:00
inference.py Fix local CLI streamed generation error handling (#7135) 2026-07-20 23:14:58 -03:00
start.py Studio: Expose GPU memory mode in unsloth run and unsloth start (#7421) 2026-07-27 05:54:50 -07:00
studio.py Read RECORD directly, and only clear a marker this attempt created 2026-07-27 19:05:48 +00:00
train.py Add MLX backend support for CLI unsloth train (#6709) 2026-07-08 03:25:26 -07:00