You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg
55
+
RUN chmod 644 /usr/share/keyrings/nodesource.gpg
56
+
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_23.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
57
+
RUN apt-get update -y
58
+
RUN apt-get install nodejs -y
32
59
33
60
# 安装 WEB
34
61
RUN cd /workspace/ktransformers/ktransformers/website/public && rm -rf config.js && wget https://github.com/IAMJOYBO/ktransformers/raw/refs/heads/main/config.js
@@ -41,20 +68,24 @@ RUN CPU_INSTRUCT=${CPU_INSTRUCT} \
41
68
TORCH_CUDA_ARCH_LIST="8.0;8.6;8.7;8.9;9.0+PTX" \
42
69
pip install . --no-build-isolation --verbose
43
70
44
-
RUN pip install third_party/custom_flashinfer/ && pip cache purge
71
+
RUN pip install third_party/custom_flashinfer/
72
+
# 清理 pip 缓存
73
+
RUN pip cache purge
45
74
46
75
# 拷贝 C++ 运行时库
47
76
RUN cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /opt/conda/lib/
48
77
78
+
# 安装部分个人使用的工具
79
+
RUN apt install -y net-tools tree vim curl git git-lfs neofetch
49
80
# apt修改为国内源
50
81
RUN rm -rf /etc/apt/sources.list && wget https://github.com/IAMJOYBO/ktransformers/raw/refs/heads/main/sources-20.04.list -O /etc/apt/sources.list
51
82
RUN pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
52
83
53
84
# 预下载的配置文件
54
-
# RUN pip install huggingface_hub modelscope
55
-
# RUN huggingface-cli download deepseek-ai/DeepSeek-R1 --exclude *.safetensors --local-dir /app/model/DeepSeek-R1
56
-
# RUN huggingface-cli download deepseek-ai/DeepSeek-V3-0324 --exclude *.safetensors --local-dir /app/model/DeepSeek-V3-0324
57
-
# RUN huggingface-cli download deepseek-ai/DeepSeek-V2-Lite-Chat --exclude *.safetensors --local-dir /app/model/DeepSeek-V2-Lite-Chat
85
+
RUN pip install huggingface_hub modelscope
86
+
RUN huggingface-cli download deepseek-ai/DeepSeek-R1 --exclude *.safetensors --local-dir /app/model/DeepSeek-R1
87
+
RUN huggingface-cli download deepseek-ai/DeepSeek-V3-0324 --exclude *.safetensors --local-dir /app/model/DeepSeek-V3-0324
88
+
RUN huggingface-cli download deepseek-ai/DeepSeek-V2-Lite-Chat --exclude *.safetensors --local-dir /app/model/DeepSeek-V2-Lite-Chat
0 commit comments