Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: auto select llama-cpp cuda runtime #2306

Merged
merged 16 commits into from May 14, 2024

Conversation

sozercan
Copy link
Collaborator

Description

Merge after #2305

  • Adds cuda variant for llama-cpp
  • Removes standalone cuda builds from release

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

sozercan and others added 7 commits May 13, 2024 00:45
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Signed-off-by: Sertac Ozercan <[email protected]>
Copy link

netlify bot commented May 13, 2024

Deploy Preview for localai canceled.

Name Link
🔨 Latest commit 6586b09
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/66432556ca35770009e2a7c7

Signed-off-by: Sertac Ozercan <[email protected]>
@sozercan sozercan marked this pull request as draft May 13, 2024 06:43
@mudler mudler mentioned this pull request May 13, 2024
Makefile Outdated

backend-assets/grpc/llama-cpp-fallback: backend-assets/grpc
cp -rf backend/cpp/llama backend/cpp/llama-fallback
$(MAKE) -C backend/cpp/llama-fallback purge
$(info ${GREEN}I llama-cpp build info:fallback${RESET})
CMAKE_ARGS="$(CMAKE_ARGS) -DLLAMA_F16C=OFF -DLLAMA_AVX512=OFF -DLLAMA_AVX2=OFF -DLLAMA_FMA=OFF" $(MAKE) VARIANT="llama-fallback" build-llama-cpp-grpc-server
CMAKE_ARGS="$(CMAKE_ARGS) -DLLAMA_AVX=off -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off" $(MAKE) VARIANT="llama-fallback" build-llama-cpp-grpc-server
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding -DLLAMA_AVX=off, should have been here and was an oversight!

Makefile Outdated
ALL_GRPC_BACKENDS+=backend-assets/grpc/llama-cpp-fallback
ALL_GRPC_BACKENDS+=backend-assets/grpc/llama-cpp-cuda
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this probably would make it fail non-cuda builds - maybe we can have an ENABLE_CUDA to work with only when we run make dist?

mudler
mudler previously approved these changes May 13, 2024
Copy link
Owner

@mudler mudler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @sozercan ! Thank you! ❤️

mudler
mudler previously approved these changes May 13, 2024
mudler
mudler previously approved these changes May 13, 2024
There could be other reasons for which the default binary may fail. For example we might have detected an Nvidia GPU,
however the user might not have the drivers/cuda libraries installed in the system, and so it would fail to start.

We keep the fallback of llama.cpp at the end of the llama.cpp backends to try to fallback loading in case things go wrong

