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
659583a9
Unverified
Commit
659583a9
authored
Mar 03, 2025
by
Atream
Committed by
GitHub
Mar 03, 2025
Browse files
Merge pull request #770 from SkqLiao/main
Introduce Testing Jobs for kTransformers Setup on Self-Hosted Runner
parents
48b98007
7d96e2ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
+52
-0
.github/workflows/install.yml
.github/workflows/install.yml
+52
-0
No files found.
.github/workflows/install.yml
0 → 100644
View file @
659583a9
name
:
Install KTransformers
run-name
:
Install KTransformers
on
:
workflow_dispatch
:
inputs
:
job_to_run
:
description
:
"
Which
job
to
run?"
required
:
true
default
:
"
install"
type
:
choice
options
:
-
create&install
-
install
jobs
:
Install-KTransformers
:
runs-on
:
self-hosted
steps
:
-
run
:
echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
-
run
:
echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
-
name
:
Check out repository code
uses
:
actions/checkout@v4
-
run
:
echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
-
name
:
Remove old conda environment
continue-on-error
:
true
if
:
${{ inputs.job_to_run == 'create&install'}}
run
:
|
source /home/qujing3/anaconda3/etc/profile.d/conda.sh
conda env remove --name ktransformers-dev -y
-
name
:
Create conda environment
if
:
${{ inputs.job_to_run == 'create&install'}}
run
:
|
source /home/qujing3/anaconda3/etc/profile.d/conda.sh
conda create --name ktransformers-dev python=3.11
conda activate ktransformers-dev
conda install -c conda-forge libstdcxx-ng -y
-
name
:
Install dependencies
if
:
${{ inputs.job_to_run == 'create&install'}}
run
:
|
source /home/qujing3/anaconda3/etc/profile.d/conda.sh
conda activate ktransformers-dev
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
pip3 install packaging ninja cpufeature numpy
pip install ~/flash_attn-2.7.4.post1+cu12torch2.6cxx11abiTRUE-cp311-cp311-linux_x86_64.whl
-
name
:
Install KTransformers
run
:
|
source /home/qujing3/anaconda3/etc/profile.d/conda.sh
conda activate ktransformers-dev
cd ${{ github.workspace }}
git submodule init
git submodule update
USE_NUMA=1 bash install.sh
-
run
:
echo "This job's status is ${{ job.status }}."
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