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 Settings
- 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
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
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
Post-rename polish: banner text, .gitignore, Makefile
Browse files- banner.svg: title "THANATOS-27B" -> "THANATOS-27B-HERETIC"
(adds -HERETIC tspan in Tokyo Night red #f7768e); subtitle
updated to mention Heretic v2 + uncensored. ViewBox unchanged.
- .gitignore: comments refreshed for the llmfan46 Heretic GGUF
source and the new hf.co/FoolDev/Thanatos-27B-Heretic URL;
whitelist + rebadge-experiment block extended to cover the
pending Thanatos-27B-Heretic.*.gguf rebundle.
- Makefile: help-text + build docstring point at the Heretic
GGUF source; Q3_K_S example replaced with Q3_K_M; clean
target also removes pre-rename Thanatos-27B.*.qwen[0-9]*.gguf
rebadge artifacts.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- .gitignore +9 -3
- CHANGELOG.md +24 -0
- Makefile +5 -5
- banner.svg +2 -2
|
@@ -5,16 +5,22 @@ __pycache__/
|
|
| 5 |
.venv/
|
| 6 |
venv/
|
| 7 |
|
| 8 |
-
# Local model weights. We don't redistribute the
|
| 9 |
-
# here — `make build` fetches one from
|
|
|
|
| 10 |
# The single Thanatos-27B.*.gguf we DO ship backs the HF/Ollama
|
| 11 |
-
# "Use this model" widget (ollama run hf.co/FoolDev/
|
|
|
|
|
|
|
|
|
|
| 12 |
*.gguf
|
| 13 |
!Thanatos-27B.*.gguf
|
|
|
|
| 14 |
# Local-only rebadge experiments produced by scripts/rename_arch.py.
|
| 15 |
# These re-stamp general.architecture and are not loadable by current
|
| 16 |
# ollama / llama.cpp; don't track or push them.
|
| 17 |
Thanatos-27B.*.qwen[0-9]*.gguf
|
|
|
|
| 18 |
*.safetensors
|
| 19 |
*.bin
|
| 20 |
|
|
|
|
| 5 |
.venv/
|
| 6 |
venv/
|
| 7 |
|
| 8 |
+
# Local model weights. We don't redistribute the Heretic v2 GGUFs
|
| 9 |
+
# here — `make build` fetches one from
|
| 10 |
+
# llmfan46/Qwen3.6-27B-uncensored-heretic-v2-GGUF locally.
|
| 11 |
# The single Thanatos-27B.*.gguf we DO ship backs the HF/Ollama
|
| 12 |
+
# "Use this model" widget (ollama run hf.co/FoolDev/Thanatos-27B-Heretic).
|
| 13 |
+
# The bundled file is still named Thanatos-27B.*.gguf from before the
|
| 14 |
+
# rename; whitelist also covers Thanatos-27B-Heretic.*.gguf for the
|
| 15 |
+
# pending Heretic rebundle.
|
| 16 |
*.gguf
|
| 17 |
!Thanatos-27B.*.gguf
|
| 18 |
+
!Thanatos-27B-Heretic.*.gguf
|
| 19 |
# Local-only rebadge experiments produced by scripts/rename_arch.py.
|
| 20 |
# These re-stamp general.architecture and are not loadable by current
|
| 21 |
# ollama / llama.cpp; don't track or push them.
|
| 22 |
Thanatos-27B.*.qwen[0-9]*.gguf
|
| 23 |
+
Thanatos-27B-Heretic.*.qwen[0-9]*.gguf
|
| 24 |
*.safetensors
|
| 25 |
*.bin
|
| 26 |
|
|
@@ -7,6 +7,30 @@ and documentation**, not the underlying base model.
|
|
| 7 |
|
| 8 |
## [Unreleased]
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
### Changed (project rename + base swap to Heretic v2)
|
| 11 |
- **Renamed project `Thanatos-27B` → `Thanatos-27B-Heretic`** and
|
| 12 |
**swapped immediate base from `Qwen/Qwen3.6-27B` (vanilla) →
|
|
|
|
| 7 |
|
| 8 |
## [Unreleased]
|
| 9 |
|
| 10 |
+
### Changed (post-rename polish — banner, gitignore, Makefile)
|
| 11 |
+
- **`banner.svg`** title updated `THANATOS-27B` →
|
| 12 |
+
`THANATOS-27B-HERETIC` (added `-HERETIC` tspan in Tokyo Night
|
| 13 |
+
red `#f7768e`, matching the abliteration vibe). Subtitle
|
| 14 |
+
updated `Qwen 3.6 · Dense 27B · Opus 4.7 distilled` →
|
| 15 |
+
`Heretic v2 · Dense 27B · Opus 4.7 distilled · uncensored`.
|
| 16 |
+
ViewBox unchanged (383×77); estimated text length fits with
|
| 17 |
+
~60px right margin. Re-render in your design tool if you want
|
| 18 |
+
to verify spacing or refine kerning.
|
| 19 |
+
- **`.gitignore`** comments refreshed to mention llmfan46 Heretic
|
| 20 |
+
v2 GGUF source and the canonical `hf.co/FoolDev/Thanatos-27B-Heretic`
|
| 21 |
+
Ollama URL. Whitelist extended with `!Thanatos-27B-Heretic.*.gguf`
|
| 22 |
+
and rebadge-experiment block extended with
|
| 23 |
+
`Thanatos-27B-Heretic.*.qwen[0-9]*.gguf` so the pending Heretic
|
| 24 |
+
rebundle is already accommodated.
|
| 25 |
+
- **`Makefile`** help-text and `build` docstring updated to
|
| 26 |
+
reference the Heretic v2 GGUF source (`llmfan46/...`) and use
|
| 27 |
+
`Q3_K_M` in examples (no `Q3_K_S` in the Heretic repo).
|
| 28 |
+
`clean` target now also removes legacy
|
| 29 |
+
`Thanatos-27B.*.qwen[0-9]*.gguf` rebadge artifacts (the
|
| 30 |
+
`Thanatos-27B.Q4_K_M.qwen35.gguf` /
|
| 31 |
+
`Thanatos-27B.Q4_K_M.qwen36.gguf` files from the pre-rename
|
| 32 |
+
stamp saga that still sit in working trees).
|
| 33 |
+
|
| 34 |
### Changed (project rename + base swap to Heretic v2)
|
| 35 |
- **Renamed project `Thanatos-27B` → `Thanatos-27B-Heretic`** and
|
| 36 |
**swapped immediate base from `Qwen/Qwen3.6-27B` (vanilla) →
|
|
@@ -10,9 +10,9 @@
|
|
| 10 |
# MODEL model tag for smoke (default: $(TAG))
|
| 11 |
#
|
| 12 |
# Examples:
|
| 13 |
-
# make build # Q4_K_M from
|
| 14 |
-
# make build QUANT=
|
| 15 |
-
# make build GGUF_PATH=~/models/Qwen3.6-27B-Q4_K_M.gguf
|
| 16 |
# make load-bundle # this repo's bundled GGUF -> local Ollama tag (smudge LFS if needed)
|
| 17 |
# make smoke
|
| 18 |
# make check
|
|
@@ -37,7 +37,7 @@ ifdef GGUF_PATH
|
|
| 37 |
@echo " GGUF_PATH=$(GGUF_PATH)"
|
| 38 |
endif
|
| 39 |
|
| 40 |
-
build: ## Download qwen35-stamped GGUF from
|
| 41 |
GGUF_PATH=$(GGUF_PATH) TAG=$(TAG) ./scripts/build.sh $(QUANT)
|
| 42 |
|
| 43 |
load-bundle: ## Load THIS repo's bundled GGUF into a local Ollama tag (smudge LFS + ollama create).
|
|
@@ -69,6 +69,6 @@ hooks: ## Install scripts/check.sh as the git pre-commit hook.
|
|
| 69 |
|
| 70 |
clean: ## Remove local GGUF copies and ephemeral caches in this repo.
|
| 71 |
@echo "[*] removing local GGUFs and ephemeral caches in $$PWD"
|
| 72 |
-
@rm -f ./Qwen3.6-27B-*.gguf ./mmproj-*.gguf ./Thanatos-27B-Heretic.*.qwen[0-9]*.gguf
|
| 73 |
@rm -rf ./.cache __pycache__ examples/__pycache__
|
| 74 |
@echo "[+] clean"
|
|
|
|
| 10 |
# MODEL model tag for smoke (default: $(TAG))
|
| 11 |
#
|
| 12 |
# Examples:
|
| 13 |
+
# make build # Q4_K_M from llmfan46 Heretic v2 GGUF (qwen35-stamped, loads today)
|
| 14 |
+
# make build QUANT=Q3_K_M # smaller quant (Heretic repo has no Q3_K_S)
|
| 15 |
+
# make build GGUF_PATH=~/models/Qwen3.6-27B-uncensored-heretic-v2-Q4_K_M.gguf
|
| 16 |
# make load-bundle # this repo's bundled GGUF -> local Ollama tag (smudge LFS if needed)
|
| 17 |
# make smoke
|
| 18 |
# make check
|
|
|
|
| 37 |
@echo " GGUF_PATH=$(GGUF_PATH)"
|
| 38 |
endif
|
| 39 |
|
| 40 |
+
build: ## Download qwen35-stamped Heretic v2 GGUF from llmfan46 and run 'ollama create' (loads today).
|
| 41 |
GGUF_PATH=$(GGUF_PATH) TAG=$(TAG) ./scripts/build.sh $(QUANT)
|
| 42 |
|
| 43 |
load-bundle: ## Load THIS repo's bundled GGUF into a local Ollama tag (smudge LFS + ollama create).
|
|
|
|
| 69 |
|
| 70 |
clean: ## Remove local GGUF copies and ephemeral caches in this repo.
|
| 71 |
@echo "[*] removing local GGUFs and ephemeral caches in $$PWD"
|
| 72 |
+
@rm -f ./Qwen3.6-27B-*.gguf ./mmproj-*.gguf ./Thanatos-27B.*.qwen[0-9]*.gguf ./Thanatos-27B-Heretic.*.qwen[0-9]*.gguf
|
| 73 |
@rm -rf ./.cache __pycache__ examples/__pycache__
|
| 74 |
@echo "[+] clean"
|
|
|
|
|