-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add PyTorch 2.10 and xformers 0.0.34 support #3985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -297,6 +297,18 @@ cu130onlytorch291 = [ | |
| "xformers @ https://download.pytorch.org/whl/cu130/xformers-0.0.33.post2-cp39-abi3-manylinux_2_28_x86_64.whl ; ('linux' in sys_platform)", | ||
| "xformers @ https://download.pytorch.org/whl/cu130/xformers-0.0.33.post2-cp39-abi3-win_amd64.whl ; (sys_platform == 'win32')", | ||
| ] | ||
| cu126onlytorch2100 = [ | ||
| "xformers @ https://download.pytorch.org/whl/cu126/xformers-0.0.34-cp39-abi3-manylinux_2_28_x86_64.whl ; ('linux' in sys_platform)", | ||
| "xformers @ https://download.pytorch.org/whl/cu126/xformers-0.0.34-cp39-abi3-win_amd64.whl ; (sys_platform == 'win32')", | ||
| ] | ||
| cu128onlytorch2100 = [ | ||
| "xformers @ https://download.pytorch.org/whl/cu128/xformers-0.0.34-cp39-abi3-manylinux_2_28_x86_64.whl ; ('linux' in sys_platform)", | ||
| "xformers @ https://download.pytorch.org/whl/cu128/xformers-0.0.34-cp39-abi3-win_amd64.whl ; (sys_platform == 'win32')", | ||
| ] | ||
| cu130onlytorch2100 = [ | ||
| "xformers @ https://download.pytorch.org/whl/cu130/xformers-0.0.34-cp39-abi3-manylinux_2_28_x86_64.whl ; ('linux' in sys_platform)", | ||
| "xformers @ https://download.pytorch.org/whl/cu130/xformers-0.0.34-cp39-abi3-win_amd64.whl ; (sys_platform == 'win32')", | ||
| ] | ||
| cu118 = [ | ||
| "unsloth[huggingface]", | ||
| "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0", | ||
|
|
@@ -487,6 +499,21 @@ cu130-torch291 = [ | |
| "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0", | ||
| "unsloth[cu130onlytorch291]", | ||
| ] | ||
| cu126-torch2100 = [ | ||
| "unsloth[huggingface]", | ||
| "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0", | ||
| "unsloth[cu126onlytorch2100]", | ||
| ] | ||
| cu128-torch2100 = [ | ||
| "unsloth[huggingface]", | ||
| "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0", | ||
| "unsloth[cu128onlytorch2100]", | ||
| ] | ||
| cu130-torch2100 = [ | ||
| "unsloth[huggingface]", | ||
| "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0", | ||
| "unsloth[cu130onlytorch2100]", | ||
| ] | ||
| kaggle = [ | ||
| "unsloth[huggingface]", | ||
| ] | ||
|
|
@@ -771,6 +798,21 @@ cu130-ampere-torch291 = [ | |
| "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0", | ||
| "unsloth[cu130onlytorch291]", | ||
| ] | ||
| cu126-ampere-torch2100 = [ | ||
| "unsloth[huggingface]", | ||
| "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0", | ||
| "unsloth[cu126onlytorch2100]", | ||
| ] | ||
| cu128-ampere-torch2100 = [ | ||
| "unsloth[huggingface]", | ||
| "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0", | ||
| "unsloth[cu128onlytorch2100]", | ||
| ] | ||
| cu130-ampere-torch2100 = [ | ||
| "unsloth[huggingface]", | ||
| "bitsandbytes>=0.45.5,!=0.46.0,!=0.48.0", | ||
| "unsloth[cu130onlytorch2100]", | ||
| ] | ||
|
Comment on lines
+801
to
+815
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| flashattentiontorch260abiFALSEcu12x = [ | ||
| "flash-attn @ https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp39-cp39-linux_x86_64.whl ; ('linux' in sys_platform) and python_version == '3.9'", | ||
| "flash-attn @ https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.6cxx11abiFALSE-cp310-cp310-linux_x86_64.whl ; ('linux' in sys_platform) and python_version == '3.10'", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,9 @@ | |
| elif v < V('2.8.9'): x = 'cu{}{}-torch280' | ||
| elif v < V('2.9.1'): x = 'cu{}{}-torch290' | ||
| elif v < V('2.9.2'): x = 'cu{}{}-torch291' | ||
| elif v < V('2.10.1'): x = 'cu{}{}-torch2100' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The new Useful? React with 👍 / 👎. |
||
| 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') | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The list of supported CUDA versions in this sentence is incomplete. Based on the auto-install script and other parts of the project,
cu126,cu128, andcu130are also supported for various PyTorch versions. To avoid confusion for users, please update the list to include all supported CUDA versions.