Skip to content

Installer: report the installed Unsloth version - #7265

Merged
danielhanchen merged 2 commits into
unslothai:mainfrom
oobabooga:feat/report-installed-unsloth-version
Jul 21, 2026
Merged

Installer: report the installed Unsloth version#7265
danielhanchen merged 2 commits into
unslothai:mainfrom
oobabooga:feat/report-installed-unsloth-version

Conversation

@oobabooga

Copy link
Copy Markdown
Member

The Studio installer says it is installing Unsloth but does not show which version was installed, making install logs harder to verify.

Fix

After the install and migration paths converge, read the selected distribution's version from the new virtual environment and print it before Studio setup:

  unsloth        2026.7.4 installed

This is mirrored in install.sh and install.ps1, supports custom --package distributions, and reads package metadata without importing Unsloth or initializing GPU libraries. A warning is shown if the installed version cannot be determined.

Verification

  • sh -n install.sh
  • ruff check tests/test_installer_unsloth_version.py
  • Installer version and control tests: 17 passed, 15 skipped
  • Workspace and uv override tests: 45 passed
  • Redaction, Tauri exit-order, and uv override shell checks pass

@oobabooga
oobabooga requested a review from danielhanchen as a code owner July 20, 2026 15:27

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds package version reporting to both the PowerShell (install.ps1) and POSIX shell (install.sh) installers by querying Python's importlib.metadata module. Additionally, a new test suite is introduced to verify this behavior in both environments. No review comments were provided, so there is no feedback to address.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@danielhanchen

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 28f03f23df

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit f5da223 into unslothai:main Jul 21, 2026
53 of 56 checks passed
danielhanchen pushed a commit that referenced this pull request Jul 24, 2026
Reconcile PR #7256 (Windows torch 2.11 + release preservation, installer
comment reduction, torch 2.11 default line) with 77 commits of main install
rewrites. Base is main's newer install semantics; this branch's still-novel
contributions are layered on top.

Key decisions:
- install.ps1: kept main's rollback lifecycle (try/finally Restore-StudioVenvRollback,
  #7342) and the installed-version report (#7265); layered this branch's torch-2.11
  allowance (torch<2.12.0 on the Windows CUDA fresh-install, CPU fallback and flavor
  repairs), the release-preservation port (Get-InstalledTorchVersionRaw / kept-release
  installs / UNSLOTH_KEPT_TORCH handoff / torch-overrides freeze) and the Exit-InstallFailure
  UNSLOTH_KEPT_TORCH clear.
- install.sh: took main's newer AMD/Strix routing (per-arch index reroute #7264/#7300,
  runtime-less gfx inference #7305, KFD detection fix #7314, Radeon 8065S regex #7290,
  signal-restore trap #7342) and the #7365 unsloth pin bump; kept this branch's
  _TORCH_CEILING/_TORCHVISION_CEILING/_TORCHAUDIO_CEILING refactor widening the default
  ceiling to torch<2.12.0.
- studio/install_python_stack.py: deferred all five code conflicts to main's Strix
  inference logic (result is AST-identical to main; only comment reductions remain).
- studio/setup.ps1: took main's comment covering the whisper.cpp dictation markers
  (#7095); the UNSLOTH_KEPT_TORCH consumption handoff auto-merged intact.

Dropped as superseded by main: this branch's stale unsloth>=2026.7.4 pins (main #7365),
the older rocm7.1->rocm7.2 Strix reroute (main #7264/#7300), the narrow Radeon 80[0-9]0S
regex (main #7290), and the pre-inference has_hip_torch gate (main's rocm_torch_ready gate,
Codex P1 #7305). The two review-item fixes (grep -E in test_torch_constraint.sh,
UNSLOTH_KEPT_TORCH clear in Exit-InstallFailure) survive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants