Instructions to use ubergarm/Qwen3.5-397B-A17B-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 ubergarm/Qwen3.5-397B-A17B-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 ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
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 ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
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 ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
Use Docker
docker model run hf.co/ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use ubergarm/Qwen3.5-397B-A17B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ubergarm/Qwen3.5-397B-A17B-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": "ubergarm/Qwen3.5-397B-A17B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
- Ollama
How to use ubergarm/Qwen3.5-397B-A17B-GGUF with Ollama:
ollama run hf.co/ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
- Unsloth Desktop
- Pi
How to use ubergarm/Qwen3.5-397B-A17B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ubergarm/Qwen3.5-397B-A17B-GGUF with Docker Model Runner:
docker model run hf.co/ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
- Lemonade
How to use ubergarm/Qwen3.5-397B-A17B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
Run and chat with the model
lemonade run user.Qwen3.5-397B-A17B-GGUF-Q2_K
List all available models
lemonade list
- Hermes Agent
How to use ubergarm/Qwen3.5-397B-A17B-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 ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
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 ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ubergarm/Qwen3.5-397B-A17B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K
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:8080/v1 \ --custom-model-id "ubergarm/Qwen3.5-397B-A17B-GGUF:Q2_K" \ --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"
add IQ2_KL and IQ4_KSS
Browse files- README.md +108 -0
- images/perplexity.png +2 -2
README.md
CHANGED
|
@@ -35,6 +35,60 @@ These two are just test quants for baseline perplexity comparison and not availa
|
|
| 35 |
|
| 36 |
*NOTE*: The first split file is much smaller on purpose to only contain metadata, its fine!
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
## Q3_K 179.97 GiB (3.90 BPW)
|
| 39 |
PPL over 580 chunks for n_ctx=512 = 3.5409 +/- 0.01924
|
| 40 |
|
|
@@ -62,6 +116,60 @@ This is a *custom* mainline llama.cpp compatible MoE optimized mix similar to Ae
|
|
| 62 |
|
| 63 |
</details>
|
| 64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
## smol-IQ2_XS 113.41 GiB (2.46 BPW)
|
| 66 |
PPL over 580 chunks for n_ctx=512 = 3.8717 +/- 0.02131
|
| 67 |
|
|
|
|
| 35 |
|
| 36 |
*NOTE*: The first split file is much smaller on purpose to only contain metadata, its fine!
|
| 37 |
|
| 38 |
+
## IQ4_KSS 194.058 GiB (4.206 BPW)
|
| 39 |
+
PPL over 580 chunks for n_ctx=512 = 3.5102 +/- 0.01896
|
| 40 |
+
|
| 41 |
+
<details>
|
| 42 |
+
|
| 43 |
+
<summary>👈 Secret Recipe</summary>
|
| 44 |
+
|
| 45 |
+
```bash
|
| 46 |
+
#!/usr/bin/env bash
|
| 47 |
+
|
| 48 |
+
custom="
|
| 49 |
+
# 60 Repeating Layers [0-59]
|
| 50 |
+
|
| 51 |
+
## Gated Attention/Delta Net [Blended 0-59]
|
| 52 |
+
blk\..*\.attn_gate\.weight=q8_0
|
| 53 |
+
blk\..*\.attn_qkv\.weight=q8_0
|
| 54 |
+
blk\..*\.attn_output\.weight=q8_0
|
| 55 |
+
blk\..*\.attn_q\.weight=q8_0
|
| 56 |
+
blk\..*\.attn_k\.weight=q8_0
|
| 57 |
+
blk\..*\.attn_v\.weight=q8_0
|
| 58 |
+
blk\..*\.ssm_alpha\.weight=q8_0
|
| 59 |
+
blk\..*\.ssm_beta\.weight=q8_0
|
| 60 |
+
blk\..*\.ssm_out\.weight=q8_0
|
| 61 |
+
|
| 62 |
+
# Shared Expert Layers [0-59]
|
| 63 |
+
blk\..*\.ffn_down_shexp\.weight=q8_0
|
| 64 |
+
blk\..*\.ffn_(gate|up)_shexp\.weight=q8_0
|
| 65 |
+
|
| 66 |
+
# Routed Experts Layers [0-59]
|
| 67 |
+
blk\..*\.ffn_down_exps\.weight=iq4_ks
|
| 68 |
+
blk\..*\.ffn_(gate|up)_exps\.weight=iq4_kss
|
| 69 |
+
|
| 70 |
+
# Non-Repeating Layers
|
| 71 |
+
token_embd\.weight=iq6_k
|
| 72 |
+
output\.weight=iq6_k
|
| 73 |
+
"
|
| 74 |
+
|
| 75 |
+
custom=$(
|
| 76 |
+
echo "$custom" | grep -v '^#' | \
|
| 77 |
+
sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
|
| 78 |
+
)
|
| 79 |
+
|
| 80 |
+
numactl -N ${SOCKET} -m ${SOCKET} \
|
| 81 |
+
./build/bin/llama-quantize \
|
| 82 |
+
--custom-q "$custom" \
|
| 83 |
+
--imatrix /mnt/data/models/ubergarm/Qwen3.5-397B-A17B-GGUF/imatrix-Qwen3.5-397B-A17B-BF16.dat \
|
| 84 |
+
/mnt/data/models/ubergarm/Qwen3.5-397B-A17B-GGUF/Qwen3.5-397B-A17B-BF16-00001-of-00017.gguf \
|
| 85 |
+
/mnt/data/models/ubergarm/Qwen3.5-397B-A17B-GGUF/Qwen3.5-397B-A17B-IQ4_KSS.gguf \
|
| 86 |
+
IQ4_KSS \
|
| 87 |
+
128
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
</details>
|
| 91 |
+
|
| 92 |
## Q3_K 179.97 GiB (3.90 BPW)
|
| 93 |
PPL over 580 chunks for n_ctx=512 = 3.5409 +/- 0.01924
|
| 94 |
|
|
|
|
| 116 |
|
| 117 |
</details>
|
| 118 |
|
| 119 |
+
## IQ2_KL 138.142 GiB (2.994 BPW)
|
| 120 |
+
PPL over 580 chunks for n_ctx=512 = 3.6536 +/- 0.02000
|
| 121 |
+
|
| 122 |
+
<details>
|
| 123 |
+
|
| 124 |
+
<summary>👈 Secret Recipe</summary>
|
| 125 |
+
|
| 126 |
+
```bash
|
| 127 |
+
#!/usr/bin/env bash
|
| 128 |
+
|
| 129 |
+
custom="
|
| 130 |
+
# 60 Repeating Layers [0-59]
|
| 131 |
+
|
| 132 |
+
## Gated Attention/Delta Net [Blended 0-59]
|
| 133 |
+
blk\..*\.attn_gate\.weight=q8_0
|
| 134 |
+
blk\..*\.attn_qkv\.weight=q8_0
|
| 135 |
+
blk\..*\.attn_output\.weight=q8_0
|
| 136 |
+
blk\..*\.attn_q\.weight=q8_0
|
| 137 |
+
blk\..*\.attn_k\.weight=q8_0
|
| 138 |
+
blk\..*\.attn_v\.weight=q8_0
|
| 139 |
+
blk\..*\.ssm_alpha\.weight=q8_0
|
| 140 |
+
blk\..*\.ssm_beta\.weight=q8_0
|
| 141 |
+
blk\..*\.ssm_out\.weight=q8_0
|
| 142 |
+
|
| 143 |
+
# Shared Expert Layers [0-59]
|
| 144 |
+
blk\..*\.ffn_down_shexp\.weight=q8_0
|
| 145 |
+
blk\..*\.ffn_(gate|up)_shexp\.weight=q8_0
|
| 146 |
+
|
| 147 |
+
# Routed Experts Layers [0-59]
|
| 148 |
+
blk\..*\.ffn_down_exps\.weight=iq3_ks
|
| 149 |
+
blk\..*\.ffn_(gate|up)_exps\.weight=iq2_kl
|
| 150 |
+
|
| 151 |
+
# Non-Repeating Layers
|
| 152 |
+
token_embd\.weight=iq4_k
|
| 153 |
+
output\.weight=iq6_k
|
| 154 |
+
"
|
| 155 |
+
|
| 156 |
+
custom=$(
|
| 157 |
+
echo "$custom" | grep -v '^#' | \
|
| 158 |
+
sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
|
| 159 |
+
)
|
| 160 |
+
|
| 161 |
+
numactl -N ${SOCKET} -m ${SOCKET} \
|
| 162 |
+
./build/bin/llama-quantize \
|
| 163 |
+
--custom-q "$custom" \
|
| 164 |
+
--imatrix /mnt/data/models/ubergarm/Qwen3.5-397B-A17B-GGUF/imatrix-Qwen3.5-397B-A17B-BF16.dat \
|
| 165 |
+
/mnt/data/models/ubergarm/Qwen3.5-397B-A17B-GGUF/Qwen3.5-397B-A17B-BF16-00001-of-00017.gguf \
|
| 166 |
+
/mnt/data/models/ubergarm/Qwen3.5-397B-A17B-GGUF/Qwen3.5-397B-A17B-IQ2_KL.gguf \
|
| 167 |
+
IQ2_KL \
|
| 168 |
+
128
|
| 169 |
+
```
|
| 170 |
+
|
| 171 |
+
</details>
|
| 172 |
+
|
| 173 |
## smol-IQ2_XS 113.41 GiB (2.46 BPW)
|
| 174 |
PPL over 580 chunks for n_ctx=512 = 3.8717 +/- 0.02131
|
| 175 |
|
images/perplexity.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|