-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update repositories, reenable ROCm on selfhosted runner, add packages (…
…#24) CI: * Rename actions * Create actions generator * Configure mirrorlist before building * Use work dir inside container * Remove container when stopped * Fix CI exec conditions Misc: * Update repositories * Add useful packages * Update README.md * Add vm shutdown logic
- Loading branch information
Showing
16 changed files
with
248 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import jinja2 | ||
|
||
def main(): | ||
for filename in [ "gh-build-iso", "sh-build-iso" ]: | ||
for type in [ "cuda", "rocm" ]: | ||
# read input file | ||
with open(f".ci/template/{filename}.yml.jinja2", "r") as file: | ||
template = jinja2.Template(file.read()) | ||
|
||
# render template | ||
rendered = template.render(type=type) | ||
|
||
# FIXME: skip if hosted and rocm | ||
if filename == "gh-build-iso" and type == "rocm": | ||
continue | ||
|
||
# FIXME: skip if selfhosted and cuda | ||
if filename == "sh-build-iso" and type == "cuda": | ||
continue | ||
|
||
# write output file | ||
with open(f".github/workflows/{filename}-{type}.yml", "w") as file: | ||
file.write(rendered) | ||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: Build ISO on selfhosted runner ({{ "CUDA" if type == "cuda" else "ROCm" }}) | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
vm-start: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Start virtual machine | ||
run: | | ||
# Do nothing for now | ||
exit 0 | ||
|
||
build: | ||
needs: vm-start | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build image | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: archlinux:latest | ||
{%- raw %} | ||
options: --privileged --rm --volume ${{ github.workspace }}:/workspace | ||
{%- endraw %} | ||
run: | | ||
# Exit on error | ||
set -eu | ||
|
||
# Enter project directory | ||
pushd /workspace | ||
# Install dependencies | ||
.ci/dependencies.sh | ||
|
||
# Patch mkarchiso | ||
.ci/mkarchiso.sh | ||
|
||
# Configure to use {{ "CUDA" if type == "cuda" else "ROCm" }} | ||
.ci/configure.py {{ type }} | ||
popd | ||
|
||
# Build image | ||
mkarchiso -v -m iso -w /_work -o /workspace/out /workspace | ||
|
||
- name: Create summary | ||
run: | | ||
# Exit on error | ||
set -eu | ||
|
||
# Print checksums to summary | ||
sha256sum out/* > "$GITHUB_STEP_SUMMARY" | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: archiso-output | ||
path: out/ | ||
|
||
vm-shutdown: | ||
needs: build | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: Stop virtual machine | ||
run: | | ||
# Shutdown in 1 minute | ||
sudo shutdown 1 | ||
|
||
vm-shutdown-wait: | ||
needs: vm-shutdown | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Wait until virtual machine is stopped | ||
run: | | ||
# Wait for 2 minutes | ||
sleep 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: Build ISO on selfhosted runner (ROCm) | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
vm-start: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Start virtual machine | ||
run: | | ||
# Do nothing for now | ||
exit 0 | ||
build: | ||
needs: vm-start | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Build image | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: archlinux:latest | ||
options: --privileged --rm --volume ${{ github.workspace }}:/workspace | ||
run: | | ||
# Exit on error | ||
set -eu | ||
# Enter project directory | ||
pushd /workspace | ||
# Install dependencies | ||
.ci/dependencies.sh | ||
# Patch mkarchiso | ||
.ci/mkarchiso.sh | ||
# Configure to use ROCm | ||
.ci/configure.py rocm | ||
popd | ||
# Build image | ||
mkarchiso -v -m iso -w /_work -o /workspace/out /workspace | ||
- name: Create summary | ||
run: | | ||
# Exit on error | ||
set -eu | ||
# Print checksums to summary | ||
sha256sum out/* > "$GITHUB_STEP_SUMMARY" | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: archiso-output | ||
path: out/ | ||
|
||
vm-shutdown: | ||
needs: build | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: Stop virtual machine | ||
run: | | ||
# Shutdown in 1 minute | ||
sudo shutdown 1 | ||
vm-shutdown-wait: | ||
needs: vm-shutdown | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Wait until virtual machine is stopped | ||
run: | | ||
# Wait for 2 minutes | ||
sleep 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ComfyUI
updated
9 files
+1 −1 | comfy/controlnet.py | |
+4 −0 | comfy/model_base.py | |
+3 −2 | comfy/samplers.py | |
+6 −3 | comfy/sd.py | |
+25 −0 | comfy_extras/nodes_cond.py | |
+20 −0 | comfy_extras/nodes_images.py | |
+1 −0 | nodes.py | |
+1 −0 | web/extensions/core/widgetInputs.js | |
+6 −1 | web/style.css |
Submodule automatic
updated
from 376bac to 3c9526
Submodule axolotl
updated
from 9bca7d to 8430db
Submodule koboldcpp
updated
9 files
+61 −2 | convert-hf-to-gguf.py | |
+2 −2 | examples/llava/README.md | |
+86 −47 | ggml-cuda.cu | |
+5 −3 | ggml-sycl.cpp | |
+4 −3 | ggml-vulkan.cpp | |
+7 −0 | gpttype_adapter.cpp | |
+28 −17 | klite.embd | |
+5 −2 | koboldcpp.py | |
+8 −6 | llama.cpp |
Submodule llama.cpp
updated
54 files
Submodule vllm
updated
8 files
+12 −3 | Dockerfile.rocm | |
+72 −294 | csrc/quantization/awq/gemm_kernels.cu | |
+2 −1 | docs/source/getting_started/amd-installation.rst | |
+1 −0 | docs/source/index.rst | |
+52 −0 | docs/source/models/lora.rst | |
+1 −1 | setup.py | |
+45 −0 | vllm/model_executor/layers/attention.py | |
+1 −1 | vllm/model_executor/layers/quantization/awq.py |
6 changes: 3 additions & 3 deletions
6
airootfs/root/customize_airootfs/patches/0100-llamacpp-enable-prompt-cache.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,9 @@ mkinitcpio-nfs-utils | |
nano | ||
ncdu | ||
neofetch | ||
net-tools | ||
nfs-utils | ||
ntfs-3g | ||
nvtop | ||
openssh | ||
progress | ||
|