unsloth/unsloth_cli
Daniel Han faf35ed2c0 studio: follow-up polish from autoload + launcher PR review rounds
autoLoad cascade hardening (extends #5578):

- Singleflight wrapper around autoLoadSmallestModel so two send-button
  clicks in flight share one cascade instead of fanning out a fresh
  /load budget per click.
- /validate POSTs were previously uncapped; a cache of N trust-blocked
  repos still produced N /validate calls. Adds MAX_AUTO_VALIDATE_ATTEMPTS
  = 10 with a counter inside canAutoLoad.
- abortSignal from the adapter's run() now threads into the cascade and
  is checked on entry plus at each loop boundary, so a tab close or
  user abort mid-cascade stops further POSTs.

Style consistency (extends #5577):

- _release_self_exe_lock_windows / _restore_self_exe_lock_windows now
  emit via typer.echo to match the rest of the file's diagnostic
  surface.
2026-05-19 13:04:31 +00:00
..
commands studio: follow-up polish from autoload + launcher PR review rounds 2026-05-19 13:04:31 +00:00
__init__.py Add a simple --version flag (#5516) 2026-05-18 04:04:05 +04:00
_tool_policy.py unsloth run: add --enable-tools/--disable-tools server-side tool policy (#5277) 2026-05-05 12:45:15 +04:00
config.py Rename cli/ to unsloth_cli/ to fix namespace collision with stringzilla (#4393) 2026-03-17 20:40:21 -07:00
options.py Rename cli/ to unsloth_cli/ to fix namespace collision with stringzilla (#4393) 2026-03-17 20:40:21 -07:00