From 8474e8f6152ebd1b959b1c0f8ee41d036a3468ae Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 23 Nov 2026 07:42:23 +0000 Subject: [PATCH 1/3] chore(strata): bump Strata to v0.2.20 Update the Strata pin from v0.2.19 to v0.2.20 (commit a34979fc). The strata-engine and strata-hy4 packages move to 0.1.66, with new SHA-256 pins taken from the release checksums. Update the pin test, which names the Hy4 package file. Assisted-by: Claude Code:claude-sonnet-5-5 --- backend/go/strata/Makefile | 112 +++++++++++++++--------------- scripts/build/strata-pins_test.sh | 4 +- 2 files changed, 58 insertions(+), 58 deletions(-) diff --git a/backend/go/strata/Makefile b/backend/go/strata/Makefile index 939b81f0eb29..e2575bfc9b05 100644 --- a/backend/go/strata/Makefile +++ b/backend/go/strata/Makefile @@ -36,66 +36,66 @@ GOCMD=go # separate packages (file strata-hy4-...) with the same targets. Its pins are # STRATA_HY4_TAG_, STRATA_HY4_VERSION_ and STRATA_HY4_SHA256_. # --------------------------------------------------------------------------- -STRATA_VERSION?=v0.2.19 -STRATA_COMMIT?=c6f6427d9de9016fd92d13e29740f65625261df7 +STRATA_VERSION?=v0.2.20 +STRATA_COMMIT?=a34979fc94f3d126b9bb8210f4ad311345688b52 # Qwen engine -STRATA_ENGINE_TAG_linux_x86_64_cuda_cuda12?=v0.2.19 -STRATA_ENGINE_VERSION_linux_x86_64_cuda_cuda12?=0.1.65 -STRATA_ENGINE_SHA256_linux_x86_64_cuda_cuda12?=74e628817f79da303dd2b3f7e715c30a6b4c05c2a3a2e5efc775ea190a361384 -STRATA_ENGINE_TAG_linux_x86_64_cuda_cuda13?=v0.2.19 -STRATA_ENGINE_VERSION_linux_x86_64_cuda_cuda13?=0.1.65 -STRATA_ENGINE_SHA256_linux_x86_64_cuda_cuda13?=77a6fd933d41f1968c069fe04995f729128735d0fc7c53e446dd4a1f9c7fbf49 -STRATA_ENGINE_TAG_linux_aarch64_cuda_cuda13?=v0.2.19 -STRATA_ENGINE_VERSION_linux_aarch64_cuda_cuda13?=0.1.65 -STRATA_ENGINE_SHA256_linux_aarch64_cuda_cuda13?=bdc67b8850c85bff240dab24faeddd2877275a43de5b47cd07e53fb41bd9bc27 -STRATA_ENGINE_TAG_linux_x86_64_hip_rx9070?=v0.2.19 -STRATA_ENGINE_VERSION_linux_x86_64_hip_rx9070?=0.1.65 -STRATA_ENGINE_SHA256_linux_x86_64_hip_rx9070?=7d49ebfc928644912106eeaeff4c42d35275e58831ad2ed2c82edd7e1dd17163 -STRATA_ENGINE_TAG_linux_x86_64_hip_rx7900?=v0.2.19 -STRATA_ENGINE_VERSION_linux_x86_64_hip_rx7900?=0.1.65 -STRATA_ENGINE_SHA256_linux_x86_64_hip_rx7900?=bd2e9d469afd9976b75769c29e846c48b239fe6fab96e306ca181ae9a6c5f73b -STRATA_ENGINE_TAG_linux_x86_64_hip_rx6000?=v0.2.19 -STRATA_ENGINE_VERSION_linux_x86_64_hip_rx6000?=0.1.65 -STRATA_ENGINE_SHA256_linux_x86_64_hip_rx6000?=5fb02c043aa47726cad022ccca150540ed3b1d50c92521ff66dd2cc4ab1a5005 -STRATA_ENGINE_TAG_linux_x86_64_hip_halo?=v0.2.19 -STRATA_ENGINE_VERSION_linux_x86_64_hip_halo?=0.1.65 -STRATA_ENGINE_SHA256_linux_x86_64_hip_halo?=4cb54bd02b95c31b84337dde0d728b95d9441d8da3cf75cd6f7bdfa778ca471e -STRATA_ENGINE_TAG_linux_x86_64_sycl?=v0.2.19 -STRATA_ENGINE_VERSION_linux_x86_64_sycl?=0.1.65 -STRATA_ENGINE_SHA256_linux_x86_64_sycl?=63f97e93a5aa56089753f1cd30339c85b26053e09f74fdcb23919961f5620adb -STRATA_ENGINE_TAG_macos_arm64_metal?=v0.2.19 -STRATA_ENGINE_VERSION_macos_arm64_metal?=0.1.65 -STRATA_ENGINE_SHA256_macos_arm64_metal?=2028b71816cdac765b5ae5c451f5d432da46540e1112c47852a4a2931ec5b7ca +STRATA_ENGINE_TAG_linux_x86_64_cuda_cuda12?=v0.2.20 +STRATA_ENGINE_VERSION_linux_x86_64_cuda_cuda12?=0.1.66 +STRATA_ENGINE_SHA256_linux_x86_64_cuda_cuda12?=74980aebedc70fb2cfcd96b3c15874cb3e7e517700ecdf8ed811247a9a577f30 +STRATA_ENGINE_TAG_linux_x86_64_cuda_cuda13?=v0.2.20 +STRATA_ENGINE_VERSION_linux_x86_64_cuda_cuda13?=0.1.66 +STRATA_ENGINE_SHA256_linux_x86_64_cuda_cuda13?=13c5bebeaf24574b02307857bce6abfd3f861f3682ca98dbe36c1c461fd5e059 +STRATA_ENGINE_TAG_linux_aarch64_cuda_cuda13?=v0.2.20 +STRATA_ENGINE_VERSION_linux_aarch64_cuda_cuda13?=0.1.66 +STRATA_ENGINE_SHA256_linux_aarch64_cuda_cuda13?=de6fdacfa1d7daf1c86c64add0d8e82844783919af39fc172d6b5134816be1be +STRATA_ENGINE_TAG_linux_x86_64_hip_rx9070?=v0.2.20 +STRATA_ENGINE_VERSION_linux_x86_64_hip_rx9070?=0.1.66 +STRATA_ENGINE_SHA256_linux_x86_64_hip_rx9070?=8ceaf7a82603a70b77f03bc890621626207ab50c57f5b3b1afe340b5cbc03d9b +STRATA_ENGINE_TAG_linux_x86_64_hip_rx7900?=v0.2.20 +STRATA_ENGINE_VERSION_linux_x86_64_hip_rx7900?=0.1.66 +STRATA_ENGINE_SHA256_linux_x86_64_hip_rx7900?=a9cc741a60c101689c0c8dbe5b731382526f22c1c55a92f22b2c1dfcd26dd86f +STRATA_ENGINE_TAG_linux_x86_64_hip_rx6000?=v0.2.20 +STRATA_ENGINE_VERSION_linux_x86_64_hip_rx6000?=0.1.66 +STRATA_ENGINE_SHA256_linux_x86_64_hip_rx6000?=d850ff4929f13ac4553627236cc3e25d0e1b8a636d0cae17714bf3801598e8b1 +STRATA_ENGINE_TAG_linux_x86_64_hip_halo?=v0.2.20 +STRATA_ENGINE_VERSION_linux_x86_64_hip_halo?=0.1.66 +STRATA_ENGINE_SHA256_linux_x86_64_hip_halo?=9198a10463da40c5330c9fb50ea363312aacf2c722900d57cf0512e704527d31 +STRATA_ENGINE_TAG_linux_x86_64_sycl?=v0.2.20 +STRATA_ENGINE_VERSION_linux_x86_64_sycl?=0.1.66 +STRATA_ENGINE_SHA256_linux_x86_64_sycl?=b5c9599ac55ab0bf09f7663ae71c75cf8dfc247e05015a9344c5e513caa36c41 +STRATA_ENGINE_TAG_macos_arm64_metal?=v0.2.20 +STRATA_ENGINE_VERSION_macos_arm64_metal?=0.1.66 +STRATA_ENGINE_SHA256_macos_arm64_metal?=d135beed9a508d0dad37300a2589097ac898e4226fe9f9ac255404b3a555d89a # Hy4-Flash engine (strata-hy4, a separate program; same packages per target) -STRATA_HY4_TAG_linux_x86_64_cuda_cuda12?=v0.2.18 -STRATA_HY4_VERSION_linux_x86_64_cuda_cuda12?=0.1.64 -STRATA_HY4_SHA256_linux_x86_64_cuda_cuda12?=c95d8d29e08cffa217b09fd6c33e4c5e55ed6da51eb8b556743c0a0d76fe713f -STRATA_HY4_TAG_linux_x86_64_cuda_cuda13?=v0.2.18 -STRATA_HY4_VERSION_linux_x86_64_cuda_cuda13?=0.1.64 -STRATA_HY4_SHA256_linux_x86_64_cuda_cuda13?=2b9b713bfb735ba4f5479163daae7c436852bc6ea095b7154336d6589dd8404f -STRATA_HY4_TAG_linux_aarch64_cuda_cuda13?=v0.2.18 -STRATA_HY4_VERSION_linux_aarch64_cuda_cuda13?=0.1.64 -STRATA_HY4_SHA256_linux_aarch64_cuda_cuda13?=b850d09437a216d3d4856e160e1d9dc54b3f74f7721168e2d060fa610f60f068 -STRATA_HY4_TAG_linux_x86_64_hip_rx9070?=v0.2.18 -STRATA_HY4_VERSION_linux_x86_64_hip_rx9070?=0.1.64 -STRATA_HY4_SHA256_linux_x86_64_hip_rx9070?=cb215c86d63ad91453e8cc460b3f67246fb88c12220365f655458117200109eb -STRATA_HY4_TAG_linux_x86_64_hip_rx7900?=v0.2.18 -STRATA_HY4_VERSION_linux_x86_64_hip_rx7900?=0.1.64 -STRATA_HY4_SHA256_linux_x86_64_hip_rx7900?=1800a56515a6561edfe7c915b7190d0d689b4d449f2e4c7342fe03c396fbfef0 -STRATA_HY4_TAG_linux_x86_64_hip_rx6000?=v0.2.18 -STRATA_HY4_VERSION_linux_x86_64_hip_rx6000?=0.1.64 -STRATA_HY4_SHA256_linux_x86_64_hip_rx6000?=f6dff15e6fa9a9a9e27c09a360cb206cfd3675ad97153c84d2f33e8271d9aa7e -STRATA_HY4_TAG_linux_x86_64_hip_halo?=v0.2.18 -STRATA_HY4_VERSION_linux_x86_64_hip_halo?=0.1.64 -STRATA_HY4_SHA256_linux_x86_64_hip_halo?=0349e0eb12535ec1be1c32217f67d17f51e5ea7f3979d1ec13ad97e3acd9677a -STRATA_HY4_TAG_linux_x86_64_sycl?=v0.2.19 -STRATA_HY4_VERSION_linux_x86_64_sycl?=0.1.65 -STRATA_HY4_SHA256_linux_x86_64_sycl?=82974720bbfabe3fb5b8ec11c26aea4b92fa8a9dbaca413c80f13c671aac1869 -STRATA_HY4_TAG_macos_arm64_metal?=v0.2.18 -STRATA_HY4_VERSION_macos_arm64_metal?=0.1.64 -STRATA_HY4_SHA256_macos_arm64_metal?=588781aed2d44c0e4460c3cfdf3840feddef0be1399ed3f39eb1d6d6cac8d7f9 +STRATA_HY4_TAG_linux_x86_64_cuda_cuda12?=v0.2.20 +STRATA_HY4_VERSION_linux_x86_64_cuda_cuda12?=0.1.66 +STRATA_HY4_SHA256_linux_x86_64_cuda_cuda12?=fa535d0321adb87dac7dafdc7a1a4dc185121bbfe85d41e1bd2da281ad676e3b +STRATA_HY4_TAG_linux_x86_64_cuda_cuda13?=v0.2.20 +STRATA_HY4_VERSION_linux_x86_64_cuda_cuda13?=0.1.66 +STRATA_HY4_SHA256_linux_x86_64_cuda_cuda13?=112355a4beb4c8d468f2d682f48d8f9d75c1397502ac03977521cc61277a7f0c +STRATA_HY4_TAG_linux_aarch64_cuda_cuda13?=v0.2.20 +STRATA_HY4_VERSION_linux_aarch64_cuda_cuda13?=0.1.66 +STRATA_HY4_SHA256_linux_aarch64_cuda_cuda13?=69981deb045e577c9285c8045e603de4b23c6f44914371c94b09f5ea90f92bfc +STRATA_HY4_TAG_linux_x86_64_hip_rx9070?=v0.2.20 +STRATA_HY4_VERSION_linux_x86_64_hip_rx9070?=0.1.66 +STRATA_HY4_SHA256_linux_x86_64_hip_rx9070?=db1710fdd2b4de0a9d806af82f28dbc7dcfe8e4b6ee36a8d5cde136949f5cbf3 +STRATA_HY4_TAG_linux_x86_64_hip_rx7900?=v0.2.20 +STRATA_HY4_VERSION_linux_x86_64_hip_rx7900?=0.1.66 +STRATA_HY4_SHA256_linux_x86_64_hip_rx7900?=4190c7b10b8d3a816ecc8a24a22fc2fcea5e9b32775ba5b5781794bffd907d4f +STRATA_HY4_TAG_linux_x86_64_hip_rx6000?=v0.2.20 +STRATA_HY4_VERSION_linux_x86_64_hip_rx6000?=0.1.66 +STRATA_HY4_SHA256_linux_x86_64_hip_rx6000?=72c41f0a7a3dd1fb126dadf4d7541bfd2d5ecbbc8515d3327f90aa1e78d37fa7 +STRATA_HY4_TAG_linux_x86_64_hip_halo?=v0.2.20 +STRATA_HY4_VERSION_linux_x86_64_hip_halo?=0.1.66 +STRATA_HY4_SHA256_linux_x86_64_hip_halo?=34d9ba0e067eb7016c613721a3b34068638f33e8a6a0b19d3b0e3f0413ee4024 +STRATA_HY4_TAG_linux_x86_64_sycl?=v0.2.20 +STRATA_HY4_VERSION_linux_x86_64_sycl?=0.1.66 +STRATA_HY4_SHA256_linux_x86_64_sycl?=490130fe9c161c3d56acf4f03468f7026807e069a547ec137e4cfa963593d46c +STRATA_HY4_TAG_macos_arm64_metal?=v0.2.20 +STRATA_HY4_VERSION_macos_arm64_metal?=0.1.66 +STRATA_HY4_SHA256_macos_arm64_metal?=5db9e8e07f9c469d2e4c9059451cf83293dbfd305d8a1dc03f3cf31530d0ce17 STRATA_REPO?=https://github.com/Niko1221/Strata diff --git a/scripts/build/strata-pins_test.sh b/scripts/build/strata-pins_test.sh index 0911130fd847..2a8f21c20e17 100755 --- a/scripts/build/strata-pins_test.sh +++ b/scripts/build/strata-pins_test.sh @@ -64,12 +64,12 @@ for pkg in $(packages_for cublas 12 x86_64) $(packages_for cublas 13 x86_64) $(p grep -q "^STRATA_HY4_${var}_${pkg}?=" "$DIR/Makefile" || fail "no STRATA_HY4_${var}_${pkg} pin" done done -want="strata-hy4-0.1.64-linux-x86_64-cuda-cuda12.tar.gz" +want="strata-hy4-0.1.66-linux-x86_64-cuda-cuda12.tar.gz" got=$(make -C "$DIR" -s print-asset-hy4 PKG=linux_x86_64_cuda_cuda12) [ "$got" = "$want" ] || fail "Hy4 asset name: want '$want', got '$got'" grep -q '"HY4": "strata-hy4"' "$REPO_ROOT/.github/bump_strata.sh" || fail "bump_strata.sh does not read the Hy4 packages" # `make engine` fetches the Hy4 packages into engines-hy4/ with the program strata-hy4. -if ! make -C "$DIR" -n engine BUILD_TYPE=cublas CUDA_MAJOR_VERSION=12 UNAME_S=Linux UNAME_M=x86_64 | grep -q "strata-hy4-0.1.64-linux-x86_64-cuda-cuda12.tar.gz.*engines-hy4 strata-hy4"; then +if ! make -C "$DIR" -n engine BUILD_TYPE=cublas CUDA_MAJOR_VERSION=12 UNAME_S=Linux UNAME_M=x86_64 | grep -q "strata-hy4-0.1.66-linux-x86_64-cuda-cuda12.tar.gz.*engines-hy4 strata-hy4"; then fail "make engine does not fetch the Hy4 package into engines-hy4" fi From 056dae1ae2e4fe6afea2b8a6371c9f6888f2cf93 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 23 Nov 2026 07:58:14 +0000 Subject: [PATCH 2/3] feat(strata): run Inkling 2 Mini on the strata-inkling engine Strata v0.2.19 added a third engine program, strata-inkling, for Thinking Machines Inkling 2 Mini. Add it as the family "inkling" next to the Qwen engine and strata-hy4, in the shape of the Hy4 family. The Makefile pins the 0.1.66 strata-inkling packages one by one, with the SHA-256 from the release checksums, and fetches them into engines-inkling/. The strata-engine launcher and package.sh know the new directory, and the bump script and its workflow move the new pins with the others. The Python sources the helper imports now include Strata's inkling_tokenizer.py and inkling_dialect.py. The backend starts the engine with --native, --max-context, and --vision and --dspark when `--info` says the engine can use them. The tokenizer directory is built on the first load from the manifest of a Strata build, or from the tokenizer.json and chat_template.jinja files Strata publishes beside its builds; a GGUF model needs the two files. The helper adds Strata's answer opener, forced tool-call text and channel-token output parser. Pictures are passed as image= keys, and logprobs are refused, as for Hy4. Tested with the stub engine, and against the real tokenizer and chat template of the model. No real engine or GPU was available. Assisted-by: Claude Code:claude-sonnet-5-5 --- .github/bump_strata.sh | 9 +- .github/workflows/bump_deps.yaml | 2 + backend/go/strata/Makefile | 59 ++- backend/go/strata/README.md | 34 ++ backend/go/strata/hy4.go | 8 +- backend/go/strata/hy4_test.go | 2 +- backend/go/strata/inkling.go | 494 ++++++++++++++++++++++++++ backend/go/strata/inkling_test.go | 287 +++++++++++++++ backend/go/strata/options.go | 20 +- backend/go/strata/package.sh | 16 +- backend/go/strata/strata-engine | 5 + backend/go/strata/strata.go | 69 +++- backend/go/strata/tokenizer.go | 4 +- backend/go/strata/tokenizer_helper.py | 23 +- scripts/build/strata-pins_test.sh | 22 +- 15 files changed, 1025 insertions(+), 29 deletions(-) create mode 100644 backend/go/strata/inkling.go create mode 100644 backend/go/strata/inkling_test.go diff --git a/.github/bump_strata.sh b/.github/bump_strata.sh index f7b4d25730d8..b11466be5ea9 100755 --- a/.github/bump_strata.sh +++ b/.github/bump_strata.sh @@ -5,8 +5,9 @@ # upstream publishes with its releases. Upstream versions each platform on its # own and does not attach every package to every release, so the Makefile pins # every package separately: its release tag, its version and its SHA-256. There -# are two families of packages: the engine (strata-engine-...) and the Hy4-Flash -# engine (strata-hy4-...), each with its own pins. This +# are three families of packages: the engine (strata-engine-...), the Hy4-Flash +# engine (strata-hy4-...) and the Inkling engine (strata-inkling-...), each with +# its own pins. This # script moves those pins, plus STRATA_VERSION and STRATA_COMMIT (the newest # release and its commit; the Python modules come from it). bump_deps.sh only # handles one commit variable, hence this script. @@ -56,7 +57,7 @@ if not releases: sys.exit("Refusing to bump: no release found") text = open(makefile).read() -families = {"ENGINE": "strata-engine", "HY4": "strata-hy4"} +families = {"ENGINE": "strata-engine", "HY4": "strata-hy4", "INKLING": "strata-inkling"} plan, tags = [], [releases[0]["tag_name"]] for fam, prefix in families.items(): for pkg in re.findall(rf"^STRATA_{fam}_SHA256_([a-z0-9_]+)\?=", text, re.M): @@ -137,7 +138,7 @@ for row in open(f"{work}/plan.tsv").read().splitlines(): sys.exit(f"Refusing to bump: SHA256SUMS.txt and the GitHub asset digest disagree for {name} ({sha} vs '{digest}')") old = (get(f"STRATA_{fam}_TAG_{pkg}"), get(f"STRATA_{fam}_VERSION_{pkg}"), get(f"STRATA_{fam}_SHA256_{pkg}")) if old != (tag, ver, sha): - label = "Hy4 engine" if fam == "HY4" else "engine" + label = {"HY4": "Hy4 engine", "INKLING": "Inkling engine"}.get(fam, "engine") changes.append(f"- {label} `{pkg}`: {old[0]} / {old[1]} -> {tag} / {ver}") put(f"STRATA_{fam}_TAG_{pkg}", tag) put(f"STRATA_{fam}_VERSION_{pkg}", ver) diff --git a/.github/workflows/bump_deps.yaml b/.github/workflows/bump_deps.yaml index be0b2f050bfe..cd75ad52afe7 100644 --- a/.github/workflows/bump_deps.yaml +++ b/.github/workflows/bump_deps.yaml @@ -337,6 +337,8 @@ jobs: # release tag, version and SHA-256 (see backend/go/strata/Makefile), and a # bump takes each package from the newest release that has it. The newest # release and its commit are pinned too: the Python modules come from it. + # The engine has three package families (strata-engine, strata-hy4 and + # strata-inkling), each with its own pins; the script moves all of them. # bump_deps.sh handles one commit variable only. Releases, not main. # If a release changes Strata's Python requirements, regenerate # backend/go/strata/requirements.txt by hand in the bump PR. diff --git a/backend/go/strata/Makefile b/backend/go/strata/Makefile index e2575bfc9b05..8a1d9b547cee 100644 --- a/backend/go/strata/Makefile +++ b/backend/go/strata/Makefile @@ -35,6 +35,9 @@ GOCMD=go # Tencent Hy4-Flash runs on its own engine program, strata-hy4, shipped as # separate packages (file strata-hy4-...) with the same targets. Its pins are # STRATA_HY4_TAG_, STRATA_HY4_VERSION_ and STRATA_HY4_SHA256_. +# Thinking Machines Inkling 2 Mini likewise runs on its own engine program, +# strata-inkling (file strata-inkling-...), with the pins STRATA_INKLING_TAG_, +# STRATA_INKLING_VERSION_ and STRATA_INKLING_SHA256_. # --------------------------------------------------------------------------- STRATA_VERSION?=v0.2.20 STRATA_COMMIT?=a34979fc94f3d126b9bb8210f4ad311345688b52 @@ -97,6 +100,35 @@ STRATA_HY4_TAG_macos_arm64_metal?=v0.2.20 STRATA_HY4_VERSION_macos_arm64_metal?=0.1.66 STRATA_HY4_SHA256_macos_arm64_metal?=5db9e8e07f9c469d2e4c9059451cf83293dbfd305d8a1dc03f3cf31530d0ce17 +# Inkling 2 Mini engine (strata-inkling, a separate program; same packages per target) +STRATA_INKLING_TAG_linux_x86_64_cuda_cuda12?=v0.2.20 +STRATA_INKLING_VERSION_linux_x86_64_cuda_cuda12?=0.1.66 +STRATA_INKLING_SHA256_linux_x86_64_cuda_cuda12?=2265b17d4d1865ea7c1ef627f01604a44b1508551793ba8b423f9e7a2e1675f7 +STRATA_INKLING_TAG_linux_x86_64_cuda_cuda13?=v0.2.20 +STRATA_INKLING_VERSION_linux_x86_64_cuda_cuda13?=0.1.66 +STRATA_INKLING_SHA256_linux_x86_64_cuda_cuda13?=fdaa87037918798023bd34b4e2e1e23832418d59b9421f279995b274648847c3 +STRATA_INKLING_TAG_linux_aarch64_cuda_cuda13?=v0.2.20 +STRATA_INKLING_VERSION_linux_aarch64_cuda_cuda13?=0.1.66 +STRATA_INKLING_SHA256_linux_aarch64_cuda_cuda13?=a01f0e1f2e629d53ff17f1defd7164076844f62ed73cf747298afe68e43a77c1 +STRATA_INKLING_TAG_linux_x86_64_hip_rx9070?=v0.2.20 +STRATA_INKLING_VERSION_linux_x86_64_hip_rx9070?=0.1.66 +STRATA_INKLING_SHA256_linux_x86_64_hip_rx9070?=3cc99f387b2059741dd3956acc0361a889aaeb26bcfa2e86bebe2d312c5578a1 +STRATA_INKLING_TAG_linux_x86_64_hip_rx7900?=v0.2.20 +STRATA_INKLING_VERSION_linux_x86_64_hip_rx7900?=0.1.66 +STRATA_INKLING_SHA256_linux_x86_64_hip_rx7900?=4def626b047c4da3d1a2e4973ddd0881e984335e8f068fad60ee0da678942cbd +STRATA_INKLING_TAG_linux_x86_64_hip_rx6000?=v0.2.20 +STRATA_INKLING_VERSION_linux_x86_64_hip_rx6000?=0.1.66 +STRATA_INKLING_SHA256_linux_x86_64_hip_rx6000?=154222107458c6d2cd187e7776e5a87373cc0c568d3641c1b3efa10c6091c403 +STRATA_INKLING_TAG_linux_x86_64_hip_halo?=v0.2.20 +STRATA_INKLING_VERSION_linux_x86_64_hip_halo?=0.1.66 +STRATA_INKLING_SHA256_linux_x86_64_hip_halo?=9ef6feccf3cd868fd6d68e08eab80f47ba087ce1b5b7ce2eb334addc13517139 +STRATA_INKLING_TAG_linux_x86_64_sycl?=v0.2.20 +STRATA_INKLING_VERSION_linux_x86_64_sycl?=0.1.66 +STRATA_INKLING_SHA256_linux_x86_64_sycl?=81b72fd2d8c3d323a38ca783e97cd61d1b6ad2093b376fe86b43e6b840add509 +STRATA_INKLING_TAG_macos_arm64_metal?=v0.2.20 +STRATA_INKLING_VERSION_macos_arm64_metal?=0.1.66 +STRATA_INKLING_SHA256_macos_arm64_metal?=4fee154bc838e898bbe12b4ad258712ad90e1d50e5be5e3473db3724495c9929 + STRATA_REPO?=https://github.com/Niko1221/Strata # llama.cpp, for its gguf-py folder only (the pack tool dequantizes with it). @@ -167,6 +199,7 @@ engine_dir=$(patsubst linux_x86_64_cuda_%,%,$(patsubst linux_aarch64_cuda_%,%,$( # Package key -> upstream file name: linux_x86_64_hip_halo -> linux-x86_64-hip-halo asset_name=strata-engine-$(STRATA_ENGINE_VERSION_$(1))-$(subst x86-64,x86_64,$(subst _,-,$(1))).tar.gz asset_name_hy4=strata-hy4-$(STRATA_HY4_VERSION_$(1))-$(subst x86-64,x86_64,$(subst _,-,$(1))).tar.gz +asset_name_inkling=strata-inkling-$(STRATA_INKLING_VERSION_$(1))-$(subst x86-64,x86_64,$(subst _,-,$(1))).tar.gz PBS_TRIPLE_linux_x86_64=x86_64-unknown-linux-gnu PBS_TRIPLE_linux_aarch64=aarch64-unknown-linux-gnu @@ -177,7 +210,7 @@ SRC_DIR=sources/strata LLAMA_DIR=sources/llama.cpp STAMP=.stamp -.PHONY: strata package-stub engine engine-packages engine-packages-hy4 engine-python engine-source build package test clean purge print-packages print-asset check-pins +.PHONY: strata package-stub engine engine-packages engine-packages-hy4 engine-packages-inkling engine-python engine-source build package test clean purge print-packages print-asset check-pins strata: CGO_ENABLED=0 $(GOCMD) build -ldflags "$(LD_FLAGS)" -tags "$(GO_TAGS)" -o strata ./ @@ -191,6 +224,9 @@ print-asset: print-asset-hy4: @echo "$(call asset_name_hy4,$(PKG))" +print-asset-inkling: + @echo "$(call asset_name_inkling,$(PKG))" + # Fails with one clear line when a pin is malformed (used by # scripts/build/strata-pins_test.sh and handy before a bump PR). # No recipe below uses $(MAKE): Dockerfile.golang probes `make -n engine`, and @@ -199,12 +235,13 @@ check-pins: @fail=0; \ $(foreach v,$(filter STRATA_ENGINE_SHA256_%,$(.VARIABLES)),echo '$($(subst _SHA256_,_TAG_,$(v)))' | grep -Eq '^v[0-9][0-9.]*$$' || { echo 'bad or missing tag for $(v)' >&2; fail=1; }; echo '$($(subst _SHA256_,_VERSION_,$(v)))' | grep -Eq '^[0-9][0-9.]*$$' || { echo 'bad or missing version for $(v)' >&2; fail=1; }; ) \ $(foreach v,$(filter STRATA_HY4_SHA256_%,$(.VARIABLES)),echo '$($(subst _SHA256_,_TAG_,$(v)))' | grep -Eq '^v[0-9][0-9.]*$$' || { echo 'bad or missing tag for $(v)' >&2; fail=1; }; echo '$($(subst _SHA256_,_VERSION_,$(v)))' | grep -Eq '^[0-9][0-9.]*$$' || { echo 'bad or missing version for $(v)' >&2; fail=1; }; ) \ - $(foreach v,$(filter STRATA_ENGINE_SHA256_% STRATA_HY4_SHA256_% PBS_SHA256_%,$(.VARIABLES)),echo '$($(v))' | grep -Eq '^[0-9a-f]{64}$$' || { echo 'bad pin $(v)' >&2; fail=1; }; ) \ + $(foreach v,$(filter STRATA_INKLING_SHA256_%,$(.VARIABLES)),echo '$($(subst _SHA256_,_TAG_,$(v)))' | grep -Eq '^v[0-9][0-9.]*$$' || { echo 'bad or missing tag for $(v)' >&2; fail=1; }; echo '$($(subst _SHA256_,_VERSION_,$(v)))' | grep -Eq '^[0-9][0-9.]*$$' || { echo 'bad or missing version for $(v)' >&2; fail=1; }; ) \ + $(foreach v,$(filter STRATA_ENGINE_SHA256_% STRATA_HY4_SHA256_% STRATA_INKLING_SHA256_% PBS_SHA256_%,$(.VARIABLES)),echo '$($(v))' | grep -Eq '^[0-9a-f]{64}$$' || { echo 'bad pin $(v)' >&2; fail=1; }; ) \ echo "$(STRATA_COMMIT)" | grep -Eq '^[0-9a-f]{40}$$' || { echo "bad STRATA_COMMIT" >&2; fail=1; }; \ echo "$(LLAMA_CPP_COMMIT)" | grep -Eq '^[0-9a-f]{40}$$' || { echo "bad LLAMA_CPP_COMMIT" >&2; fail=1; }; \ exit $$fail -engine: engine-packages engine-packages-hy4 engine-python engine-source +engine: engine-packages engine-packages-hy4 engine-packages-inkling engine-python engine-source # The upstream engine package(s) for this target, verified and unpacked into # engines//. Each archive is deleted after unpacking to keep the layer small. @@ -224,6 +261,12 @@ engine-packages-hy4: @set -e; \ $(foreach pkg,$(STRATA_PACKAGES),sh ./fetch-engine.sh '$(call engine_dir,$(pkg))' '$(call asset_name_hy4,$(pkg))' '$(STRATA_HY4_SHA256_$(pkg))' '$(STRATA_REPO)/releases/download/$(STRATA_HY4_TAG_$(pkg))' '$(STRATA_HY4_VERSION_$(pkg))' engines-hy4 strata-hy4; ) +# The Inkling 2 Mini engine package(s) for the same target, into engines-inkling//. +engine-packages-inkling: + @if [ -z "$(STRATA_PACKAGES)" ]; then exit 1; fi + @set -e; \ + $(foreach pkg,$(STRATA_PACKAGES),sh ./fetch-engine.sh '$(call engine_dir,$(pkg))' '$(call asset_name_inkling,$(pkg))' '$(STRATA_INKLING_SHA256_$(pkg))' '$(STRATA_REPO)/releases/download/$(STRATA_INKLING_TAG_$(pkg))' '$(STRATA_INKLING_VERSION_$(pkg))' engines-inkling strata-inkling; ) + # Portable CPython plus the pinned, hash-checked packages the helper imports. engine-python: @if [ -z "$(PBS_PLATFORM)" ]; then echo "strata: no portable Python for $(UNAME_S)/$(UNAME_M)" >&2; exit 1; fi @@ -255,6 +298,8 @@ engine-python: # file), serve/hy4_dialect.py (its tagged reasoning and tool-call tokens) and # serve/toolformat.py (which parser a chat template needs); serve/frontend.py # imports the last two when it runs a Hy4 template. +# Inkling 2 Mini adds tools/inkling_tokenizer.py and serve/inkling_dialect.py +# (its channel tokens, the prompt opener and the forced tool-call text). # Since v0.2.15 iq_pack.py uses strata_gguf by default. llama.cpp's gguf-py, # fetched at the commit Strata pins into third_party/llama.cpp/gguf-py under # the Strata tree, stays available as the STRATA_GGUF_PY alternative. @@ -264,7 +309,7 @@ engine-source: rm -rf $(SRC_DIR) strata-src; mkdir -p $(SRC_DIR) strata-src; \ cd $(SRC_DIR) && git init -q && git remote add origin $(STRATA_REPO) && \ git sparse-checkout init --no-cone && \ - git sparse-checkout set /LICENSE /tools/strata_tokenizer.py /tools/iq_pack.py /tools/gguf_reader.py /tools/_paths.py /tools/strata_gguf.py /tools/strata_quants.py /tools/strata_quant_tables.py /serve/__init__.py /serve/frontend.py /serve/hy4_dialect.py /serve/toolformat.py /tools/hy4_tokenizer.py /terminal/tools/strata_tokenizer.py /terminal/tools/iq_pack.py /terminal/tools/gguf_reader.py /terminal/tools/_paths.py /terminal/tools/strata_gguf.py /terminal/tools/strata_quants.py /terminal/tools/strata_quant_tables.py /terminal/serve/__init__.py /terminal/serve/frontend.py /terminal/serve/hy4_dialect.py /terminal/serve/toolformat.py /terminal/tools/hy4_tokenizer.py && \ + git sparse-checkout set /LICENSE /tools/strata_tokenizer.py /tools/iq_pack.py /tools/gguf_reader.py /tools/_paths.py /tools/strata_gguf.py /tools/strata_quants.py /tools/strata_quant_tables.py /serve/__init__.py /serve/frontend.py /serve/hy4_dialect.py /serve/toolformat.py /tools/hy4_tokenizer.py /serve/inkling_dialect.py /tools/inkling_tokenizer.py /terminal/tools/strata_tokenizer.py /terminal/tools/iq_pack.py /terminal/tools/gguf_reader.py /terminal/tools/_paths.py /terminal/tools/strata_gguf.py /terminal/tools/strata_quants.py /terminal/tools/strata_quant_tables.py /terminal/serve/__init__.py /terminal/serve/frontend.py /terminal/serve/hy4_dialect.py /terminal/serve/toolformat.py /terminal/tools/hy4_tokenizer.py /terminal/serve/inkling_dialect.py /terminal/tools/inkling_tokenizer.py && \ git fetch -q --depth 1 --filter=blob:none origin $(STRATA_COMMIT) && \ git checkout -q FETCH_HEAD; \ cd "$(CURDIR)"; \ @@ -278,10 +323,10 @@ engine-source: mkdir -p strata-src/tools strata-src/serve strata-src/third_party/llama.cpp; \ cp $(SRC_DIR)/LICENSE strata-src/LICENSE; \ PYSRC=$(SRC_DIR); [ -d $(SRC_DIR)/terminal/tools ] && PYSRC=$(SRC_DIR)/terminal; \ - cp $$PYSRC/tools/hy4_tokenizer.py $$PYSRC/tools/strata_tokenizer.py $$PYSRC/tools/iq_pack.py $$PYSRC/tools/gguf_reader.py $$PYSRC/tools/_paths.py $$PYSRC/tools/strata_gguf.py $$PYSRC/tools/strata_quants.py $$PYSRC/tools/strata_quant_tables.py strata-src/tools/; \ + cp $$PYSRC/tools/hy4_tokenizer.py $$PYSRC/tools/inkling_tokenizer.py $$PYSRC/tools/strata_tokenizer.py $$PYSRC/tools/iq_pack.py $$PYSRC/tools/gguf_reader.py $$PYSRC/tools/_paths.py $$PYSRC/tools/strata_gguf.py $$PYSRC/tools/strata_quants.py $$PYSRC/tools/strata_quant_tables.py strata-src/tools/; \ cp -r $(LLAMA_DIR)/gguf-py strata-src/third_party/llama.cpp/gguf-py; \ cp $(LLAMA_DIR)/LICENSE strata-src/third_party/llama.cpp/LICENSE; \ - cp $$PYSRC/serve/__init__.py $$PYSRC/serve/frontend.py $$PYSRC/serve/hy4_dialect.py $$PYSRC/serve/toolformat.py strata-src/serve/; \ + cp $$PYSRC/serve/__init__.py $$PYSRC/serve/frontend.py $$PYSRC/serve/hy4_dialect.py $$PYSRC/serve/inkling_dialect.py $$PYSRC/serve/toolformat.py strata-src/serve/; \ touch strata-src/$(STAMP)-$(STRATA_COMMIT) package: @@ -303,4 +348,4 @@ clean: # Also drops everything fetched: engines, Python, sources and downloads. purge: clean - rm -rf engines engines-hy4 python strata-src sources downloads + rm -rf engines engines-hy4 engines-inkling python strata-src sources downloads diff --git a/backend/go/strata/README.md b/backend/go/strata/README.md index 8c4555737df8..9cda241d1765 100644 --- a/backend/go/strata/README.md +++ b/backend/go/strata/README.md @@ -89,6 +89,40 @@ picture and the engine expands it, so there is no encoder program and no `GENI`. the helper uses Strata's `serve/hy4_dialect.py` and the parser class the Strata server uses for this template. `logprobs` are refused: the engine has none. The Qwen options (`pack`, `pack_gguf`, `mmproj`, `vision_exe`, `ple_gguf`, ...) do not apply to this family. +## Inkling 2 Mini + +Thinking Machines Inkling 2 Mini (26.4B parameters, 3.4B active, text and image input, no thinking mode) runs on a third +engine program, `strata-inkling`, with the same `--serve` line protocol and a strict parser. Set `family:inkling`. The image +carries its packages in `engines-inkling/`; the `strata-engine` launcher uses them when `STRATA_ENGINE_FAMILY=inkling`, which +the backend sets for this family. + +An Inkling model is one file: a Strata build (`Inkling-2-Mini-SQ-10.strata`, `-SQ-15` or `-SQ-20`) or an Unsloth GGUF +(`Inkling-2-Mini-UD-Q4_K_XL.gguf` and the other UD quants), plus an optional vision file (`Inkling-2-Mini-Vision.strata`) and, +for a GGUF, the DSpark drafter file (`dspark-Inkling-2-Mini-Q8_0.gguf`). A Strata build carries its drafter. There is no pack. +The tokenizer (o200k byte-level BPE) and the chat template come from the manifest at the end of a Strata build and from the +`tokenizer.json` and `chat_template.jinja` files that Strata publishes beside its builds; a Strata build has the template but not +the tokenizer, and a GGUF has neither, so both files are needed in the model directory. On the first load the backend runs +Strata's `tools/inkling_tokenizer.py` and keeps the result next to the model file (`.tokenizer/`, made again if a source +file changes). The engine is started as +` --native --max-context N [--vision ] [--dspark ] [--vram-experts-gb X] [--ram-experts-gb Y] [--gpu N] [--draft dspark|off] [engine_args] --serve`. +Before that the backend runs ` --info [--vision ] [--dspark ]` and asks for `--draft dspark` and +`--vision` only when the engine reports `drafter=dspark` and `images=1`; if it cannot be asked it starts without both and logs why. + +| Option (family `inkling`) | Required | Meaning | +|---|---|---| +| `native` | yes | The model file. | +| `vision` | no | The vision file, `on` (default file, must exist), `off`, or a path. With no option, the default file is used when it exists. | +| `drafter` | no | `dspark` or `auto` (default), or `off`. | +| `dspark` | no | The drafter file of a GGUF model. Default `dspark-Inkling-2-Mini-Q8_0.gguf` next to the model; a GGUF model without it starts without a drafter. | +| `tokenizer_json`, `chat_template` | no | The tokenizer sources. Defaults `tokenizer.json` and `chat_template.jinja` next to the model. | +| `vram_experts_gb`, `ram_experts_gb` | no | Caps for the experts held on the card and in RAM. Not set by default. | + +`context_size` defaults to 32768 (the model reads up to 1M tokens; the KV cache grows with the context). Pictures are files, as for +Hy4-Flash: one `image=` key per picture on the `GEN` line. The model writes its output as channel tokens; the prompt gets +Strata's explicit answer opener and the helper uses Strata's `InklingOutputParser` (`serve/inkling_dialect.py`) to read content and +tool calls. The model has no thinking mode, so a reasoning effort in a request changes nothing. `logprobs` are refused: the engine +has none. The Qwen options (`pack`, `pack_gguf`, `mmproj`, `vision_exe`, ...) do not apply to this family. + ## Model files A Strata model is not one file. The directory LocalAI points at holds, or the options name: diff --git a/backend/go/strata/hy4.go b/backend/go/strata/hy4.go index a7f250f3e340..19fd2f76584c 100644 --- a/backend/go/strata/hy4.go +++ b/backend/go/strata/hy4.go @@ -479,10 +479,16 @@ func encodeHy4Path(p string) string { // the GEN keys that name them, in prompt order. release removes the files; the // engine has read them by the end of the request. func hy4ImageKeys(sources []string) (keys []string, release func(), err error) { + return directImageKeys("strata-hy4-images-", sources) +} + +// directImageKeys is hy4ImageKeys for any engine that reads picture files +// itself; dirPrefix names the temporary directory. +func directImageKeys(dirPrefix string, sources []string) (keys []string, release func(), err error) { if len(sources) == 0 { return nil, func() {}, nil } - dir, err := os.MkdirTemp("", "strata-hy4-images-") + dir, err := os.MkdirTemp("", dirPrefix) if err != nil { return nil, nil, err } diff --git a/backend/go/strata/hy4_test.go b/backend/go/strata/hy4_test.go index 4cb3e9e62b56..96ef2c226cf9 100644 --- a/backend/go/strata/hy4_test.go +++ b/backend/go/strata/hy4_test.go @@ -121,7 +121,7 @@ var _ = Describe("hy4 family options", func() { It("keeps the family list honest", func() { _, err := parseLoad(&pb.ModelOptions{Options: []string{"family:other", "engine_path:/x"}}) - Expect(err).To(MatchError(ContainSubstring("qwen or hy4"))) + Expect(err).To(MatchError(ContainSubstring("qwen, hy4 or inkling"))) }) }) diff --git a/backend/go/strata/inkling.go b/backend/go/strata/inkling.go new file mode 100644 index 000000000000..45e2c09ebba4 --- /dev/null +++ b/backend/go/strata/inkling.go @@ -0,0 +1,494 @@ +package main + +// Thinking Machines Inkling 2 Mini. Strata runs it on its own engine program, +// strata-inkling, which is neither the program that runs the Qwen models nor +// strata-hy4. Facts this file relies on (all from the Strata sources at the +// pinned commit and the engine's own usage text): +// +// - strata-inkling speaks the same `--serve` line protocol as the other +// engines (GEN, T, DONE, STOP, QUIT) and refuses a flag it does not know, +// so the Qwen engine's flags are never sent to it. +// - The model is one file: a Strata build (`Inkling-2-Mini-SQ-10.strata`, +// `-SQ-15` or `-SQ-20`) or an Unsloth GGUF (`Inkling-2-Mini-UD-Q4_K_XL.gguf` +// and the other UD quants). There is no pack directory. `--native +// --max-context ` is the start line. A picture reader is a separate file +// (`Inkling-2-Mini-Vision.strata`, `--vision`), and a GGUF model has a +// separate DSpark drafter file (`dspark-Inkling-2-Mini-Q8_0.gguf`, +// `--dspark`); a Strata build carries its drafter inside. +// - `strata-inkling --info [--vision ] [--dspark ]` +// prints one line (arch=inkling2_loop ... drafter=dspark images=1 ...) +// with what this engine can do. The drafter and the vision file are asked +// for only when it says so. +// - The tokenizer (o200k byte-level BPE) and the chat template come from the +// Section 0 manifest of a Strata build, or from the tokenizer.json and +// chat_template.jinja files Strata publishes beside the builds. A GGUF has +// only the second source. Strata's own inkling_tokenizer.py turns either +// into the tokenizer directory the helper reads. +// - Pictures are files the engine reads itself: one `image=` GEN key +// per picture, in prompt order, and one image placeholder in the prompt per +// picture. There is no separate encoder program and no GENI request. +// - The model has no thinking mode. Its chat template ends at the last +// message, so the prompt gets an explicit answer opener (Strata's +// inkling_dialect.finish_prompt). Its output is a stream of channel tokens +// (<|content_text|>, <|content_invoke_tool_json|>, ...) that Strata's +// InklingOutputParser turns into content and tool calls. +// - The engine does not return logprobs and takes no logit bias. + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "os" + "os/exec" + "path/filepath" + "strconv" + "strings" + "time" + + "github.com/mudler/xlog" + + pb "github.com/mudler/LocalAI/pkg/grpc/proto" +) + +const ( + inklingVisionFile = "Inkling-2-Mini-Vision.strata" + inklingDrafterFile = "dspark-Inkling-2-Mini-Q8_0.gguf" + inklingTokenizerFile = "tokenizer.json" + inklingTemplateFile = "chat_template.jinja" + + // inklingDefaultContext is the context Strata starts Inkling 2 Mini with + // when the model config names none. The model reads up to 1M tokens; the + // KV cache grows with the context, so the default stays small. + inklingDefaultContext = 32768 + + // inklingImageText is what the chat template writes for each picture: the + // image channel token and the image pad token. The engine expands the pad. + inklingImageText = "<|content_image|><|unused_200054|>" + + inklingInfoTimeout = time.Minute +) + +// inklingEOSTexts are the tokens that end an Inkling 2 Mini reply: the end of +// sampling token (the config's eos) and the end of text token. +var inklingEOSTexts = []string{"<|content_model_end_sampling|>", "<|endoftext|>"} + +// defaultInklingEOSIDs are those two tokens' ids, for a tokenizer that cannot +// name them. +var defaultInklingEOSIDs = []int{200006, 199999} + +// inklingConfig is what the Inkling family needs beyond the shared load options. +type inklingConfig struct { + native string // the model file: a .strata build or a .gguf + vision string // the vision file, or empty + drafter string // the DSpark drafter GGUF (GGUF models only), or empty + + tokenizerJSON string // tokenizer.json beside the model, or empty + chatTemplate string // chat_template.jinja beside the model, or empty + + wantDrafter bool // drafter option: on unless "off" + vramExperts string // --vram-experts-gb, or empty + ramExperts string // --ram-experts-gb, or empty + + // Set from the engine's own answer to --info, after parsing. + useDrafter bool + useVision bool +} + +func (h *inklingConfig) isGGUF() bool { + return strings.EqualFold(filepath.Ext(h.native), ".gguf") +} + +// parseInkling reads the options of an Inkling 2 Mini model. It finds no pack: +// the model is the files named below, looked up in the model directory. +func parseInkling(c loadConfig, kv map[string]string, opts *pb.ModelOptions) (loadConfig, error) { + dir := opts.GetModelFile() + if dir == "" { + dir = filepath.Join(opts.GetModelPath(), opts.GetModel()) + } + dirs := []string{dir, opts.GetModelPath(), filepath.Dir(dir)} + + parseRuntime(&c, kv) + if err := parseTimeouts(&c, kv); err != nil { + return c, err + } + if c.ctxSize <= 0 { + c.ctxSize = inklingDefaultContext + } + + h := &inklingConfig{} + if kv["native"] == "" { + return c, errors.New("strata: family:inkling needs the native option: the model file, for example native:Inkling-2-Mini-SQ-10.strata") + } + native, err := resolve(kv["native"], dirs...) + if err != nil { + return c, fmt.Errorf("strata: native option: %w", err) + } + h.native = native + // The other files sit next to the model file, or in the model directory. + near := append([]string{filepath.Dir(native)}, dirs...) + + switch v := kv["vision"]; v { + case "off": + case "", "on": + p, rerr := resolve(inklingVisionFile, near...) + switch { + case rerr == nil: + h.vision = p + case v == "on": + return c, fmt.Errorf("strata: vision is on but the vision file is missing: %w", rerr) + } + default: + p, rerr := resolve(v, near...) + if rerr != nil { + return c, fmt.Errorf("strata: vision option: %w", rerr) + } + h.vision = p + } + + switch v := kv["drafter"]; v { + case "", "auto", "dspark": + h.wantDrafter = true + case "off": + default: + return c, fmt.Errorf("strata: drafter %q must be dspark, auto or off", v) + } + // A GGUF model has no drafter inside: the drafter is a file. Without one a + // GGUF model starts without speculative decoding. + if h.wantDrafter && h.isGGUF() { + name := kv["dspark"] + if name == "" { + name = inklingDrafterFile + } + p, rerr := resolve(name, near...) + switch { + case rerr == nil: + h.drafter = p + case kv["dspark"] != "": + return c, fmt.Errorf("strata: dspark option: %w", rerr) + default: + h.wantDrafter = false + xlog.Info("strata: no DSpark drafter file next to the GGUF model, so it starts without speculative decoding", "file", inklingDrafterFile) + } + } + + for _, o := range []struct { + name string + dst *string + }{{"tokenizer_json", &h.tokenizerJSON}, {"chat_template", &h.chatTemplate}} { + name := kv[o.name] + explicit := name != "" + if !explicit { + name = map[string]string{"tokenizer_json": inklingTokenizerFile, "chat_template": inklingTemplateFile}[o.name] + } + p, rerr := resolve(name, near...) + switch { + case rerr == nil: + *o.dst = p + case explicit: + return c, fmt.Errorf("strata: %s option: %w", o.name, rerr) + } + } + + for _, o := range []struct { + name string + dst *string + }{{"vram_experts_gb", &h.vramExperts}, {"ram_experts_gb", &h.ramExperts}} { + v := kv[o.name] + if v == "" { + continue + } + f, err := strconv.ParseFloat(v, 64) + if err != nil || f < 0 { + return c, fmt.Errorf("strata: bad %s %q", o.name, v) + } + *o.dst = strconv.FormatFloat(f, 'f', -1, 64) + } + + // The launcher picks the engine package by this variable; a user who runs + // strata-inkling directly through engine_path is not affected by it. + hasFamily := false + for _, e := range c.env { + hasFamily = hasFamily || strings.HasPrefix(e, engineFamilyEnv+"=") + } + if !hasFamily { + c.env = append(c.env, engineFamilyEnv+"="+familyInkling) + } + + c.inkling = h + return c, nil +} + +// inklingEngineArgs is the command line before --serve. Engine arguments given +// by the user come last so they can override what the options chose. +func (c loadConfig) inklingEngineArgs() []string { + h := c.inkling + args := []string{"--native", h.native, "--max-context", strconv.Itoa(c.ctxSize)} + if h.useVision && h.vision != "" { + args = append(args, "--vision", h.vision) + } + if h.drafter != "" { + args = append(args, "--dspark", h.drafter) + } + if h.vramExperts != "" { + args = append(args, "--vram-experts-gb", h.vramExperts) + } + if h.ramExperts != "" { + args = append(args, "--ram-experts-gb", h.ramExperts) + } + if c.mainGPU != "" { + args = append(args, "--gpu", c.mainGPU) + } + if !hasFlag(c.extraArgs, "--draft") { + switch { + case h.useDrafter: + args = append(args, "--draft", "dspark") + case !h.wantDrafter: + args = append(args, "--draft", "off") + } + } + return append(args, c.extraArgs...) +} + +// infoArgs is the argument list of `--info`: the model file, and the vision +// and drafter files the engine is asked about. +func (h *inklingConfig) infoArgs() []string { + args := []string{"--info", h.native} + if h.vision != "" { + args = append(args, "--vision", h.vision) + } + if h.drafter != "" { + args = append(args, "--dspark", h.drafter) + } + return args +} + +// applyInfo decides, from what the engine says it can do, whether to ask for +// the drafter and the vision file. A nil info (the engine could not be asked) +// means neither. It returns the reasons something was left out. +func (h *inklingConfig) applyInfo(info map[string]string) (notes []string) { + h.useDrafter = h.wantDrafter && info["drafter"] == "dspark" + h.useVision = h.vision != "" && info["images"] == "1" + if h.wantDrafter && !h.useDrafter { + notes = append(notes, "this engine has no drafter (DSpark) for this model, so it starts without speculative decoding") + } + if h.vision != "" && !h.useVision { + notes = append(notes, "this engine does not read images, so it starts without the vision file") + } + return notes +} + +// probeInklingInfo runs ` --info [--vision v] [--dspark d]`. +// The launcher passes the arguments on, so enginePath may be the launcher. +func probeInklingInfo(enginePath string, args []string, env []string) (map[string]string, error) { + ctx, cancel := context.WithTimeout(context.Background(), inklingInfoTimeout) + defer cancel() + cmd := exec.CommandContext(ctx, enginePath, args...) // #nosec G204 -- absolute regular file from the engine_path option, arguments built here, no shell + cmd.Env = append(os.Environ(), env...) + setChildAttrs(cmd) + out, err := cmd.Output() + if err != nil { + return nil, fmt.Errorf("%s --info: %w", filepath.Base(enginePath), err) + } + info := parseHy4Info(string(out)) + if info == nil { + return nil, fmt.Errorf("%s --info printed no arch= line", filepath.Base(enginePath)) + } + return info, nil +} + +// --- tokenizer --------------------------------------------------------------- + +// inklingManifest keeps the parts of a Strata build's manifest the tokenizer +// tool reads. The tokenizer itself may be missing here: Strata then reads the +// tokenizer.json published beside the build. ok is false when the manifest has +// no chat template, so the template file must be used. +func inklingManifest(section0 []byte) (manifest []byte, hasTokenizer, ok bool, err error) { + var all map[string]json.RawMessage + if err := json.Unmarshal(section0, &all); err != nil { + return nil, false, false, fmt.Errorf("the manifest is not JSON: %w", err) + } + keep := map[string]json.RawMessage{} + for _, k := range []string{"config", "tokenizer_json", "chat_template"} { + if v, found := all[k]; found { + keep[k] = v + } + } + tpl, found := keep["chat_template"] + var text string + if found && json.Unmarshal(tpl, &text) == nil && text != "" { + ok = true + } + _, hasTokenizer = keep["tokenizer_json"] + if hasTokenizer && string(keep["tokenizer_json"]) == "null" { + hasTokenizer = false + delete(keep, "tokenizer_json") + } + manifest, err = json.Marshal(keep) + return manifest, hasTokenizer, ok, err +} + +// inklingTokenizerScript turns the model's tokenizer sources into the +// tokenizer directory with Strata's own tool. Arguments: the Strata source +// directory, the output directory, then either "manifest" (the trimmed +// manifest on stdin; an optional tokenizer.json path fills a missing +// tokenizer) or "files" (tokenizer.json and chat_template.jinja paths). +const inklingTokenizerScript = `import json, sys +sys.path.insert(0, sys.argv[1] + "/tools") +import inkling_tokenizer +out = sys.argv[2] + "/tokenizer" +if sys.argv[3] == "manifest": + cfg = inkling_tokenizer.convert_manifest(json.load(sys.stdin), out, tokenizer_json_path=(sys.argv[4] or None)) +else: + cfg = inkling_tokenizer.convert_files(sys.argv[4], sys.argv[5], out) +print("tokenizer: vocab %d, merges %d" % (cfg["vocab_size"], cfg["n_merges"])) +` + +// inklingTokenizerJob asks for the tokenizer directory of one model file. +type inklingTokenizerJob struct { + native string + tokenizerJSON string // may be empty + chatTemplate string // may be empty + pack string // the directory that gets a tokenizer/ subdirectory + python string + strataRoot string + timeout time.Duration +} + +// inklingPackDir is where the tokenizer of a model file is kept: next to it, +// named after it. +func inklingPackDir(native string) string { + return hy4PackDir(native) +} + +// inklingStamp says which files a tokenizer directory was made from: their +// names and sizes. A replaced file makes the directory stale. +func inklingStamp(j inklingTokenizerJob) (string, error) { + var b strings.Builder + for _, p := range []string{j.native, j.tokenizerJSON, j.chatTemplate} { + if p == "" { + continue + } + st, err := os.Stat(p) + if err != nil { + return "", err + } + fmt.Fprintf(&b, "%s %d\n", filepath.Base(p), st.Size()) + } + return b.String(), nil +} + +// inklingScriptArgs decides how the tokenizer is made and returns the script +// arguments after the output directory, and the manifest for stdin (nil for +// the files mode). A Strata build's own manifest comes first, as in Strata's +// own setup; the files published beside the builds fill what it lacks, and +// are the only source for a GGUF. +func inklingScriptArgs(j inklingTokenizerJob) (args []string, stdin []byte, err error) { + files := j.tokenizerJSON != "" && j.chatTemplate != "" + if !strings.EqualFold(filepath.Ext(j.native), ".gguf") { + section0, rerr := readStrataSection0(j.native) + if rerr != nil { + return nil, nil, rerr + } + manifest, hasTokenizer, ok, merr := inklingManifest(section0) + if merr != nil { + return nil, nil, merr + } + if ok && (hasTokenizer || j.tokenizerJSON != "") { + path := "" + if !hasTokenizer { + path = j.tokenizerJSON + } + return []string{"manifest", path}, manifest, nil + } + } + if files { + return []string{"files", j.tokenizerJSON, j.chatTemplate}, nil, nil + } + return nil, nil, fmt.Errorf("no tokenizer: put %s and %s next to the model file (Strata publishes them beside its builds), or use a Strata build that carries them", inklingTokenizerFile, inklingTemplateFile) +} + +var inklingTokenizerFiles = hy4TokenizerFiles + +func inklingTokenizerComplete(pack, stamp string) bool { + for _, f := range inklingTokenizerFiles { + if !fileExists(filepath.Join(pack, "tokenizer", f)) { + return false + } + } + b, err := os.ReadFile(filepath.Join(pack, "source.txt")) // #nosec G304 -- a file this backend wrote next to the model + return err == nil && string(b) == stamp +} + +// prepareInklingTokenizer makes the tokenizer directory when it is not there +// yet. It builds in a staging directory that is renamed when it is done, so a +// stop part-way leaves nothing that looks finished. +func prepareInklingTokenizer(j inklingTokenizerJob) error { + stamp, err := inklingStamp(j) + if err != nil { + return err + } + if inklingTokenizerComplete(j.pack, stamp) { + return nil + } + script := filepath.Join(j.strataRoot, "tools", "inkling_tokenizer.py") + if !fileExists(script) { + return fmt.Errorf("the tokenizer tool %s is missing: this backend image carries an older Strata source tree, or strata_root points at a tree without it", script) + } + scriptArgs, stdin, err := inklingScriptArgs(j) + if err != nil { + return err + } + python, err := resolveInterpreter(j.python) + if err != nil { + return fmt.Errorf("python: %w", err) + } + + stage := j.pack + ".partial" + if err := os.RemoveAll(stage); err != nil { // an earlier stop; only this backend makes this name + return err + } + if err := os.MkdirAll(stage, 0o750); err != nil { + return err + } + ok := false + defer func() { + if !ok { + _ = os.RemoveAll(stage) + } + }() + + timeout := j.timeout + if timeout <= 0 { + timeout = 5 * time.Minute + } + ctx, cancel := context.WithTimeout(context.Background(), timeout) + defer cancel() + argv := append([]string{"-I", "-c", inklingTokenizerScript, j.strataRoot, stage}, scriptArgs...) + cmd := exec.CommandContext(ctx, python, argv...) // #nosec G204 -- interpreter from the python option, fixed script, paths as argv + if stdin != nil { + cmd.Stdin = bytes.NewReader(stdin) + } + cmd.Env = append(os.Environ(), "PYTHONUTF8=1", "PYTHONIOENCODING=utf-8") + var tail bytes.Buffer + cmd.Stdout, cmd.Stderr = &tail, &tail + xlog.Info("strata: making the Inkling 2 Mini tokenizer (first load only)", "model", filepath.Base(j.native), "from", scriptArgs[0]) + if err := cmd.Run(); err != nil { + return fmt.Errorf("the tokenizer tool failed: %w\n%s", err, lastLines(tail.String(), 20)) + } + if err := os.WriteFile(filepath.Join(stage, "source.txt"), []byte(stamp), 0o600); err != nil { + return err + } + if !inklingTokenizerComplete(stage, stamp) { + return fmt.Errorf("the tokenizer tool ended without a finished tokenizer in %s\n%s", stage, lastLines(tail.String(), 20)) + } + if err := os.RemoveAll(j.pack); err != nil { // a stale one + return err + } + if err := os.Rename(stage, j.pack); err != nil { + return err + } + ok = true + return nil +} diff --git a/backend/go/strata/inkling_test.go b/backend/go/strata/inkling_test.go new file mode 100644 index 000000000000..0541dbd1eb1d --- /dev/null +++ b/backend/go/strata/inkling_test.go @@ -0,0 +1,287 @@ +package main + +import ( + "context" + "os" + "path/filepath" + "strings" + "time" + + pb "github.com/mudler/LocalAI/pkg/grpc/proto" + + . "github.com/onsi/ginkgo/v2" + . "github.com/onsi/gomega" +) + +const inklingStrata = "Inkling-2-Mini-SQ-10.strata" +const inklingGGUF = "Inkling-2-Mini-UD-Q4_K_XL.gguf" + +// inklingDir makes a model directory with the given files. +func inklingDir(files ...string) string { + dir := GinkgoT().TempDir() + if len(files) == 0 { + files = []string{inklingStrata, inklingVisionFile} + } + for _, f := range files { + Expect(os.WriteFile(filepath.Join(dir, f), []byte("x"), 0o600)).To(Succeed()) + } + return dir +} + +func inklingOpts(dir, native string, extra ...string) *pb.ModelOptions { + exe, _ := os.Executable() + return &pb.ModelOptions{ + ModelFile: dir, + Options: append([]string{"family:inkling", "engine_path:" + exe, "strata_root:/unused", "native:" + native}, extra...), + } +} + +var _ = Describe("inkling family options", func() { + It("finds the vision file next to a Strata build and builds the start line", func() { + dir := inklingDir() + c, err := parseLoad(inklingOpts(dir, inklingStrata)) + Expect(err).ToNot(HaveOccurred()) + Expect(c.family).To(Equal(familyInkling)) + Expect(c.inkling.isGGUF()).To(BeFalse()) + c.inkling.applyInfo(map[string]string{"drafter": "dspark", "images": "1"}) + Expect(c.engineArgs()).To(Equal([]string{ + "--native", filepath.Join(dir, inklingStrata), + "--max-context", "32768", + "--vision", filepath.Join(dir, inklingVisionFile), + "--draft", "dspark", + })) + Expect(c.env).To(ContainElement("STRATA_ENGINE_FAMILY=inkling")) + }) + + It("passes the DSpark drafter file of a GGUF model", func() { + dir := inklingDir(inklingGGUF, inklingDrafterFile) + c, err := parseLoad(inklingOpts(dir, inklingGGUF, "vram_experts_gb:3.5", "ram_experts_gb:20")) + Expect(err).ToNot(HaveOccurred()) + Expect(c.inkling.isGGUF()).To(BeTrue()) + Expect(c.inkling.vision).To(BeEmpty()) + Expect(c.inkling.infoArgs()).To(Equal([]string{"--info", filepath.Join(dir, inklingGGUF), "--dspark", filepath.Join(dir, inklingDrafterFile)})) + c.inkling.applyInfo(map[string]string{"drafter": "dspark"}) + args := strings.Join(c.engineArgs(), " ") + Expect(args).To(ContainSubstring("--dspark " + filepath.Join(dir, inklingDrafterFile))) + Expect(args).To(ContainSubstring("--vram-experts-gb 3.5 --ram-experts-gb 20")) + Expect(args).To(ContainSubstring("--draft dspark")) + }) + + It("starts a GGUF model without a drafter when the file is missing", func() { + c, err := parseLoad(inklingOpts(inklingDir(inklingGGUF), inklingGGUF)) + Expect(err).ToNot(HaveOccurred()) + Expect(c.inkling.drafter).To(BeEmpty()) + Expect(strings.Join(c.engineArgs(), " ")).To(ContainSubstring("--draft off")) + }) + + It("never sends the Qwen flags and leaves out what the engine cannot do", func() { + c, err := parseLoad(inklingOpts(inklingDir(), inklingStrata, "engine_args:--parallel 4")) + Expect(err).ToNot(HaveOccurred()) + c.ctxSize = 8192 + Expect(c.inkling.applyInfo(nil)).To(HaveLen(2)) + args := strings.Join(c.engineArgs(), " ") + Expect(args).To(ContainSubstring("--max-context 8192")) + Expect(args).To(HaveSuffix("--parallel 4")) + for _, f := range []string{"--pack", "--vision", "--engram", "--vram-reserve-mib"} { + Expect(args).ToNot(ContainSubstring(f)) + } + }) + + It("lets the user's own --draft stand", func() { + c, err := parseLoad(inklingOpts(inklingDir(), inklingStrata, "engine_args:--draft off")) + Expect(err).ToNot(HaveOccurred()) + c.inkling.applyInfo(map[string]string{"drafter": "dspark"}) + Expect(strings.Count(strings.Join(c.engineArgs(), " "), "--draft")).To(Equal(1)) + }) + + It("can turn the drafter and the vision file off", func() { + c, err := parseLoad(inklingOpts(inklingDir(), inklingStrata, "drafter:off", "vision:off")) + Expect(err).ToNot(HaveOccurred()) + Expect(c.inkling.applyInfo(map[string]string{"drafter": "dspark", "images": "1"})).To(BeEmpty()) + Expect(strings.Join(c.engineArgs(), " ")).To(ContainSubstring("--draft off")) + Expect(c.inkling.vision).To(BeEmpty()) + }) + + It("refuses a named drafter file that is missing", func() { + _, err := parseLoad(inklingOpts(inklingDir(inklingGGUF), inklingGGUF, "dspark:nope.gguf")) + Expect(err).To(MatchError(ContainSubstring("dspark option"))) + }) + + It("picks up tokenizer files beside the model", func() { + dir := inklingDir(inklingGGUF, inklingTokenizerFile, inklingTemplateFile) + c, err := parseLoad(inklingOpts(dir, inklingGGUF)) + Expect(err).ToNot(HaveOccurred()) + Expect(c.inkling.tokenizerJSON).To(Equal(filepath.Join(dir, inklingTokenizerFile))) + Expect(c.inkling.chatTemplate).To(Equal(filepath.Join(dir, inklingTemplateFile))) + }) + + DescribeTable("refuses a bad configuration", + func(files []string, extra []string, want string) { + opts := inklingOpts(inklingDir(files...), inklingStrata, extra...) + if want == "native option" { + opts.Options = []string{"family:inkling", opts.Options[1], "strata_root:/unused"} + } + _, err := parseLoad(opts) + Expect(err).To(HaveOccurred()) + Expect(err.Error()).To(ContainSubstring(want)) + }, + Entry("no native option", nil, nil, "native option"), + Entry("model file missing", []string{inklingVisionFile}, nil, "native option"), + Entry("vision on without a file", []string{inklingStrata}, []string{"vision:on"}, "vision file is missing"), + Entry("bad drafter", nil, []string{"drafter:mtp"}, "drafter"), + Entry("bad expert budget", nil, []string{"ram_experts_gb:lots"}, "ram_experts_gb"), + Entry("named tokenizer file missing", nil, []string{"tokenizer_json:nope.json"}, "tokenizer_json option"), + ) +}) + +var _ = Describe("inkling tokenizer sources", func() { + It("keeps the parts of a manifest the tokenizer tool reads", func() { + m, hasTok, ok, err := inklingManifest([]byte(`{"config":{"a":1},"tokenizer_json":"{}","chat_template":"t","tensors":[1]}`)) + Expect(err).ToNot(HaveOccurred()) + Expect(hasTok).To(BeTrue()) + Expect(ok).To(BeTrue()) + Expect(string(m)).ToNot(ContainSubstring("tensors")) + + _, hasTok, ok, err = inklingManifest([]byte(`{"config":{},"tokenizer_json":null}`)) + Expect(err).ToNot(HaveOccurred()) + Expect(hasTok).To(BeFalse()) + Expect(ok).To(BeFalse()) + }) + + It("reads the manifest of a Strata build first", func() { + dir := GinkgoT().TempDir() + native := filepath.Join(dir, inklingStrata) + writeStrata(native, `{"config":{},"tokenizer_json":"{}","chat_template":"t"}`) + args, stdin, err := inklingScriptArgs(inklingTokenizerJob{native: native}) + Expect(err).ToNot(HaveOccurred()) + Expect(args).To(Equal([]string{"manifest", ""})) + Expect(string(stdin)).To(ContainSubstring("chat_template")) + }) + + It("takes a missing tokenizer from the file beside the build", func() { + dir := GinkgoT().TempDir() + native := filepath.Join(dir, inklingStrata) + writeStrata(native, `{"config":{},"chat_template":"t"}`) + tj := filepath.Join(dir, inklingTokenizerFile) + args, _, err := inklingScriptArgs(inklingTokenizerJob{native: native, tokenizerJSON: tj}) + Expect(err).ToNot(HaveOccurred()) + Expect(args).To(Equal([]string{"manifest", tj})) + }) + + It("uses the two files for a GGUF and says what is missing", func() { + dir := GinkgoT().TempDir() + native := filepath.Join(dir, inklingGGUF) + Expect(os.WriteFile(native, []byte("x"), 0o600)).To(Succeed()) + _, _, err := inklingScriptArgs(inklingTokenizerJob{native: native}) + Expect(err).To(MatchError(ContainSubstring("no tokenizer"))) + args, stdin, err := inklingScriptArgs(inklingTokenizerJob{native: native, tokenizerJSON: "/t.json", chatTemplate: "/c.jinja"}) + Expect(err).ToNot(HaveOccurred()) + Expect(args).To(Equal([]string{"files", "/t.json", "/c.jinja"})) + Expect(stdin).To(BeNil()) + }) + + It("rebuilds the tokenizer when a source file changes", func() { + dir := GinkgoT().TempDir() + native := filepath.Join(dir, inklingGGUF) + tj := filepath.Join(dir, inklingTokenizerFile) + Expect(os.WriteFile(native, []byte("abc"), 0o600)).To(Succeed()) + Expect(os.WriteFile(tj, []byte("{}"), 0o600)).To(Succeed()) + job := inklingTokenizerJob{native: native, tokenizerJSON: tj} + pack := inklingPackDir(native) + Expect(filepath.Base(pack)).To(Equal("Inkling-2-Mini-UD-Q4_K_XL.tokenizer")) + stamp, err := inklingStamp(job) + Expect(err).ToNot(HaveOccurred()) + Expect(os.MkdirAll(filepath.Join(pack, "tokenizer"), 0o750)).To(Succeed()) + for _, f := range inklingTokenizerFiles { + Expect(os.WriteFile(filepath.Join(pack, "tokenizer", f), []byte("x"), 0o600)).To(Succeed()) + } + Expect(os.WriteFile(filepath.Join(pack, "source.txt"), []byte(stamp), 0o600)).To(Succeed()) + Expect(inklingTokenizerComplete(pack, stamp)).To(BeTrue()) + Expect(os.WriteFile(tj, []byte("{ }"), 0o600)).To(Succeed()) + newStamp, _ := inklingStamp(job) + Expect(inklingTokenizerComplete(pack, newStamp)).To(BeFalse()) + }) +}) + +// loadedInkling loads an Inkling model through Load with the stub engine and +// stubbed tokenizer and --info seams. +func loadedInkling(info map[string]string, env []string, extra ...string) (*Strata, *fakeTokenizer, engineConfig) { + dir := inklingDir() + ft := &fakeTokenizer{} + s := NewStrata() + var seen engineConfig + var job inklingTokenizerJob + s.prepareInklingTokenizer = func(j inklingTokenizerJob) error { job = j; return nil } + s.probeInklingInfo = func(string, []string, []string) (map[string]string, error) { return info, nil } + s.newTokenizer = func(_, _, pack, family string, _ time.Duration) (Tokenizer, error) { + Expect(family).To(Equal(familyInkling)) + Expect(pack).To(Equal(job.pack)) + return ft, nil + } + s.startEngine = func(c engineConfig) (*engine, error) { + c.Env = append(c.Env, "STRATA_STUB_MODE=ok") + c.Env = append(c.Env, env...) + seen = c + return startEngine(c) + } + opts := inklingOpts(dir, inklingStrata, append([]string{"ready_timeout:5s"}, extra...)...) + opts.ContextSize = 2048 + Expect(s.Load(opts)).To(Succeed()) + DeferCleanup(func() { _ = s.Free() }) + Expect(job.native).To(Equal(filepath.Join(dir, inklingStrata))) + return s, ft, seen +} + +var _ = Describe("inkling backend", func() { + It("starts the engine with the Inkling line and stops on the Inkling end token", func() { + s, _, seen := loadedInkling(map[string]string{"drafter": "dspark", "images": "1"}, []string{"STRATA_STUB_TOKENS=72,105,200006"}) + Expect(strings.Join(seen.Args, " ")).To(ContainSubstring("--draft dspark")) + Expect(strings.Join(seen.Args, " ")).To(ContainSubstring("--max-context 2048")) + r, err := s.PredictRichContext(context.Background(), &pb.PredictOptions{ + UseTokenizerTemplate: true, Messages: []*pb.Message{{Role: "user", Content: "hello"}}, Tokens: 20, + }) + Expect(err).ToNot(HaveOccurred()) + Expect(string(r.Message)).To(Equal("Hi")) + }) + + It("sends a picture as an image= key", func() { + log := filepath.Join(GinkgoT().TempDir(), "gen.log") + s, _, _ := loadedInkling(map[string]string{"images": "1"}, []string{"STRATA_STUB_LOG=" + log, "STRATA_STUB_TOKENS=65"}) + _, err := s.PredictRichContext(context.Background(), &pb.PredictOptions{ + UseTokenizerTemplate: true, Tokens: 5, Images: []string{tinyPNG()}, + Messages: []*pb.Message{{Role: "user", Content: "what is this <__media__>"}}, + }) + Expect(err).ToNot(HaveOccurred()) + b, _ := os.ReadFile(log) + line := strings.TrimSpace(string(b)) + Expect(line).To(HavePrefix("GEN 5 image=")) + path := strings.TrimPrefix(strings.Fields(line)[2], "image=") + _, statErr := os.Stat(path) + Expect(os.IsNotExist(statErr)).To(BeTrue()) + }) + + It("refuses a picture when the engine cannot read pictures", func() { + s, _, _ := loadedInkling(map[string]string{"drafter": "dspark"}, nil) + _, err := s.PredictRichContext(context.Background(), &pb.PredictOptions{ + UseTokenizerTemplate: true, Tokens: 5, Images: []string{tinyPNG()}, + Messages: []*pb.Message{{Role: "user", Content: "x <__media__>"}}, + }) + Expect(err).To(MatchError(ContainSubstring("cannot read images"))) + }) + + It("refuses logprobs, which the engine does not have", func() { + s, _, _ := loadedInkling(nil, nil) + _, err := s.PredictRichContext(context.Background(), &pb.PredictOptions{Prompt: "x", Tokens: 5, Logprobs: 1, TopLogprobs: 2}) + Expect(err).To(MatchError(ContainSubstring("logprobs"))) + }) + + It("starts without the drafter and the picture reader when the engine cannot be asked", func() { + _, _, seen := loadedInkling(nil, nil) + Expect(strings.Join(seen.Args, " ")).ToNot(ContainSubstring("--draft dspark")) + Expect(strings.Join(seen.Args, " ")).ToNot(ContainSubstring("--vision")) + }) + + It("writes the image placeholder of the chat template for a plain prompt", func() { + Expect(inklingImageText).To(Equal("<|content_image|><|unused_200054|>")) + }) +}) diff --git a/backend/go/strata/options.go b/backend/go/strata/options.go index d278395f2c96..712cfb5d8e34 100644 --- a/backend/go/strata/options.go +++ b/backend/go/strata/options.go @@ -20,10 +20,13 @@ var defaultEOSIDs = []int{248044, 248046} // Model families. Qwen runs on the Strata engine ("strata"). Hy4 is Tencent // Hy4-Flash, which runs on its own engine program ("strata-hy4"); see hy4.go. +// Inkling is Thinking Machines Inkling 2 Mini, which runs on a third engine +// program ("strata-inkling"); see inkling.go. // Strata v0.2.15 removed DeepSeek V4.1, so family:deepseek41 is refused at load. const ( familyQwen = "qwen" familyHy4 = "hy4" + familyInkling = "inkling" familyDeepSeek41 = "deepseek41" ) @@ -50,13 +53,18 @@ type loadConfig struct { // build is set when the pack does not exist yet and must be made from the // GGUF files before the engine starts (the pack_gguf option). build *packBuild - // family is familyQwen or familyHy4. + // family is familyQwen, familyHy4 or familyInkling. family string // hy4 is set for the Hy4 family: the files of a .strata model and the // options of the strata-hy4 engine. Nil for every other family. hy4 *hy4Config + // inkling is set for the Inkling family: the files of an Inkling 2 Mini + // model and the options of the strata-inkling engine. Nil for every other + // family. + inkling *inklingConfig + // noPackFlag leaves --pack off the engine command line: the engine path // of this model reads the GGUF as it is and takes only the tokenizer. noPackFlag bool @@ -80,6 +88,9 @@ func (c loadConfig) engineArgs() []string { if c.hy4 != nil { return c.hy4EngineArgs() } + if c.inkling != nil { + return c.inklingEngineArgs() + } var args []string if !c.noPackFlag { args = append(args, "--pack", c.pack) @@ -219,10 +230,12 @@ func parseLoad(opts *pb.ModelOptions) (loadConfig, error) { case "", familyQwen: case familyHy4: c.family = familyHy4 + case familyInkling: + c.family = familyInkling case familyDeepSeek41: return c, errors.New("strata: family:deepseek41 is not supported: Strata v0.2.15 removed DeepSeek V4.1") default: - return c, fmt.Errorf("strata: family %q must be %s or %s", f, familyQwen, familyHy4) + return c, fmt.Errorf("strata: family %q must be %s, %s or %s", f, familyQwen, familyHy4, familyInkling) } envName := "STRATA_ENGINE_PATH" c.enginePath = kv["engine_path"] @@ -241,6 +254,9 @@ func parseLoad(opts *pb.ModelOptions) (loadConfig, error) { if c.family == familyHy4 { return parseHy4(c, kv, opts) } + if c.family == familyInkling { + return parseInkling(c, kv, opts) + } pack, dirs, err := planPack(&c, opts, kv) if err != nil { diff --git a/backend/go/strata/package.sh b/backend/go/strata/package.sh index b61613dd0ac2..3801580b3dd4 100755 --- a/backend/go/strata/package.sh +++ b/backend/go/strata/package.sh @@ -9,6 +9,9 @@ # engines-hy4// # the same targets for Tencent Hy4-Flash, whose engine is # the separate program strata-hy4 +# engines-inkling// +# the same targets for Thinking Machines Inkling 2 Mini, +# whose engine is the separate program strata-inkling # python/ portable CPython with regex and jinja2 # strata-src/ the Strata Python modules the tokenizer helper imports # @@ -20,7 +23,7 @@ set -e CURDIR=$(dirname "$(realpath "$0")") -for d in engines engines-hy4 python strata-src; do +for d in engines engines-hy4 engines-inkling python strata-src; do if [ ! -d "$CURDIR/$d" ]; then echo "ERROR: $CURDIR/$d is missing, run 'make engine' first" >&2 exit 1 @@ -30,7 +33,7 @@ if [ ! -x "$CURDIR/strata" ]; then echo "ERROR: $CURDIR/strata is missing, run 'make strata' first" >&2 exit 1 fi -for d in engines engines-hy4; do +for d in engines engines-hy4 engines-inkling; do if [ -z "$(ls -A "$CURDIR/$d")" ]; then echo "ERROR: $CURDIR/$d is empty" >&2 exit 1 @@ -47,6 +50,7 @@ chmod +x "$CURDIR/package/run.sh" "$CURDIR/package/strata-engine" # cp -a keeps the symlinks that the CUDA / ROCm library packages use. cp -af "$CURDIR/engines" "$CURDIR/package/engines" cp -af "$CURDIR/engines-hy4" "$CURDIR/package/engines-hy4" +cp -af "$CURDIR/engines-inkling" "$CURDIR/package/engines-inkling" cp -af "$CURDIR/python" "$CURDIR/package/python" cp -af "$CURDIR/strata-src" "$CURDIR/package/strata-src" @@ -67,6 +71,12 @@ for e in "$CURDIR"/package/engines-hy4/*/; do exit 1 fi done +for e in "$CURDIR"/package/engines-inkling/*/; do + if [ ! -x "${e}strata-inkling" ]; then + echo "ERROR: ${e}strata-inkling is not executable" >&2 + exit 1 + fi +done echo "Packaging completed successfully" -ls -liah "$CURDIR/package/" "$CURDIR/package/engines/" "$CURDIR/package/engines-hy4/" +ls -liah "$CURDIR/package/" "$CURDIR/package/engines/" "$CURDIR/package/engines-hy4/" "$CURDIR/package/engines-inkling/" diff --git a/backend/go/strata/strata-engine b/backend/go/strata/strata-engine index 434d085e82df..72f30fdd020c 100755 --- a/backend/go/strata/strata-engine +++ b/backend/go/strata/strata-engine @@ -11,6 +11,7 @@ # STRATA_ENGINE_FAMILY=hy4 (set by the backend for Tencent Hy4-Flash) selects the Hy4 packages in engines-hy4/ # and their program, strata-hy4, in place of engines/ and strata. The package names and the choice among them # are the same. +# STRATA_ENGINE_FAMILY=inkling (Thinking Machines Inkling 2 Mini) does the same with engines-inkling/ and strata-inkling. # # STRATA_ENGINES_DIR and STRATA_ENGINE_BIN select another folder and program. Unsupported hardware stops here with # a one-line reason on stderr, which the backend shows in its load error. @@ -22,6 +23,10 @@ hy4) ENGINES="${STRATA_ENGINES_DIR:-$HERE/engines-hy4}" BIN="${STRATA_ENGINE_BIN:-strata-hy4}" ;; +inkling) + ENGINES="${STRATA_ENGINES_DIR:-$HERE/engines-inkling}" + BIN="${STRATA_ENGINE_BIN:-strata-inkling}" + ;; *) ENGINES="${STRATA_ENGINES_DIR:-$HERE/engines}" BIN="${STRATA_ENGINE_BIN:-strata}" diff --git a/backend/go/strata/strata.go b/backend/go/strata/strata.go index 5116ff7c9002..56c3a88ebeb9 100644 --- a/backend/go/strata/strata.go +++ b/backend/go/strata/strata.go @@ -51,6 +51,10 @@ type Strata struct { // Hy4 seams: the tokenizer from the model file, and the engine's --info. prepareHy4Tokenizer func(hy4TokenizerJob) error probeHy4Info func(enginePath, native string, env []string) (map[string]string, error) + + // Inkling seams: the tokenizer from the model files, and the engine's --info. + prepareInklingTokenizer func(inklingTokenizerJob) error + probeInklingInfo func(enginePath string, args, env []string) (map[string]string, error) } func NewStrata() *Strata { @@ -60,6 +64,9 @@ func NewStrata() *Strata { prepareHy4Tokenizer: prepareHy4Tokenizer, probeHy4Info: probeHy4Info, + + prepareInklingTokenizer: prepareInklingTokenizer, + probeInklingInfo: probeInklingInfo, newTokenizer: func(python, root, pack, family string, timeout time.Duration) (Tokenizer, error) { return newHelperTokenizer(python, root, pack, family, timeout) }, @@ -93,6 +100,12 @@ func (s *Strata) Load(opts *pb.ModelOptions) error { } } + if c.inkling != nil { + if err := s.prepareInkling(&c); err != nil { + return err + } + } + tok, err := s.newTokenizer(c.python, c.strataRoot, c.pack, c.family, c.readyTimeout) if err != nil { return fmt.Errorf("strata: %w", err) @@ -120,8 +133,8 @@ func (s *Strata) Load(opts *pb.ModelOptions) error { s.eos[id] = true } s.padID, s.startID, s.padLiteral = -1, -1, nil - // Hy4: the engine reads pictures itself, so there is no encoder to start. - if c.hy4 == nil && c.vision != nil { + // Hy4 and Inkling: the engine reads pictures itself, so there is no encoder to start. + if c.hy4 == nil && c.inkling == nil && c.vision != nil { s.vision = newImageEncoder(*c.vision) if ids, err := tok.Encode(imagePadText, true); err == nil && len(ids) == 1 { s.padID = ids[0] @@ -131,7 +144,7 @@ func (s *Strata) Load(opts *pb.ModelOptions) error { } s.padLiteral, _ = tok.Encode(imagePadText, false) } - xlog.Info("strata: engine ready", "context", eng.ctxLen, "stop_supported", eng.canStop, "vision", c.vision != nil || (c.hy4 != nil && c.hy4.useVision)) + xlog.Info("strata: engine ready", "context", eng.ctxLen, "stop_supported", eng.canStop, "vision", c.vision != nil || (c.hy4 != nil && c.hy4.useVision) || (c.inkling != nil && c.inkling.useVision)) return nil } @@ -139,8 +152,11 @@ func (s *Strata) Load(opts *pb.ModelOptions) error { // falls back to their known ids. func defaultEOS(tok Tokenizer, family string) []int { names, fallback := []string{"<|endoftext|>", "<|im_end|>"}, defaultEOSIDs - if family == familyHy4 { + switch family { + case familyHy4: names, fallback = hy4EOSTexts, defaultHy4EOSIDs + case familyInkling: + names, fallback = inklingEOSTexts, defaultInklingEOSIDs } var out []int for _, t := range names { @@ -179,6 +195,32 @@ func (s *Strata) prepareHy4(c *loadConfig) error { return nil } +// prepareInkling makes the tokenizer directory from the model files and asks +// the engine what it can do. It sets the pack the tokenizer helper reads. +func (s *Strata) prepareInkling(c *loadConfig) error { + h := c.inkling + if c.strataRoot == "" { + return errors.New("strata: strata_root option (a Strata source checkout, used for its tokenizer and chat template) is required") + } + pack := inklingPackDir(h.native) + job := inklingTokenizerJob{native: h.native, tokenizerJSON: h.tokenizerJSON, chatTemplate: h.chatTemplate, pack: pack, python: c.python, strataRoot: c.strataRoot} + if err := s.prepareInklingTokenizer(job); err != nil { + return fmt.Errorf("strata: cannot make the tokenizer for %s: %w", filepath.Base(h.native), err) + } + c.pack = pack + var info map[string]string + if h.wantDrafter || h.vision != "" { + var err error + if info, err = s.probeInklingInfo(c.enginePath, h.infoArgs(), c.env); err != nil { + xlog.Warn("strata: cannot ask the engine what it supports", "error", err) + } + } + for _, n := range h.applyInfo(info) { + xlog.Info("strata: " + n) + } + return nil +} + func (s *Strata) freeLocked() { if s.eng != nil { s.eng.close() @@ -327,9 +369,12 @@ func (s *Strata) preparePrompt(tok Tokenizer, opts *pb.PredictOptions) (prepared if got := strings.Count(text, marker); got != n { return p, fmt.Errorf("the prompt has %d image markers (%s) for %d images", got, marker, n) } - if s.cfg.hy4 != nil { + switch { + case s.cfg.hy4 != nil: text = strings.ReplaceAll(text, marker, hy4ImageStartText+hy4ImagePadText+hy4ImageEndText) - } else { + case s.cfg.inkling != nil: + text = strings.ReplaceAll(text, marker, inklingImageText) + default: text = strings.ReplaceAll(text, marker, visionStartText+imagePadText+visionEndText) } p.Images = opts.GetImages() @@ -498,6 +543,18 @@ func (s *Strata) run(ctx context.Context, opts *pb.PredictOptions, emit func(raw return res, fmt.Errorf("strata: %w", err) } } + } else if s.cfg.inkling != nil { + if logprobsK(opts) >= 0 { + return res, errors.New("strata: logprobs are not supported by the Inkling engine") + } + if len(p.Images) > 0 { + if !s.cfg.inkling.useVision { + return res, errors.New("strata: this model cannot read images: the vision file is missing or the engine does not support it") + } + if imageKeys, release, err = directImageKeys("strata-inkling-images-", p.Images); err != nil { + return res, fmt.Errorf("strata: %w", err) + } + } } else if embFile, release, err = s.expandImages(vis, &p); err != nil { return res, err } diff --git a/backend/go/strata/tokenizer.go b/backend/go/strata/tokenizer.go index 5ff4f45a3d13..3271a5978c28 100644 --- a/backend/go/strata/tokenizer.go +++ b/backend/go/strata/tokenizer.go @@ -119,11 +119,11 @@ func newHelperTokenizer(python, strataRoot, pack, family string, timeout time.Du return nil, fmt.Errorf("tokenizer helper: python: %w", err) } argv := []string{"-c", helperScript, strataRoot, pack} - if family == familyDeepSeek41 || family == familyHy4 { + if family == familyDeepSeek41 || family == familyHy4 || family == familyInkling { argv = append(argv, family) } cmd := exec.Command(python, argv...) // #nosec G204 -- interpreter is a PATH name or an absolute file, no shell, script and paths passed as argv - if family == familyHy4 { + if family == familyHy4 || family == familyInkling { // The template and the model's output are not ASCII. cmd.Env = append(os.Environ(), "PYTHONUTF8=1", "PYTHONIOENCODING=utf-8") } diff --git a/backend/go/strata/tokenizer_helper.py b/backend/go/strata/tokenizer_helper.py index 2dfa47288979..4abfc5b12b6f 100644 --- a/backend/go/strata/tokenizer_helper.py +++ b/backend/go/strata/tokenizer_helper.py @@ -12,6 +12,10 @@ the reasoning effort words are Hy4's (no_think, high, max) and the output parser is the one the Strata server picks for that template, which reads Hy4's tagged reasoning and tool-call tokens. +family "inkling" is Thinking Machines Inkling 2 Mini: the tokenizer directory comes from the model files +(inkling_tokenizer.py), the model has no thinking mode, the prompt gets Strata's explicit answer opener +(inkling_dialect.finish_prompt) and the output parser reads the model's channel tokens (InklingOutputParser). + family "deepseek41" is refused: Strata dropped its DeepSeek V4.1 code (serve.dsml and the V4.1 template) in v0.2.15, so the helper cannot render that model's prompts or read its tool calls. Any other family (or none) is the Qwen path. @@ -52,7 +56,7 @@ FAMILY = "" # Texts that stay plain text when they appear inside a message, beyond the tokenizer's control tokens. EXTRA_LITERALS = () -# The output parser class; the Hy4 family replaces it at load. +# The output parser class; the Hy4 and Inkling families replace it at load. PARSER_CLASS = None @@ -78,12 +82,21 @@ def build_prompt(tk, template, req): # The engine has no grammar. A forced call is written into the prompt, which only works without thinking. kwargs["enable_thinking"] = False thinking = kwargs.get("enable_thinking", True) is not False + if FAMILY == "inkling": + thinking = False # the model has no thinking mode literals = frontend.literal_tags(list(getattr(tk, "control_tokens", ())) + list(EXTRA_LITERALS)) marked, marked_tools, changed = frontend.mark_think_literals(messages, tools, literals) prompt = template.render(marked, tools=marked_tools, **kwargs) plain = () if changed: prompt, plain = frontend.unmark_think_literals(prompt, literals) + if FAMILY == "inkling": + from serve import inkling_dialect # noqa: E402 + + # The template ends at the last message: open the answer, as the Strata server does. + prompt = inkling_dialect.finish_prompt(prompt, has_tools=bool(tools)) + if force: + force = inkling_dialect.force_text(force) ids = tk.encode(prompt, parse_special=True, plain=plain) if plain else tk.encode(prompt, parse_special=True) if force: ids = ids + tk.encode(force, parse_special=True) @@ -130,6 +143,14 @@ def load(strata_root, pack, family=""): # quoted one in a message must be kept as text, as the Strata server does. types = tk.token_types or [] EXTRA_LITERALS = tuple(tk.tokens[i] for i, ty in enumerate(types) if ty == 4 and i < len(tk.tokens)) + if family == "inkling": + from serve import frontend # noqa: E402 + + frontend.use_family("inkling2") + PARSER_CLASS = frontend.InklingOutputParser + # Control tokens are matched in text; a quoted one in a message must be kept as text, as the Strata server does. + types = tk.token_types or [] + EXTRA_LITERALS = tuple(tk.tokens[i] for i, ty in enumerate(types) if ty == 4 and i < len(tk.tokens)) return tk, cfg, template diff --git a/scripts/build/strata-pins_test.sh b/scripts/build/strata-pins_test.sh index 2a8f21c20e17..64c9b1743eed 100755 --- a/scripts/build/strata-pins_test.sh +++ b/scripts/build/strata-pins_test.sh @@ -11,8 +11,9 @@ # with no package would build an image that cannot start. # 3. A target Strata does not support (cpu, vulkan, Jetson) is refused with a # message, not built into an empty image. -# 4. Every package of the engine has a matching Hy4-Flash package pin, with the -# file name upstream publishes, and the bump script reads both families. +# 4. Every package of the engine has a matching Hy4-Flash and Inkling package +# pin, with the file name upstream publishes, and the bump script reads all +# three families. set -euo pipefail REPO_ROOT=$(dirname "$(dirname "$(dirname "$(realpath "$0")")")") @@ -73,6 +74,23 @@ if ! make -C "$DIR" -n engine BUILD_TYPE=cublas CUDA_MAJOR_VERSION=12 UNAME_S=Li fail "make engine does not fetch the Hy4 package into engines-hy4" fi +# Inkling 2 Mini: the same, with its own program strata-inkling. +for pkg in $(packages_for cublas 12 x86_64) $(packages_for cublas 13 x86_64) $(packages_for cublas 13 aarch64) \ + $(packages_for hipblas "" x86_64) $(packages_for intel "" x86_64) $(make -C "$DIR" -s print-packages UNAME_S=Darwin UNAME_M=arm64); do + for var in TAG VERSION SHA256; do + grep -q "^STRATA_INKLING_${var}_${pkg}?=" "$DIR/Makefile" || fail "no STRATA_INKLING_${var}_${pkg} pin" + done +done +want="strata-inkling-0.1.66-linux-x86_64-cuda-cuda12.tar.gz" +got=$(make -C "$DIR" -s print-asset-inkling PKG=linux_x86_64_cuda_cuda12) +[ "$got" = "$want" ] || fail "Inkling asset name: want '$want', got '$got'" +grep -q '"INKLING": "strata-inkling"' "$REPO_ROOT/.github/bump_strata.sh" || fail "bump_strata.sh does not read the Inkling packages" +if ! make -C "$DIR" -n engine BUILD_TYPE=cublas CUDA_MAJOR_VERSION=12 UNAME_S=Linux UNAME_M=x86_64 | grep -q "strata-inkling-0.1.66-linux-x86_64-cuda-cuda12.tar.gz.*engines-inkling strata-inkling"; then + fail "make engine does not fetch the Inkling package into engines-inkling" +fi +# The Python sources of the Inkling family are fetched with the others. +grep -q 'inkling_tokenizer.py' "$DIR/Makefile" && grep -q 'inkling_dialect.py' "$DIR/Makefile" || fail "make engine-source does not fetch the Inkling Python sources" + # Every strata matrix entry must resolve to a package. entries=$(python3 -I - "$MATRIX" <<'PY' import sys, yaml From 3c361e848d1909970e2ced3d24e087bc0636e2d1 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 23 Nov 2026 08:05:27 +0000 Subject: [PATCH 3/3] feat(gallery): add Inkling 2 Mini for the strata backend Add thirteen entries that run Thinking Machines Inkling 2 Mini on the strata backend: the three Strata builds (SQ-10, SQ-15 and SQ-20) and ten Unsloth GGUF quantizations (UD-Q8_K_XL down to UD-IQ1_S), the set Strata documents as supported. All entries share one model directory. Every file is pinned to a Hugging Face commit and a SHA-256, taken from the repositories and checked against the digests Strata publishes. A Strata build downloads the vision file and tokenizer.json; a GGUF also downloads the DSpark drafter and chat_template.jinja. The entries select the "inkling" family of the backend. The model library is the source; gallery/index.yaml is regenerated with the modelcatalog command. The strata entry test learns the new layout, and the strata docs list the entries and the options. No download or inference was run for these entries. Assisted-by: Claude Code:claude-sonnet-5-5 --- core/gallery/strata_entries_test.go | 49 +- docs/content/models/engines/strata.md | 64 +- gallery/index.yaml | 1013 ++++++++++++++++++++++ gallery/models/index.yaml | 1117 +++++++++++++++++++++++++ 4 files changed, 2233 insertions(+), 10 deletions(-) diff --git a/core/gallery/strata_entries_test.go b/core/gallery/strata_entries_test.go index 959291646f6b..f618b287e020 100644 --- a/core/gallery/strata_entries_test.go +++ b/core/gallery/strata_entries_test.go @@ -23,7 +23,10 @@ import ( // - a Hy4-Flash set (family:hy4): the .strata build, the Engram file and the // vision file. There is no pack; the backend reads the tokenizer from the // build file. The three builds share one directory, so the Engram and -// vision files are downloaded once. +// vision files are downloaded once; +// - an Inkling 2 Mini set (family:inkling): a .strata build or a GGUF, the +// vision file, the tokenizer files and, for a GGUF, the DSpark drafter. The +// entries share one directory. There is no pack. var _ = Describe("gallery/index.yaml strata entries", func() { strataEntries := func() []gallery.GalleryModel { entries, err := loadGalleryIndex() @@ -50,6 +53,15 @@ var _ = Describe("gallery/index.yaml strata entries", func() { return false } + isInkling := func(e gallery.GalleryModel) bool { + for _, o := range optionList(e) { + if o == "family:inkling" { + return true + } + } + return false + } + isBuilt := func(e gallery.GalleryModel) bool { for _, o := range optionList(e) { if strings.HasPrefix(o, "pack_gguf:") { @@ -66,6 +78,8 @@ var _ = Describe("gallery/index.yaml strata entries", func() { dir := modelDir(e) if isHy4(e) { Expect(dir).To(Equal("strata/models/hy4-flash"), e.Name) + } else if isInkling(e) { + Expect(dir).To(Equal("strata/models/inkling-2-mini"), e.Name) } else { Expect(dir).To(Equal("strata/models/"+e.Name), e.Name) } @@ -86,6 +100,7 @@ var _ = Describe("gallery/index.yaml strata entries", func() { fileOptions := map[string]bool{ "native": true, "native_dense_gguf": true, "ple_gguf": true, "embd_gguf": true, "expert_profile": true, "mtp": true, "pack_gguf": true, "engram": true, + "vision": true, "dspark": true, "tokenizer_json": true, "chat_template": true, } for _, e := range strataEntries() { dir := modelDir(e) @@ -111,6 +126,11 @@ var _ = Describe("gallery/index.yaml strata entries", func() { Expect(e.Overrides["known_input_modalities"]).To(ContainElement("image"), e.Name) Expect(e.Overrides).ToNot(HaveKey("mmproj"), e.Name) } + if isInkling(e) { + Expect(seen).To(HaveKey("vision"), e.Name) + Expect(e.Overrides["known_input_modalities"]).To(ContainElement("image"), e.Name) + Expect(e.Overrides).ToNot(HaveKey("mmproj"), e.Name) + } if mm, ok := e.Overrides["mmproj"].(string); ok { Expect(have).To(HaveKey(strings.TrimPrefix(mm, dir+"/")), e.Name+" mmproj") Expect(e.Overrides["known_input_modalities"]).To(ContainElement("image"), e.Name) @@ -137,6 +157,28 @@ var _ = Describe("gallery/index.yaml strata entries", func() { } continue } + if isInkling(e) { + opts := map[string]string{} + for _, o := range optionList(e) { + k, v, _ := strings.Cut(o, ":") + opts[k] = v + } + Expect(opts["native"]).To(MatchRegexp(`^Inkling-2-Mini-(SQ-(10|15|20)\.strata|UD-[A-Z0-9_]+\.gguf)$`), e.Name) + Expect(opts["vision"]).To(Equal("Inkling-2-Mini-Vision.strata"), e.Name) + // The tokenizer is made from tokenizer.json (a Strata build has the + // chat template inside) and, for a GGUF, chat_template.jinja too. + Expect(have).To(HaveKey("tokenizer.json"), e.Name) + if strings.HasSuffix(opts["native"], ".gguf") { + Expect(have).To(HaveKey("chat_template.jinja"), e.Name) + Expect(opts["dspark"]).To(Equal("dspark-Inkling-2-Mini-Q8_0.gguf"), e.Name) + } else { + Expect(opts).ToNot(HaveKey("dspark"), e.Name) + } + for rel := range have { + Expect(rel).ToNot(HavePrefix("pack/"), e.Name) + } + continue + } if !isBuilt(e) { for _, rel := range []string{ "pack/index.txt", "pack/native_experts.txt", "pack/dense.bin", "pack/experts.bin", @@ -229,6 +271,11 @@ var _ = Describe("gallery/index.yaml strata entries", func() { "swift-1.5-qwen3.8-flash-next-iq3_s", "qwen3.6-35b-a3b-ud-q4_k_xl-strata", "qwen3.6-35b-a3b-ud-q6_k_xl-strata", "qwen3.6-35b-a3b-q8_0-strata", "hy4-flash-sq-64-strata", "hy4-flash-sq-96-strata", "hy4-flash-sq-128-strata", + "inkling-2-mini-sq-10-strata", "inkling-2-mini-sq-15-strata", "inkling-2-mini-sq-20-strata", + "inkling-2-mini-ud-q8_k_xl-strata", "inkling-2-mini-ud-q4_k_xl-strata", "inkling-2-mini-ud-q4_k_m-strata", + "inkling-2-mini-ud-iq4_xs-strata", "inkling-2-mini-ud-q3_k_xl-strata", "inkling-2-mini-ud-iq3_xxs-strata", + "inkling-2-mini-ud-q2_k_xl-strata", "inkling-2-mini-ud-iq2_xxs-strata", "inkling-2-mini-ud-iq1_m-strata", + "inkling-2-mini-ud-iq1_s-strata", } { Expect(names).To(HaveKey(want)) } diff --git a/docs/content/models/engines/strata.md b/docs/content/models/engines/strata.md index e28792db7482..2a8ad93e9fd9 100644 --- a/docs/content/models/engines/strata.md +++ b/docs/content/models/engines/strata.md @@ -9,15 +9,15 @@ aliases = ["/features/strata/"] [Strata](https://github.com/Niko1221/Strata) runs very large mixture-of-experts models, such as a 125B Qwen, on one machine with a GPU, a lot of RAM and a lot of disk. Strata is a separate project. LocalAI wraps it in the experimental `strata` backend, which starts the Strata engine as a child process and talks to it over the engine's line protocol. {{% callout style="warning" %}} -This backend is experimental. LocalAI's tests have not run the Qwen gallery entries against a real Strata engine and model, and the pack build has not been run on a real model file. The Hy4-Flash entries have not been run on real hardware either: the backend was tested against a stub engine and against the real tokenizer data of the model file. The speed, memory and quality figures on this page are Strata's own. +This backend is experimental. LocalAI's tests have not run the Qwen gallery entries against a real Strata engine and model, and the pack build has not been run on a real model file. The Hy4-Flash and Inkling 2 Mini entries have not been run on real hardware either: the backend was tested against a stub engine and against the real tokenizer data of the model file. The speed, memory and quality figures on this page are Strata's own. {{% /callout %}} -Qwen entries and Tencent Hy4-Flash take text and images. +Qwen entries, Tencent Hy4-Flash and Inkling 2 Mini take text and images. ## What you need - A GPU from the [supported hardware](#supported-hardware) list. -- RAM and disk as listed for the model in [Models](#models). Even the smallest entry downloads about 24 GB, and the largest ones more than 250 GB. Tencent Hy4-Flash needs at least 64 GiB of RAM and about 130 GB of disk. +- RAM and disk as listed for the model in [Models](#models). Even the smallest Qwen entry downloads about 24 GB, and the largest ones more than 250 GB. Tencent Hy4-Flash needs at least 64 GiB of RAM and about 130 GB of disk. Inkling 2 Mini is much smaller: from about 9 GB of disk, and a 4 GiB GPU is enough to start. - An SSD or NVMe drive for the larger entries, because the n-gram table is read from disk. ## Installing @@ -47,9 +47,9 @@ those hosts `local-ai backends install strata` reports that no variant fits the The images are large because each engine package carries its own GPU runtime libraries (CUDA, ROCm or oneAPI). The ROCm image carries four engines, one per GPU family. Each image -also carries the same set of engines for Tencent Hy4-Flash, which runs on its own engine program -(`strata-hy4`) and has its own packages; the launcher picks the one that matches the card, as it -does for the Qwen engine. Upstream publishes the Hy4-Flash engine for the same targets as above. +also carries the same set of engines for Tencent Hy4-Flash and for Inkling 2 Mini, which run on their own +engine programs (`strata-hy4` and `strata-inkling`) and have their own packages; the launcher picks the one +that matches the card, as it does for the Qwen engine. Upstream publishes both engines for the same targets as above. ## Licensing @@ -167,11 +167,57 @@ Options of the Hy4-Flash entries (set in `options:`; the backend README lists al The engine takes no `logprobs` and no logit bias, and the backend refuses a request for them. +**Inkling 2 Mini** (Thinking Machines Lab, 26.4B parameters, 3.4B active per token, up to 1M tokens of +context, text and image input, tool calling, Apache 2.0). It has no thinking mode and answers directly. +It is much smaller than the models above, and it runs on its own engine, `strata-inkling`. There are two +kinds of entry. The Strata builds (`.strata` files, by Strata) carry their own DSpark drafter. The Unsloth +GGUF files are read as they are, with no conversion step, and use the DSpark drafter file that Unsloth +publishes. All entries use one directory, so the vision file (0.64 GB), the tokenizer files and the drafter +file are downloaded once. There is no pack to build: the backend makes the tokenizer from the model files on +the first load (seconds). A Strata build has the chat template inside it and needs the published +`tokenizer.json`; a GGUF needs the published `tokenizer.json` and `chat_template.jinja`. The entries download them. + +```bash +local-ai models install inkling-2-mini-sq-10-strata +``` + +| Gallery name | Format | Download | Made for | +|---|---|---|---| +| `inkling-2-mini-sq-10-strata` | Strata SQ-10 | about 11 GB | a 12 GiB card or a 16 GiB Mac, whole in memory; mixed RAM and GPU from a 4 GiB card | +| `inkling-2-mini-sq-15-strata` | Strata SQ-15 | about 15 GB | a 16 GiB card or a 24 GiB Mac; mixed on a 12 GiB card | +| `inkling-2-mini-sq-20-strata` | Strata SQ-20 (lossless) | about 20 GB | a 24 GiB card or more, or 32 GiB or more of unified memory | +| `inkling-2-mini-ud-q8_k_xl-strata` | Unsloth UD-Q8_K_XL | about 24 GB | 24 GiB or more of GPU memory, or 32 GiB or more of RAM | +| `inkling-2-mini-ud-q4_k_xl-strata` | Unsloth UD-Q4_K_XL | about 19 GB | a 16 to 24 GiB card | +| `inkling-2-mini-ud-q4_k_m-strata` | Unsloth UD-Q4_K_M | about 18 GB | a 16 to 24 GiB card | +| `inkling-2-mini-ud-iq4_xs-strata` | Unsloth UD-IQ4_XS | about 17 GB | a 16 GiB card | +| `inkling-2-mini-ud-q3_k_xl-strata` | Unsloth UD-Q3_K_XL | about 15 GB | a 12 to 16 GiB card | +| `inkling-2-mini-ud-iq3_xxs-strata` | Unsloth UD-IQ3_XXS | about 13 GB | an 8 to 12 GiB card | +| `inkling-2-mini-ud-q2_k_xl-strata` | Unsloth UD-Q2_K_XL | about 10 GB | a 4 to 12 GiB card with about 16 GiB of RAM | +| `inkling-2-mini-ud-iq2_xxs-strata` | Unsloth UD-IQ2_XXS | about 10 GB | a 4 to 8 GiB card with about 16 GiB of RAM | +| `inkling-2-mini-ud-iq1_m-strata` | Unsloth UD-IQ1_M | about 9 GB | a 4 to 8 GiB card | +| `inkling-2-mini-ud-iq1_s-strata` | Unsloth UD-IQ1_S | about 9 GB | a 4 to 8 GiB card | + +The sizing column is Strata's own guidance, not measured by LocalAI. The entries set a context of 32768 tokens +(the model reads up to 1M, and the cache grows with the context) and the model card's sampling, temperature 1.0 with no +truncation. LocalAI already has `inkling-2-mini` entries on the `llama-cpp` backend; these run the same model on Strata. + +Options of the Inkling 2 Mini entries (set in `options:`; the backend README lists all options): + +| Option | Meaning | +|---|---| +| `family:inkling` | Selects the Inkling engine and file layout. | +| `native`, `vision` | The model file and the vision file, relative to the model directory. `vision:off` turns images off. | +| `dspark` | The drafter file of a GGUF entry. A Strata build carries its own drafter. | +| `drafter` | `dspark` (default) or `off`. The drafter is used only if the engine says it has one. | +| `vram_experts_gb`, `ram_experts_gb` | Engine flags that cap how many gigabytes of experts go to the card and to RAM. The entries set none, so the engine decides. | + +The engine takes no `logprobs` and no logit bias, and the backend refuses a request for them. + **Licences.** Qwen3.8-Flash-Next models are under the Qwen Community License 1.0: free use, but it asks for a separate licence from Qwen if you run a Model as a Service or AI Work Assistant business with it, and for the model name to be shown in products above its user and revenue limits. Swift 1.5 adds UkisAI's Swift Open License 1.0. The NVIDIA checkpoint adds the NVIDIA -Open Model License Agreement. Qwen3.6 is Apache 2.0. Tencent Hy4-Flash is under the Tencent Hy +Open Model License Agreement. Qwen3.6 and Inkling 2 Mini are Apache 2.0. Tencent Hy4-Flash is under the Tencent Hy License 1.0, derived from Apache 2.0 with extra commercial terms for very large Model as a Service businesses. Read the `LICENSE` file of the repository before you offer a model to other people. The ISTA-DASLab model cards also carry an Apache 2.0 @@ -200,7 +246,7 @@ changes the placeholder used between LocalAI and Strata. ## Limits -The backend has no embeddings, no grammar and no video or audio input, and it serves one request at a time. Qwen entries support images, logprobs, tool calls and reasoning. Hy4-Flash supports images, tool calls and reasoning, and no logprobs. The backend README has the full list. +The backend has no embeddings, no grammar and no video or audio input, and it serves one request at a time. Qwen entries support images, logprobs, tool calls and reasoning. Hy4-Flash supports images, tool calls and reasoning, and no logprobs. Inkling 2 Mini supports images and tool calls, has no thinking mode, and no logprobs. The backend README has the full list. ## Versions @@ -208,6 +254,6 @@ Upstream versions each platform on its own, and a release doesn't always hold ev `backend/go/strata/Makefile` pins every package on its own: the release tag it comes from, its version and its SHA-256 (`STRATA_ENGINE_TAG_`, `STRATA_ENGINE_VERSION_` and `STRATA_ENGINE_SHA256_`). The download URL is built from the package's own tag. `STRATA_VERSION` and `STRATA_COMMIT` name the newest release, and the backend's Python modules are fetched at that commit. -The Hy4-Flash engine packages have their own pins of the same kind (`STRATA_HY4_TAG_`, `STRATA_HY4_VERSION_` and `STRATA_HY4_SHA256_`), and the same job moves them. +The Hy4-Flash and Inkling engine packages have their own pins of the same kind (`STRATA_HY4_TAG_`, `STRATA_HY4_VERSION_` and `STRATA_HY4_SHA256_`, and the same with `STRATA_INKLING_`), and the same job moves them. A nightly job (`bump-strata` in `.github/workflows/bump_deps.yaml`, script `.github/bump_strata.sh`) takes each package from the newest release that has it and opens one pull request when any pin changes. If a package is missing from the newest release, the job takes it from an older one and logs a notice. If a package is in no release, it keeps its pin and prints a warning. The job fails when a SHA-256 in the release's `SHA256SUMS.txt` differs from the digest GitHub computed for the uploaded file. The pull request lists each package that changed, with its old and new tag and version. The backend speaks an unversioned line protocol, so review each bump against the backend README. diff --git a/gallery/index.yaml b/gallery/index.yaml index d7ba0818a8e0..1ee868bb438c 100644 --- a/gallery/index.yaml +++ b/gallery/index.yaml @@ -2629,6 +2629,1019 @@ top_p: 1.0 template: use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-sq-10-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Strata's SQ-10 build (10.47 GB), the compact build: it + fits whole in the memory of a 12 GiB card or a 16 GiB Mac, and runs mixed across + RAM and GPU memory from a 4 GiB card. The vision file (0.64 GB) and the + tokenizer file are included, about 11 GB to download in all. A Strata build + carries its own DSpark drafter, so speculative decoding is on by default. The + model files of all Inkling 2 Mini entries share one directory, so the vision, + tokenizer and drafter files are downloaded once. Runs only on the experimental + strata backend, on the Inkling engine that ships in its image, for NVIDIA, AMD, + Intel and Apple Silicon GPUs. The memory figures are Strata's own, not measured + by LocalAI. Sampling follows the model card: temperature 1.0 with no truncation. + Licensed under the Apache License 2.0 (inherited from + thinkingmachines/Inkling-2-Mini). The quantization is by Strata; Strata is by + Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-SQ-10.strata + sha256: ac4d452ad03e4930abd9d46f9c5eec22b2f75a1da45a1e49bd24ccd58b065934 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-SQ-10.strata + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-SQ-10.strata + - vision:Inkling-2-Mini-Vision.strata + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-sq-15-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Strata's SQ-15 build (14.35 GB), the build that is + made for a 16 GiB card or a 24 GiB Mac, and runs mixed across RAM and GPU memory + on a 12 GiB card. The vision file (0.64 GB) and the tokenizer file are included, + about 15 GB to download in all. A Strata build carries its own DSpark drafter, + so speculative decoding is on by default. The model files of all Inkling 2 Mini + entries share one directory, so the vision, tokenizer and drafter files are + downloaded once. Runs only on the experimental strata backend, on the Inkling + engine that ships in its image, for NVIDIA, AMD, Intel and Apple Silicon GPUs. + The memory figures are Strata's own, not measured by LocalAI. Sampling follows + the model card: temperature 1.0 with no truncation. Licensed under the + Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). The + quantization is by Strata; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-SQ-15.strata + sha256: 2ea32eed533afba257e2cbee7b073dc2c3da80fe55d1d2d794779b5498e30737 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-SQ-15.strata + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-SQ-15.strata + - vision:Inkling-2-Mini-Vision.strata + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-sq-20-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Strata's SQ-20 build (19.35 GB), the lossless build + (bit-exact against the original weights in Strata's own tests), made for a 24 + GiB card or more, or 32 GiB or more of unified memory; with less GPU memory it + runs mixed across RAM and the card. The vision file (0.64 GB) and the tokenizer + file are included, about 20 GB to download in all. A Strata build carries its + own DSpark drafter, so speculative decoding is on by default. The model files of + all Inkling 2 Mini entries share one directory, so the vision, tokenizer and + drafter files are downloaded once. Runs only on the experimental strata backend, + on the Inkling engine that ships in its image, for NVIDIA, AMD, Intel and Apple + Silicon GPUs. The memory figures are Strata's own, not measured by LocalAI. + Sampling follows the model card: temperature 1.0 with no truncation. Licensed + under the Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). + The quantization is by Strata; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-SQ-20.strata + sha256: 0bbfd52344f0dd4779a7807b5f73554a812f24c035e6877b63cd0d499f7e1b97 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-SQ-20.strata + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-SQ-20.strata + - vision:Inkling-2-Mini-Vision.strata + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-ud-q8_k_xl-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-Q8_K_XL GGUF quantization (22.9 GB), + Unsloth Dynamic 8-bit, near lossless. Strata reads the GGUF file as it is, with + no conversion step. The Strata vision file (0.64 GB), the DSpark drafter (0.4 + GB) and the tokenizer files are included, about 24 GB to download in all. Strata + sizes it for 24 GiB or more of GPU memory, or 32 GiB or more of RAM; the DSpark + drafter turns on speculative decoding. The model files of all Inkling 2 Mini + entries share one directory, so the vision, tokenizer and drafter files are + downloaded once. Runs only on the experimental strata backend, on the Inkling + engine that ships in its image, for NVIDIA, AMD, Intel and Apple Silicon GPUs. + The memory figures are Strata's own, not measured by LocalAI. Sampling follows + the model card: temperature 1.0 with no truncation. Licensed under the + Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). The GGUF + quantization is by Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-Q8_K_XL.gguf + sha256: dfb04bf37bee457f98800989dedf93ec442ede8636dbea9433992f1e527e9a41 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-Q8_K_XL.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-Q8_K_XL.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-ud-q4_k_xl-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-Q4_K_XL GGUF quantization (17.6 GB), + Unsloth Dynamic 4.5-bit, high quality. Strata reads the GGUF file as it is, with + no conversion step. The Strata vision file (0.64 GB), the DSpark drafter (0.4 + GB) and the tokenizer files are included, about 19 GB to download in all. Strata + sizes it for a 16 to 24 GiB card, or a smaller card with enough RAM for the + rest; the DSpark drafter turns on speculative decoding. The model files of all + Inkling 2 Mini entries share one directory, so the vision, tokenizer and drafter + files are downloaded once. Runs only on the experimental strata backend, on the + Inkling engine that ships in its image, for NVIDIA, AMD, Intel and Apple Silicon + GPUs. The memory figures are Strata's own, not measured by LocalAI. Sampling + follows the model card: temperature 1.0 with no truncation. Licensed under the + Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). The GGUF + quantization is by Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-Q4_K_XL.gguf + sha256: e62d463c135ffe283df8d94b279a96ca145ac128b52ce854478613045bf4de15 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-Q4_K_XL.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-Q4_K_XL.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-ud-q4_k_m-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-Q4_K_M GGUF quantization (16.6 GB), + Unsloth Dynamic 4-bit medium, balanced. Strata reads the GGUF file as it is, + with no conversion step. The Strata vision file (0.64 GB), the DSpark drafter + (0.4 GB) and the tokenizer files are included, about 18 GB to download in all. + Strata sizes it for a 16 to 24 GiB card, or a smaller card with enough RAM for + the rest; the DSpark drafter turns on speculative decoding. The model files of + all Inkling 2 Mini entries share one directory, so the vision, tokenizer and + drafter files are downloaded once. Runs only on the experimental strata backend, + on the Inkling engine that ships in its image, for NVIDIA, AMD, Intel and Apple + Silicon GPUs. The memory figures are Strata's own, not measured by LocalAI. + Sampling follows the model card: temperature 1.0 with no truncation. Licensed + under the Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). + The GGUF quantization is by Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-Q4_K_M.gguf + sha256: f90c5a4df44d335ac9f9eea2a15c31d6c5a377b1b3cd9ff7fc2cf123f3cdf7e1 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-Q4_K_M.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-Q4_K_M.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-ud-iq4_xs-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-IQ4_XS GGUF quantization (15.7 GB), + Unsloth Dynamic 4-bit i-quant, compact. Strata reads the GGUF file as it is, + with no conversion step. The Strata vision file (0.64 GB), the DSpark drafter + (0.4 GB) and the tokenizer files are included, about 17 GB to download in all. + Strata sizes it for a 16 GiB card, or a smaller card with enough RAM for the + rest; the DSpark drafter turns on speculative decoding. The model files of all + Inkling 2 Mini entries share one directory, so the vision, tokenizer and drafter + files are downloaded once. Runs only on the experimental strata backend, on the + Inkling engine that ships in its image, for NVIDIA, AMD, Intel and Apple Silicon + GPUs. The memory figures are Strata's own, not measured by LocalAI. Sampling + follows the model card: temperature 1.0 with no truncation. Licensed under the + Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). The GGUF + quantization is by Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-IQ4_XS.gguf + sha256: a861d21e7c6d7bc69d8cdcdfb9eb195fd37ef1cd2ab31499db61cd7d30d9b3a1 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-IQ4_XS.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-IQ4_XS.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-ud-q3_k_xl-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-Q3_K_XL GGUF quantization (13.6 GB), + Unsloth Dynamic 3.5-bit, strong for its size. Strata reads the GGUF file as it + is, with no conversion step. The Strata vision file (0.64 GB), the DSpark + drafter (0.4 GB) and the tokenizer files are included, about 15 GB to download + in all. Strata sizes it for a 12 to 16 GiB card, or a smaller card with enough + RAM for the rest; the DSpark drafter turns on speculative decoding. The model + files of all Inkling 2 Mini entries share one directory, so the vision, + tokenizer and drafter files are downloaded once. Runs only on the experimental + strata backend, on the Inkling engine that ships in its image, for NVIDIA, AMD, + Intel and Apple Silicon GPUs. The memory figures are Strata's own, not measured + by LocalAI. Sampling follows the model card: temperature 1.0 with no truncation. + Licensed under the Apache License 2.0 (inherited from + thinkingmachines/Inkling-2-Mini). The GGUF quantization is by Unsloth; Strata is + by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-Q3_K_XL.gguf + sha256: f72f396d1b479b14d76346df80baa449c8b1f399653bff38fa4764b359a40048 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-Q3_K_XL.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-Q3_K_XL.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-ud-iq3_xxs-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-IQ3_XXS GGUF quantization (11.7 GB), + Unsloth Dynamic 3-bit i-quant, compact. Strata reads the GGUF file as it is, + with no conversion step. The Strata vision file (0.64 GB), the DSpark drafter + (0.4 GB) and the tokenizer files are included, about 13 GB to download in all. + Strata sizes it for an 8 to 12 GiB card, or a 4 to 6 GiB card with enough RAM + for the rest; the DSpark drafter turns on speculative decoding. The model files + of all Inkling 2 Mini entries share one directory, so the vision, tokenizer and + drafter files are downloaded once. Runs only on the experimental strata backend, + on the Inkling engine that ships in its image, for NVIDIA, AMD, Intel and Apple + Silicon GPUs. The memory figures are Strata's own, not measured by LocalAI. + Sampling follows the model card: temperature 1.0 with no truncation. Licensed + under the Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). + The GGUF quantization is by Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-IQ3_XXS.gguf + sha256: bd7ef0865adf119b5183e45e741c629bafa649769b33b5ebf689bb4bcc4690d6 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-IQ3_XXS.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-IQ3_XXS.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-ud-q2_k_xl-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-Q2_K_XL GGUF quantization (9.1 GB), + Unsloth Dynamic 2.5-bit, small. Strata reads the GGUF file as it is, with no + conversion step. The Strata vision file (0.64 GB), the DSpark drafter (0.4 GB) + and the tokenizer files are included, about 10 GB to download in all. Strata + sizes it for a 4 to 12 GiB card with about 16 GiB of RAM; the DSpark drafter + turns on speculative decoding. The model files of all Inkling 2 Mini entries + share one directory, so the vision, tokenizer and drafter files are downloaded + once. Runs only on the experimental strata backend, on the Inkling engine that + ships in its image, for NVIDIA, AMD, Intel and Apple Silicon GPUs. The memory + figures are Strata's own, not measured by LocalAI. Sampling follows the model + card: temperature 1.0 with no truncation. Licensed under the Apache License 2.0 + (inherited from thinkingmachines/Inkling-2-Mini). The GGUF quantization is by + Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-Q2_K_XL.gguf + sha256: 20292e8142b69535ca88a5d04439d0fdeb4dc698d44c002dca706dcf92901441 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-Q2_K_XL.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-Q2_K_XL.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-ud-iq2_xxs-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-IQ2_XXS GGUF quantization (8.5 GB), + Unsloth Dynamic 2-bit i-quant, very small. Strata reads the GGUF file as it is, + with no conversion step. The Strata vision file (0.64 GB), the DSpark drafter + (0.4 GB) and the tokenizer files are included, about 10 GB to download in all. + Strata sizes it for a 4 to 8 GiB card with about 16 GiB of RAM; the DSpark + drafter turns on speculative decoding. The model files of all Inkling 2 Mini + entries share one directory, so the vision, tokenizer and drafter files are + downloaded once. Runs only on the experimental strata backend, on the Inkling + engine that ships in its image, for NVIDIA, AMD, Intel and Apple Silicon GPUs. + The memory figures are Strata's own, not measured by LocalAI. Sampling follows + the model card: temperature 1.0 with no truncation. Licensed under the + Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). The GGUF + quantization is by Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-IQ2_XXS.gguf + sha256: 4fe958f73a667d8082f911a4347e52bc34696a7816cf3d5b9f7c8a81d5c5ceaa + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-IQ2_XXS.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-IQ2_XXS.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-ud-iq1_m-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-IQ1_M GGUF quantization (8.0 GB), Unsloth + Dynamic 1.7-bit, tiny. Strata reads the GGUF file as it is, with no conversion + step. The Strata vision file (0.64 GB), the DSpark drafter (0.4 GB) and the + tokenizer files are included, about 9 GB to download in all. Strata sizes it for + a 4 to 8 GiB card with little RAM; the DSpark drafter turns on speculative + decoding. The model files of all Inkling 2 Mini entries share one directory, so + the vision, tokenizer and drafter files are downloaded once. Runs only on the + experimental strata backend, on the Inkling engine that ships in its image, for + NVIDIA, AMD, Intel and Apple Silicon GPUs. The memory figures are Strata's own, + not measured by LocalAI. Sampling follows the model card: temperature 1.0 with + no truncation. Licensed under the Apache License 2.0 (inherited from + thinkingmachines/Inkling-2-Mini). The GGUF quantization is by Unsloth; Strata is + by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-IQ1_M.gguf + sha256: 544e0b2412ba2392272b0510b0c8f53a1ab872b73c2ba4f7488de0d5d61467d9 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-IQ1_M.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-IQ1_M.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- url: github:mudler/LocalAI/gallery/virtual.yaml@master + name: inkling-2-mini-ud-iq1_s-strata + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-IQ1_S GGUF quantization (7.8 GB), Unsloth + Dynamic 1.5-bit, the smallest download. Strata reads the GGUF file as it is, + with no conversion step. The Strata vision file (0.64 GB), the DSpark drafter + (0.4 GB) and the tokenizer files are included, about 9 GB to download in all. + Strata sizes it for a 4 to 8 GiB card with little RAM; the DSpark drafter turns + on speculative decoding. The model files of all Inkling 2 Mini entries share one + directory, so the vision, tokenizer and drafter files are downloaded once. Runs + only on the experimental strata backend, on the Inkling engine that ships in its + image, for NVIDIA, AMD, Intel and Apple Silicon GPUs. The memory figures are + Strata's own, not measured by LocalAI. Sampling follows the model card: + temperature 1.0 with no truncation. Licensed under the Apache License 2.0 + (inherited from thinkingmachines/Inkling-2-Mini). The GGUF quantization is by + Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-IQ1_S.gguf + sha256: c09c028b050c108624682baeb28ac6e0cdb936af021ac637c8c3609f923ea4b8 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-IQ1_S.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-IQ1_S.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true - url: github:mudler/LocalAI/gallery/virtual.yaml@master name: qwen3.5-4b-3d-coder-q8 description: | diff --git a/gallery/models/index.yaml b/gallery/models/index.yaml index 9860ba5ed8c1..ec78ddb671ad 100644 --- a/gallery/models/index.yaml +++ b/gallery/models/index.yaml @@ -2870,6 +2870,1123 @@ top_p: 1.0 template: use_tokenizer_template: true +- kind: model + id: inkling-2-mini-sq-10-strata + name: inkling-2-mini-sq-10-strata + version: 0.0.0-gallery.f6da9b8ddcb8 + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Strata's SQ-10 build (10.47 GB), the compact build: it + fits whole in the memory of a 12 GiB card or a 16 GiB Mac, and runs mixed across + RAM and GPU memory from a 4 GiB card. The vision file (0.64 GB) and the + tokenizer file are included, about 11 GB to download in all. A Strata build + carries its own DSpark drafter, so speculative decoding is on by default. The + model files of all Inkling 2 Mini entries share one directory, so the vision, + tokenizer and drafter files are downloaded once. Runs only on the experimental + strata backend, on the Inkling engine that ships in its image, for NVIDIA, AMD, + Intel and Apple Silicon GPUs. The memory figures are Strata's own, not measured + by LocalAI. Sampling follows the model card: temperature 1.0 with no truncation. + Licensed under the Apache License 2.0 (inherited from + thinkingmachines/Inkling-2-Mini). The quantization is by Strata; Strata is by + Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-SQ-10.strata + sha256: ac4d452ad03e4930abd9d46f9c5eec22b2f75a1da45a1e49bd24ccd58b065934 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-SQ-10.strata + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-SQ-10.strata + - vision:Inkling-2-Mini-Vision.strata + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- kind: model + id: inkling-2-mini-sq-15-strata + name: inkling-2-mini-sq-15-strata + version: 0.0.0-gallery.40014641b1aa + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Strata's SQ-15 build (14.35 GB), the build that is + made for a 16 GiB card or a 24 GiB Mac, and runs mixed across RAM and GPU memory + on a 12 GiB card. The vision file (0.64 GB) and the tokenizer file are included, + about 15 GB to download in all. A Strata build carries its own DSpark drafter, + so speculative decoding is on by default. The model files of all Inkling 2 Mini + entries share one directory, so the vision, tokenizer and drafter files are + downloaded once. Runs only on the experimental strata backend, on the Inkling + engine that ships in its image, for NVIDIA, AMD, Intel and Apple Silicon GPUs. + The memory figures are Strata's own, not measured by LocalAI. Sampling follows + the model card: temperature 1.0 with no truncation. Licensed under the + Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). The + quantization is by Strata; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-SQ-15.strata + sha256: 2ea32eed533afba257e2cbee7b073dc2c3da80fe55d1d2d794779b5498e30737 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-SQ-15.strata + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-SQ-15.strata + - vision:Inkling-2-Mini-Vision.strata + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- kind: model + id: inkling-2-mini-sq-20-strata + name: inkling-2-mini-sq-20-strata + version: 0.0.0-gallery.22d0ca4de72a + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Strata's SQ-20 build (19.35 GB), the lossless build + (bit-exact against the original weights in Strata's own tests), made for a 24 + GiB card or more, or 32 GiB or more of unified memory; with less GPU memory it + runs mixed across RAM and the card. The vision file (0.64 GB) and the tokenizer + file are included, about 20 GB to download in all. A Strata build carries its + own DSpark drafter, so speculative decoding is on by default. The model files of + all Inkling 2 Mini entries share one directory, so the vision, tokenizer and + drafter files are downloaded once. Runs only on the experimental strata backend, + on the Inkling engine that ships in its image, for NVIDIA, AMD, Intel and Apple + Silicon GPUs. The memory figures are Strata's own, not measured by LocalAI. + Sampling follows the model card: temperature 1.0 with no truncation. Licensed + under the Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). + The quantization is by Strata; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-SQ-20.strata + sha256: 0bbfd52344f0dd4779a7807b5f73554a812f24c035e6877b63cd0d499f7e1b97 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-SQ-20.strata + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-SQ-20.strata + - vision:Inkling-2-Mini-Vision.strata + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- kind: model + id: inkling-2-mini-ud-q8_k_xl-strata + name: inkling-2-mini-ud-q8_k_xl-strata + version: 0.0.0-gallery.d00d551b2c00 + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-Q8_K_XL GGUF quantization (22.9 GB), + Unsloth Dynamic 8-bit, near lossless. Strata reads the GGUF file as it is, with + no conversion step. The Strata vision file (0.64 GB), the DSpark drafter (0.4 + GB) and the tokenizer files are included, about 24 GB to download in all. Strata + sizes it for 24 GiB or more of GPU memory, or 32 GiB or more of RAM; the DSpark + drafter turns on speculative decoding. The model files of all Inkling 2 Mini + entries share one directory, so the vision, tokenizer and drafter files are + downloaded once. Runs only on the experimental strata backend, on the Inkling + engine that ships in its image, for NVIDIA, AMD, Intel and Apple Silicon GPUs. + The memory figures are Strata's own, not measured by LocalAI. Sampling follows + the model card: temperature 1.0 with no truncation. Licensed under the + Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). The GGUF + quantization is by Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-Q8_K_XL.gguf + sha256: dfb04bf37bee457f98800989dedf93ec442ede8636dbea9433992f1e527e9a41 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-Q8_K_XL.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-Q8_K_XL.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- kind: model + id: inkling-2-mini-ud-q4_k_xl-strata + name: inkling-2-mini-ud-q4_k_xl-strata + version: 0.0.0-gallery.925d461550c0 + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-Q4_K_XL GGUF quantization (17.6 GB), + Unsloth Dynamic 4.5-bit, high quality. Strata reads the GGUF file as it is, with + no conversion step. The Strata vision file (0.64 GB), the DSpark drafter (0.4 + GB) and the tokenizer files are included, about 19 GB to download in all. Strata + sizes it for a 16 to 24 GiB card, or a smaller card with enough RAM for the + rest; the DSpark drafter turns on speculative decoding. The model files of all + Inkling 2 Mini entries share one directory, so the vision, tokenizer and drafter + files are downloaded once. Runs only on the experimental strata backend, on the + Inkling engine that ships in its image, for NVIDIA, AMD, Intel and Apple Silicon + GPUs. The memory figures are Strata's own, not measured by LocalAI. Sampling + follows the model card: temperature 1.0 with no truncation. Licensed under the + Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). The GGUF + quantization is by Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-Q4_K_XL.gguf + sha256: e62d463c135ffe283df8d94b279a96ca145ac128b52ce854478613045bf4de15 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-Q4_K_XL.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-Q4_K_XL.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- kind: model + id: inkling-2-mini-ud-q4_k_m-strata + name: inkling-2-mini-ud-q4_k_m-strata + version: 0.0.0-gallery.a71ef13d84f0 + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-Q4_K_M GGUF quantization (16.6 GB), + Unsloth Dynamic 4-bit medium, balanced. Strata reads the GGUF file as it is, + with no conversion step. The Strata vision file (0.64 GB), the DSpark drafter + (0.4 GB) and the tokenizer files are included, about 18 GB to download in all. + Strata sizes it for a 16 to 24 GiB card, or a smaller card with enough RAM for + the rest; the DSpark drafter turns on speculative decoding. The model files of + all Inkling 2 Mini entries share one directory, so the vision, tokenizer and + drafter files are downloaded once. Runs only on the experimental strata backend, + on the Inkling engine that ships in its image, for NVIDIA, AMD, Intel and Apple + Silicon GPUs. The memory figures are Strata's own, not measured by LocalAI. + Sampling follows the model card: temperature 1.0 with no truncation. Licensed + under the Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). + The GGUF quantization is by Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-Q4_K_M.gguf + sha256: f90c5a4df44d335ac9f9eea2a15c31d6c5a377b1b3cd9ff7fc2cf123f3cdf7e1 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-Q4_K_M.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-Q4_K_M.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- kind: model + id: inkling-2-mini-ud-iq4_xs-strata + name: inkling-2-mini-ud-iq4_xs-strata + version: 0.0.0-gallery.fd7813172938 + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-IQ4_XS GGUF quantization (15.7 GB), + Unsloth Dynamic 4-bit i-quant, compact. Strata reads the GGUF file as it is, + with no conversion step. The Strata vision file (0.64 GB), the DSpark drafter + (0.4 GB) and the tokenizer files are included, about 17 GB to download in all. + Strata sizes it for a 16 GiB card, or a smaller card with enough RAM for the + rest; the DSpark drafter turns on speculative decoding. The model files of all + Inkling 2 Mini entries share one directory, so the vision, tokenizer and drafter + files are downloaded once. Runs only on the experimental strata backend, on the + Inkling engine that ships in its image, for NVIDIA, AMD, Intel and Apple Silicon + GPUs. The memory figures are Strata's own, not measured by LocalAI. Sampling + follows the model card: temperature 1.0 with no truncation. Licensed under the + Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). The GGUF + quantization is by Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-IQ4_XS.gguf + sha256: a861d21e7c6d7bc69d8cdcdfb9eb195fd37ef1cd2ab31499db61cd7d30d9b3a1 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-IQ4_XS.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-IQ4_XS.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- kind: model + id: inkling-2-mini-ud-q3_k_xl-strata + name: inkling-2-mini-ud-q3_k_xl-strata + version: 0.0.0-gallery.803d98d2940e + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-Q3_K_XL GGUF quantization (13.6 GB), + Unsloth Dynamic 3.5-bit, strong for its size. Strata reads the GGUF file as it + is, with no conversion step. The Strata vision file (0.64 GB), the DSpark + drafter (0.4 GB) and the tokenizer files are included, about 15 GB to download + in all. Strata sizes it for a 12 to 16 GiB card, or a smaller card with enough + RAM for the rest; the DSpark drafter turns on speculative decoding. The model + files of all Inkling 2 Mini entries share one directory, so the vision, + tokenizer and drafter files are downloaded once. Runs only on the experimental + strata backend, on the Inkling engine that ships in its image, for NVIDIA, AMD, + Intel and Apple Silicon GPUs. The memory figures are Strata's own, not measured + by LocalAI. Sampling follows the model card: temperature 1.0 with no truncation. + Licensed under the Apache License 2.0 (inherited from + thinkingmachines/Inkling-2-Mini). The GGUF quantization is by Unsloth; Strata is + by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-Q3_K_XL.gguf + sha256: f72f396d1b479b14d76346df80baa449c8b1f399653bff38fa4764b359a40048 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-Q3_K_XL.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-Q3_K_XL.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- kind: model + id: inkling-2-mini-ud-iq3_xxs-strata + name: inkling-2-mini-ud-iq3_xxs-strata + version: 0.0.0-gallery.beb2a61eab56 + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-IQ3_XXS GGUF quantization (11.7 GB), + Unsloth Dynamic 3-bit i-quant, compact. Strata reads the GGUF file as it is, + with no conversion step. The Strata vision file (0.64 GB), the DSpark drafter + (0.4 GB) and the tokenizer files are included, about 13 GB to download in all. + Strata sizes it for an 8 to 12 GiB card, or a 4 to 6 GiB card with enough RAM + for the rest; the DSpark drafter turns on speculative decoding. The model files + of all Inkling 2 Mini entries share one directory, so the vision, tokenizer and + drafter files are downloaded once. Runs only on the experimental strata backend, + on the Inkling engine that ships in its image, for NVIDIA, AMD, Intel and Apple + Silicon GPUs. The memory figures are Strata's own, not measured by LocalAI. + Sampling follows the model card: temperature 1.0 with no truncation. Licensed + under the Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). + The GGUF quantization is by Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-IQ3_XXS.gguf + sha256: bd7ef0865adf119b5183e45e741c629bafa649769b33b5ebf689bb4bcc4690d6 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-IQ3_XXS.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-IQ3_XXS.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- kind: model + id: inkling-2-mini-ud-q2_k_xl-strata + name: inkling-2-mini-ud-q2_k_xl-strata + version: 0.0.0-gallery.f4e2170c42d9 + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-Q2_K_XL GGUF quantization (9.1 GB), + Unsloth Dynamic 2.5-bit, small. Strata reads the GGUF file as it is, with no + conversion step. The Strata vision file (0.64 GB), the DSpark drafter (0.4 GB) + and the tokenizer files are included, about 10 GB to download in all. Strata + sizes it for a 4 to 12 GiB card with about 16 GiB of RAM; the DSpark drafter + turns on speculative decoding. The model files of all Inkling 2 Mini entries + share one directory, so the vision, tokenizer and drafter files are downloaded + once. Runs only on the experimental strata backend, on the Inkling engine that + ships in its image, for NVIDIA, AMD, Intel and Apple Silicon GPUs. The memory + figures are Strata's own, not measured by LocalAI. Sampling follows the model + card: temperature 1.0 with no truncation. Licensed under the Apache License 2.0 + (inherited from thinkingmachines/Inkling-2-Mini). The GGUF quantization is by + Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-Q2_K_XL.gguf + sha256: 20292e8142b69535ca88a5d04439d0fdeb4dc698d44c002dca706dcf92901441 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-Q2_K_XL.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-Q2_K_XL.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- kind: model + id: inkling-2-mini-ud-iq2_xxs-strata + name: inkling-2-mini-ud-iq2_xxs-strata + version: 0.0.0-gallery.f7fc78422ab2 + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-IQ2_XXS GGUF quantization (8.5 GB), + Unsloth Dynamic 2-bit i-quant, very small. Strata reads the GGUF file as it is, + with no conversion step. The Strata vision file (0.64 GB), the DSpark drafter + (0.4 GB) and the tokenizer files are included, about 10 GB to download in all. + Strata sizes it for a 4 to 8 GiB card with about 16 GiB of RAM; the DSpark + drafter turns on speculative decoding. The model files of all Inkling 2 Mini + entries share one directory, so the vision, tokenizer and drafter files are + downloaded once. Runs only on the experimental strata backend, on the Inkling + engine that ships in its image, for NVIDIA, AMD, Intel and Apple Silicon GPUs. + The memory figures are Strata's own, not measured by LocalAI. Sampling follows + the model card: temperature 1.0 with no truncation. Licensed under the + Apache License 2.0 (inherited from thinkingmachines/Inkling-2-Mini). The GGUF + quantization is by Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-IQ2_XXS.gguf + sha256: 4fe958f73a667d8082f911a4347e52bc34696a7816cf3d5b9f7c8a81d5c5ceaa + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-IQ2_XXS.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-IQ2_XXS.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- kind: model + id: inkling-2-mini-ud-iq1_m-strata + name: inkling-2-mini-ud-iq1_m-strata + version: 0.0.0-gallery.9f7384a17e2a + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-IQ1_M GGUF quantization (8.0 GB), Unsloth + Dynamic 1.7-bit, tiny. Strata reads the GGUF file as it is, with no conversion + step. The Strata vision file (0.64 GB), the DSpark drafter (0.4 GB) and the + tokenizer files are included, about 9 GB to download in all. Strata sizes it for + a 4 to 8 GiB card with little RAM; the DSpark drafter turns on speculative + decoding. The model files of all Inkling 2 Mini entries share one directory, so + the vision, tokenizer and drafter files are downloaded once. Runs only on the + experimental strata backend, on the Inkling engine that ships in its image, for + NVIDIA, AMD, Intel and Apple Silicon GPUs. The memory figures are Strata's own, + not measured by LocalAI. Sampling follows the model card: temperature 1.0 with + no truncation. Licensed under the Apache License 2.0 (inherited from + thinkingmachines/Inkling-2-Mini). The GGUF quantization is by Unsloth; Strata is + by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-IQ1_M.gguf + sha256: 544e0b2412ba2392272b0510b0c8f53a1ab872b73c2ba4f7488de0d5d61467d9 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-IQ1_M.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-IQ1_M.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true +- kind: model + id: inkling-2-mini-ud-iq1_s-strata + name: inkling-2-mini-ud-iq1_s-strata + version: 0.0.0-gallery.1c1908733f20 + description: | + Inkling 2 Mini from Thinking Machines Lab, a 26.4B-parameter looped + mixture-of-experts model with 3.4B active parameters per token, up to 1M tokens + of context, text and image input and tool calling. It has no thinking mode: it + answers directly. This is Unsloth's UD-IQ1_S GGUF quantization (7.8 GB), Unsloth + Dynamic 1.5-bit, the smallest download. Strata reads the GGUF file as it is, + with no conversion step. The Strata vision file (0.64 GB), the DSpark drafter + (0.4 GB) and the tokenizer files are included, about 9 GB to download in all. + Strata sizes it for a 4 to 8 GiB card with little RAM; the DSpark drafter turns + on speculative decoding. The model files of all Inkling 2 Mini entries share one + directory, so the vision, tokenizer and drafter files are downloaded once. Runs + only on the experimental strata backend, on the Inkling engine that ships in its + image, for NVIDIA, AMD, Intel and Apple Silicon GPUs. The memory figures are + Strata's own, not measured by LocalAI. Sampling follows the model card: + temperature 1.0 with no truncation. Licensed under the Apache License 2.0 + (inherited from thinkingmachines/Inkling-2-Mini). The GGUF quantization is by + Unsloth; Strata is by Niko1221. + license: apache-2.0 + urls: + - https://huggingface.co/thinkingmachines/Inkling-2-Mini + - https://huggingface.co/unsloth/Inkling-2-Mini-GGUF + - https://huggingface.co/strata-engine/Inkling-2-Mini-Strata + - https://github.com/Niko1221/Strata + tags: + - llm + - chat + - multimodal + - vision + - function-calling + - moe + - strata + - gguf + - gpu + - cuda + - nvidia + - rocm + - amd + - experimental + icon: https://cdn-uploads.huggingface.co/production/uploads/630e8f0bf6f6d700f50ebd2e/AvmDwmrWRMnKjOWvmLieg.png + channel: gallery + policy: + requireSignature: false + schemaVersion: 1 + model: + url: github:mudler/LocalAI/gallery/virtual.yaml@master + files: + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-UD-IQ1_S.gguf + sha256: c09c028b050c108624682baeb28ac6e0cdb936af021ac637c8c3609f923ea4b8 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/Inkling-2-Mini-UD-IQ1_S.gguf + - filename: strata/models/inkling-2-mini/dspark-Inkling-2-Mini-Q8_0.gguf + sha256: 2ec78510da837e8fc3be54a14757a0c5fbd2d8d9e85a0d92853fafdf674f3773 + uri: https://huggingface.co/unsloth/Inkling-2-Mini-GGUF/resolve/45fd08764f2b0bf16b03a5483a80e5c7aaec8772/dspark-Inkling-2-Mini-Q8_0.gguf + - filename: strata/models/inkling-2-mini/Inkling-2-Mini-Vision.strata + sha256: 6589eff47f9c20bc3a032faa3d449f10bf4f04a84cc6b2ee8a44d51d2b6fc677 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/Inkling-2-Mini-Vision.strata + - filename: strata/models/inkling-2-mini/tokenizer.json + sha256: 7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6 + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/tokenizer.json + - filename: strata/models/inkling-2-mini/chat_template.jinja + sha256: 53a9035f3255945704b5857657cfb00c1165090c0641c4f782a0cbf268cc16dc + uri: https://huggingface.co/strata-engine/Inkling-2-Mini-Strata/resolve/04996a1e2c45009b6a04f2af126cb6bdb2ba3587/chat_template.jinja + overrides: + backend: strata + context_size: 32768 + function: + grammar: + disable: true + known_input_modalities: + - text + - image + known_usecases: + - chat + - vision + options: + - family:inkling + - native:Inkling-2-Mini-UD-IQ1_S.gguf + - vision:Inkling-2-Mini-Vision.strata + - dspark:dspark-Inkling-2-Mini-Q8_0.gguf + parameters: + model: strata/models/inkling-2-mini + temperature: 1.0 + top_p: 1.0 + template: + use_tokenizer_template: true - kind: model id: qwen3.5-4b-3d-coder-q8 name: qwen3.5-4b-3d-coder-q8