Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ backend/go/image/stablediffusion-ggml/build/
backend/go/*/build
backend/go/kimodocpp/build-*
backend/go/kimodocpp/kimodocpp
backend/go/skintokenscpp/build-*
backend/go/skintokenscpp/skintokenscpp
backend/go/meshremesh/build-*
backend/go/meshremesh/meshremesh
backend/go/gemxcpp/build-*
backend/go/gemxcpp/gemxcpp
backend/go/*/.cache
Expand Down
95 changes: 95 additions & 0 deletions .github/backend-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3654,6 +3654,92 @@ include:
dockerfile: "./backend/Dockerfile.golang"
context: "./"
ubuntu-version: '2404'
# Standalone CPU remeshing (CGAL and AutoRemesher).
- build-type: ''
cuda-major-version: ""
cuda-minor-version: ""
platforms: 'linux/amd64'
platform-tag: 'amd64'
tag-latest: 'auto'
tag-suffix: '-cpu-meshremesh'
runs-on: 'ubuntu-latest'
base-image: "ubuntu:24.04"
skip-drivers: 'false'
backend: "meshremesh"
dockerfile: "./backend/Dockerfile.golang"
context: "./"
ubuntu-version: '2404'
- build-type: ''
cuda-major-version: ""
cuda-minor-version: ""
platforms: 'linux/arm64'
platform-tag: 'arm64'
tag-latest: 'auto'
tag-suffix: '-cpu-meshremesh'
runs-on: 'ubuntu-24.04-arm'
base-image: "ubuntu:24.04"
skip-drivers: 'false'
backend: "meshremesh"
dockerfile: "./backend/Dockerfile.golang"
context: "./"
ubuntu-version: '2404'
# skin-tokens.cpp: CPU and Vulkan, with native runners for each architecture.
- build-type: ''
cuda-major-version: ""
cuda-minor-version: ""
platforms: 'linux/amd64'
platform-tag: 'amd64'
tag-latest: 'auto'
tag-suffix: '-cpu-skintokenscpp'
runs-on: 'ubuntu-latest'
base-image: "ubuntu:24.04"
skip-drivers: 'false'
backend: "skintokenscpp"
dockerfile: "./backend/Dockerfile.golang"
context: "./"
ubuntu-version: '2404'
- build-type: ''
cuda-major-version: ""
cuda-minor-version: ""
platforms: 'linux/arm64'
platform-tag: 'arm64'
tag-latest: 'auto'
tag-suffix: '-cpu-skintokenscpp'
runs-on: 'ubuntu-24.04-arm'
base-image: "ubuntu:24.04"
skip-drivers: 'false'
backend: "skintokenscpp"
dockerfile: "./backend/Dockerfile.golang"
context: "./"
ubuntu-version: '2404'
- build-type: 'vulkan'
cuda-major-version: ""
cuda-minor-version: ""
platforms: 'linux/amd64'
platform-tag: 'amd64'
tag-latest: 'auto'
tag-suffix: '-gpu-vulkan-skintokenscpp'
runs-on: 'ubuntu-latest'
base-image: "ubuntu:24.04"
skip-drivers: 'false'
backend: "skintokenscpp"
dockerfile: "./backend/Dockerfile.golang"
context: "./"
ubuntu-version: '2404'
- build-type: 'vulkan'
cuda-major-version: ""
cuda-minor-version: ""
platforms: 'linux/arm64'
platform-tag: 'arm64'
tag-latest: 'auto'
tag-suffix: '-gpu-vulkan-skintokenscpp'
runs-on: 'ubuntu-24.04-arm'
base-image: "ubuntu:24.04"
skip-drivers: 'false'
backend: "skintokenscpp"
dockerfile: "./backend/Dockerfile.golang"
context: "./"
ubuntu-version: '2404'
# gem-x.cpp: CPU and Vulkan, with native runners for each architecture.
- build-type: ''
cuda-major-version: ""
Expand Down Expand Up @@ -6758,6 +6844,15 @@ include:

