mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #137] 希望上传最新的pypi包和docker镜像 #76
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#76
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zhyim0712 on GitHub (Feb 11, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/137
本地打包镜像报错
62.95 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
62.95 Successfully installed einops-0.8.1 flash-attn-2.7.4.post1
63.37 Using pip 24.0 from /opt/conda/lib/python3.10/site-packages/pip (python 3.10)
63.42 Processing /workspace/ktransformers
63.42 Preparing metadata (pyproject.toml): started
63.42 Running command Preparing metadata (pyproject.toml)
65.20 error: subprocess-exited-with-error
65.20
65.20 × Preparing metadata (pyproject.toml) did not run successfully.
65.20 │ exit code: -8
65.20 ╰─> See above for output.
65.20
65.20 note: This error originates from a subprocess, and is likely not a problem with pip.
65.20 full command: /opt/conda/bin/python /opt/conda/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp401kn4_o
65.20 cwd: /workspace/ktransformers
65.20 Preparing metadata (pyproject.toml): finished with status 'error'
65.20 error: metadata-generation-failed
65.20
65.20 × Encountered error while generating package metadata.
65.20 ╰─> See above for output.
65.20
65.20 note: This is an issue with the package mentioned above, not pip.
65.20 hint: See above for details.
3 warnings found (use docker --debug to expand):
Dockerfile:17
16 | COPY --from=web_compile /home/ktransformers /workspace/ktransformers
17 | >>> RUN <<EOF
18 | >>> apt update -y && apt install -y --no-install-recommends
19 | >>> git
20 | >>> wget
21 | >>> vim
22 | >>> gcc
23 | >>> g++
24 | >>> cmake &&
25 | >>> rm -rf /var/lib/apt/lists/* &&
26 | >>> cd ktransformers &&
27 | >>> git submodule init &&
28 | >>> git submodule update &&
29 | >>> pip install ninja pyproject numpy cpufeature &&
30 | >>> pip install flash-attn &&
31 | >>> CPU_INSTRUCT=NATIVE KTRANSFORMERS_FORCE_BUILD=TRUE TORCH_CUDA_ARCH_LIST="8.0;8.6;8.7;8.9;9.0+PTX" pip install . --no-build-isolation --verbose &&
32 | >>> pip cache purge
33 | >>> EOF
34 |
ERROR: failed to solve: process "/bin/sh -c apt update -y && apt install -y --no-install-recommends \\n git \\n wget \\n vim \\n gcc \\n g++ \\n cmake && \nrm -rf /var/lib/apt/lists/* &&\ncd ktransformers &&\ngit submodule init &&\ngit submodule update &&\npip install ninja pyproject numpy cpufeature &&\npip install flash-attn &&\nCPU_INSTRUCT=NATIVE KTRANSFORMERS_FORCE_BUILD=TRUE TORCH_CUDA_ARCH_LIST="8.0;8.6;8.7;8.9;9.0+PTX" pip install . --no-build-isolation --verbose &&\npip cache purge\n" did not complete successfully: exit code: 1
@KMSorSMS commented on GitHub (Feb 11, 2025):
能给我你的详细命令吗?隐藏掉隐私信息即可
@zhyim0712 commented on GitHub (Feb 11, 2025):
我打包的命令是docker build -t ktransformers:0.2.0 . --platform linux/amd64,我的M1的Mac,我的服务器连不了外网,我打算本地打包好上传到服务器,完整的日志如下:
[+] Building 63.3s (11/11) FINISHED docker:orbstack
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.01kB 0.0s
=> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) 0.0s
=> WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 13) 0.0s
=> WARN: LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 15) 0.0s
=> [internal] load metadata for docker.io/pytorch/pytorch:2.3.1-cuda12.1-cudnn8-devel 0.0s
=> [internal] load metadata for docker.io/library/node:20.16.0 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [web_compile 1/3] FROM docker.io/library/node:20.16.0 0.0s
=> [compile_server 1/4] FROM docker.io/pytorch/pytorch:2.3.1-cuda12.1-cudnn8-devel 0.0s
=> CACHED [compile_server 2/4] WORKDIR /workspace 0.0s
=> CACHED [web_compile 2/3] WORKDIR /home 0.0s
=> CACHED [web_compile 3/3] RUN <<EOF (git clone https://github.com/kvcache-ai/ktransformers.git &&...) 0.0s
=> CACHED [compile_server 3/4] COPY --from=web_compile /home/ktransformers /workspace/ktransformers 0.0s
=> ERROR [compile_server 4/4] RUN <<EOF (apt update -y && apt install -y --no-install-recommends ...) 63.2s
3 warnings found (use docker --debug to expand):
Dockerfile:17
16 | COPY --from=web_compile /home/ktransformers /workspace/ktransformers
17 | >>> RUN <<EOF
18 | >>> apt update -y && apt install -y --no-install-recommends
19 | >>> git
20 | >>> wget
21 | >>> vim
22 | >>> gcc
23 | >>> g++
24 | >>> cmake &&
25 | >>> rm -rf /var/lib/apt/lists/* &&
26 | >>> cd ktransformers &&
27 | >>> git submodule init &&
28 | >>> git submodule update &&
29 | >>> pip install ninja pyproject numpy cpufeature &&
30 | >>> pip install flash-attn &&
31 | >>> CPU_INSTRUCT=NATIVE KTRANSFORMERS_FORCE_BUILD=TRUE TORCH_CUDA_ARCH_LIST="8.0;8.6;8.7;8.9;9.0+PTX" pip install . --no-build-isolation --verbose &&
32 | >>> pip cache purge
33 | >>> EOF
34 |
ERROR: failed to solve: process "/bin/sh -c apt update -y && apt install -y --no-install-recommends \\n git \\n wget \\n vim \\n gcc \\n g++ \\n cmake && \nrm -rf /var/lib/apt/lists/* &&\ncd ktransformers &&\ngit submodule init &&\ngit submodule update &&\npip install ninja pyproject numpy cpufeature &&\npip install flash-attn &&\nCPU_INSTRUCT=NATIVE KTRANSFORMERS_FORCE_BUILD=TRUE TORCH_CUDA_ARCH_LIST="8.0;8.6;8.7;8.9;9.0+PTX" pip install . --no-build-isolation --verbose &&\npip cache purge\n" did not complete successfully: exit code: 1
@KMSorSMS commented on GitHub (Feb 11, 2025):
之前我们dockerfile没有验证支持,可能需要改改,我们尽快支持
@zhyim0712 commented on GitHub (Feb 11, 2025):
好的好的,非常感谢
@ruifenggong commented on GitHub (Feb 12, 2025):
+1 ,求一个最新的docker镜像,自己pypi装了好久都不成功哦……
@ErvinXie commented on GitHub (Dec 11, 2025):
This issue has been automatically closed due to inactivity for 60 days.
If you believe this issue is still relevant, please feel free to reopen it with additional information or context.
Thank you for your contribution to KTransformers!
此 issue 因超过 60 天无活动而被自动关闭。
如果您认为此问题仍然存在,请随时重新打开并提供更多信息或上下文。
感谢您对 KTransformers 的贡献!