-
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.
Improve scripts, readd vllm, add new iso build mode - "gui", update …
…repositories, etc (#32) * Improve repository updating scripts * Move patches to homedir, do not apply them * Update patches * Refactor * Add gui type, fixes * Job concurrency fixes * Fix patch * Do not force terminate VM * Disable automatic workflow launch for selfhosted runner * Fix vllm buildscript * define CUDA_ARCHITECTURES env var * Remove CUDACXX * Fixes (?) * Fix pytorch issue * specify CUDAHOSTCXX * Fix * Remove xorg drivers, add xorg config * Update repositories, actions fixes * Fixes * Change menu * Add image to README.md * Add ST to README.md
- Loading branch information
Showing
42 changed files
with
786 additions
and
147 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
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,22 @@ | ||
[repositories] | ||
automatic = https://github.com/vladmandic/automatic.git | ||
axolotl = https://github.com/OpenAccess-AI-Collective/axolotl.git | ||
comfyui = https://github.com/comfyanonymous/ComfyUI.git | ||
koboldcpp = https://github.com/LostRuins/koboldcpp.git | ||
llamacpp = https://github.com/ggerganov/llama.cpp.git | ||
sillytavern = https://github.com/SillyTavern/SillyTavern.git | ||
sillytavern_extras = https://github.com/SillyTavern/SillyTavern-Extras.git | ||
text_generation_webui = https://github.com/oobabooga/text-generation-webui.git | ||
vllm = https://github.com/vllm-project/vllm.git | ||
|
||
[revisions] | ||
automatic = de267390905335d353deab3e9ac2031432f4d305 | ||
axolotl = 68601ec6ad1cc0e8cb855376586e6eef6a8aa270 | ||
comfyui = 8dc19e40d129c8ee049be7be2657458509717ba5 | ||
koboldcpp = 593f08bb78ab6035f91cc7aa753975254f30ed82 | ||
llamacpp = 784e11dea1f5ce9638851b2b0dddb107e2a609c8 | ||
sillytavern = 47b656260595967ad70b749845f7b5b33ed3631c | ||
sillytavern_extras = 1d82f3a8607319d1e09a2f4749a09c564c18c320 | ||
text_generation_webui = ad122361ea1dbc4b419214891b83f6b9ac12f947 | ||
vllm = a395a638c2f18d549e7d01655cf7a6dbee566f91 | ||
|
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,43 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import configparser | ||
import requests | ||
|
||
def fetch_latest_revision(url): | ||
# github | ||
if url.startswith("https://github.com/") and url.endswith(".git"): | ||
# extract repo path | ||
path = url[19:-4] | ||
|
||
# get commits from api | ||
response = requests.get(f"https://api.github.com/repos/{path}/commits") | ||
|
||
# throw error if not success | ||
response.raise_for_status() | ||
|
||
# parse json | ||
data = response.json() | ||
|
||
# return first commit id | ||
return data[0]["sha"] | ||
|
||
raise ValueError(f"Unsupported: {url}") | ||
|
||
def main(): | ||
# load options | ||
config = configparser.ConfigParser() | ||
config.read(".ci/options.ini") | ||
|
||
# default option value | ||
config["revisions"] = {} | ||
|
||
# iterate over repositories | ||
for key, value in config.items("repositories"): | ||
config["revisions"][key] = fetch_latest_revision(value) | ||
|
||
# write config back | ||
with open(".ci/options.ini", "w") as file: | ||
config.write(file) | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Build ISO on hosted runner (CUDA, gui) | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Cleanup | ||
uses: rokibhasansagar/slimhub_actions@main | ||
with: | ||
retain: "docker_buildkit,docker_imgcache" | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build image | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: archlinux:latest | ||
|
||
options: --privileged --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 CUDA | ||
.ci/configure.py cuda gui | ||
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/ |
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
Oops, something went wrong.