Signed-off-by: mudler <[email protected]>
mudler
mudler previously approved these changes May 13, 2024
Makefile Show resolved Hide resolved
@@ -104,7 +109,7 @@ ENTRY:
// First has more priority
priorityList := []string{
// First llama.cpp and llama-ggml
LLamaCPP, LlamaGGML, Gpt4All,
LLamaCPP, LlamaGGML, Gpt4All, LLamaCPPFallback,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why fallback here? LLamaCPP should fallback automatically if runtime is not avx2 or avx

Copy link
Owner

@mudler mudler May 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, but what if they fail when being started? What I was trying to do here is recovering from failures outside our control, but more related to the environment where this starts e.g. missing shared libraries goes undetected until the grpc process is started.

Example:

  • Environment: box with a GPU but no cuda libs installed
  • LocalAI's detect that there is a GPU and we select llama-cpp-nvidia for llama-cpp
  • LocalAI start the process, libs are missing, it fails
  • LocalAI does not try anymore with llama-cpp backends to load the model (which we can argue if that's the correct behavior, but my point is that a lot of kittens would die if we let LocalAI fail here without a good error message. The fallback here is acting as a safety-net to make sure it works so we should then warn the user that CUDA is not loaded)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, makes sense. Current GPU detection is pretty naive so that should definitely be improved by checking for the cuda libs.

Signed-off-by: Sertac Ozercan <[email protected]>
else
$(MAKE) backend-assets/grpc/llama-cpp-cuda
endif
$(MAKE) build
Copy link
Collaborator Author

@sozercan sozercan May 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't build call grpcs target which calls make on all the GRPC_BACKENDS including the llama-cpp variants?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct, I've split that off initially just for STATIC=true in order to build statically the (non-cuda) llama-cpp backends.

I've added the cuda switch here and not at the top because we don't need container images or the generic build target to include a specific backend for cuda - container images are already built with the BUILD_TYPE which compiles all the llama-cpp variants against the accellerator library for the specific container images (sycl, hipblas, cuda, etc).

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Signed-off-by: Ettore Di Giacinto <[email protected]>
@mudler
Copy link
Owner

mudler commented May 14, 2024

I'm playing with #2322 and likely needs to be based on top of this. As I would like to avoid merge conflicts - @sozercan I think we are good to merge this one and iterate on top if needed, wdyt?

@mudler mudler added the enhancement New feature or request label May 14, 2024
@mudler mudler marked this pull request as ready for review May 14, 2024 17:40
@mudler mudler merged commit a670318 into mudler:master May 14, 2024
30 checks passed
@mudler
Copy link
Owner

mudler commented May 14, 2024

looks good here - let's tackle additions directly from master. Thanks @sozercan to put this together!

@sozercan sozercan mentioned this pull request May 24, 2024
7 tasks
truecharts-admin added a commit to truecharts/charts that referenced this pull request May 25, 2024
…6.0 by renovate (#22420)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
minor | `v2.15.0-cublas-cuda11-ffmpeg-core` ->
`v2.16.0-cublas-cuda11-ffmpeg-core` |
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
minor | `v2.15.0-cublas-cuda11-core` -> `v2.16.0-cublas-cuda11-core` |
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
minor | `v2.15.0-cublas-cuda12-ffmpeg-core` ->
`v2.16.0-cublas-cuda12-ffmpeg-core` |
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
minor | `v2.15.0-cublas-cuda12-core` -> `v2.16.0-cublas-cuda12-core` |
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
minor | `v2.15.0-ffmpeg-core` -> `v2.16.0-ffmpeg-core` |
| [docker.io/localai/localai](https://togithub.com/mudler/LocalAI) |
minor | `v2.15.0` -> `v2.16.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>mudler/LocalAI (docker.io/localai/localai)</summary>

###
[`v2.16.0`](https://togithub.com/mudler/LocalAI/releases/tag/v2.16.0)

[Compare
Source](https://togithub.com/mudler/LocalAI/compare/v2.15.0...v2.16.0)

![local-ai-release-2
16](https://togithub.com/mudler/LocalAI/assets/2420543/bd3a6ace-8aec-4ac7-b457-b3e8cb5bb29e)

##### Welcome to LocalAI's latest update!

##### 🎉🎉🎉 woot woot! So excited to share this release, a lot of new
features are landing in LocalAI!!!!! 🎉🎉🎉


![](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExZ2cycjRqbXFld2toenpqcjcyN3E3eWw1NHI5cm12Njc3Y2lzZWtyZyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/AR92HqL0HcenC/giphy.gif)

##### 🌟  Introducing Distributed Llama.cpp Inferencing

Now it is possible to distribute the inferencing workload across
different workers with llama.cpp models !

This feature has landed with
[mudler/LocalAI#2324
and is based on the upstream work of
[@&#8203;rgerganov](https://togithub.com/rgerganov) in
[ggerganov/llama.cpp#6829.

**How it works:** a front-end server manages the requests compatible
with the OpenAI API (LocalAI) and workers (llama.cpp) are used to
distribute the workload. This makes possible to run larger models split
across different nodes!

##### How to use it

To start workers to offload the computation you can run:

    local-ai llamacpp-worker <listening_address> <listening_port>

However, you can also follow the llama.cpp README and building the
rpc-server
(https://github.com/ggerganov/llama.cpp/blob/master/examples/rpc/README.md),
which is still compatible with LocalAI.

When starting the LocalAI server, which is going to accept the API
requests, you can set a list of workers IP/address by specifying the
addresses with `LLAMACPP_GRPC_SERVERS`:

```bash
LLAMACPP_GRPC_SERVERS="address1:port,address2:port" local-ai run
```

At this point the workload hitting in the LocalAI server should be
distributed across the nodes!

##### 🤖 Peer2Peer llama.cpp

LocalAI is the **first** AI Free, Open source project offering complete,
decentralized, peer2peer while private, LLM inferencing on top of the
libp2p protocol. There is no "public swarm" to offload the computation,
but rather empowers you to build your own cluster of local and remote
machines to distribute LLM computation.


![](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExZTdrZW9rc3hrMWxoZTV1OGo0ajF3d2MwMHFmeXVoMThqOGg1eHR4ZCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/q0KrtRcr10Bhu/giphy.gif)

This feature leverages the ability of llama.cpp to distribute the
workload explained just above and features from one of my other
projects, https://github.com/mudler/edgevpn.

LocalAI builds on top of the twos, and allows to create a private
peer2peer network between nodes, without the need of centralizing
connections or manually configuring IP addresses: it unlocks totally
decentralized, private, peer-to-peer inferencing capabilities. Works
also behind different NAT-ted networks (uses DHT and mDNS as discovery
mechanism).

**How it works:** A pre-shared token can be generated and shared between
workers and the server to form a private, decentralized, p2p network.

You can see the feature in action here:


![output](https://togithub.com/mudler/LocalAI/assets/2420543/8ca277cf-c208-4562-8929-808b2324b584)

##### How to use it

1.  Start the server with `--p2p`:

```bash
./local-ai run --p2p

##### 1:02AM INF loading environment variables from file envFile=.env
##### 1:02AM INF Setting logging to info

##### 1:02AM INF P2P mode enabled
##### 1:02AM INF No token provided, generating one

##### 1:02AM INF Generated Token:
##### XXXXXXXXXXX

##### 1:02AM INF Press a button to proceed
```

A token is displayed, copy it and press enter.

You can re-use the same token later restarting the server with
`--p2ptoken` (or `P2P_TOKEN`).

2. Start the workers. Now you can copy the local-ai binary in other
hosts, and run as many workers with that token:

```bash
TOKEN=XXX ./local-ai  p2p-llama-cpp-rpc

##### 1:06AM INF loading environment variables from file envFile=.env
##### 1:06AM INF Setting logging to info

##### {"level":"INFO","time":"2024-05-19T01:06:01.794+0200","caller":"config/config.go:288","message":"connmanager disabled\n"}
##### {"level":"INFO","time":"2024-05-19T01:06:01.794+0200","caller":"config/config.go:295","message":" go-libp2p resource manager protection enabled"}

##### {"level":"INFO","time":"2024-05-19T01:06:01.794+0200","caller":"config/config.go:409","message":"max connections: 100\n"}
##### 1:06AM INF Starting llama-cpp-rpc-server on '127.0.0.1:34371'

##### {"level":"INFO","time":"2024-05-19T01:06:01.794+0200","caller":"node/node.go:118","message":" Starting EdgeVPN network"}
##### create_backend: using CPU backend

##### Starting RPC server on 127.0.0.1:34371, backend memory: 31913 MB
##### 2024/05/19 01:06:01 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). # See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.

##### {"level":"INFO","time":"2024-05-19T01:06:01.805+0200","caller":"node/node.go:172","message":" Node ID: 12D3KooWJ7WQAbCWKfJgjw2oMMGGss9diw3Sov5hVWi8t4DMgx92"}
##### {"level":"INFO","time":"2024-05-19T01:06:01.806+0200","caller":"node/node.go:173","message":" Node Addresses: [/ip4/127.0.0.1/tcp/44931 /ip4/127.0.0.1/udp/33251/quic-v1/webtransport/certhash/uEiAWAhZ-W9yx2ZHnKQm3BE_ft5jjoc468z5-Rgr9XdfjeQ/certhash/uEiB8Uwn0M2TQBELaV2m4lqypIAY2S-2ZMf7lt_N5LS6ojw /ip4/127.0.0.1/udp/35660/quic-v1 /ip4/192.168.68.110/tcp/44931 /ip4/192.168.68.110/udp/33251/quic-v1/webtransport/certhash/uEiAWAhZ-W9yx2ZHnKQm3BE_ft5jjoc468z5-Rgr9XdfjeQ/certhash/uEiB8Uwn0M2TQBELaV2m4lqypIAY2S-2ZMf7lt_N5LS6ojw /ip4/192.168.68.110/udp/35660/quic-v1 /ip6/::1/tcp/41289 /ip6/::1/udp/33160/quic-v1/webtransport/certhash/uEiAWAhZ-W9yx2ZHnKQm3BE_ft5jjoc468z5-Rgr9XdfjeQ/certhash/uEiB8Uwn0M2TQBELaV2m4lqypIAY2S-2ZMf7lt_N5LS6ojw /ip6/::1/udp/35701/quic-v1]"}

##### {"level":"INFO","time":"2024-05-19T01:06:01.806+0200","caller":"discovery/dht.go:104","message":" Bootstrapping DHT"}
```

(Note you can also supply the token via args)

At this point, you should see in the server logs messages stating that
new workers are found

3. Now you can start doing inference as usual on the server (the node
used on step 1)

Interested in to try it out? As we are still updating the documentation,
you can read the full instructions here
[mudler/LocalAI#2343

##### 📜 Advanced Function calling support with Mixed JSON Grammars

LocalAI gets better at function calling with mixed grammars!

With this release, LocalAI introduces a transformative capability:
support for mixed JSON BNF grammars. It allows to specify a grammar for
the LLM that allows to output structured JSON and free text.

**How to use it:**

To enable mixed grammars, you can set in the `YAML` configuration file
`function.mixed_mode = true`, for example:

```yaml
  function:

##### disable injecting the "answer" tool
    disable_no_action: true

    grammar:

##### This allows the grammar to also return messages
      mixed_mode: true
```

This feature significantly enhances LocalAI's ability to interpret and
manipulate JSON data coming from the LLM through a more flexible and
powerful grammar system. Users can now combine multiple grammar types
within a single JSON structure, allowing for dynamic parsing and
validation scenarios.

Grammars can also turned off entirely and leave the user to determine
how the data is parsed from the LLM to be correctly interpretated by
LocalAI to be still compliant to the OpenAI REST spec.

For example, to interpret Hermes results, one can just annotate regexes
in `function.json_regex_match` to extract the LLM response:

```yaml
  function:
    grammar:
      disable: true

##### disable injecting the "answer" tool
    disable_no_action: true
    return_name_in_function_response: true

    json_regex_match:
    - "(?s)<tool_call>(.*?)</tool_call>"
    - "(?s)<tool_call>(.*?)"
  
    replace_llm_results:

##### Drop the scratchpad content from responses
    - key: "(?s)<scratchpad>.*</scratchpad>"
      value: ""
    replace_function_results:

##### Replace everything that is not JSON array or object, just in case.
    - key: '(?s)^[^{\[]*'
      value: ""
    - key: '(?s)[^}\]]*$'
      value: ""

##### Drop the scratchpad content from responses
    - key: "(?s)<scratchpad>.*</scratchpad>"
      value: ""
```

Note that regex can still be used when enabling mixed grammars is
enabled.

This is especially important for models which does not support grammars
- such as transformers or OpenVINO models, that now can support as well
function calling. As we update the docs, further documentation can be
found in the PRs that you can find in the changelog below.

##### 🚀 New Model Additions and Updates


![local-ai-yi-updates](https://togithub.com/mudler/LocalAI/assets/2420543/5d646703-0c64-4299-b551-a39074f63c2d)

Our model gallery continues to grow with exciting new additions like
Aya-35b, Mistral-0.3, Hermes-Theta and updates to existing models
ensuring they remain at the cutting edge.

This release is having major enhancements on tool calling support.
Besides working on making our default models in AIO images more
performant - now you can try an enhanced out-of-the-box experience with
function calling in the Hermes model family (
[Hermes-2-Pro-Mistral](https://huggingface.co/NousResearch/Hermes-2-Pro-Mistral-7B-GGUF)
and
[Hermes-2-Theta-Llama-3](https://huggingface.co/NousResearch/Hermes-2-Theta-Llama-3-8B-GGUF))

##### Our LocalAI function model!


![local-ai-functioncall-model](https://togithub.com/mudler/LocalAI/assets/2420543/b2955459-49b6-4a57-96e8-242966ccef12)

I have fine-tuned a function call model specific to leverage entirely
the grammar support of LocalAI, you can find it in the model gallery
already and on
[huggingface](https://huggingface.co/mudler/LocalAI-Llama3-8b-Function-Call-v0.2)

##### 🔄 Single Binary Release: Simplified Deployment and Management

In our continuous effort to streamline the user experience and
deployment process, LocalAI v2.16.0 proudly introduces a single binary
release. This enhancement, thanks to
[@&#8203;sozercan](https://togithub.com/sozercan)'s contributions,
consolidates all variants (CUDA and non-cuda releases) and dependencies
into one compact executable file.

This change simplifies the installation and update processes, reduces
compatibility issues, and speeds up the setup for new users and existing
deployments as now binary releases are even more portable than ever!

##### 🔧 Bug Fixes and Improvements

A host of bug fixes have been implemented to ensure smoother operation
and integration. Key fixes include enhancements to the Intel build
process, stability adjustments for setuptools in Python backends, and
critical updates ensuring the successful build of p2p configurations.

##### Migrating Python Backends: From Conda to UV

LocalAI has migrated its Python backends from Conda to UV. This
transition, thanks to [@&#8203;cryptk](https://togithub.com/cryptk)
contributions, enhances the efficiency and scalability of our backend
operations. Users will experience faster setup times and reduced
complexity, streamlining the development process and making it easier to
manage dependencies across different environments.

##### 📣 Let's Make Some Noise!

A gigantic THANK YOU to everyone who’s contributed—your feedback, bug
squashing, and feature suggestions are what make LocalAI shine. To all
our heroes out there supporting other users and sharing their expertise,
you’re the real MVPs!

Remember, LocalAI thrives on community support—not big corporate bucks.
If you love what we're building, show some love! A shoutout on social
(@&#8203;LocalAI_OSS and @&#8203;mudler_it on twitter/X), joining our
sponsors, or simply starring us on GitHub makes all the difference.

Also, if you haven't yet joined our Discord, come on over! Here's the
link: https://discord.gg/uJAeKSAGDy

Thanks a ton, and.. enjoy this release!

##### What's Changed

##### Bug fixes 🐛

- build: do not specify a BUILD_ID by default by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2284
- fix: add missing openvino/optimum/etc libraries for Intel, fixes
[#&#8203;2289](https://togithub.com/mudler/LocalAI/issues/2289) by
[@&#8203;cryptk](https://togithub.com/cryptk) in
[mudler/LocalAI#2292
- add setuptools for openvino by
[@&#8203;fakezeta](https://togithub.com/fakezeta) in
[mudler/LocalAI#2301
- fix: add setuptools to all requirements-intel.txt files for python
backends by [@&#8203;cryptk](https://togithub.com/cryptk) in
[mudler/LocalAI#2333
- ci: correctly build p2p in GO_TAGS by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2369
- ci: generate specific image for intel builds by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2374
- fix: stablediffusion binary by
[@&#8203;sozercan](https://togithub.com/sozercan) in
[mudler/LocalAI#2385

##### Exciting New Features 🎉

- feat: migrate python backends from conda to uv by
[@&#8203;cryptk](https://togithub.com/cryptk) in
[mudler/LocalAI#2215
- feat: create bash library to handle install/run/test of python
backends by [@&#8203;cryptk](https://togithub.com/cryptk) in
[mudler/LocalAI#2286
- feat(grammar): support models with specific construct by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2291
- feat(ui): display number of available models for installation by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2298
- feat: auto select llama-cpp cpu variant by
[@&#8203;sozercan](https://togithub.com/sozercan) in
[mudler/LocalAI#2305
- feat(llama.cpp): add `flash_attention` and `no_kv_offloading` by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2310
- feat(functions): support models with no grammar and no regex by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2315
- feat(functions): allow to set JSON matcher by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2319
- feat: auto select llama-cpp cuda runtime by
[@&#8203;sozercan](https://togithub.com/sozercan) in
[mudler/LocalAI#2306
- feat(llama.cpp): add distributed llama.cpp inferencing by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2324
- feat(functions): mixed JSON BNF grammars by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2328
- feat(functions): simplify parsing, read functions as list by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2340
- feat(functions): Enable true regex replacement for the
regexReplacement option by
[@&#8203;lenaxia](https://togithub.com/lenaxia) in
[mudler/LocalAI#2341
- feat(backends): add openvoice backend by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2334
- feat(webui): statically embed js/css assets by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2348
- feat(functions): allow to use JSONRegexMatch unconditionally by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2349
- feat(functions): don't use yaml.MapSlice by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2354
- build: add sha by [@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2356
- feat(llama.cpp): Totally decentralized, private, distributed, p2p
inference by [@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2343
- feat(functions): relax mixedgrammars by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2365
- models(gallery): add mistral-0.3 and command-r, update functions by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2388

##### 🧠 Models

- models(gallery): add aloe by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2283
- models(gallery): add Llama-3-8B-Instruct-abliterated by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2288
- models(gallery): add l3-chaoticsoliloquy-v1.5-4x8b by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2295
- models(gallery): add jsl-medllama-3-8b-v2.0 by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2296
- models(gallery): add llama-3-refueled by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2297
- models(gallery): add aura-llama-Abliterated by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2309
- models(gallery): add Bunny-llama by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2311
- models(gallery): add lumimaidv2 by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2312
- models(gallery): add orthocopter by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2313
- fix(gallery) Correct llama3-8b-instruct model file by
[@&#8203;tannisroot](https://togithub.com/tannisroot) in
[mudler/LocalAI#2330
- models(gallery): add hermes-2-theta-llama-3-8b by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2331
- models(gallery): add yi 6/9b, sqlcoder, sfr-iterative-dpo by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2335
- models(gallery): add anita by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2344
- models(gallery): add master-yi by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2345
- models(gallery): update poppy porpoise mmproj by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2346
- models(gallery): add LocalAI-Llama3-8b-Function-Call-v0.2-GGUF by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2355
- models(gallery): add stheno by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2358
- fix(gallery): checksum Meta-Llama-3-70B-Instruct.Q4\_K_M.gguf -
[#&#8203;2364](https://togithub.com/mudler/LocalAI/issues/2364) by
[@&#8203;Nold360](https://togithub.com/Nold360) in
[mudler/LocalAI#2366
- models(gallery): add phi-3-medium-4k-instruct by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2367
- models(gallery): add hercules and helpingAI by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2376
- ci(checksum_checker): do get sha from hf API when available by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2380
- models(gallery): ⬆️ update checksum by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2383
- models(gallery): ⬆️ update checksum by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2386
- models(gallery): add aya-35b by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2391

##### 📖 Documentation and examples

- docs: Update semantic-todo/README.md by
[@&#8203;eltociear](https://togithub.com/eltociear) in
[mudler/LocalAI#2294
- Add Home Assistant Integration by
[@&#8203;valentinfrlch](https://togithub.com/valentinfrlch) in
[mudler/LocalAI#2387
- Add warning for running the binary on MacOS by
[@&#8203;mauromorales](https://togithub.com/mauromorales) in
[mudler/LocalAI#2389

##### 👒 Dependencies

- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2281
- ⬆️ Update docs version mudler/LocalAI by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2280
- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2285
- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2290
- feat(swagger): update swagger by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2302
- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2303
- ⬆️ Update ggerganov/whisper.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2317
- ⬆️ Update ggerganov/whisper.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2326
- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2316
- ⬆️ Update ggerganov/whisper.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2329
- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2337
- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2339
- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2342
- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2351
- ⬆️ Update ggerganov/whisper.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2352
- dependencies(grpcio): bump to fix CI issues by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2362
- deps(llama.cpp): update and adapt API changes by
[@&#8203;mudler](https://togithub.com/mudler) in
[mudler/LocalAI#2381
- ⬆️ Update ggerganov/whisper.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2361
- ⬆️ Update go-skynet/go-bert.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#1225
- ⬆️ Update ggerganov/llama.cpp by
[@&#8203;localai-bot](https://togithub.com/localai-bot) in
[mudler/LocalAI#2360

##### Other Changes

- refactor: Minor improvements to BackendConfigLoader by
[@&#8203;dave-gray101](https://togithub.com/dave-gray101) in
[mudler/LocalAI#2353

##### New Contributors

- [@&#8203;tannisroot](https://togithub.com/tannisroot) made their first
contribution in
[mudler/LocalAI#2330
- [@&#8203;lenaxia](https://togithub.com/lenaxia) made their first
contribution in
[mudler/LocalAI#2341
- [@&#8203;valentinfrlch](https://togithub.com/valentinfrlch) made their
first contribution in
[mudler/LocalAI#2387

**Full Changelog**:
mudler/LocalAI@v2.15.0...v2.16.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzcuNCIsInVwZGF0ZWRJblZlciI6IjM3LjM3Ny40IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tZXJnZSIsInVwZGF0ZS9kb2NrZXIvZ2VuZXJhbC9ub24tbWFqb3IiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants