Instructions to use AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16 # Run inference directly in the terminal: llama cli -hf AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16 # Run inference directly in the terminal: llama cli -hf AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama cli -hf AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16
Use Docker
docker model run hf.co/AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16
- Llama new
- LM Studio
- Jan
- vLLM
How to use AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF", "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/AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16
- Ollama
How to use AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF with Ollama:
ollama run hf.co/AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16
- Unsloth Desktop
- Pi
How to use AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF with Docker Model Runner:
docker model run hf.co/AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16
- Lemonade
How to use AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16
Run and chat with the model
lemonade run user.Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF-F16
List all available models
lemonade list
- Hermes Agent
How to use AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16
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:9931/v1 hermes config set model.default AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF:F16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Qwen3.8 40B Ultimate Heretic: Q8 attention, Q4_K the rest (GGUF)
One GGUF of DavidAU/Qwen3.8-40B-Ultimate-Heretic-Uncensored (build 1, the one with instruct modes). The base is Qwen3.8-27B expanded to 96 layers, plus one MTP layer.
- Kept at Q8_0: attention (
attn_*), the linear-attention/SSM blocks (ssm_*), the MTP layer (blk.96), embeddings and output. - Dense FFNs, at Q4_K_M's usual mix:
ffn_gateandffn_upare Q4_K;ffn_downis Q6_K in 48 layers and Q4_K in the other 48.
The file is 30.3 GB and fits across two 20 GB cards with 64K context.
Files
| file | size |
|---|---|
Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K.gguf |
30.3 GB |
mmproj-Qwen3.8-40B-F16.gguf |
vision projector, F16 |
How it was made
Converted from DavidAU's BF16 safetensors to a BF16 GGUF, then quantized with llama.cpp 54cde7106 as Q4_K_M with Q8_0 overrides. You need that build or newer: older converters can't handle this architecture (qwen35). The types listed above are read from the shipped file. This command should reproduce them, but it hasn't been rerun, because the BF16 source has since been deleted:
llama-quantize --tensor-type "attn_.*=q8_0" --tensor-type "ssm_.*=q8_0" --tensor-type "blk\.96\..*=q8_0" \
--token-embedding-type q8_0 --output-tensor-type q8_0 q40-bf16.gguf Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K.gguf Q4_K_M
No imatrix.
Quality
Perplexity on wikitext-2 (test set, 40 chunks of 512 tokens): 6.214 ± 0.146. The BF16 source was deleted before we measured, so there's no BF16 number to compare against.
Speed (measured)
Two RTX 3080 20 GB, no P2P, llama.cpp 54cde7106:
| setup | generation tok/s |
|---|---|
-sm layer |
22.1 |
-sm tensor |
30.5 |
-sm tensor + MTP (--spec-type draft-mtp), code |
about 60 |
| same, prose | about 47 |
Prompt processing at 2048 tokens: 950-1000 tok/s. The draft is accepted about 85% of the time.
Running it
llama-server -m Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K.gguf -ngl 99 -sm tensor -c 65536 -fa on \
--spec-type draft-mtp --jinja --mmproj mmproj-Qwen3.8-40B-F16.gguf --no-mmproj-offload
- Context: 64K used 17.8 and 16.9 GB on the two cards; 128K ran out of memory on the first request.
--no-mmproj-offload: with-sm tensor, loading the projector onto the GPU aborts, so vision runs on the CPU.- Single 24 GB card: the file doesn't fit. Use
-nglto put part of the 96 layers on the GPU (untested by us). - Thinking off:
enable_thinking=falseisn't enough, because the model reopens<think>on its own. Ban the token withlogit_bias(token 248068 is<think>; also ban</think>). A per-requestthinking_budget_tokens(for example 200) works well as a middle setting.
Credits and license
- Base: Qwen3.8-27B (Qwen team), Apache-2.0.
- 40B expansion and Heretic abliteration: DavidAU.
- llama.cpp.
- This quant: AnubysIII (Sovereign Games LLC). Apache-2.0.
This model has had its refusals removed. You are responsible for how you use it.
- Downloads last month
- 182
We're not able to determine the quantization variants.
Model tree for AnubysIII/Qwen3.8-40B-Ultimate-Heretic-Q8attn-Q4K-GGUF
Base model
Qwen/Qwen3.8-27B