[GH-ISSUE #23] Failed to build wheels by myself #13

Closed
opened 2026-10-29 14:32:39 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @RoacherM on GitHub (Aug 6, 2024).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/23

I tried to compile this library myself, but ultimately failed. Do you have a pre-compiled .whl file available? My current machine environment is CUDA 12.2, PyTorch 2.3+cu121, and the GPU model is H100.

` Running command Building wheel for ktransformers (pyproject.toml)
Using native cpu instruct
running bdist_wheel
Using native cpu instruct
Guessing wheel URL: https://github.com/kvcache-ai/ktransformers/releases/download/v0.1.1/ktransformers-0.1.1+cu122torch23fancy-cp310-cp310-linux_x86_64.whl
Raw wheel path /tmp/pip-wheel-bxz7xsx4/.tmp-1zlb72in/ktransformers-0.1.1-cp310-cp310-linux_x86_64.whl
error: [Errno 18] Invalid cross-device link: 'ktransformers-0.1.1+cu122torch23fancy-cp310-cp310-linux_x86_64.whl' -> '/tmp/pip-wheel-bxz7xsx4/.tmp-1zlb72in/ktransformers-0.1.1-cp310-cp310-linux_x86_64.whl'
error: subprocess-exited-with-error

× Building wheel for ktransformers (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /mnt/disk1/envs/default/miniconda3/envs/sglang/bin/python /mnt/disk1/envs/default/miniconda3/envs/sglang/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpb1_b9a00
cwd: /mnt/disk1/wy/ktransformers
Building wheel for ktransformers (pyproject.toml) ... error
ERROR: Failed building wheel for ktransformers
Failed to build ktransformers
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (ktransformers)`

Originally created by @RoacherM on GitHub (Aug 6, 2024). Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/23 I tried to compile this library myself, but ultimately failed. Do you have a pre-compiled .whl file available? My current machine environment is CUDA 12.2, PyTorch 2.3+cu121, and the GPU model is H100. ` Running command Building wheel for ktransformers (pyproject.toml) Using native cpu instruct running bdist_wheel Using native cpu instruct Guessing wheel URL: https://github.com/kvcache-ai/ktransformers/releases/download/v0.1.1/ktransformers-0.1.1+cu122torch23fancy-cp310-cp310-linux_x86_64.whl Raw wheel path /tmp/pip-wheel-bxz7xsx4/.tmp-1zlb72in/ktransformers-0.1.1-cp310-cp310-linux_x86_64.whl error: [Errno 18] Invalid cross-device link: 'ktransformers-0.1.1+cu122torch23fancy-cp310-cp310-linux_x86_64.whl' -> '/tmp/pip-wheel-bxz7xsx4/.tmp-1zlb72in/ktransformers-0.1.1-cp310-cp310-linux_x86_64.whl' error: subprocess-exited-with-error × Building wheel for ktransformers (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: /mnt/disk1/envs/default/miniconda3/envs/sglang/bin/python /mnt/disk1/envs/default/miniconda3/envs/sglang/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpb1_b9a00 cwd: /mnt/disk1/wy/ktransformers Building wheel for ktransformers (pyproject.toml) ... error ERROR: Failed building wheel for ktransformers Failed to build ktransformers ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (ktransformers)`
Author
Owner

@UnicornChan commented on GitHub (Aug 6, 2024):

The pre-compiled package can be downloaded from the URL mentioned in the error log https://github.com/kvcache-ai/ktransformers/releases/download/v0.1.1/ktransformers-0.1.1+cu122torch23fancy-cp310-cp310-linux_x86_64.whl
However, the pre-compiled package was built with TORCH_CUDA_ARCH_LIST="8.0;8.6;8.7;8.9" and does not include "9.0" which is the arch for H100. I am not sure if the pre-compiled package will run on H100.
I suggest compile it, For compile this library, use

KTRANSFORMERS_FORCE_BUILD=TRUE pip install . --no-build-isolation

instead of using the following command pip install . --no-build-isolation in install.sh
I will correct it right away

<!-- gh-comment-id:2271117689 --> @UnicornChan commented on GitHub (Aug 6, 2024): The pre-compiled package can be downloaded from the URL mentioned in the error log [https://github.com/kvcache-ai/ktransformers/releases/download/v0.1.1/ktransformers-0.1.1+cu122torch23fancy-cp310-cp310-linux_x86_64.whl](https://github.com/kvcache-ai/ktransformers/releases/download/v0.1.1/ktransformers-0.1.1+cu122torch23fancy-cp310-cp310-linux_x86_64.whl) However, the pre-compiled package was built with TORCH_CUDA_ARCH_LIST="8.0;8.6;8.7;8.9" and does not include "9.0" which is the arch for H100. I am not sure if the pre-compiled package will run on H100. I suggest compile it, For compile this library, use ``` KTRANSFORMERS_FORCE_BUILD=TRUE pip install . --no-build-isolation ``` instead of using the following command ```pip install . --no-build-isolation``` in [install.sh](https://github.com/kvcache-ai/ktransformers/blob/v0.1.1/install.sh) I will correct it right away
Author
Owner

@chuangzhidan commented on GitHub (Feb 20, 2025):

The pre-compiled package can be downloaded from the URL mentioned in the error log https://github.com/kvcache-ai/ktransformers/releases/download/v0.1.1/ktransformers-0.1.1+cu122torch23fancy-cp310-cp310-linux_x86_64.whl However, the pre-compiled package was built with TORCH_CUDA_ARCH_LIST="8.0;8.6;8.7;8.9" and does not include "9.0" which is the arch for H100. I am not sure if the pre-compiled package will run on H100. I suggest compile it, For compile this library, use

KTRANSFORMERS_FORCE_BUILD=TRUE pip install . --no-build-isolation

instead of using the following command pip install . --no-build-isolation in install.sh I will correct it right away

KTRANSFORMERS_FORCE_BUILD=TRUE pip install . --no-build-isolation doesn't work for me , mine is A800. this installing thing is really not friendly (a bitch), i have been working on this for days!

<!-- gh-comment-id:2670553200 --> @chuangzhidan commented on GitHub (Feb 20, 2025): > The pre-compiled package can be downloaded from the URL mentioned in the error log https://github.com/kvcache-ai/ktransformers/releases/download/v0.1.1/ktransformers-0.1.1+cu122torch23fancy-cp310-cp310-linux_x86_64.whl However, the pre-compiled package was built with TORCH_CUDA_ARCH_LIST="8.0;8.6;8.7;8.9" and does not include "9.0" which is the arch for H100. I am not sure if the pre-compiled package will run on H100. I suggest compile it, For compile this library, use > > ``` > KTRANSFORMERS_FORCE_BUILD=TRUE pip install . --no-build-isolation > ``` > > instead of using the following command `pip install . --no-build-isolation` in [install.sh](https://github.com/kvcache-ai/ktransformers/blob/v0.1.1/install.sh) I will correct it right away **KTRANSFORMERS_FORCE_BUILD=TRUE pip install . --no-build-isolation doesn't work for me , mine is A800. this installing thing is really not friendly (a bitch), i have been working on this for days!**
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/ktransformers#13
No description provided.