Instructions to use FoolDev/Thanatos-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FoolDev/Thanatos-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="FoolDev/Thanatos-27B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("FoolDev/Thanatos-27B", dtype="auto") - llama-cpp-python
How to use FoolDev/Thanatos-27B with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="FoolDev/Thanatos-27B", filename="Thanatos-27B.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use FoolDev/Thanatos-27B with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf FoolDev/Thanatos-27B:Q4_K_M # Run inference directly in the terminal: llama-cli -hf FoolDev/Thanatos-27B:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf FoolDev/Thanatos-27B:Q4_K_M # Run inference directly in the terminal: llama-cli -hf FoolDev/Thanatos-27B:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf FoolDev/Thanatos-27B:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf FoolDev/Thanatos-27B:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf FoolDev/Thanatos-27B:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf FoolDev/Thanatos-27B:Q4_K_M
Use Docker
docker model run hf.co/FoolDev/Thanatos-27B:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use FoolDev/Thanatos-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FoolDev/Thanatos-27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FoolDev/Thanatos-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/FoolDev/Thanatos-27B:Q4_K_M
- SGLang
How to use FoolDev/Thanatos-27B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "FoolDev/Thanatos-27B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FoolDev/Thanatos-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "FoolDev/Thanatos-27B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FoolDev/Thanatos-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use FoolDev/Thanatos-27B with Ollama:
ollama run hf.co/FoolDev/Thanatos-27B:Q4_K_M
- Unsloth Studio new
How to use FoolDev/Thanatos-27B with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for FoolDev/Thanatos-27B to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for FoolDev/Thanatos-27B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for FoolDev/Thanatos-27B to start chatting
- Pi new
How to use FoolDev/Thanatos-27B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf FoolDev/Thanatos-27B:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "FoolDev/Thanatos-27B:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use FoolDev/Thanatos-27B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf FoolDev/Thanatos-27B:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default FoolDev/Thanatos-27B:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use FoolDev/Thanatos-27B with Docker Model Runner:
docker model run hf.co/FoolDev/Thanatos-27B:Q4_K_M
- Lemonade
How to use FoolDev/Thanatos-27B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull FoolDev/Thanatos-27B:Q4_K_M
Run and chat with the model
lemonade run user.Thanatos-27B-Q4_K_M
List all available models
lemonade list
docs: align README + CHANGELOG + Modelfile + examples with the qwen36 re-stamp (07fa120)
Browse files- CHANGELOG.md +34 -36
- Modelfile +20 -10
- README.md +87 -58
- examples/README.md +13 -11
CHANGELOG.md
CHANGED
|
@@ -8,45 +8,43 @@ and documentation**, not the underlying base model.
|
|
| 8 |
## [Unreleased]
|
| 9 |
|
| 10 |
### Changed
|
| 11 |
-
- **Bundle re-stamped `general.architecture: '
|
| 12 |
-
in commit
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
lines across the three doc surfaces. `scripts/rename_arch.py`
|
| 41 |
-
example in Architecture flipped from qwen36 β qwen35 to qwen35
|
| 42 |
-
β qwen36 to match its new "tool kept around for future flips"
|
| 43 |
-
framing.
|
| 44 |
|
| 45 |
### Note
|
| 46 |
- `make heal-hf`, `make load-bundle`, and `scripts/rename_arch.py`
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
| 50 |
|
| 51 |
### Added
|
| 52 |
- `scripts/check.sh` now greps for the `VAR="$(cmd 2>/dev/null | filter)"`
|
|
|
|
| 8 |
## [Unreleased]
|
| 9 |
|
| 10 |
### Changed
|
| 11 |
+
- **Bundle re-stamped `general.architecture: 'qwen35'` β `'qwen36'`**
|
| 12 |
+
in commit `07fa120` (HF-direct `hf upload`). Re-reverses 964e418,
|
| 13 |
+
returning to the v0.6.0 stamp choice from `e1f78fa`. Tensor data
|
| 14 |
+
is byte-identical across all three flips; only the
|
| 15 |
+
`general.architecture` KV (and the namespaced KV keys) moves.
|
| 16 |
+
The new blob SHA
|
| 17 |
+
`b2b63b941d714b0aff5e9afc9b337e7607b84e371ba991c182d92d0f7805c0e9`
|
| 18 |
+
is **bit-identical to the original v0.6.0 qwen36 bundle** β
|
| 19 |
+
content-addressed return to a known artifact, so anyone who pulled
|
| 20 |
+
v0.6.0 still has a usable cached blob; `make heal-hf` will skip
|
| 21 |
+
the re-fetch if their old blob is still in the store.
|
| 22 |
+
The flip restores the architecturally-honest label even though
|
| 23 |
+
upstream `qwen36` arch support is still not present in
|
| 24 |
+
`ggml-org/llama.cpp` or `ollama/ollama` as of 2026-05-19 (verified
|
| 25 |
+
by recheck; no open PR adds it). Day-to-day cost of the qwen36
|
| 26 |
+
stamp is back: a fresh `ollama run hf.co/FoolDev/Thanatos-27B`
|
| 27 |
+
pulls 17 GB and 500s with `unable to load model: <blob>`,
|
| 28 |
+
requiring one `make heal-hf` to rebadge in place before the same
|
| 29 |
+
tag loads. The trade-off here favors honesty + matching the
|
| 30 |
+
upstream Qwen 3.6 family identity over no-rebadge ergonomics
|
| 31 |
+
on the HF-bridge path.
|
| 32 |
+
- README "Heads up" callout, three-path TL;DR, Architecture
|
| 33 |
+
workaround prose, Modelfile preamble, and `examples/README.md`
|
| 34 |
+
Ollama setup all restored to the pre-collapse form (i.e. the
|
| 35 |
+
v0.6.0-era doc surface, updated for the new SHA and the third
|
| 36 |
+
flip). `scripts/rename_arch.py` example direction in
|
| 37 |
+
Architecture flipped back to qwen36 β qwen35 β the rebadge
|
| 38 |
+
direction users actually run to make the bundle loadable, not
|
| 39 |
+
the future-honesty direction.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
### Note
|
| 42 |
- `make heal-hf`, `make load-bundle`, and `scripts/rename_arch.py`
|
| 43 |
+
are now back to load-bearing rather than dormant.
|
| 44 |
+
`make heal-hf` is the canonical recovery path; `make load-bundle`
|
| 45 |
+
builds a separate local tag without touching the HF-bridge
|
| 46 |
+
manifest; `make build` bypasses the bundle entirely (downloads
|
| 47 |
+
qwen35-stamped from unsloth).
|
| 48 |
|
| 49 |
### Added
|
| 50 |
- `scripts/check.sh` now greps for the `VAR="$(cmd 2>/dev/null | filter)"`
|
Modelfile
CHANGED
|
@@ -7,18 +7,28 @@
|
|
| 7 |
# image input, or wait for the fix. See the Vision section in README.md.
|
| 8 |
#
|
| 9 |
# This repo bundles a single GGUF: Thanatos-27B.Q4_K_M.gguf (~17 GB),
|
| 10 |
-
# stamped `general.architecture: '
|
| 11 |
-
#
|
| 12 |
-
#
|
| 13 |
-
#
|
| 14 |
-
#
|
| 15 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
#
|
| 17 |
# For other quants (Q3_K_S, Q5_K_M, Q6_K, etc.), `make build QUANT=Q3_K_S`
|
| 18 |
-
# downloads the chosen quant from unsloth/Qwen3.6-27B-GGUF
|
| 19 |
-
#
|
| 20 |
-
#
|
| 21 |
-
# `:latest` tag instead of
|
|
|
|
| 22 |
#
|
| 23 |
# Other GGUF sources (use with `make build GGUF_PATH=...`):
|
| 24 |
# https://huggingface.co/unsloth/Qwen3.6-27B-GGUF
|
|
|
|
| 7 |
# image input, or wait for the fix. See the Vision section in README.md.
|
| 8 |
#
|
| 9 |
# This repo bundles a single GGUF: Thanatos-27B.Q4_K_M.gguf (~17 GB),
|
| 10 |
+
# stamped `general.architecture: 'qwen36'` β the architecturally-honest
|
| 11 |
+
# label for the Qwen 3.6 family. No released llama.cpp / Ollama
|
| 12 |
+
# recognizes that string yet; both register the stack as
|
| 13 |
+
# `qwen35` / `qwen35moe`. A direct `ollama create -f Modelfile`
|
| 14 |
+
# against the bundle therefore fails with
|
| 15 |
+
# `unknown model architecture: 'qwen36'`. Two recovery paths:
|
| 16 |
+
#
|
| 17 |
+
# make load-bundle # one-shot: smudge LFS pointer, rebadge a local
|
| 18 |
+
# # copy qwen36 -> qwen35, run `ollama create`.
|
| 19 |
+
# make heal-hf # rebadge an already-pulled `hf.co/...` tag's
|
| 20 |
+
# # blob in place (qwen36 -> qwen35) and rewrite
|
| 21 |
+
# # the manifest digest.
|
| 22 |
+
#
|
| 23 |
+
# See README "Architecture" for the qwen35 -> qwen36 -> qwen35 ->
|
| 24 |
+
# qwen36 stamp history through commit 07fa120.
|
| 25 |
#
|
| 26 |
# For other quants (Q3_K_S, Q5_K_M, Q6_K, etc.), `make build QUANT=Q3_K_S`
|
| 27 |
+
# downloads the chosen quant from unsloth/Qwen3.6-27B-GGUF (qwen35-stamped,
|
| 28 |
+
# loads on stock loaders, no rebadge needed) and patches FROM in a temp
|
| 29 |
+
# Modelfile copy. The Q3_K_S used to ship in this repo; it was removed so
|
| 30 |
+
# HF's Ollama bridge picks Q4_K_M as the default `:latest` tag instead of
|
| 31 |
+
# Q3_K_S (alphabetically-first heuristic).
|
| 32 |
#
|
| 33 |
# Other GGUF sources (use with `make build GGUF_PATH=...`):
|
| 34 |
# https://huggingface.co/unsloth/Qwen3.6-27B-GGUF
|
README.md
CHANGED
|
@@ -61,33 +61,51 @@ pipeline_tag: image-text-to-text
|
|
| 61 |
|
| 62 |
A personal sibling to [`FoolDev/Janus-35B`](https://huggingface.co/FoolDev/Janus-35B). Same teacher (Claude Opus 4.7), same dataset family, but built on the **dense** [Qwen/Qwen3.6-27B](https://huggingface.co/Qwen/Qwen3.6-27B) base instead of the 35B-A3B MoE. Smaller, easier to deploy, no expert-routing surprises.
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
## TL;DR
|
| 65 |
|
| 66 |
-
|
| 67 |
-
`template` / `system` / `params` files, including the tool-calling
|
| 68 |
-
template β HF's Ollama bridge ingests those three files, not
|
| 69 |
-
`Modelfile`):
|
| 70 |
|
| 71 |
```bash
|
| 72 |
-
|
| 73 |
-
``
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
-
|
|
|
|
|
|
|
| 83 |
git clone https://huggingface.co/FoolDev/Thanatos-27B && cd Thanatos-27B
|
| 84 |
-
make build
|
| 85 |
ollama run thanatos-27b
|
| 86 |
```
|
| 87 |
|
| 88 |
-
For other quants (Q3_K_S ~12 GB, Q5_K_M ~20 GB, etc.)
|
| 89 |
-
|
| 90 |
-
below for the full matrix.
|
| 91 |
|
| 92 |
For image input use llama.cpp directly β Ollama vision is broken for
|
| 93 |
this architecture upstream (see [Vision](#vision)).
|
|
@@ -139,7 +157,7 @@ This repo ships a single GGUF to back the HF/Ollama "Use this model"
|
|
| 139 |
widget β `Thanatos-27B.Q4_K_M.gguf` (~17 GB, qwen36-stamped):
|
| 140 |
|
| 141 |
```bash
|
| 142 |
-
ollama run hf.co/FoolDev/Thanatos-27B # 17 GB Q4_K_M, qwen36 β fails today, see Heads
|
| 143 |
```
|
| 144 |
|
| 145 |
For 16 GB GPUs / unified-memory laptops β and as a working-today
|
|
@@ -176,43 +194,46 @@ If you want the safetensors for `transformers`, fetch them from [`Qwen/Qwen3.6-2
|
|
| 176 |
current loader compatibility.
|
| 177 |
- Multi-token prediction (MTP) head trained for speculative decoding
|
| 178 |
|
| 179 |
-
**The bundled GGUF declares `general.architecture: '
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
including for actual Qwen 3.6-family weights
|
| 184 |
-
`Qwen3.6-35B-A3B_Q8_0` GGUFs load under `qwen35moe`)
|
| 185 |
-
arch entry exists
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
`
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
`
|
| 197 |
-
|
| 198 |
-
`general.architecture` KV (and namespaced KV keys) flipped. See
|
| 199 |
-
the [CHANGELOG](CHANGELOG.md) entry for the full rationale.
|
| 200 |
-
|
| 201 |
-
`scripts/rename_arch.py` is kept in the repo as a generic GGUF
|
| 202 |
-
arch renamer (metadata only, tensors byte-identical) for future
|
| 203 |
-
flips:
|
| 204 |
|
| 205 |
```bash
|
| 206 |
python3 scripts/rename_arch.py \
|
| 207 |
-
--from-arch
|
| 208 |
Thanatos-27B.Q4_K_M.gguf \
|
| 209 |
-
Thanatos-27B.Q4_K_M.
|
| 210 |
```
|
| 211 |
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
|
| 217 |
## Quick start
|
| 218 |
|
|
@@ -221,18 +242,25 @@ store, `make heal-hf` rebadges it in place so the same
|
|
| 221 |
Three paths:
|
| 222 |
|
| 223 |
```bash
|
| 224 |
-
# A. Pull straight from HF (gets the bundled Q4_K_M GGUF +
|
| 225 |
-
# root-level template / system / params files in one step)
|
| 226 |
-
ollama run
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
|
| 228 |
# B. Build a local `thanatos-27b` tag from THIS repo's bundle
|
| 229 |
-
# (LFS
|
| 230 |
-
#
|
|
|
|
|
|
|
| 231 |
make load-bundle # creates local tag thanatos-27b
|
| 232 |
ollama run thanatos-27b
|
| 233 |
|
| 234 |
# C. Bypass the bundle: download a qwen35-stamped GGUF from unsloth
|
| 235 |
-
# and build locally. Loads on every current llama.cpp / Ollama
|
|
|
|
| 236 |
make build # Q4_K_M -> thanatos-27b
|
| 237 |
make build QUANT=Q3_K_S # 12 GB smaller quant
|
| 238 |
make build QUANT=Q5_K_M # 20 GB higher quality
|
|
@@ -260,14 +288,15 @@ python examples/ollama_chat.py # full demo: chat, streaming, tools, OpenAI-
|
|
| 260 |
|
| 261 |
The bundled `Thanatos-27B.Q4_K_M.gguf` is `qwen36`-stamped β every row
|
| 262 |
below assumes you've rebadged it to `qwen35` per
|
| 263 |
-
[Architecture](#architecture)
|
| 264 |
-
|
|
|
|
| 265 |
`unknown model architecture: 'qwen36'`" caveat applies to every row
|
| 266 |
until that's done.
|
| 267 |
|
| 268 |
| App | How to load this model |
|
| 269 |
|---|---|
|
| 270 |
-
| **Ollama** | `ollama run hf.co/FoolDev/Thanatos-27B` (default Q4_K_M)
|
| 271 |
| **LM Studio** | Search β `FoolDev/Thanatos-27B` β pick `Thanatos-27B.Q4_K_M.gguf`. Uses the GGUF's embedded jinja chat template (Qwen 3.6 ChatML); set the system prompt manually from the `SYSTEM` block in this repo's `Modelfile`. |
|
| 272 |
| **Jan** | Hub β "Import from Hugging Face" β `FoolDev/Thanatos-27B`. Same template behavior as LM Studio. |
|
| 273 |
| **llama.cpp** | `hf download FoolDev/Thanatos-27B Thanatos-27B.Q4_K_M.gguf --local-dir .` then `llama-server -m Thanatos-27B.Q4_K_M.gguf` (or `llama-cli`, `llama-mtmd-cli` for vision via the upstream `mmproj-F16.gguf`). |
|
|
|
|
| 61 |
|
| 62 |
A personal sibling to [`FoolDev/Janus-35B`](https://huggingface.co/FoolDev/Janus-35B). Same teacher (Claude Opus 4.7), same dataset family, but built on the **dense** [Qwen/Qwen3.6-27B](https://huggingface.co/Qwen/Qwen3.6-27B) base instead of the 35B-A3B MoE. Smaller, easier to deploy, no expert-routing surprises.
|
| 63 |
|
| 64 |
+
> **Heads up** β the bundled GGUF is stamped
|
| 65 |
+
> `general.architecture: 'qwen36'`, the architecturally-honest
|
| 66 |
+
> label for the Qwen 3.6 family. **No released llama.cpp / Ollama
|
| 67 |
+
> recognizes it yet** (`ggml-org/llama.cpp` and `ollama/ollama`
|
| 68 |
+
> register the hybrid SSM + attention stack as `qwen35` /
|
| 69 |
+
> `qwen35moe`; verified 2026-05-19). A fresh
|
| 70 |
+
> `ollama run hf.co/FoolDev/Thanatos-27B` pulls ~17 GB and then
|
| 71 |
+
> 500s with `unable to load model: <blob>`. Run `make heal-hf`
|
| 72 |
+
> once after the failure to rebadge the cached blob qwen36 β
|
| 73 |
+
> qwen35 in place β subsequent runs load. Or skip the bundle
|
| 74 |
+
> entirely with `make build` (qwen35-stamped from unsloth, loads
|
| 75 |
+
> on stock Ollama). See [Architecture](#architecture) for the
|
| 76 |
+
> stamp history and trade-off.
|
| 77 |
+
|
| 78 |
## TL;DR
|
| 79 |
|
| 80 |
+
Three paths, in increasing order of disk re-use:
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
```bash
|
| 83 |
+
# A. Pull from HF (gets the bundled qwen36 GGUF + root-level
|
| 84 |
+
# template / system / params files). First `ollama run` 500s
|
| 85 |
+
# on the qwen36 blob; `make heal-hf` rebadges it in place.
|
| 86 |
+
ollama run hf.co/FoolDev/Thanatos-27B # 17 GB Q4_K_M, qwen36
|
| 87 |
+
git clone https://huggingface.co/FoolDev/Thanatos-27B && cd Thanatos-27B
|
| 88 |
+
make heal-hf # rebadge cached blob -> qwen35
|
| 89 |
+
ollama run hf.co/FoolDev/Thanatos-27B # now loads
|
| 90 |
|
| 91 |
+
# B. Build a local `thanatos-27b` tag from THIS repo's bundle
|
| 92 |
+
# (smudges the LFS pointer via `hf download`, rebadges
|
| 93 |
+
# qwen36 -> qwen35 in a local copy, runs `ollama create`):
|
| 94 |
+
git clone https://huggingface.co/FoolDev/Thanatos-27B && cd Thanatos-27B
|
| 95 |
+
make load-bundle # creates local tag thanatos-27b
|
| 96 |
+
ollama run thanatos-27b
|
| 97 |
|
| 98 |
+
# C. Bypass the bundle: download a qwen35-stamped GGUF from
|
| 99 |
+
# unsloth/Qwen3.6-27B-GGUF and build locally β no rebadge
|
| 100 |
+
# needed. Loads on every current llama.cpp / Ollama.
|
| 101 |
git clone https://huggingface.co/FoolDev/Thanatos-27B && cd Thanatos-27B
|
| 102 |
+
make build # Q4_K_M -> thanatos-27b
|
| 103 |
ollama run thanatos-27b
|
| 104 |
```
|
| 105 |
|
| 106 |
+
For other quants (Q3_K_S ~12 GB, Q5_K_M ~20 GB, etc.) path **C**
|
| 107 |
+
is simplest: `make build QUANT=Q3_K_S`. See
|
| 108 |
+
[Quick start](#quick-start) below for the full matrix.
|
| 109 |
|
| 110 |
For image input use llama.cpp directly β Ollama vision is broken for
|
| 111 |
this architecture upstream (see [Vision](#vision)).
|
|
|
|
| 157 |
widget β `Thanatos-27B.Q4_K_M.gguf` (~17 GB, qwen36-stamped):
|
| 158 |
|
| 159 |
```bash
|
| 160 |
+
ollama run hf.co/FoolDev/Thanatos-27B # 17 GB Q4_K_M, qwen36 β fails today, see Heads up above
|
| 161 |
```
|
| 162 |
|
| 163 |
For 16 GB GPUs / unified-memory laptops β and as a working-today
|
|
|
|
| 194 |
current loader compatibility.
|
| 195 |
- Multi-token prediction (MTP) head trained for speculative decoding
|
| 196 |
|
| 197 |
+
**The bundled GGUF declares `general.architecture: 'qwen36'`** β the
|
| 198 |
+
architecturally-honest label for the Qwen 3.6 family. The cost is
|
| 199 |
+
that no released `ggml-org/llama.cpp` or `ollama/ollama` registers
|
| 200 |
+
that string yet: both register the hybrid SSM + attention stack as
|
| 201 |
+
`qwen35` / `qwen35moe`, including for actual Qwen 3.6-family weights
|
| 202 |
+
(the upstream `Qwen3.6-35B-A3B_Q8_0` GGUFs load under `qwen35moe`).
|
| 203 |
+
No `qwen36` arch entry exists in either repo, and as of 2026-05-19
|
| 204 |
+
there's still no open PR or tracking issue adding one. A
|
| 205 |
+
`qwen36`-stamped GGUF therefore fails to load on stock loaders with
|
| 206 |
+
`unknown model architecture: 'qwen36'` until the metadata is
|
| 207 |
+
rebadged.
|
| 208 |
+
|
| 209 |
+
`scripts/rename_arch.py` does the rebadge: a metadata-only flip
|
| 210 |
+
that leaves all tensor bytes intact. `make heal-hf` automates it
|
| 211 |
+
for an already-pulled `hf.co/FoolDev/Thanatos-27B` tag (rewrites
|
| 212 |
+
the blob + the manifest's model-layer digest, idempotent on
|
| 213 |
+
already-rebadged tags); `make load-bundle` builds a separate
|
| 214 |
+
local `thanatos-27b` tag from a rebadged copy without touching the
|
| 215 |
+
HF-bridge manifest. Both produce a tag that loads on stock Ollama:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
|
| 217 |
```bash
|
| 218 |
python3 scripts/rename_arch.py \
|
| 219 |
+
--from-arch qwen36 --to-arch qwen35 \
|
| 220 |
Thanatos-27B.Q4_K_M.gguf \
|
| 221 |
+
Thanatos-27B.Q4_K_M.qwen35.gguf
|
| 222 |
```
|
| 223 |
|
| 224 |
+
**History.** The bundle has flipped stamp three times. v0.6.0
|
| 225 |
+
shipped `qwen36` (commit `e1f78fa`, architecturally-honest).
|
| 226 |
+
Commit `964e418` (2026-05-19) reverted to `qwen35` to stop forcing
|
| 227 |
+
the rebadge workaround on every fresh pull. Commit `07fa120`
|
| 228 |
+
(same day) flipped it back to `qwen36` β restoring the honest
|
| 229 |
+
label and accepting that stock Ollama users need one `make
|
| 230 |
+
heal-hf` after the first failed run. Tensor data is byte-identical
|
| 231 |
+
across all three states; only the `general.architecture` KV (and
|
| 232 |
+
namespaced KV keys) flips. The current bundle blob SHA is
|
| 233 |
+
`b2b63b941d714b0aff5e9afc9b337e7607b84e371ba991c182d92d0f7805c0e9`,
|
| 234 |
+
identical to the original v0.6.0 qwen36 blob β content-addressed
|
| 235 |
+
return to a known artifact. See the
|
| 236 |
+
[CHANGELOG](CHANGELOG.md) entry for the trade-off rationale.
|
| 237 |
|
| 238 |
## Quick start
|
| 239 |
|
|
|
|
| 242 |
Three paths:
|
| 243 |
|
| 244 |
```bash
|
| 245 |
+
# A. Pull straight from HF (gets the bundled qwen36 Q4_K_M GGUF +
|
| 246 |
+
# the root-level template / system / params files in one step).
|
| 247 |
+
# The first `ollama run` will 500 on the qwen36 blob β
|
| 248 |
+
# `make heal-hf` rebadges it in place so the same tag loads.
|
| 249 |
+
ollama run hf.co/FoolDev/Thanatos-27B # 17 GB pull, then 500
|
| 250 |
+
make heal-hf # rebadge cached blob in store
|
| 251 |
+
ollama run hf.co/FoolDev/Thanatos-27B # now loads
|
| 252 |
|
| 253 |
# B. Build a local `thanatos-27b` tag from THIS repo's bundle
|
| 254 |
+
# (smudges LFS pointer via `hf download` if needed, rebadges
|
| 255 |
+
# qwen36 -> qwen35 in a local copy, runs `ollama create`).
|
| 256 |
+
# Useful if you want a bare local tag rather than the
|
| 257 |
+
# hf.co/... path:
|
| 258 |
make load-bundle # creates local tag thanatos-27b
|
| 259 |
ollama run thanatos-27b
|
| 260 |
|
| 261 |
# C. Bypass the bundle: download a qwen35-stamped GGUF from unsloth
|
| 262 |
+
# and build locally. Loads on every current llama.cpp / Ollama
|
| 263 |
+
# with no rebadge step.
|
| 264 |
make build # Q4_K_M -> thanatos-27b
|
| 265 |
make build QUANT=Q3_K_S # 12 GB smaller quant
|
| 266 |
make build QUANT=Q5_K_M # 20 GB higher quality
|
|
|
|
| 288 |
|
| 289 |
The bundled `Thanatos-27B.Q4_K_M.gguf` is `qwen36`-stamped β every row
|
| 290 |
below assumes you've rebadged it to `qwen35` per
|
| 291 |
+
[Architecture](#architecture) (via `make heal-hf` or `make load-bundle`),
|
| 292 |
+
or that you're pulling a `qwen35`-stamped GGUF from
|
| 293 |
+
`unsloth/Qwen3.6-27B-GGUF` instead. The "fails today with
|
| 294 |
`unknown model architecture: 'qwen36'`" caveat applies to every row
|
| 295 |
until that's done.
|
| 296 |
|
| 297 |
| App | How to load this model |
|
| 298 |
|---|---|
|
| 299 |
+
| **Ollama** | `ollama run hf.co/FoolDev/Thanatos-27B` (default Q4_K_M) pulls the GGUF + the root-level `template` / `system` / `params` files in one step (HF's Ollama bridge ingests these three files; it does **not** read `Modelfile`). The first `ollama run` 500s on the qwen36 blob β run `make heal-hf` once to rebadge it in place, after which the same tag loads. To skip the rebadge entirely, `make build QUANT=Q4_K_M` (or another quant) downloads a qwen35-stamped GGUF from unsloth and creates a local Ollama tag using the `Modelfile`, which is kept in sync with the bridge files. |
|
| 300 |
| **LM Studio** | Search β `FoolDev/Thanatos-27B` β pick `Thanatos-27B.Q4_K_M.gguf`. Uses the GGUF's embedded jinja chat template (Qwen 3.6 ChatML); set the system prompt manually from the `SYSTEM` block in this repo's `Modelfile`. |
|
| 301 |
| **Jan** | Hub β "Import from Hugging Face" β `FoolDev/Thanatos-27B`. Same template behavior as LM Studio. |
|
| 302 |
| **llama.cpp** | `hf download FoolDev/Thanatos-27B Thanatos-27B.Q4_K_M.gguf --local-dir .` then `llama-server -m Thanatos-27B.Q4_K_M.gguf` (or `llama-cli`, `llama-mtmd-cli` for vision via the upstream `mmproj-F16.gguf`). |
|
examples/README.md
CHANGED
|
@@ -19,24 +19,26 @@ from the `Modelfile` / bridge files.
|
|
| 19 |
|
| 20 |
### Ollama
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
```bash
|
| 27 |
ollama pull hf.co/FoolDev/Thanatos-27B # 17 GB Q4_K_M (only bundled quant)
|
|
|
|
| 28 |
pip install requests
|
| 29 |
MODEL=hf.co/FoolDev/Thanatos-27B python ollama_chat.py
|
| 30 |
```
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
For a non-bundled quant (e.g. Q3_K_S ~12 GB, Q5_K_M ~20 GB),
|
| 38 |
-
`make build QUANT=...` downloads from `unsloth/Qwen3.6-27B-GGUF`
|
| 39 |
-
and creates a local `thanatos-27b` tag:
|
| 40 |
|
| 41 |
```bash
|
| 42 |
cd .. && make build QUANT=Q3_K_S && cd examples
|
|
|
|
| 19 |
|
| 20 |
### Ollama
|
| 21 |
|
| 22 |
+
The bundle is stamped `general.architecture: 'qwen36'` and no
|
| 23 |
+
released llama.cpp / Ollama recognizes that string yet (both
|
| 24 |
+
register the Qwen 3.6 stack as `qwen35` / `qwen35moe` β see
|
| 25 |
+
[../README.md#architecture](../README.md#architecture)). The first
|
| 26 |
+
`ollama run` against the HF-bridge tag pulls 17 GB and then 500s
|
| 27 |
+
with `unable to load model: <blob>`. Run `make heal-hf` once
|
| 28 |
+
after the failure to rebadge the cached blob in place β the same
|
| 29 |
+
tag loads on subsequent runs:
|
| 30 |
|
| 31 |
```bash
|
| 32 |
ollama pull hf.co/FoolDev/Thanatos-27B # 17 GB Q4_K_M (only bundled quant)
|
| 33 |
+
cd .. && make heal-hf && cd examples # rebadge cached blob qwen36 -> qwen35
|
| 34 |
pip install requests
|
| 35 |
MODEL=hf.co/FoolDev/Thanatos-27B python ollama_chat.py
|
| 36 |
```
|
| 37 |
|
| 38 |
+
For a non-bundled quant (e.g. Q3_K_S ~12 GB, Q5_K_M ~20 GB) β or
|
| 39 |
+
to skip the rebadge entirely β `make build QUANT=...` downloads
|
| 40 |
+
a qwen35-stamped GGUF from `unsloth/Qwen3.6-27B-GGUF` and creates
|
| 41 |
+
a local `thanatos-27b` tag:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
```bash
|
| 44 |
cd .. && make build QUANT=Q3_K_S && cd examples
|