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
Drop config.json to remove HF's auto-detected qwen3_5 tag
Browse filesHF auto-derives a `qwen3_5` tag from `config.json`'s `"model_type":
"qwen3_5"` / `"architectures": ["Qwen3_5ForConditionalGeneration"]`
declarations. The other safetensors files (15 shards + tokenizer +
index + generation/preprocessor/video_preprocessor configs +
chat_template.jinja) stay on HF, but `AutoModelForCausalLM.from_pretrained(
"FoolDev/Thanatos-27B")` stops working without a config — users
who want the transformers entry point now need to point at
`Qwen/Qwen3.6-27B` for the config, or carry one alongside.
Re-add config.json (`hf upload Qwen/Qwen3.6-27B config.json ...`)
to restore both the auto-tag and the from_pretrained path.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- config.json +0 -140
|
@@ -1,140 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"architectures": [
|
| 3 |
-
"Qwen3_5ForConditionalGeneration"
|
| 4 |
-
],
|
| 5 |
-
"image_token_id": 248056,
|
| 6 |
-
"language_model_only": false,
|
| 7 |
-
"model_type": "qwen3_5",
|
| 8 |
-
"text_config": {
|
| 9 |
-
"attention_bias": false,
|
| 10 |
-
"attention_dropout": 0.0,
|
| 11 |
-
"attn_output_gate": true,
|
| 12 |
-
"bos_token_id": 248044,
|
| 13 |
-
"dtype": "bfloat16",
|
| 14 |
-
"eos_token_id": 248044,
|
| 15 |
-
"full_attention_interval": 4,
|
| 16 |
-
"head_dim": 256,
|
| 17 |
-
"hidden_act": "silu",
|
| 18 |
-
"hidden_size": 5120,
|
| 19 |
-
"initializer_range": 0.02,
|
| 20 |
-
"intermediate_size": 17408,
|
| 21 |
-
"layer_types": [
|
| 22 |
-
"linear_attention",
|
| 23 |
-
"linear_attention",
|
| 24 |
-
"linear_attention",
|
| 25 |
-
"full_attention",
|
| 26 |
-
"linear_attention",
|
| 27 |
-
"linear_attention",
|
| 28 |
-
"linear_attention",
|
| 29 |
-
"full_attention",
|
| 30 |
-
"linear_attention",
|
| 31 |
-
"linear_attention",
|
| 32 |
-
"linear_attention",
|
| 33 |
-
"full_attention",
|
| 34 |
-
"linear_attention",
|
| 35 |
-
"linear_attention",
|
| 36 |
-
"linear_attention",
|
| 37 |
-
"full_attention",
|
| 38 |
-
"linear_attention",
|
| 39 |
-
"linear_attention",
|
| 40 |
-
"linear_attention",
|
| 41 |
-
"full_attention",
|
| 42 |
-
"linear_attention",
|
| 43 |
-
"linear_attention",
|
| 44 |
-
"linear_attention",
|
| 45 |
-
"full_attention",
|
| 46 |
-
"linear_attention",
|
| 47 |
-
"linear_attention",
|
| 48 |
-
"linear_attention",
|
| 49 |
-
"full_attention",
|
| 50 |
-
"linear_attention",
|
| 51 |
-
"linear_attention",
|
| 52 |
-
"linear_attention",
|
| 53 |
-
"full_attention",
|
| 54 |
-
"linear_attention",
|
| 55 |
-
"linear_attention",
|
| 56 |
-
"linear_attention",
|
| 57 |
-
"full_attention",
|
| 58 |
-
"linear_attention",
|
| 59 |
-
"linear_attention",
|
| 60 |
-
"linear_attention",
|
| 61 |
-
"full_attention",
|
| 62 |
-
"linear_attention",
|
| 63 |
-
"linear_attention",
|
| 64 |
-
"linear_attention",
|
| 65 |
-
"full_attention",
|
| 66 |
-
"linear_attention",
|
| 67 |
-
"linear_attention",
|
| 68 |
-
"linear_attention",
|
| 69 |
-
"full_attention",
|
| 70 |
-
"linear_attention",
|
| 71 |
-
"linear_attention",
|
| 72 |
-
"linear_attention",
|
| 73 |
-
"full_attention",
|
| 74 |
-
"linear_attention",
|
| 75 |
-
"linear_attention",
|
| 76 |
-
"linear_attention",
|
| 77 |
-
"full_attention",
|
| 78 |
-
"linear_attention",
|
| 79 |
-
"linear_attention",
|
| 80 |
-
"linear_attention",
|
| 81 |
-
"full_attention",
|
| 82 |
-
"linear_attention",
|
| 83 |
-
"linear_attention",
|
| 84 |
-
"linear_attention",
|
| 85 |
-
"full_attention"
|
| 86 |
-
],
|
| 87 |
-
"linear_conv_kernel_dim": 4,
|
| 88 |
-
"linear_key_head_dim": 128,
|
| 89 |
-
"linear_num_key_heads": 16,
|
| 90 |
-
"linear_num_value_heads": 48,
|
| 91 |
-
"linear_value_head_dim": 128,
|
| 92 |
-
"mamba_ssm_dtype": "float32",
|
| 93 |
-
"max_position_embeddings": 262144,
|
| 94 |
-
"model_type": "qwen3_5_text",
|
| 95 |
-
"mtp_num_hidden_layers": 1,
|
| 96 |
-
"mtp_use_dedicated_embeddings": false,
|
| 97 |
-
"num_attention_heads": 24,
|
| 98 |
-
"num_hidden_layers": 64,
|
| 99 |
-
"num_key_value_heads": 4,
|
| 100 |
-
"output_gate_type": "swish",
|
| 101 |
-
"pad_token_id": null,
|
| 102 |
-
"partial_rotary_factor": 0.25,
|
| 103 |
-
"rms_norm_eps": 1e-06,
|
| 104 |
-
"rope_parameters": {
|
| 105 |
-
"mrope_interleaved": true,
|
| 106 |
-
"mrope_section": [
|
| 107 |
-
11,
|
| 108 |
-
11,
|
| 109 |
-
10
|
| 110 |
-
],
|
| 111 |
-
"partial_rotary_factor": 0.25,
|
| 112 |
-
"rope_theta": 10000000,
|
| 113 |
-
"rope_type": "default"
|
| 114 |
-
},
|
| 115 |
-
"tie_word_embeddings": false,
|
| 116 |
-
"use_cache": true,
|
| 117 |
-
"vocab_size": 248320
|
| 118 |
-
},
|
| 119 |
-
"tie_word_embeddings": false,
|
| 120 |
-
"transformers_version": "4.57.1",
|
| 121 |
-
"video_token_id": 248057,
|
| 122 |
-
"vision_config": {
|
| 123 |
-
"deepstack_visual_indexes": [],
|
| 124 |
-
"depth": 27,
|
| 125 |
-
"hidden_act": "gelu_pytorch_tanh",
|
| 126 |
-
"hidden_size": 1152,
|
| 127 |
-
"in_channels": 3,
|
| 128 |
-
"initializer_range": 0.02,
|
| 129 |
-
"intermediate_size": 4304,
|
| 130 |
-
"model_type": "qwen3_5",
|
| 131 |
-
"num_heads": 16,
|
| 132 |
-
"num_position_embeddings": 2304,
|
| 133 |
-
"out_hidden_size": 5120,
|
| 134 |
-
"patch_size": 16,
|
| 135 |
-
"spatial_merge_size": 2,
|
| 136 |
-
"temporal_patch_size": 2
|
| 137 |
-
},
|
| 138 |
-
"vision_end_token_id": 248054,
|
| 139 |
-
"vision_start_token_id": 248053
|
| 140 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|