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: ground "qwen35 is canonical" in upstream code-level evidence
Browse filesThe README "Architecture" section previously asserted that qwen35 is
the canonical load-time label for Qwen 3.6 without showing the work.
Audit of the actual upstream stack found three converging pieces of
evidence β now listed inline:
- Qwen's own HF configs for Qwen/Qwen3.6-27B and
Qwen/Qwen3.6-35B-A3B declare model_type "qwen3_5" /
"qwen3_5_moe" and the Qwen3_5*ForConditionalGeneration arch
classes. No Qwen3_6 class exists in transformers.
- llama.cpp's convert_hf_to_gguf.py maps those classes to
MODEL_ARCH.QWEN35 / QWEN35MOE, so unsloth's GGUFs are
natively qwen35-stamped out of the converter.
- src/models/qwen35.cpp has `case 64: LLM_TYPE_27B` (this model)
and qwen35moe.cpp has `case 40: LLM_TYPE_35B_A3B` (the
Janus-35B sibling base). The arch entries were written to
load Qwen 3.6 weights, not just Qwen 3.5.
Conclusion: qwen35 isn't a stand-in awaiting qwen36 support; it's
already the upstream-canonical name for the whole Qwen 3.5 / 3.6
hybrid SSM + attention family. The "qwen36" name was Foolish-dev's
invention, not an upstream concept.
History paragraph softened from "qwen36 was the architecturally-
honest label" to "version-specific label, on the theory that qwen35
was a loader stand-in" β a theory the audit shows was mistaken.
The rename_arch.py example flipped to qwen36 -> qwen35 (the
direction that actually serves a real user need: legacy v0.6.0-era
recovery). CHANGELOG [Unreleased] picks up a "Changed (upstream-
evidence audit)" bullet with the per-source breakdown.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- CHANGELOG.md +39 -0
- README.md +42 -19
|
@@ -61,6 +61,45 @@ and documentation**, not the underlying base model.
|
|
| 61 |
(skips early); load-bundle does a no-op rebadge on a qwen35 bundle
|
| 62 |
and runs `ollama create` as normal.
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
### Changed (round-trip residue cleanup)
|
| 65 |
- Five doc surfaces still carried the v0.6.0-era "bundle is
|
| 66 |
qwen36-stamped, fails today, rebadge to qwen35 first" narrative
|
|
|
|
| 61 |
(skips early); load-bundle does a no-op rebadge on a qwen35 bundle
|
| 62 |
and runs `ollama create` as normal.
|
| 63 |
|
| 64 |
+
### Changed (upstream-evidence audit β qwen35 is canonical, not a workaround)
|
| 65 |
+
- Read the actual upstream code paths for Qwen 3.6 loading and
|
| 66 |
+
found that `qwen35` isn't a stand-in awaiting `qwen36` support;
|
| 67 |
+
it's the upstream-canonical name for the whole Qwen 3.5 / 3.6
|
| 68 |
+
hybrid SSM + attention family. Three converging pieces of
|
| 69 |
+
evidence, now folded into the README "Architecture" section:
|
| 70 |
+
- **Qwen's own HF configs** for both `Qwen/Qwen3.6-27B` and
|
| 71 |
+
`Qwen/Qwen3.6-35B-A3B` declare `model_type: "qwen3_5"` /
|
| 72 |
+
`"qwen3_5_moe"` and the `Qwen3_5*ForConditionalGeneration`
|
| 73 |
+
arch classes. No `Qwen3_6` arch class exists in `transformers`
|
| 74 |
+
β Qwen reuses the 3.5 class names for 3.6 weights.
|
| 75 |
+
- **`convert_hf_to_gguf.py`** in `ggml-org/llama.cpp` registers
|
| 76 |
+
`Qwen3_5ForCausalLM` β `MODEL_ARCH.QWEN35` and
|
| 77 |
+
`Qwen3_5MoeForCausalLM` β `MODEL_ARCH.QWEN35MOE`, so the
|
| 78 |
+
unsloth GGUFs this repo pulls from are natively qwen35-stamped
|
| 79 |
+
out of the converter.
|
| 80 |
+
- **`src/models/qwen35.cpp`** has an explicit
|
| 81 |
+
`case 64: type = LLM_TYPE_27B` branch (this model);
|
| 82 |
+
**`qwen35moe.cpp`** has `case 40: type = LLM_TYPE_35B_A3B`
|
| 83 |
+
(the Janus-35B sibling base). The arch entries were written
|
| 84 |
+
to load Qwen 3.6 weights, not just Qwen 3.5; this is
|
| 85 |
+
code-level confirmation, not interpretation.
|
| 86 |
+
- Reframed the README "Architecture" section accordingly: the
|
| 87 |
+
three pieces of evidence are listed inline; the "qwen35 is the
|
| 88 |
+
canonical load-time label" claim is now grounded rather than
|
| 89 |
+
asserted; the History paragraph softens the v0.6.0 stamp choice
|
| 90 |
+
from "architecturally-honest" to "version-specific on the
|
| 91 |
+
theory that `qwen35` was a loader stand-in awaiting `qwen36`
|
| 92 |
+
support" β a theory the audit shows was mistaken.
|
| 93 |
+
- Flipped the `scripts/rename_arch.py` example back to qwen36 β
|
| 94 |
+
qwen35 (the direction that actually serves the only realistic
|
| 95 |
+
use case: legacy v0.6.0-era recovery). Previous direction
|
| 96 |
+
(qwen35 β qwen36) made less sense given the audit conclusion.
|
| 97 |
+
- Tooling unchanged. `scripts/rename_arch.py`, `make heal-hf`,
|
| 98 |
+
`make load-bundle` still exist and still work; they're just
|
| 99 |
+
documented honestly as legacy recovery + generic flip utility
|
| 100 |
+
rather than as workarounds awaiting upstream changes that will
|
| 101 |
+
never come.
|
| 102 |
+
|
| 103 |
### Changed (round-trip residue cleanup)
|
| 104 |
- Five doc surfaces still carried the v0.6.0-era "bundle is
|
| 105 |
qwen36-stamped, fails today, rebadge to qwen35 first" narrative
|
|
@@ -174,37 +174,60 @@ If you want the safetensors for `transformers`, fetch them from [`Qwen/Qwen3.6-2
|
|
| 174 |
current loader compatibility.
|
| 175 |
- Multi-token prediction (MTP) head trained for speculative decoding
|
| 176 |
|
| 177 |
-
**The bundled GGUF declares `general.architecture: 'qwen35'`** β
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
|
| 186 |
`ollama run hf.co/FoolDev/Thanatos-27B` and `llama-server -m
|
| 187 |
Thanatos-27B.Q4_K_M.gguf` both load directly on current stock
|
| 188 |
loaders.
|
| 189 |
|
| 190 |
-
**History.** Through v0.6.0 the bundle was stamped `qwen36`
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
`
|
| 195 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
`general.architecture` KV (and namespaced KV keys) flipped. See
|
| 197 |
the [CHANGELOG](CHANGELOG.md) entry for the full rationale.
|
| 198 |
|
| 199 |
`scripts/rename_arch.py` is kept in the repo as a generic GGUF
|
| 200 |
-
arch renamer (metadata only, tensors byte-identical)
|
| 201 |
-
|
| 202 |
|
| 203 |
```bash
|
| 204 |
python3 scripts/rename_arch.py \
|
| 205 |
-
--from-arch
|
| 206 |
-
Thanatos-27B.Q4_K_M.gguf \
|
| 207 |
-
Thanatos-27B.Q4_K_M.
|
| 208 |
```
|
| 209 |
|
| 210 |
If you pulled the bundle while it was still qwen36-stamped (v0.6.0
|
|
|
|
| 174 |
current loader compatibility.
|
| 175 |
- Multi-token prediction (MTP) head trained for speculative decoding
|
| 176 |
|
| 177 |
+
**The bundled GGUF declares `general.architecture: 'qwen35'`** β not a
|
| 178 |
+
workaround for an unimplemented `qwen36` arch, but the canonical
|
| 179 |
+
upstream label for the entire Qwen 3.5 / 3.6 hybrid SSM + attention
|
| 180 |
+
family. The naming convergence runs through three layers of the
|
| 181 |
+
stack:
|
| 182 |
+
|
| 183 |
+
- **Qwen's own HF configs.** `Qwen/Qwen3.6-27B/config.json` declares
|
| 184 |
+
`"model_type": "qwen3_5"` and
|
| 185 |
+
`"architectures": ["Qwen3_5ForConditionalGeneration"]`. The MoE
|
| 186 |
+
sibling `Qwen/Qwen3.6-35B-A3B` declares `"qwen3_5_moe"` /
|
| 187 |
+
`Qwen3_5MoeForConditionalGeneration`. No `Qwen3_6` arch class
|
| 188 |
+
exists in `transformers`; Qwen reuses the 3.5 class names.
|
| 189 |
+
- **llama.cpp's converter.** `convert_hf_to_gguf.py` registers
|
| 190 |
+
`Qwen3_5ForCausalLM` β `MODEL_ARCH.QWEN35` and
|
| 191 |
+
`Qwen3_5MoeForCausalLM` β `MODEL_ARCH.QWEN35MOE`. The unsloth
|
| 192 |
+
GGUFs this repo pulls from (`unsloth/Qwen3.6-27B-GGUF`,
|
| 193 |
+
`unsloth/Qwen3.6-35B-A3B-GGUF`) inherit those stamps.
|
| 194 |
+
- **llama.cpp's model code.** `src/models/qwen35.cpp` has an
|
| 195 |
+
explicit `case 64: type = LLM_TYPE_27B` branch for this model;
|
| 196 |
+
`qwen35moe.cpp` has `case 40: type = LLM_TYPE_35B_A3B` for the
|
| 197 |
+
Janus-35B sibling base. The arch entries were written to load
|
| 198 |
+
Qwen 3.6 weights, not just Qwen 3.5.
|
| 199 |
+
|
| 200 |
+
There is no PR or tracking issue for a `qwen36` arch entry in
|
| 201 |
+
`ggml-org/llama.cpp` or `ollama/ollama` because none is needed β
|
| 202 |
+
`qwen35` already loads the model the upstream code path was
|
| 203 |
+
designed to load.
|
| 204 |
|
| 205 |
`ollama run hf.co/FoolDev/Thanatos-27B` and `llama-server -m
|
| 206 |
Thanatos-27B.Q4_K_M.gguf` both load directly on current stock
|
| 207 |
loaders.
|
| 208 |
|
| 209 |
+
**History.** Through v0.6.0 the bundle was stamped `qwen36` as a
|
| 210 |
+
version-specific label, on the theory that `qwen35` was a
|
| 211 |
+
loader-side stand-in awaiting proper Qwen 3.6 support. Stock
|
| 212 |
+
loaders rejected it; users needed `make load-bundle` or
|
| 213 |
+
`make heal-hf` to rebadge before loading. The stamp was reverted
|
| 214 |
+
to `qwen35` in commit `964e418` once daily friction outweighed
|
| 215 |
+
the version-specificity. The upstream-evidence audit captured
|
| 216 |
+
above (post-`72259c1`) then confirmed `qwen35` is in fact the
|
| 217 |
+
canonical family label β not a workaround. Tensor data was
|
| 218 |
+
byte-identical across both stamps; only the
|
| 219 |
`general.architecture` KV (and namespaced KV keys) flipped. See
|
| 220 |
the [CHANGELOG](CHANGELOG.md) entry for the full rationale.
|
| 221 |
|
| 222 |
`scripts/rename_arch.py` is kept in the repo as a generic GGUF
|
| 223 |
+
arch renamer (metadata only, tensors byte-identical), useful for
|
| 224 |
+
the legacy qwen36 β qwen35 rebadge or any future arch flip:
|
| 225 |
|
| 226 |
```bash
|
| 227 |
python3 scripts/rename_arch.py \
|
| 228 |
+
--from-arch qwen36 --to-arch qwen35 \
|
| 229 |
+
Thanatos-27B.Q4_K_M.qwen36.gguf \
|
| 230 |
+
Thanatos-27B.Q4_K_M.gguf
|
| 231 |
```
|
| 232 |
|
| 233 |
If you pulled the bundle while it was still qwen36-stamped (v0.6.0
|