Skip to content

Commit

Permalink
feat: builder
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelass committed Feb 17, 2024
1 parent 6ff516d commit e899ba1
Show file tree
Hide file tree
Showing 39 changed files with 989 additions and 26 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 4
max_line_length = 100
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

# trailing spaces in markdown indicate word wrap
[*.md]
trim_trailing_whitespace = false


[{*.json,*.md,*.yml,.*rc,.*config,*.feature,*.prisma}]
indent_style = space

[{*.json,*.yml,.*rc,.*config,*.feature,*.prisma}]
indent_size = 2
75 changes: 75 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
on:
push:
branches:
- alpha

jobs:
build:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.package_version.outputs.version }}
steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: "14" # Adjust this to your project's Node.js version
- name: Install dependencies
run: npm install
- name: Run start script
run: npm run start
- name: Get version from package.json
id: package_version
run: echo "::set-output name=version::$(jq -r '.version' package.json)"
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: index
path: index.json

check-release:
needs: build
runs-on: ubuntu-latest
outputs:
exists: ${{ steps.check_release.outputs.exists }}
steps:
- uses: actions/checkout@v2
- name: Check if release already exists
id: check_release
run: |
RELEASE_URL=$(curl -sH "Authorization: token ${{secrets.GITHUB_TOKEN}}" https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ needs.build.outputs.version }})
if [[ "$RELEASE_URL" == *"\"url\": \"*"* ]]; then
echo "::set-output name=exists::true"
else
echo "::set-output name=exists::false"
fi
release:
needs: check-release
if: needs.check-release.outputs.exists == 'false'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
with:
name: index
path: .
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.build.outputs.version }}
release_name: Release ${{ needs.build.outputs.version }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./index.json
asset_name: index.json
asset_content_type: application/json
4 changes: 4 additions & 0 deletions .ncurc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"upgrade": true,
"reject": ["@types/node", "codemirror", "next", "sharp"]
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.17.1
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CHANGELOG.md
10 changes: 10 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"trailingComma": "es5",
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"bracketSpacing": true,
"arrowParens": "avoid",
"proseWrap": "always"
}
1 change: 1 addition & 0 deletions files/caption/llava-hf/llava-1.5-13b-hf/example.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A black and white drawing of a bearded man wearing glasses, a shaggy mustache, and a striped shirt
9 changes: 9 additions & 0 deletions files/caption/llava-hf/llava-1.5-13b-hf/info.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
type: "trained",
architecture: "llava",
title: "Llava 1.5 13b hf",
author: "Llava Hugging Face",
link: "https://huggingface.co/llava-hf/llava-1.5-13b-hf",
license: "apache-2.0",
git: true,
}
1 change: 1 addition & 0 deletions files/caption/llava-hf/llava-1.5-7b-hf/example.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A black and white drawing of a bearded man wearing glasses, a shaggy mustache, and a striped shirt
9 changes: 9 additions & 0 deletions files/caption/llava-hf/llava-1.5-7b-hf/info.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
type: "trained",
architecture: "llava",
title: "Llava 1.5 7b hf",
author: "Llava Hugging Face",
link: "https://huggingface.co/llava-hf/llava-1.5-7b-hf",
license: "apache-2.0",
git: true,
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
type: "trained",
architecture: "ONNX",
architecture: "wd14",
title: "WD 1.4 ConvNext Tagger V2",
author: "Smiling Wolf",
link: "https://huggingface.co/SmilingWolf/wd-v1-4-convnext-tagger-v2",
license: "apache-2.0",
files: [
{
filename: "model.onnx",
required: true
},
{
filename: "selected_tags.csv",
required: true
}
],
]
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
type: "trained",
architecture: "ONNX",
architecture: "wd14",
title: "WD 1.4 ConvNextV2 Tagger V2",
author: "Smiling Wolf",
link: "https://huggingface.co/SmilingWolf/wd-v1-4-convnextv2-tagger-v2",
license: "apache-2.0",
files: [
{
filename: "model.onnx",
required: true
},
{
filename: "selected_tags.csv",
required: true
}
],
]
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
type: "trained",
architecture: "ONNX",
architecture: "wd14",
title: "WD 1.4 MOAT Tagger V2",
author: "Smiling Wolf",
link: "https://huggingface.co/SmilingWolf/wd-v1-4-moat-tagger-v2",
license: "apache-2.0",
files: [
{
filename: "model.onnx",
required: true
},
{
filename: "selected_tags.csv",
required: true
}
],
]
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
type: "trained",
architecture: "ONNX",
architecture: "wd14",
title: "WD 1.4 SwinV2 Tagger V2",
author: "Smiling Wolf",
link: "https://huggingface.co/SmilingWolf/wd-v1-4-swinv2-tagger-v2",
license: "apache-2.0",
files: [
{
filename: "model.onnx",
required: true
},
{
filename: "selected_tags.csv",
required: true
}
],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
type: "trained",
architecture: "sd-1-5",
title: "Stable Diffusion v1-5",
author: "Runway",
link: "https://huggingface.co/runwayml/stable-diffusion-v1-5",
license: "creativeml-openrail-m",
files: [
{
filename: "v1-5-pruned.safetensors",
variant: "fp16",
},
{
filename: "v1-5-pruned-emaonly.safetensors",
variant: "fp16",
},
],
}

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
type: "trained",
architecture: "sd-xl-1-0",
title: "Eugène Atget",
author: "Blibla",
link: "https://huggingface.co/Blib-la/eugene_atget_lora_sdxl ",
license: "cc-by-nc-4.0",
files: [
{
filename: "eugene_atget_sdxl_v1.safetensors",
variant: "bf16",
},
],
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
type: "trained",
architecture: "sd-xl-1-0",
title: "Honoré Daumier",
author: "Blibla",
link: "https://huggingface.co/Blib-la/honore_daumier_lora_sdxl",
license: "cc-by-nc-4.0",
files: [
{
filename: "honore_daumier_sdxl_v1.safetensors",
variant: "bf16",
},
],
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
type: "trained",
architecture: "sd-xl-1-0",
title: "Max und Moritz by Wilhelm Busch",
author: "Blibla",
link: "https://huggingface.co/Blib-la/max_und_moritz_wilhelm_busch_lora_sdxl",
license: "cc-by-nc-4.0",
files: [
{
filename: "max_und_moritz_wilhelm_busch_sdxl_v1.safetensors",
variant: "bf16",
},
],
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
type: "trained",
architecture: "sd-xl-1-0",
title: "Thomas Rowlandson",
author: "Blibla",
link: "https://huggingface.co/Blib-la/thomas_rowlandson_lora_sdxl",
license: "cc-by-nc-4.0",
files: [
{
filename: "thomas_rowlandson_sdxl_v1.safetensors",
variant: "bf16",
},
],
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
type: "trained",
architecture: "sd-xl-1-0",
title: "Used Leather",
author: "Blibla",
link: "https://huggingface.co/Blib-la/used_leather_lora_sdxl",
license: "cc-by-nc-4.0",
files: [
{
filename: "used_leather_sdxl_v1.safetensors",
variant: "bf16",
},
],
}
Loading

0 comments on commit e899ba1

Please sign in to comment.