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
Ship a Q4_K_M GGUF so HF "Use this model" surfaces an Ollama snippet
Browse filesUntil now this repo deliberately shipped no weights — users had to
clone, run make build, and let scripts/build.sh fetch a quant from
unsloth/Qwen3.6-27B-GGUF. That kept the repo small but meant HF's
"Use this model" widget could only show the Transformers snippet (HF
requires a GGUF in the repo to auto-generate the Ollama snippet).
Ship a single Janus-27B.Q4_K_M.gguf (~17 GB) so:
- `ollama run hf.co/FoolDev/janus-27b` works one-liner — Ollama
pulls this GGUF and applies the Modelfile in this repo (TEMPLATE,
PARAMETERs, SYSTEM all flow through, including the tool-calling
TEMPLATE we wired up in 80f4494).
- HF lists the repo under GGUF models (added `gguf` to tags).
Q4_K_M for parity with the 35B sibling and the README's default;
local builders who want Q3_K_S use `make build QUANT=Q3_K_S` as
before. Loosened .gitignore from `*.gguf` to `*.gguf` +
`!Janus-27B.*.gguf` so the upstream Qwen3.6-27B-*.gguf that
scripts/build.sh fetches is still ignored. README's "does not
redistribute weights" wording reworked — the wrapper philosophy still
holds for the upstream Qwen GGUFs, we just ship one tagged
distribution to back the HF/Ollama UX.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- .gitignore +5 -1
- CHANGELOG.md +13 -0
- Janus-27B.Q4_K_M.gguf +3 -0
- README.md +22 -8
|
@@ -5,8 +5,12 @@ __pycache__/
|
|
| 5 |
.venv/
|
| 6 |
venv/
|
| 7 |
|
| 8 |
-
# Local model weights
|
|
|
|
|
|
|
|
|
|
| 9 |
*.gguf
|
|
|
|
| 10 |
*.safetensors
|
| 11 |
*.bin
|
| 12 |
|
|
|
|
| 5 |
.venv/
|
| 6 |
venv/
|
| 7 |
|
| 8 |
+
# Local model weights. We don't redistribute the upstream Qwen GGUFs
|
| 9 |
+
# here — `make build` fetches one from unsloth/Qwen3.6-27B-GGUF locally.
|
| 10 |
+
# The single Janus-27B.*.gguf we DO ship backs the HF/Ollama
|
| 11 |
+
# "Use this model" widget (ollama run hf.co/FoolDev/janus-27b).
|
| 12 |
*.gguf
|
| 13 |
+
!Janus-27B.*.gguf
|
| 14 |
*.safetensors
|
| 15 |
*.bin
|
| 16 |
|
|
@@ -7,6 +7,19 @@ and documentation**, not the underlying base model.
|
|
| 7 |
|
| 8 |
## [Unreleased]
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
### Fixed
|
| 11 |
- `Modelfile`: ship a `TEMPLATE` directive mirroring Qwen 3.6 ChatML in
|
| 12 |
Ollama Go-template form, so Ollama's tool-capability detector sees
|
|
|
|
| 7 |
|
| 8 |
## [Unreleased]
|
| 9 |
|
| 10 |
+
### Added
|
| 11 |
+
- `Janus-27B.Q4_K_M.gguf` (~17 GB) shipped in the repo so HF's
|
| 12 |
+
"Use this model" widget surfaces the Ollama snippet (`ollama run
|
| 13 |
+
hf.co/FoolDev/janus-27b`) and Ollama can pull weights + Modelfile in
|
| 14 |
+
one step. Q4_K_M for parity with the 35B sibling and the README's
|
| 15 |
+
default. Adds `gguf` to the model-card tags so HF lists the repo
|
| 16 |
+
among GGUF models. Loosens `.gitignore` from `*.gguf` to allow
|
| 17 |
+
`Janus-27B.*.gguf` while still excluding the upstream
|
| 18 |
+
`Qwen3.6-27B-*.gguf` that `make build` fetches locally. README's
|
| 19 |
+
"does not redistribute weights" wording reworked: the wrapper
|
| 20 |
+
philosophy still holds for the upstream Qwen GGUFs, but we ship a
|
| 21 |
+
single tagged distribution to back the HF/Ollama UX.
|
| 22 |
+
|
| 23 |
### Fixed
|
| 24 |
- `Modelfile`: ship a `TEMPLATE` directive mirroring Qwen 3.6 ChatML in
|
| 25 |
Ollama Go-template form, so Ollama's tool-capability detector sees
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ed60d0af4650a854b1755bd392f9aef4872643dc25a254bc68043fa638392a0
|
| 3 |
+
size 16817244384
|
|
@@ -38,6 +38,7 @@ tags:
|
|
| 38 |
- conversational
|
| 39 |
- multimodal
|
| 40 |
- agent
|
|
|
|
| 41 |
library_name: transformers
|
| 42 |
pipeline_tag: image-text-to-text
|
| 43 |
---
|
|
@@ -60,18 +61,20 @@ A personal sibling to [`FoolDev/janus`](https://huggingface.co/FoolDev/janus). S
|
|
| 60 |
|
| 61 |
## TL;DR
|
| 62 |
|
| 63 |
-
|
|
|
|
| 64 |
|
| 65 |
```bash
|
| 66 |
-
|
| 67 |
-
make build # downloads ~17 GB GGUF and creates the model
|
| 68 |
-
ollama run janus-27b
|
| 69 |
```
|
| 70 |
|
| 71 |
-
|
| 72 |
|
| 73 |
```bash
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
| 75 |
```
|
| 76 |
|
| 77 |
For image input use llama.cpp directly — Ollama vision is broken for
|
|
@@ -116,7 +119,12 @@ The 27B is **dense**: every parameter participates in every forward pass. It's s
|
|
| 116 |
| `CHANGELOG.md` | Versioned tooling/docs changes |
|
| 117 |
| `README.md` | This file |
|
| 118 |
|
| 119 |
-
This repo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
|
| 121 |
If you want the safetensors for `transformers`, fetch them from [`Qwen/Qwen3.6-27B`](https://huggingface.co/Qwen/Qwen3.6-27B).
|
| 122 |
|
|
@@ -137,9 +145,15 @@ If you want the safetensors for `transformers`, fetch them from [`Qwen/Qwen3.6-2
|
|
| 137 |
|
| 138 |
## Quick start
|
| 139 |
|
| 140 |
-
### Ollama
|
|
|
|
|
|
|
| 141 |
|
| 142 |
```bash
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
make build # Q4_K_M -> janus-27b
|
| 144 |
make build QUANT=Q3_K_S # smaller quant
|
| 145 |
make build GGUF_PATH=~/models/Qwen3.6-27B-Q4_K_M.gguf # skip download
|
|
|
|
| 38 |
- conversational
|
| 39 |
- multimodal
|
| 40 |
- agent
|
| 41 |
+
- gguf
|
| 42 |
library_name: transformers
|
| 43 |
pipeline_tag: image-text-to-text
|
| 44 |
---
|
|
|
|
| 61 |
|
| 62 |
## TL;DR
|
| 63 |
|
| 64 |
+
One-liner via Hugging Face (pulls the 17 GB Q4_K_M GGUF + this repo's
|
| 65 |
+
Modelfile, including the tool-calling TEMPLATE):
|
| 66 |
|
| 67 |
```bash
|
| 68 |
+
ollama run hf.co/FoolDev/janus-27b
|
|
|
|
|
|
|
| 69 |
```
|
| 70 |
|
| 71 |
+
Or build locally if you want a different quant:
|
| 72 |
|
| 73 |
```bash
|
| 74 |
+
git clone https://huggingface.co/FoolDev/janus-27b && cd janus-27b
|
| 75 |
+
make build # downloads ~17 GB Q4_K_M GGUF
|
| 76 |
+
make build QUANT=Q3_K_S # smaller ~12 GB quant
|
| 77 |
+
ollama run janus-27b
|
| 78 |
```
|
| 79 |
|
| 80 |
For image input use llama.cpp directly — Ollama vision is broken for
|
|
|
|
| 119 |
| `CHANGELOG.md` | Versioned tooling/docs changes |
|
| 120 |
| `README.md` | This file |
|
| 121 |
|
| 122 |
+
This repo ships **one** GGUF — `Janus-27B.Q4_K_M.gguf` (~17 GB) — to
|
| 123 |
+
back the HF/Ollama "Use this model" widget (`ollama run
|
| 124 |
+
hf.co/FoolDev/janus-27b`). For other quants or local builds, pull from
|
| 125 |
+
[`unsloth/Qwen3.6-27B-GGUF`](https://huggingface.co/unsloth/Qwen3.6-27B-GGUF)
|
| 126 |
+
and `make build QUANT=...` — the Modelfile here is the same one Ollama
|
| 127 |
+
applies in either path.
|
| 128 |
|
| 129 |
If you want the safetensors for `transformers`, fetch them from [`Qwen/Qwen3.6-27B`](https://huggingface.co/Qwen/Qwen3.6-27B).
|
| 130 |
|
|
|
|
| 145 |
|
| 146 |
## Quick start
|
| 147 |
|
| 148 |
+
### Ollama
|
| 149 |
+
|
| 150 |
+
Two paths:
|
| 151 |
|
| 152 |
```bash
|
| 153 |
+
# A. Pull straight from HF (uses the bundled Q4_K_M + this Modelfile):
|
| 154 |
+
ollama run hf.co/FoolDev/janus-27b
|
| 155 |
+
|
| 156 |
+
# B. Build locally (lets you pick the quant):
|
| 157 |
make build # Q4_K_M -> janus-27b
|
| 158 |
make build QUANT=Q3_K_S # smaller quant
|
| 159 |
make build GGUF_PATH=~/models/Qwen3.6-27B-Q4_K_M.gguf # skip download
|