Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
capabilities:
nvidia: "cuda12-rfdetr"
intel: "intel-rfdetr"
#amd: "rocm-rfdetr"

Check warning on line 95 in backend/index.yaml

View workflow job for this annotation

GitHub Actions / Yamllint

95:6 [comments] missing starting space in comment
nvidia-l4t: "nvidia-l4t-arm64-rfdetr"
default: "cpu-rfdetr"
- &vllm
Expand Down Expand Up @@ -294,6 +294,7 @@
license: MIT
icon: https://private-user-images.githubusercontent.com/660224/448166653-bd8c5f03-e91d-4ee5-b680-57355da204d1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTAxOTE0MDAsIm5iZiI6MTc1MDE5MTEwMCwicGF0aCI6Ii82NjAyMjQvNDQ4MTY2NjUzLWJkOGM1ZjAzLWU5MWQtNGVlNS1iNjgwLTU3MzU1ZGEyMDRkMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwNjE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDYxN1QyMDExNDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hMmI1NGY3OGFiZTlhNGFkNTVlYTY4NTIwMWEzODRiZGE4YzdhNGQ5MGNhNzE3MDYyYTA2NDIxYTkyYzhiODkwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.mR9kM9xX0TdzPuSpuspCllHYQiq79dFQ2rtuNvjrl6w
name: "chatterbox"
alias: "chatterbox"
capabilities:
nvidia: "cuda12-chatterbox"
- &piper
Expand Down Expand Up @@ -698,7 +699,7 @@
capabilities:
nvidia: "cuda12-rfdetr-development"
intel: "intel-rfdetr-development"
#amd: "rocm-rfdetr-development"

Check warning on line 702 in backend/index.yaml

View workflow job for this annotation

GitHub Actions / Yamllint

702:6 [comments] missing starting space in comment
nvidia-l4t: "nvidia-l4t-arm64-rfdetr-development"
default: "cpu-rfdetr-development"
- !!merge <<: *rfdetr
Expand Down Expand Up @@ -892,7 +893,7 @@
uri: "quay.io/go-skynet/local-ai-backends:master-gpu-intel-diffusers"
mirrors:
- localai/localai-backends:master-gpu-intel-diffusers
## exllama2

Check warning on line 896 in backend/index.yaml

View workflow job for this annotation

GitHub Actions / Yamllint

896:3 [comments-indentation] comment not indented like content
- !!merge <<: *exllama2
name: "exllama2-development"
capabilities:
Expand Down
14 changes: 10 additions & 4 deletions backend/python/transformers/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,13 @@ def LoadModel(self, request, context):
self.model = MusicgenForConditionalGeneration.from_pretrained(model_name)
elif request.Type == "DiaForConditionalGeneration":
autoTokenizer = False
print("DiaForConditionalGeneration", file=sys.stderr)
self.processor = AutoProcessor.from_pretrained(model_name)
self.model = DiaForConditionalGeneration.from_pretrained(model_name)
if self.CUDA:
self.model = self.model.to("cuda")
self.processor = self.processor.to("cuda")
print("DiaForConditionalGeneration loaded", file=sys.stderr)
self.DiaTTS = True
elif request.Type == "OuteTTS":
autoTokenizer = False
Expand Down Expand Up @@ -536,7 +541,7 @@ def SoundGeneration(self, request, context):
return backend_pb2.Result(success=True)


