From be57fde4a5fb1a8417dda0dc10c28295574f2294 Mon Sep 17 00:00:00 2001 From: Dorian Magasic Date: Fri, 13 Nov 2026 16:11:57 +0000 Subject: [PATCH] feat(gallery): add LFM3 1.7B Artemis Add TurinTech's Artemis Q4_K_M build of Liquid AI's LFM3 1.7B with an 8,192-token context. Thinking stays at the chat template's default, on: with it off the model often ends short replies with a stray , which LocalAI does not strip while reasoning is disabled. A gallery test pins the file and options. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Dorian Magasic --- core/gallery/lfm3_artemis_entries_test.go | 44 +++++++++++++++++++++++ gallery/index.yaml | 36 +++++++++++++++++++ gallery/models/index.yaml | 44 +++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 core/gallery/lfm3_artemis_entries_test.go diff --git a/core/gallery/lfm3_artemis_entries_test.go b/core/gallery/lfm3_artemis_entries_test.go new file mode 100644 index 000000000000..d55349101bc6 --- /dev/null +++ b/core/gallery/lfm3_artemis_entries_test.go @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: MIT +package gallery_test + +import ( + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" + + "github.com/mudler/LocalAI/core/gallery" +) + +var _ = Describe("gallery/index.yaml LFM3 1.7B Artemis entry", func() { + const ( + name = "lfm3-1.7b-artemis-q4-k-m" + weight = "llama-cpp/models/LFM3-1.7B-Artemis-GGUF/LFM3-1.7B-Artemis-Q4_K_M.gguf" + weightSHA = "fc1781679f925fe22c0984cf052ee552fbed3cc95916872d6d493b93b927270f" + weightURI = "https://huggingface.co/turintech/LFM3-1.7B-Artemis-GGUF/resolve/main/LFM3-1.7B-Artemis-Q4_K_M.gguf" + ) + + entry := func() gallery.GalleryModel { + entries, err := loadGalleryIndex() + Expect(err).ToNot(HaveOccurred()) + e, ok := indexEntriesByName(entries)[name] + Expect(ok).To(BeTrue(), name) + return e + } + + It("installs only the published weight", func() { + e := entry() + Expect(e.AdditionalFiles).To(HaveLen(1)) + Expect(e.AdditionalFiles[0].Filename).To(Equal(weight)) + Expect(e.AdditionalFiles[0].SHA256).To(Equal(weightSHA)) + Expect(e.AdditionalFiles[0].URI).To(Equal(weightURI)) + Expect(e.Overrides).ToNot(HaveKey("mmproj")) + }) + + // With thinking off this model can end replies with a stray that + // LocalAI does not strip, so the template default (thinking on) stays. + It("keeps thinking at the template default", func() { + e := entry() + Expect(e.Overrides["options"]).To(ConsistOf("use_jinja:true")) + Expect(e.Overrides).ToNot(HaveKey("reasoning_effort")) + Expect(e.Overrides).ToNot(HaveKey("reasoning")) + }) +}) diff --git a/gallery/index.yaml b/gallery/index.yaml index 1ee868bb438c..0996c7665ff3 100644 --- a/gallery/index.yaml +++ b/gallery/index.yaml @@ -84307,6 +84307,42 @@ model: llama-cpp/models/LFM3-1.7B-Uncensored-AD-Q4_K_M/LFM3-1.7B-Uncensored-AD-Q4_K_M.gguf template: use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: lfm3-1.7b-artemis-q4-k-m + description: | + TurinTech Artemis Q4_K_M quantization of Liquid AI's LFM3 1.7B, a text model + for local agents and tool use. Embedded chat template and 8192-token context. + Thinking is on by default, as in Liquid AI's chat template, and a request can + turn it off with "reasoning_effort": "none". + license: lfm1.0 + urls: + - https://huggingface.co/LiquidAI/LFM3-1.7B + - https://huggingface.co/turintech/LFM3-1.7B-Artemis-GGUF + icon: https://huggingface.co/turintech/LFM3-1.7B-Artemis-GGUF/resolve/06fab8cd5f9e8ac86658e2b77bbd7bd3af640c97/assets/turintech-logo-v2.png + tags: + - llm + - gguf + - cpu + - gpu + files: + - filename: llama-cpp/models/LFM3-1.7B-Artemis-GGUF/LFM3-1.7B-Artemis-Q4_K_M.gguf + sha256: fc1781679f925fe22c0984cf052ee552fbed3cc95916872d6d493b93b927270f + uri: https://huggingface.co/turintech/LFM3-1.7B-Artemis-GGUF/resolve/main/LFM3-1.7B-Artemis-Q4_K_M.gguf + overrides: + backend: llama-cpp + context_size: 8192 + function: + automatic_tool_parsing_fallback: true + grammar: + disable: true + known_usecases: + - chat + options: + - use_jinja:true + parameters: + model: llama-cpp/models/LFM3-1.7B-Artemis-GGUF/LFM3-1.7B-Artemis-Q4_K_M.gguf + template: + use_tokenizer_template: true - url: github:mudler/LocalAI/gallery/virtual.yaml@master name: olala-v1.0-mini-7a1b-q5-k-m description: | diff --git a/gallery/models/index.yaml b/gallery/models/index.yaml index ec78ddb671ad..9cdc8852f2a4 100644 --- a/gallery/models/index.yaml +++ b/gallery/models/index.yaml @@ -103112,6 +103112,50 @@ model: llama-cpp/models/LFM3-1.7B-Uncensored-AD-Q4_K_M/LFM3-1.7B-Uncensored-AD-Q4_K_M.gguf template: use_tokenizer_template: true +- kind: model + id: lfm3-1.7b-artemis-q4-k-m + name: lfm3-1.7b-artemis-q4-k-m + version: 0.0.0-gallery.42838a2b268f + description: | + TurinTech Artemis Q4_K_M quantization of Liquid AI's LFM3 1.7B, a text model + for local agents and tool use. Embedded chat template and 8192-token context. + Thinking is on by default, as in Liquid AI's chat template, and a request can + turn it off with "reasoning_effort": "none". + license: lfm1.0 + urls: + - https://huggingface.co/LiquidAI/LFM3-1.7B + - https://huggingface.co/turintech/LFM3-1.7B-Artemis-GGUF + tags: + - llm + - gguf + - cpu + - gpu + icon: https://huggingface.co/turintech/LFM3-1.7B-Artemis-GGUF/resolve/06fab8cd5f9e8ac86658e2b77bbd7bd3af640c97/assets/turintech-logo-v2.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: llama-cpp/models/LFM3-1.7B-Artemis-GGUF/LFM3-1.7B-Artemis-Q4_K_M.gguf + sha256: fc1781679f925fe22c0984cf052ee552fbed3cc95916872d6d493b93b927270f + uri: https://huggingface.co/turintech/LFM3-1.7B-Artemis-GGUF/resolve/main/LFM3-1.7B-Artemis-Q4_K_M.gguf + overrides: + backend: llama-cpp + context_size: 8192 + function: + automatic_tool_parsing_fallback: true + grammar: + disable: true + known_usecases: + - chat + options: + - use_jinja:true + parameters: + model: llama-cpp/models/LFM3-1.7B-Artemis-GGUF/LFM3-1.7B-Artemis-Q4_K_M.gguf + template: + use_tokenizer_template: true - kind: model id: olala-v1.0-mini-7a1b-q5-k-m name: olala-v1.0-mini-7a1b-q5-k-m