Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ktransformers
Commits
1264f940
Unverified
Commit
1264f940
authored
Feb 28, 2025
by
ZiWei Yuan
Committed by
GitHub
Feb 28, 2025
Browse files
Merge pull request #732 from KMSorSMS/main
⚡
fox docker build
parents
add41512
a0e7afa4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
2 deletions
+13
-2
.devcontainer/Dockerfile
.devcontainer/Dockerfile
+2
-1
.github/workflows/docker-image.yml
.github/workflows/docker-image.yml
+8
-0
.gitignore
.gitignore
+1
-0
Dockerfile
Dockerfile
+2
-1
No files found.
.devcontainer/Dockerfile
View file @
1264f940
FROM
pytorch/pytorch:2.
3
.1-cuda12.1-cudnn
8
-devel as compile_server
FROM
pytorch/pytorch:2.
5
.1-cuda12.1-cudnn
9
-devel as compile_server
WORKDIR
/workspace
ENV
CUDA_HOME /usr/local/cuda
RUN
<<
EOF
...
...
@@ -10,6 +10,7 @@ apt update -y && apt install -y --no-install-recommends \
g++ \
cmake &&
rm -rf /var/lib/apt/lists/* &&
pip install --upgrade pip &&
pip install ninja pyproject numpy cpufeature &&
pip install flash-attn &&
cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /opt/conda/lib/
...
...
.github/workflows/docker-image.yml
View file @
1264f940
...
...
@@ -3,6 +3,14 @@ name: DockerHub CI
on
:
release
:
types
:
[
published
]
workflow_dispatch
:
inputs
:
choose
:
description
:
'
Will
you
push
the
image
to
DockerHub?
0
for
No,
1
for
Yes'
required
:
true
default
:
'
0'
type
:
string
# push:
# branches:
# - main
...
...
.gitignore
View file @
1264f940
...
...
@@ -25,3 +25,4 @@ book
ktransformers/tests/chat_txt.txt
mmlu_result*
ktransformers/ktransformers_ext/cuda_musa/
test_prompt.txt
Dockerfile
View file @
1264f940
...
...
@@ -10,7 +10,7 @@ EOF
FROM
pytorch/pytorch:2.
3
.1-cuda12.1-cudnn
8
-devel as compile_server
FROM
pytorch/pytorch:2.
5
.1-cuda12.1-cudnn
9
-devel as compile_server
ARG
CPU_INSTRUCT=NATIVE
WORKDIR
/workspace
ENV
CUDA_HOME /usr/local/cuda
...
...
@@ -27,6 +27,7 @@ rm -rf /var/lib/apt/lists/* &&
cd ktransformers &&
git submodule init &&
git submodule update &&
pip install --upgrade pip &&
pip install ninja pyproject numpy cpufeature &&
pip install flash-attn &&
CPU_INSTRUCT=${CPU_INSTRUCT} 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 &&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment