mirror of
https://github.com/bentoml/OpenLLM.git
synced 2026-04-18 22:18:34 -04:00
refactor(contrib): similar namespace [clojure-ui build] (#251)
This commit is contained in:
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@@ -1,3 +1,3 @@
|
||||
* @aarnphm
|
||||
|
||||
contrib/clojure @GutZuFusss
|
||||
openllm-contrib/clojure @GutZuFusss
|
||||
|
||||
4
.github/actions/release.sh
vendored
4
.github/actions/release.sh
vendored
@@ -52,12 +52,12 @@ release_package() {
|
||||
pushd openllm-node &>/dev/null
|
||||
jq --arg release_version "${version}" '.version = $release_version' < package.json > package.json.tmp && mv package.json.tmp package.json
|
||||
popd &>/dev/null
|
||||
pushd contrib/clojure &>/dev/null
|
||||
pushd openllm-contrib/clojure &>/dev/null
|
||||
jq --arg release_version "${version}" '.version = $release_version' < package.json > package.json.tmp && mv package.json.tmp package.json
|
||||
popd &>/dev/null
|
||||
towncrier build --yes --version "${version}"
|
||||
cp CHANGELOG.md openllm-python/CHANGELOG.md
|
||||
git add CHANGELOG.md openllm-python/CHANGELOG.md changelog.d package.json openllm-node/package.json contrib/clojure/package.json
|
||||
git add CHANGELOG.md openllm-python/CHANGELOG.md changelog.d package.json openllm-node/package.json openllm-contrib/clojure/package.json
|
||||
git commit -S -sm "infra: prepare for release ${version} [generated] [skip ci]"
|
||||
git push origin main
|
||||
echo "Releasing tag ${version}..." && git tag -a "v${version}" -sm "Release ${version} [generated by GitHub Actions]"
|
||||
|
||||
4
.github/workflows/binary-releases.yml
vendored
4
.github/workflows/binary-releases.yml
vendored
@@ -14,7 +14,7 @@ on:
|
||||
- 'assets/**'
|
||||
- 'openllm-node/**'
|
||||
- 'Formula/**'
|
||||
- 'contrib/clojure/**'
|
||||
- 'openllm-contrib/clojure/**'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
@@ -26,7 +26,7 @@ on:
|
||||
- 'assets/**'
|
||||
- 'openllm-node/**'
|
||||
- 'Formula/**'
|
||||
- 'contrib/clojure/**'
|
||||
- 'openllm-contrib/clojure/**'
|
||||
defaults:
|
||||
run:
|
||||
shell: bash --noprofile --norc -exo pipefail {0}
|
||||
|
||||
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -1,5 +1,6 @@
|
||||
name: Continuous Integration
|
||||
on:
|
||||
workflow_call:
|
||||
push:
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
@@ -9,7 +10,7 @@ on:
|
||||
- '*.md'
|
||||
- 'changelog.d/**'
|
||||
- 'assets/**'
|
||||
- 'contrib/clojure/**'
|
||||
- 'openllm-contrib/clojure/**'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
@@ -19,7 +20,7 @@ on:
|
||||
- '*.md'
|
||||
- 'changelog.d/**'
|
||||
- 'assets/**'
|
||||
- 'contrib/clojure/**'
|
||||
- 'openllm-contrib/clojure/**'
|
||||
env:
|
||||
LINES: 120
|
||||
COLUMNS: 120
|
||||
@@ -46,6 +47,7 @@ jobs:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # ratchet:actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- uses: bentoml/setup-bentoml-action@59beefe94e2e8f8ebbedf555fc86bd5d1ae0a708 # ratchet:bentoml/setup-bentoml-action@v1
|
||||
with:
|
||||
bentoml-version: 'main'
|
||||
@@ -63,12 +65,12 @@ jobs:
|
||||
name: report-coverage
|
||||
runs-on: ubuntu-latest
|
||||
if: false
|
||||
needs:
|
||||
- tests
|
||||
needs: tests
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # ratchet:actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- uses: bentoml/setup-bentoml-action@59beefe94e2e8f8ebbedf555fc86bd5d1ae0a708 # ratchet:bentoml/setup-bentoml-action@v1
|
||||
with:
|
||||
bentoml-version: 'main'
|
||||
|
||||
4
.github/workflows/clojure-frontend.yml
vendored
4
.github/workflows/clojure-frontend.yml
vendored
@@ -102,8 +102,8 @@ jobs:
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # ratchet:docker/build-push-action@v4
|
||||
with:
|
||||
context: contrib/clojure
|
||||
file: contrib/clojure/Dockerfile
|
||||
context: openllm-contrib/clojure
|
||||
file: openllm-contrib/clojure/Dockerfile
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
build-args: |
|
||||
|
||||
4
.github/workflows/compile-pypi.yml
vendored
4
.github/workflows/compile-pypi.yml
vendored
@@ -24,7 +24,7 @@ on:
|
||||
- '*.md'
|
||||
- 'changelog.d/**'
|
||||
- 'assets/**'
|
||||
- 'contrib/clojure/**'
|
||||
- 'openllm-contrib/clojure/**'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
@@ -34,7 +34,7 @@ on:
|
||||
- '*.md'
|
||||
- 'changelog.d/**'
|
||||
- 'assets/**'
|
||||
- 'contrib/clojure/**'
|
||||
- 'openllm-contrib/clojure/**'
|
||||
env:
|
||||
LINES: 120
|
||||
COLUMNS: 120
|
||||
|
||||
4
.github/workflows/create-releases.yml
vendored
4
.github/workflows/create-releases.yml
vendored
@@ -169,10 +169,10 @@ jobs:
|
||||
pushd openllm-node &>/dev/null
|
||||
jq --arg release_version "${DEV_VERSION}" '.version = $release_version' < package.json > package.json.tmp && mv package.json.tmp package.json
|
||||
popd &>/dev/null
|
||||
pushd contrib/clojure &>/dev/null
|
||||
pushd openllm-contrib/clojure &>/dev/null
|
||||
jq --arg release_version "${version}" '.version = $release_version' < package.json > package.json.tmp && mv package.json.tmp package.json
|
||||
popd &>/dev/null
|
||||
git add package.json openllm-node/package.json contrib/clojure/package.json && git commit -S -sm "infra: bump to dev version of ${DEV_VERSION} [generated] [skip ci]"
|
||||
git add package.json openllm-node/package.json openllm-contrib/clojure/package.json && git commit -S -sm "infra: bump to dev version of ${DEV_VERSION} [generated] [skip ci]"
|
||||
git push origin HEAD:main
|
||||
binary-distribution:
|
||||
if: github.repository_owner == 'bentoml'
|
||||
|
||||
3
.github/workflows/cron.yml
vendored
3
.github/workflows/cron.yml
vendored
@@ -17,6 +17,9 @@ concurrency:
|
||||
group: cron-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
scheduled-tests:
|
||||
if: github.repository_owner == 'bentoml'
|
||||
uses: bentoml/OpenLLM/.github/workflows/ci.yml@main # ratchet:exclude
|
||||
update-actions:
|
||||
runs-on: 'ubuntu-latest'
|
||||
name: Ratchet update
|
||||
|
||||
@@ -39,7 +39,7 @@ This changelog is managed by towncrier and is compiled at release time.
|
||||
|
||||
- OpenLLM now include a community-maintained ClojureScript UI, Thanks @GutZuFusss
|
||||
|
||||
See [this README.md](/contrib/clojure/README.md) for more information
|
||||
See [this README.md](/openllm-contrib/clojure/README.md) for more information
|
||||
|
||||
OpenLLM will also include a `--cors` to enable start with cors enabled.
|
||||
[#89](https://github.com/bentoml/openllm/issues/89)
|
||||
|
||||
@@ -196,7 +196,7 @@ See this [docs](/.github/INFRA.md) for more information on OpenLLM's CI/CD workf
|
||||
|
||||
## UI
|
||||
|
||||
See [ClojureScript UI's README.md](/contrib/clojure/README.md) for more information.
|
||||
See [ClojureScript UI's README.md](/openllm-contrib/clojure/README.md) for more information.
|
||||
|
||||
## Install from git archive install
|
||||
|
||||
|
||||
@@ -4,4 +4,4 @@ Added a separate section for all extension with the CLI. `openllm playground` is
|
||||
|
||||
introduce compiled wheels gradually
|
||||
|
||||
added a easy `loc.py` for LOC tracking
|
||||
added a easy `cz.py` for code golf and LOC
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
OpenLLM now provides SSE support
|
||||
|
||||
> [!NOTE]
|
||||
> For this to work, you must install BentoML from HEAD:
|
||||
> `pip install 'git+https://github.com/bentoml/BentoML.git@main'`
|
||||
> For this to work, you must install BentoML>=1.1.2:
|
||||
> `pip install -U bentoml>=1.1.2`
|
||||
|
||||
The endpoint can be accessed via `/v1/generate_stream`
|
||||
|
||||
Curl in fact does support SSE (by passing in `-N`)
|
||||
> [!NOTE]
|
||||
> Curl does in fact does support SSE by passing in `-N`
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
OpenLLM now comprise of three packages:
|
||||
|
||||
- openllm-core: main building blocks of OpenLLM, that doesn't depend on transformers and heavy DL libraries
|
||||
- openllm-client: The implementation of `openllm.client`
|
||||
- openllm: = openllm-core + openllm-client + DL features
|
||||
- `openllm-core`: main building blocks of OpenLLM, that doesn't depend on transformers and heavy DL libraries
|
||||
- `openllm-client`: The implementation of `openllm.client`
|
||||
- `openllm`: = `openllm-core` + `openllm-client` + DL features (under `openllm-python`)
|
||||
|
||||
@@ -93,7 +93,7 @@ write-summary-report = "python tools/write-coverage-report.py"
|
||||
detached = true
|
||||
[envs.ui.scripts]
|
||||
server = "openllm start {args:flan-t5} --working-dir {root:uri} --cors --debug"
|
||||
clojure = ["bash tools/run-clojure-ui.sh"]
|
||||
clojure = ["bash openllm-contrib/clojure/run-clojure-ui.sh"]
|
||||
[envs.ci]
|
||||
detached = true
|
||||
[envs.ci.scripts]
|
||||
@@ -102,5 +102,5 @@ recompile = ["bash ./clean.sh", "compile"]
|
||||
edi = "bash local.sh"
|
||||
lock = [
|
||||
"bash tools/lock-actions.sh",
|
||||
"pushd contrib/clojure && pnpm i --frozen-lockfile",
|
||||
"pushd openllm-contrib/clojure && pnpm i --frozen-lockfile",
|
||||
]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div align="center">
|
||||
<h1 align="center">OpenLLM ClojureScript UI</h1>
|
||||
<h1 align="center">🧭 OpenLLM ClojureScript UI</h1>
|
||||
<p>Built using <a href="http://reagent-project.github.io/">reagent</a>, <a href="https://github.com/day8/re-frame">reframe</a>, <a href="https://tailwindcss.com/">Tailwind CSS</a>, and <a href="https://shadow-cljs.github.io/docs/UsersGuide.html">shadow-cljs</a></br></p>
|
||||
<i></i>
|
||||
</div>
|
||||
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
@@ -2,9 +2,9 @@
|
||||
|
||||
set -ex -o pipefail
|
||||
|
||||
GIT_ROOT=$(git rev-parse --show-toplevel)
|
||||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)
|
||||
|
||||
cd "$GIT_ROOT" || exit 1
|
||||
cd "$SCRIPT_DIR" || exit 1
|
||||
|
||||
if ! command -v node @ >&1 > /dev/null; then
|
||||
echo "Cannot find 'node' executable in PATH. Make sure to have Node.js setup. Refer to"
|
||||
@@ -23,8 +23,4 @@ if ! command -v hatch @ >&1 > /dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
pushd contrib/clojure > /dev/null
|
||||
pnpm install
|
||||
popd > /dev/null
|
||||
|
||||
pnpm run -C "$GIT_ROOT"/contrib/clojure dev
|
||||
pnpm i && pnpm run dev
|
||||
2
openllm-python/CHANGELOG.md
generated
2
openllm-python/CHANGELOG.md
generated
@@ -39,7 +39,7 @@ This changelog is managed by towncrier and is compiled at release time.
|
||||
|
||||
- OpenLLM now include a community-maintained ClojureScript UI, Thanks @GutZuFusss
|
||||
|
||||
See [this README.md](/contrib/clojure/README.md) for more information
|
||||
See [this README.md](/openllm-contrib/clojure/README.md) for more information
|
||||
|
||||
OpenLLM will also include a `--cors` to enable start with cors enabled.
|
||||
[#89](https://github.com/bentoml/openllm/issues/89)
|
||||
|
||||
8
openllm-python/README.md
generated
8
openllm-python/README.md
generated
@@ -543,10 +543,10 @@ client.embed("I like to eat apples")
|
||||
|
||||
The following UIs are currently available for OpenLLM:
|
||||
|
||||
| UI | Owner | Type | Progress |
|
||||
|-----------------------------------------------------------------------------------|-----------------------------------------------|----------------------|----------|
|
||||
| [Clojure](https://github.com/bentoml/OpenLLM/blob/main/contrib/clojure/README.md) | [@GutZuFusss](https://github.com/GutZuFusss) | Community-maintained | 🔧 |
|
||||
| TS | BentoML Team | | 🚧 |
|
||||
| UI | Owner | Type | Progress |
|
||||
|-------------------------------------------------------------------------------------------|----------------------------------------------|----------------------|----------|
|
||||
| [Clojure](https://github.com/bentoml/OpenLLM/blob/main/openllm-contrib/clojure/README.md) | [@GutZuFusss](https://github.com/GutZuFusss) | Community-maintained | 🔧 |
|
||||
| TS | BentoML Team | | 🚧 |
|
||||
|
||||
## ⚙️ Integrations
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
},
|
||||
"workspaces": [
|
||||
"openllm-node",
|
||||
"contrib/clojure"
|
||||
"openllm-contrib/clojure"
|
||||
],
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user