# Darwin matrix (consumed by backend-jobs-darwin).
includeDarwin:
- backend: "meshremesh"
tag-suffix: "-cpu-darwin-arm64-meshremesh"
build-type: "cpu"
lang: "go"
# The upstream device selector supports CPU/Vulkan, not Metal.
- backend: "skintokenscpp"
tag-suffix: "-cpu-darwin-arm64-skintokenscpp"
build-type: "cpu"
lang: "go"
- backend: "kimodocpp"
tag-suffix: "-cpu-darwin-arm64-kimodocpp"
build-type: "cpu"
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/addons-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
strategy:
fail-fast: true
matrix:
addon: [tables, voice, face, fine-tuning, quantization, studio, talk, telegram, slack, discord, github, gdrive, gmail, home-assistant, jellyfin, calendar, contacts, mail, office, pikvm, pirateface-search, ollama-search, sandbox, ssh, web]
addon: [asset-pipeline, tables, voice, face, fine-tuning, quantization, studio, talk, telegram, slack, discord, github, gdrive, gmail, home-assistant, jellyfin, calendar, contacts, mail, office, pikvm, pirateface-search, ollama-search, sandbox, ssh, web]
steps:
- uses: actions/checkout@v7
with:
Expand Down Expand Up @@ -158,12 +158,19 @@ jobs:
if: hashFiles(format('addons/{0}/ui/build.mjs', matrix.addon)) != ''
env:
ADDON: ${{ matrix.addon }}
run: node "addons/$ADDON/ui/build.mjs"
run: |
if [ -f "addons/$ADDON/ui/package-lock.json" ]; then npm ci --prefix "addons/$ADDON/ui"; fi
node "addons/$ADDON/ui/build.mjs"
- name: Fill the module cache the packaging checks read
# package_test.sh runs offline (GOPROXY=off) against its own cache.
# The suite covers every add-on, so one leg runs it.
if: matrix.addon == 'tables'
run: |
# This leg packages every add-on, including those with private UI dependencies.
for lock in addons/*/ui/package-lock.json; do
[ -f "$lock" ] || continue
npm ci --prefix "$(dirname "$lock")" --no-audit --no-fund
done
GOPATH="$PWD/.cache/addons/go" GOMODCACHE="$PWD/.cache/addons/go/pkg/mod" \
GOCACHE="$PWD/.cache/addons/go-build" go mod download
- name: Run the packaging checks
Expand Down Expand Up @@ -250,7 +257,7 @@ jobs:
# that publishes nothing: that add-on gets no legs. On a publishing
# event it fails the plan. A missing or malformed platform file, or
# any other error, fails the plan on every event.
all_ids="tables voice face fine-tuning quantization studio talk telegram slack discord github gdrive gmail home-assistant jellyfin calendar contacts mail office pikvm pirateface-search ollama-search sandbox ssh web"
all_ids="asset-pipeline tables voice face fine-tuning quantization studio talk telegram slack discord github gdrive gmail home-assistant jellyfin calendar contacts mail office pikvm pirateface-search ollama-search sandbox ssh web"
ids=$all_ids
if [ "$EVENT" = "pull_request" ]; then
# A pull request builds only the add-ons whose own files changed,
Expand Down Expand Up @@ -361,6 +368,7 @@ jobs:
ADDON: ${{ matrix.addon }}
run: |
npm ci --prefix core/http/react-ui
if [ -f "addons/$ADDON/ui/package-lock.json" ]; then npm ci --prefix "addons/$ADDON/ui"; fi
node "addons/$ADDON/ui/build.mjs"
- name: Fetch the runtime files
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/backend_build_darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jobs:
# libopusshim.dylib and to locate libopus.dylib for bundling. brew's
# pkg-config defaults its search path to the Homebrew prefix so the
# opus.pc is found.
brew install protobuf grpc make protoc-gen-go protoc-gen-go-grpc libomp llvm ccache blake3 fmt hiredis xxhash zstd nlohmann-json opus pkg-config jpeg-turbo zlib
brew install protobuf grpc make protoc-gen-go protoc-gen-go-grpc libomp llvm ccache blake3 fmt hiredis xxhash zstd nlohmann-json opus pkg-config jpeg-turbo zlib cgal gmp mpfr boost
# Force-reinstall ccache so brew re-validates its full runtime-dep
# closure on every run. This is the durable fix: when the upstream
# ccache formula gains a new transitive dep (as it has multiple times
Expand All @@ -139,7 +139,7 @@ jobs:
# and decides "already installed" without re-linking, so on a cache-
# hit run the formulas aren't on PATH. Force-link them; --overwrite
# tolerates pre-existing symlinks from earlier installs.
brew link --overwrite protobuf grpc make protoc-gen-go protoc-gen-go-grpc libomp llvm ccache blake3 fmt hiredis xxhash zstd nlohmann-json opus pkg-config jpeg-turbo zlib 2>/dev/null || true
brew link --overwrite protobuf grpc make protoc-gen-go protoc-gen-go-grpc libomp llvm ccache blake3 fmt hiredis xxhash zstd nlohmann-json opus pkg-config jpeg-turbo zlib cgal gmp mpfr boost 2>/dev/null || true

- name: Save Homebrew cache
if: github.event_name != 'pull_request' && steps.brew-cache.outputs.cache-hit != 'true'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/bump_deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ jobs:
variable: "KIMODO_VERSION"
branch: "main"
file: "backend/go/kimodocpp/Makefile"
- repository: "localai-org/skin-tokens.cpp"
variable: "SKINTOKENS_VERSION"
branch: "main"
file: "backend/go/skintokenscpp/Makefile"
- repository: "localai-org/gem-x.cpp"
variable: "GEMX_VERSION"
branch: "main"
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tests-ui-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,11 @@ jobs:
# node_modules.
- name: Install the host UI dependencies
run: npm ci --no-audit --no-fund --prefix core/http/react-ui
- name: Install pinned add-on UI dependencies
run: |
for lock in addons/*/ui/package-lock.json; do
[ -f "$lock" ] || continue
npm ci --no-audit --no-fund --prefix "$(dirname "$lock")"
done
- name: Run the UI unit checks
run: make test-ui-unit
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,4 @@ addons/internal/uibuild/test/*/dist
# Add-on zip files and the scratch of scripts/addons/zip.sh
dist/addons/
.cache/addons/zip/
addons/*/ui/node_modules/
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,8 @@ prepare-test-extra: protogen-python
$(MAKE) -C backend/go/timestral-cpp
$(MAKE) -C backend/go/trellis2cpp
$(MAKE) -C backend/go/kimodocpp
$(MAKE) -C backend/go/skintokenscpp
$(MAKE) -C backend/go/meshremesh
$(MAKE) -C backend/go/gemxcpp
$(MAKE) -C backend/go/valkey-store
$(MAKE) -C backend/go/qdrant-store
Expand Down Expand Up @@ -804,6 +806,8 @@ test-extra: prepare-test-extra
$(MAKE) -C backend/go/nemo-speech-cpp test
$(MAKE) -C backend/go/trellis2cpp test
$(MAKE) -C backend/go/kimodocpp test
$(MAKE) -C backend/go/skintokenscpp test
$(MAKE) -C backend/go/meshremesh test
$(MAKE) -C backend/go/gemxcpp test
$(MAKE) -C backend/go/valkey-store test
$(MAKE) -C backend/go/qdrant-store test
Expand Down Expand Up @@ -1589,6 +1593,8 @@ BACKEND_STABLEDIFFUSION_GGML = stablediffusion-ggml|golang|.|--progress=plain|tr
BACKEND_TRELLIS2CPP = trellis2cpp|golang|.|--progress=plain|true
BACKEND_GEMXCPP = gemxcpp|golang|.|--progress=plain|true
BACKEND_KIMODOCPP = kimodocpp|golang|.|--progress=plain|true
BACKEND_SKINTOKENSCPP = skintokenscpp|golang|.|--progress=plain|true
BACKEND_MESHREMESH = meshremesh|golang|.|--progress=plain|true
BACKEND_WHISPER = whisper|golang|.|false|true
BACKEND_CRISPASR = crispasr|golang|.|false|true
BACKEND_PARAKEET_CPP = parakeet-cpp|golang|.|false|true
Expand Down Expand Up @@ -1702,6 +1708,21 @@ $(eval $(call generate-docker-build-target,$(BACKEND_TRELLIS2CPP)))
$(eval $(call generate-docker-build-target,$(BACKEND_KIMODOCPP)))
$(eval $(call generate-docker-build-target,$(BACKEND_GEMXCPP)))
.NOTPARALLEL: backends/kimodocpp backends/kimodocpp-darwin
.NOTPARALLEL: backends/skintokenscpp backends/skintokenscpp-darwin
.NOTPARALLEL: backends/meshremesh backends/meshremesh-darwin
$(eval $(call generate-docker-build-target,$(BACKEND_MESHREMESH)))
docker-build-backends: docker-build-meshremesh