def DiaTTS(self, request, context):
def CallDiaTTS(self, request, context):
"""
Generates dialogue audio using the Dia model.

Expand Down Expand Up @@ -581,7 +586,7 @@ def DiaTTS(self, request, context):
return backend_pb2.Result(success=True)


def OuteTTS(self, request, context):
def CallOuteTTS(self, request, context):
try:
print("[OuteTTS] generating TTS", file=sys.stderr)
gen_cfg = outetts.GenerationConfig(
Expand All @@ -603,10 +608,11 @@ def OuteTTS(self, request, context):
# The TTS endpoint is older, and provides fewer features, but exists for compatibility reasons
def TTS(self, request, context):
if self.OuteTTS:
return self.OuteTTS(request, context)
return self.CallOuteTTS(request, context)

if self.DiaTTS:
return self.DiaTTS(request, context)
print("DiaTTS", file=sys.stderr)
return self.CallDiaTTS(request, context)

model_name = request.model
try:
Expand Down
4 changes: 2 additions & 2 deletions docs/content/docs/advanced/advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Specifying a `config-file` via CLI allows to declare models in a single file as
chat: chat
```

See also [chatbot-ui](https://github.com/go-skynet/LocalAI/tree/master/examples/chatbot-ui) as an example on how to use config files.
See also [chatbot-ui](https://github.com/mudler/LocalAI-examples/tree/main/chatbot-ui) as an example on how to use config files.

It is possible to specify a full URL or a short-hand URL to a YAML model configuration file and use it on start with local-ai, for example to use phi-2:

Expand Down Expand Up @@ -341,7 +341,7 @@ Below is an instruction that describes a task, paired with an input that provide

Instead of installing models manually, you can use the LocalAI API endpoints and a model definition to install programmatically via API models in runtime.

A curated collection of model files is in the [model-gallery](https://github.com/go-skynet/model-gallery) (work in progress!). The files of the model gallery are different from the model files used to configure LocalAI models. The model gallery files contains information about the model setup, and the files necessary to run the model locally.
A curated collection of model files is in the [model-gallery](https://github.com/mudler/LocalAI/tree/master/gallery). The files of the model gallery are different from the model files used to configure LocalAI models. The model gallery files contains information about the model setup, and the files necessary to run the model locally.

To install for example `lunademo`, you can send a POST call to the `/models/apply` endpoint with the model definition url (`url`) and the name of the model should have in LocalAI (`name`, optional):

Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ There is the availability of localai-webui and chatbot-ui in the examples sectio

### Does it work with AutoGPT?

Yes, see the [examples](https://github.com/go-skynet/LocalAI/tree/master/examples/)!
Yes, see the [examples](https://github.com/mudler/LocalAI-examples)!

### How can I troubleshoot when something is wrong?

Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/features/embeddings.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ curl http://localhost:8080/embeddings -X POST -H "Content-Type: application/json

## 💡 Examples

- Example that uses LLamaIndex and LocalAI as embedding: [here](https://github.com/go-skynet/LocalAI/tree/master/examples/query_data/).
- Example that uses LLamaIndex and LocalAI as embedding: [here](https://github.com/mudler/LocalAI-examples/tree/main/query_data).
2 changes: 1 addition & 1 deletion docs/content/docs/features/openai-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,4 @@ Grammars and function tools can be used as well in conjunction with vision APIs:

## 💡 Examples

A full e2e example with `docker-compose` is available [here](https://github.com/go-skynet/LocalAI/tree/master/examples/functions).
A full e2e example with `docker-compose` is available [here](https://github.com/mudler/LocalAI-examples/tree/main/functions).
2 changes: 1 addition & 1 deletion docs/content/docs/getting-started/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,4 @@ For instructions on building LocalAI from source, see the [Build Section]({{% re
{{% /tab %}}
{{< /tabs >}}

For more model configurations, visit the [Examples Section](https://github.com/mudler/LocalAI/tree/master/examples/configurations).
For more model configurations, visit the [Examples Section](https://github.com/mudler/LocalAI-examples/tree/main/configurations).
14 changes: 7 additions & 7 deletions docs/content/docs/whats-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ Thanks to the community efforts now we have a new [how-to website](https://io.mi

#### 💡 More examples!

- Open source autopilot? See the new addition by {{< github "gruberdev" >}} in our [examples](https://github.com/go-skynet/LocalAI/tree/master/examples/continue) on how to use Continue with LocalAI!
- Want to try LocalAI with Insomnia? Check out the new [Insomnia example](https://github.com/go-skynet/LocalAI/tree/master/examples/insomnia) by {{< github "dave-gray101" >}}!
- Open source autopilot? See the new addition by {{< github "gruberdev" >}} in our [examples](https://github.com/mudler/LocalAI-examples/tree/main/continue) on how to use Continue with LocalAI!
- Want to try LocalAI with Insomnia? Check out the new [Insomnia example](https://github.com/mudler/LocalAI-examples/tree/main/insomnia) by {{< github "dave-gray101" >}}!

#### LocalAGI in discord!

Expand Down Expand Up @@ -258,7 +258,7 @@ And here when it actually picks to reply to the user instead of using functions!

Note: functions are supported only with `llama.cpp`-compatible models.

A full example is available here: https://github.com/go-skynet/LocalAI/tree/master/examples/functions
A full example is available here: https://github.com/mudler/LocalAI-examples/tree/main/functions

### gRPC backends

Expand Down Expand Up @@ -377,9 +377,9 @@ We now support a vast variety of models, while being backward compatible with pr

### Examples

- 💡 [AutoGPT](https://github.com/go-skynet/LocalAI/tree/master/examples/autoGPT) example ( [mudler](https://github.com/mudler) )
- 💡 [PrivateGPT](https://github.com/go-skynet/LocalAI/tree/master/examples/privateGPT) example ( [mudler](https://github.com/mudler) )
- 💡 [Flowise](https://github.com/go-skynet/LocalAI/tree/master/examples/flowise) example ( [mudler](https://github.com/mudler) )
- 💡 [AutoGPT](https://github.com/mudler/LocalAI-examples/tree/main/autoGPT) example ( [mudler](https://github.com/mudler) )
- 💡 [PrivateGPT](https://github.com/mudler/LocalAI-examples/tree/main/privateGPT) example ( [mudler](https://github.com/mudler) )
- 💡 [Flowise](https://github.com/mudler/LocalAI-examples/tree/main/flowise) example ( [mudler](https://github.com/mudler) )

Two new projects offer now direct integration with LocalAI!

Expand Down Expand Up @@ -449,7 +449,7 @@ Now LocalAI can generate images too:

- 14-05-2023: __v1.11.1__ released! `rwkv` backend patch release
- 13-05-2023: __v1.11.0__ released! 🔥 Updated `llama.cpp` bindings: This update includes a breaking change in the model files ( https://github.com/ggerganov/llama.cpp/pull/1405 ) - old models should still work with the `gpt4all-llama` backend.
- 12-05-2023: __v1.10.0__ released! 🔥🔥 Updated `gpt4all` bindings. Added support for GPTNeox (experimental), RedPajama (experimental), Starcoder (experimental), Replit (experimental), MosaicML MPT. Also now `embeddings` endpoint supports tokens arrays. See the [langchain-chroma](https://github.com/go-skynet/LocalAI/tree/master/examples/langchain-chroma) example! Note - this update does NOT include https://github.com/ggerganov/llama.cpp/pull/1405 which makes models incompatible.
- 12-05-2023: __v1.10.0__ released! 🔥🔥 Updated `gpt4all` bindings. Added support for GPTNeox (experimental), RedPajama (experimental), Starcoder (experimental), Replit (experimental), MosaicML MPT. Also now `embeddings` endpoint supports tokens arrays. See the [langchain-chroma](https://github.com/mudler/LocalAI-examples/tree/main/langchain-chroma) example! Note - this update does NOT include https://github.com/ggerganov/llama.cpp/pull/1405 which makes models incompatible.
- 11-05-2023: __v1.9.0__ released! 🔥 Important whisper updates ( {{< pr "233" >}} {{< pr "229" >}} ) and extended gpt4all model families support ( {{< pr "232" >}} ). Redpajama/dolly experimental ( {{< pr "214" >}} )
- 10-05-2023: __v1.8.0__ released! 🔥 Added support for fast and accurate embeddings with `bert.cpp` ( {{< pr "222" >}} )
- 09-05-2023: Added experimental support for transcriptions endpoint ( {{< pr "211" >}} )
Expand Down
120 changes: 120 additions & 0 deletions gallery/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,103 @@
- filename: OpenAI-20B-NEO-MXFP4_MOE4.gguf
sha256: 066c84a0844b1f1f4515e5c64095fe4c67e86d5eb70db4e368e283b1134d9c1e
uri: huggingface://DavidAU/Openai_gpt-oss-20b-NEO-GGUF/OpenAI-20B-NEO-MXFP4_MOE4.gguf
- !!merge <<: *gptoss
name: "huihui-ai_huihui-gpt-oss-20b-bf16-abliterated"
urls:
- https://huggingface.co/huihui-ai/Huihui-gpt-oss-20b-BF16-abliterated
- https://huggingface.co/bartowski/huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-GGUF
description: |
This is an uncensored version of unsloth/gpt-oss-20b-BF16 created with abliteration (see remove-refusals-with-transformers to know more about it).
overrides:
parameters:
model: huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-MXFP4_MOE.gguf
files:
- filename: huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-MXFP4_MOE.gguf
sha256: abca50d1bd95c49d71db36aad0f38090ea5465ce148634c496a48bc87030bdd9
uri: huggingface://bartowski/huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-GGUF/huihui-ai_Huihui-gpt-oss-20b-BF16-abliterated-MXFP4_MOE.gguf
- !!merge <<: *gptoss
name: "openai-gpt-oss-20b-abliterated-uncensored-neo-imatrix"
icon: https://huggingface.co/DavidAU/OpenAi-GPT-oss-20b-abliterated-uncensored-NEO-Imatrix-gguf/resolve/main/power-the-matrix.gif
urls:
- https://huggingface.co/DavidAU/OpenAi-GPT-oss-20b-abliterated-uncensored-NEO-Imatrix-gguf
description: |
These are NEO Imatrix GGUFs, NEO dataset by DavidAU.

NEO dataset improves overall performance, and is for all use cases.

This model uses Huihui-gpt-oss-20b-BF16-abliterated as a base which DE-CENSORS the model and removes refusals.

Example output below (creative; IQ4_NL), using settings below.

This model can be a little rough around the edges (due to abliteration) ; make sure you see the settings below for best operation.

It can also be creative, off the shelf crazy and rational too.

Enjoy!
overrides:
parameters:
model: OpenAI-20B-NEOPlus-Uncensored-IQ4_NL.gguf
files:
- filename: OpenAI-20B-NEOPlus-Uncensored-IQ4_NL.gguf
sha256: 274ffaaf0783270c071006842ffe60af73600fc63c2b6153c0701b596fc3b122
uri: huggingface://DavidAU/OpenAi-GPT-oss-20b-abliterated-uncensored-NEO-Imatrix-gguf/OpenAI-20B-NEOPlus-Uncensored-IQ4_NL.gguf
- name: "chatterbox"
url: "github:mudler/LocalAI/gallery/virtual.yaml@master"
icon: https://private-user-images.githubusercontent.com/660224/448166653-bd8c5f03-e91d-4ee5-b680-57355da204d1.png
license: "mit"
urls:
- https://github.com/resemble-ai/chatterbox
tags:
- tts
- dia
- gpu
- text-to-speech
description: |
Chatterbox, Resemble AI's first production-grade open source TTS model. Licensed under MIT, Chatterbox has been benchmarked against leading closed-source systems like ElevenLabs, and is consistently preferred in side-by-side evaluations.
overrides:
backend: "chatterbox"
name: "chatterbox"
known_usecases:
- tts
- name: "dia"
url: "github:mudler/LocalAI/gallery/virtual.yaml@master"
icon: https://github.com/nari-labs/dia/raw/main/dia/static/images/banner.png
urls:
- https://github.com/nari-labs/dia
- https://huggingface.co/nari-labs/Dia-1.6B-0626
license: apache-2.0
tags:
- tts
- dia
- gpu
- text-to-speech
overrides:
backend: "transformers"
name: "dia"
description: "Dia is a 1.6B parameter text to speech model created by Nari Labs."
parameters:
model: nari-labs/Dia-1.6B-0626
type: DiaForConditionalGeneration
known_usecases:
- tts
- name: "outetts"
url: "github:mudler/LocalAI/gallery/virtual.yaml@master"
urls:
- https://github.com/edwko/OuteTTS
license: apache-2.0
tags:
- tts
- gpu
- text-to-speech
overrides:
backend: "transformers"
name: "outetts"
description: "OuteTTS is a 1.6B parameter text to speech model created by OuteAI."
parameters:
model: OuteAI/OuteTTS-0.3-1B
type: OuteTTS
known_usecases:
- tts
- &afm
name: "arcee-ai_afm-4.5b"
url: "github:mudler/LocalAI/gallery/chatml.yaml@master"
Expand Down Expand Up @@ -2153,7 +2250,7 @@
- gemma3
- gemma-3
overrides:
#mmproj: gemma-3-27b-it-mmproj-f16.gguf

Check warning on line 2253 in gallery/index.yaml

View workflow job for this annotation

GitHub Actions / Yamllint

2253:6 [comments] missing starting space in comment
parameters:
model: gemma-3-27b-it-Q4_K_M.gguf
files:
Expand All @@ -2171,7 +2268,7 @@
description: |
google/gemma-3-12b-it is an open-source, state-of-the-art, lightweight, multimodal model built from the same research and technology used to create the Gemini models. It is capable of handling text and image input and generating text output. It has a large context window of 128K tokens and supports over 140 languages. The 12B variant has been fine-tuned using the instruction-tuning approach. Gemma 3 models are suitable for a variety of text generation and image understanding tasks, including question answering, summarization, and reasoning. Their relatively small size makes them deployable in environments with limited resources such as laptops, desktops, or your own cloud infrastructure.
overrides:
#mmproj: gemma-3-12b-it-mmproj-f16.gguf

Check warning on line 2271 in gallery/index.yaml

View workflow job for this annotation

GitHub Actions / Yamllint

2271:6 [comments] missing starting space in comment
parameters:
model: gemma-3-12b-it-Q4_K_M.gguf
files:
Expand All @@ -2189,7 +2286,7 @@
description: |
Gemma is a family of lightweight, state-of-the-art open models from Google, built from the same research and technology used to create the Gemini models. Gemma 3 models are multimodal, handling text and image input and generating text output, with open weights for both pre-trained variants and instruction-tuned variants. Gemma 3 has a large, 128K context window, multilingual support in over 140 languages, and is available in more sizes than previous versions. Gemma 3 models are well-suited for a variety of text generation and image understanding tasks, including question answering, summarization, and reasoning. Their relatively small size makes it possible to deploy them in environments with limited resources such as laptops, desktops or your own cloud infrastructure, democratizing access to state of the art AI models and helping foster innovation for everyone. Gemma-3-4b-it is a 4 billion parameter model.
overrides:
#mmproj: gemma-3-4b-it-mmproj-f16.gguf

Check warning on line 2289 in gallery/index.yaml

View workflow job for this annotation

GitHub Actions / Yamllint

2289:6 [comments] missing starting space in comment
parameters:
model: gemma-3-4b-it-Q4_K_M.gguf
files:
Expand Down Expand Up @@ -5655,7 +5752,7 @@
sha256: 2756551de7d8ff7093c2c5eec1cd00f1868bc128433af53f5a8d434091d4eb5a
uri: huggingface://Triangle104/Nano_Imp_1B-Q8_0-GGUF/nano_imp_1b-q8_0.gguf
- &qwen25
name: "qwen2.5-14b-instruct" ## Qwen2.5

Check warning on line 5755 in gallery/index.yaml

View workflow job for this annotation

GitHub Actions / Yamllint

5755:32 [comments] too few spaces before comment: expected 2
icon: https://avatars.githubusercontent.com/u/141221163
url: "github:mudler/LocalAI/gallery/chatml.yaml@master"
license: apache-2.0
Expand Down Expand Up @@ -7616,7 +7713,7 @@
sha256: 0fec82625f74a9a340837de7af287b1d9042e5aeb70cda2621426db99958b0af
uri: huggingface://bartowski/Chuluun-Qwen2.5-72B-v0.08-GGUF/Chuluun-Qwen2.5-72B-v0.08-Q4_K_M.gguf
- &smollm
url: "github:mudler/LocalAI/gallery/chatml.yaml@master" ## SmolLM

Check warning on line 7716 in gallery/index.yaml

View workflow job for this annotation

GitHub Actions / Yamllint

7716:59 [comments] too few spaces before comment: expected 2
name: "smollm-1.7b-instruct"
icon: https://huggingface.co/datasets/HuggingFaceTB/images/resolve/main/banner_smol.png
tags:
Expand Down Expand Up @@ -11832,6 +11929,29 @@
- filename: ockerman0_AnubisLemonade-70B-v1.1-Q4_K_M.gguf
sha256: e217b2c39d4fae8499ca2a24ff8c7025ec93cd16883aa57f43ac9240222c4754
uri: huggingface://bartowski/ockerman0_AnubisLemonade-70B-v1.1-GGUF/ockerman0_AnubisLemonade-70B-v1.1-Q4_K_M.gguf
- !!merge <<: *llama31
name: "tarek07_nomad-llama-70b"
icon: https://cdn-uploads.huggingface.co/production/uploads/64909c086073a0cd172d0411/5F7S8kdO8NTMua6iCRTUO.png
urls:
- https://huggingface.co/Tarek07/Nomad-LLaMa-70B
- https://huggingface.co/bartowski/Tarek07_Nomad-LLaMa-70B-GGUF
description: |
I decided to make a simple model for a change, with some models I was curious to see work together.
models:
- model: ArliAI/DS-R1-Distill-70B-ArliAI-RpR-v4-Large
- model: TheDrummer/Anubis-70B-v1.1
- model: Mawdistical/Vulpine-Seduction-70B
- model: Darkhn/L3.3-70B-Animus-V5-Pro
- model: zerofata/L3.3-GeneticLemonade-Unleashed-v3-70B
- model: Sao10K/Llama-3.3-70B-Vulpecula-r1
base_model: nbeerbower/Llama-3.1-Nemotron-lorablated-70B
overrides:
parameters:
model: Tarek07_Nomad-LLaMa-70B-Q4_K_M.gguf
files:
- filename: Tarek07_Nomad-LLaMa-70B-Q4_K_M.gguf
sha256: 734c7042a84cd6c059c4ddd3ffb84b23752aeaaf670c5cbb0031f8128ec5ffc8
uri: huggingface://bartowski/Tarek07_Nomad-LLaMa-70B-GGUF/Tarek07_Nomad-LLaMa-70B-Q4_K_M.gguf
- &deepseek
url: "github:mudler/LocalAI/gallery/deepseek.yaml@master" ## Deepseek

Check warning on line 11956 in gallery/index.yaml

View workflow job for this annotation

GitHub Actions / Yamllint

11956:61 [comments] too few spaces before comment: expected 2
name: "deepseek-coder-v2-lite-instruct"
Expand Down
Loading