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
Add Q3_K_S as a second HF/Ollama quant
Browse filesShip Janus-27B.Q3_K_S.gguf (~12 GB) alongside the existing Q4_K_M
so users on tighter memory budgets (16 GB GPUs, 32 GB unified-memory
laptops) get a one-liner too:
ollama run hf.co/FoolDev/janus-27b # default Q4_K_M
ollama run hf.co/FoolDev/janus-27b:Q3_K_S # 12 GB option
Same Modelfile applies in both cases, so tool calling / thinking /
stop-token plumbing carries over. README TL;DR + Quick start +
"What's here" updated to surface the quant tag form.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- CHANGELOG.md +12 -11
- Janus-27B.Q3_K_S.gguf +3 -0
- README.md +21 -11
|
@@ -8,17 +8,18 @@ and documentation**, not the underlying base model.
|
|
| 8 |
## [Unreleased]
|
| 9 |
|
| 10 |
### Added
|
| 11 |
-
- `Janus-27B.Q4_K_M.gguf` (~17 GB)
|
| 12 |
-
|
| 13 |
-
hf.co/FoolDev/janus-27b`)
|
| 14 |
-
|
| 15 |
-
default
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
`
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
| 22 |
|
| 23 |
### Fixed
|
| 24 |
- `Modelfile`: ship a `TEMPLATE` directive mirroring Qwen 3.6 ChatML in
|
|
|
|
| 8 |
## [Unreleased]
|
| 9 |
|
| 10 |
### Added
|
| 11 |
+
- `Janus-27B.Q4_K_M.gguf` (~17 GB) and `Janus-27B.Q3_K_S.gguf`
|
| 12 |
+
(~12 GB) shipped in the repo so HF's "Use this model" widget
|
| 13 |
+
surfaces the Ollama snippet (`ollama run hf.co/FoolDev/janus-27b`)
|
| 14 |
+
and Ollama can pull weights + Modelfile in one step. Q4_K_M is the
|
| 15 |
+
default tag; `:Q3_K_S` is the smaller-footprint option for 16 GB
|
| 16 |
+
GPUs / unified-memory laptops. Adds `gguf` to the model-card tags
|
| 17 |
+
so HF lists the repo among GGUF models. Loosens `.gitignore` from
|
| 18 |
+
`*.gguf` to allow `Janus-27B.*.gguf` while still excluding the
|
| 19 |
+
upstream `Qwen3.6-27B-*.gguf` that `make build` fetches locally.
|
| 20 |
+
README's "does not redistribute weights" wording reworked: the
|
| 21 |
+
wrapper philosophy still holds for the upstream Qwen GGUFs, but we
|
| 22 |
+
ship two tagged distributions to back the HF/Ollama UX.
|
| 23 |
|
| 24 |
### Fixed
|
| 25 |
- `Modelfile`: ship a `TEMPLATE` directive mirroring Qwen 3.6 ChatML in
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4afb4abcf0207a484b0d7e92c0421b74e8ce1c7a7250bb9d824b79288da68f20
|
| 3 |
+
size 12358727904
|
|
@@ -61,19 +61,20 @@ A personal sibling to [`FoolDev/janus`](https://huggingface.co/FoolDev/janus). S
|
|
| 61 |
|
| 62 |
## TL;DR
|
| 63 |
|
| 64 |
-
One-liner via Hugging Face (pulls
|
| 65 |
-
|
| 66 |
|
| 67 |
```bash
|
| 68 |
-
ollama run hf.co/FoolDev/janus-27b
|
|
|
|
| 69 |
```
|
| 70 |
|
| 71 |
-
Or build locally
|
| 72 |
|
| 73 |
```bash
|
| 74 |
git clone https://huggingface.co/FoolDev/janus-27b && cd janus-27b
|
| 75 |
-
make build # downloads
|
| 76 |
-
make build QUANT=
|
| 77 |
ollama run janus-27b
|
| 78 |
```
|
| 79 |
|
|
@@ -119,9 +120,17 @@ The 27B is **dense**: every parameter participates in every forward pass. It's s
|
|
| 119 |
| `CHANGELOG.md` | Versioned tooling/docs changes |
|
| 120 |
| `README.md` | This file |
|
| 121 |
|
| 122 |
-
This repo ships
|
| 123 |
-
|
| 124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.
|
|
@@ -150,8 +159,9 @@ If you want the safetensors for `transformers`, fetch them from [`Qwen/Qwen3.6-2
|
|
| 150 |
Two paths:
|
| 151 |
|
| 152 |
```bash
|
| 153 |
-
# A. Pull straight from HF (uses the bundled Q4_K_M
|
| 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
|
|
|
|
| 61 |
|
| 62 |
## TL;DR
|
| 63 |
|
| 64 |
+
One-liner via Hugging Face (pulls a GGUF + this repo's Modelfile,
|
| 65 |
+
including the tool-calling TEMPLATE):
|
| 66 |
|
| 67 |
```bash
|
| 68 |
+
ollama run hf.co/FoolDev/janus-27b # default ~17 GB Q4_K_M
|
| 69 |
+
ollama run hf.co/FoolDev/janus-27b:Q3_K_S # tighter ~12 GB quant
|
| 70 |
```
|
| 71 |
|
| 72 |
+
Or build locally for any other quant:
|
| 73 |
|
| 74 |
```bash
|
| 75 |
git clone https://huggingface.co/FoolDev/janus-27b && cd janus-27b
|
| 76 |
+
make build # downloads Q4_K_M (default)
|
| 77 |
+
make build QUANT=Q5_K_M # any unsloth/Qwen3.6-27B-GGUF quant
|
| 78 |
ollama run janus-27b
|
| 79 |
```
|
| 80 |
|
|
|
|
| 120 |
| `CHANGELOG.md` | Versioned tooling/docs changes |
|
| 121 |
| `README.md` | This file |
|
| 122 |
|
| 123 |
+
This repo ships two GGUFs to back the HF/Ollama "Use this model"
|
| 124 |
+
widget — `Janus-27B.Q4_K_M.gguf` (~17 GB, default) and
|
| 125 |
+
`Janus-27B.Q3_K_S.gguf` (~12 GB, smaller-footprint option for 16 GB
|
| 126 |
+
GPUs / unified-memory laptops):
|
| 127 |
+
|
| 128 |
+
```bash
|
| 129 |
+
ollama run hf.co/FoolDev/janus-27b # default Q4_K_M
|
| 130 |
+
ollama run hf.co/FoolDev/janus-27b:Q3_K_S # tighter quant
|
| 131 |
+
```
|
| 132 |
+
|
| 133 |
+
For other quants or local builds, pull from
|
| 134 |
[`unsloth/Qwen3.6-27B-GGUF`](https://huggingface.co/unsloth/Qwen3.6-27B-GGUF)
|
| 135 |
and `make build QUANT=...` — the Modelfile here is the same one Ollama
|
| 136 |
applies in either path.
|
|
|
|
| 159 |
Two paths:
|
| 160 |
|
| 161 |
```bash
|
| 162 |
+
# A. Pull straight from HF (uses the bundled Q4_K_M / Q3_K_S + Modelfile):
|
| 163 |
+
ollama run hf.co/FoolDev/janus-27b # default Q4_K_M
|
| 164 |
+
ollama run hf.co/FoolDev/janus-27b:Q3_K_S # tighter quant
|
| 165 |
|
| 166 |
# B. Build locally (lets you pick the quant):
|
| 167 |
make build # Q4_K_M -> janus-27b
|