backends/meshremesh-darwin:
BACKEND=meshremesh BUILD_TYPE=cpu $(MAKE) build-darwin-go-backend
./local-ai backends install "ocifile://$(abspath ./backend-images/meshremesh.tar)"

$(eval $(call generate-docker-build-target,$(BACKEND_SKINTOKENSCPP)))
docker-build-backends: docker-build-skintokenscpp

backends/skintokenscpp-darwin:
BACKEND=skintokenscpp BUILD_TYPE=cpu $(MAKE) build-darwin-go-backend
./local-ai backends install "ocifile://$(abspath ./backend-images/skintokenscpp.tar)"
docker-build-backends: docker-build-kimodocpp

backends/kimodocpp-darwin:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ Most backends wrap an upstream engine such as llama.cpp or vLLM. We wrote 18 of
| [trellis2.cpp](https://github.com/localai-org/trellis2cpp) | C++/GGML port of Microsoft TRELLIS.2: single-image to textured 3D mesh (GLB with PBR materials) |
| [gem-x.cpp](https://github.com/localai-org/gem-x.cpp) | Live human motion capture with SOMA and SMPL pose streams (CPU/Vulkan) |
| [kimodo.cpp](https://github.com/localai-org/kimodo.cpp) | C++/GGML text-to-motion on CPU and Vulkan, exported as animated skeleton GLB |
| [skin-tokens.cpp](https://github.com/localai-org/skin-tokens.cpp) | Native skeleton generation, learned skinning weights and compatible SOMA30 motion application |
| [privacy-filter.cpp](https://github.com/localai-org/privacy-filter.cpp) | Standalone GGML PII/NER token-classification engine powering LocalAI's PII redaction tier |
| [LocalVQE](https://github.com/localai-org/LocalVQE) | Joint acoustic echo cancellation, noise suppression, and dereverberation |

Expand Down
13 changes: 13 additions & 0 deletions addons/asset-pipeline/cmd/asset-pipeline/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// SPDX-License-Identifier: MIT
package main

import (
"github.com/mudler/LocalAI/addons/asset-pipeline/internal/tools"
"github.com/mudler/LocalAI/pkg/addons/sdk/protocol"
"github.com/mudler/LocalAI/pkg/addons/contract"
"os"
)

func main() {
os.Exit(protocol.Run(os.Args, func(s protocol.Startup) contract.Runtime { return tools.New(s) }))
}
Loading
Loading