Upgrade setuptools and wheel in the auto-install command (#6282)
The generated install command builds unsloth from git with --no-build-isolation, so pip uses the environment's existing setuptools rather than the pinned build-system requirement. On setuptools < 77 the PEP 639 license string in pyproject.toml fails to validate and the install aborts. Upgrade setuptools and wheel up front so the source build always has PEP 639 support.
This commit is contained in:
parent
2262e02b1a
commit
8d842af163
1 changed files with 1 additions and 1 deletions
|
|
@ -40,4 +40,4 @@ else: raise RuntimeError(f"Torch = {v} too new!")
|
|||
if v > V('2.6.9') and cuda not in ("11.8", "12.6", "12.8", "13.0"): raise RuntimeError(f"CUDA = {cuda} not supported!")
|
||||
if v >= V('2.10.0') and cuda not in ("12.6", "12.8", "13.0"): raise RuntimeError(f"Torch 2.10 requires CUDA 12.6, 12.8, or 13.0! Got CUDA = {cuda}")
|
||||
x = x.format(cuda.replace(".", ""), "-ampere" if False else "") # is_ampere is broken due to flash-attn
|
||||
print(f'pip install --upgrade pip && pip install --no-deps git+https://github.com/unslothai/unsloth-zoo.git && pip install "unsloth[{x}] @ git+https://github.com/unslothai/unsloth.git" --no-build-isolation')
|
||||
print(f'pip install --upgrade pip setuptools wheel && pip install --no-deps git+https://github.com/unslothai/unsloth-zoo.git && pip install "unsloth[{x}] @ git+https://github.com/unslothai/unsloth.git" --no-build-isolation')
|
||||
Loading…
Add table
Add a link
Reference in a new issue