Instructions to use Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT", filename="mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00001-of-00024.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R # Run inference directly in the terminal: llama-cli -hf Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R # Run inference directly in the terminal: llama-cli -hf Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R
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 Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R # Run inference directly in the terminal: ./llama-cli -hf Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R
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 Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R # Run inference directly in the terminal: ./build/bin/llama-cli -hf Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R
Use Docker
docker model run hf.co/Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R
- LM Studio
- Jan
- Ollama
How to use Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT with Ollama:
ollama run hf.co/Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R
- Unsloth Studio
How to use Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT 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 Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT 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 Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT to start chatting
- Pi
How to use Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R
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": "Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R
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 Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R
Run Hermes
hermes
- Atomic Chat new
- Docker Model Runner
How to use Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT with Docker Model Runner:
docker model run hf.co/Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R
- Lemonade
How to use Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Thireus/mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT:Q2_K_R
Run and chat with the model
lemonade run user.mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_SPLIT-Q2_K_R
List all available models
lemonade list
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00002-of-00024.gguf:644a41f5a8f1dde5ecdea78342e5e593912c87e9bba32bc59121515c431fe7d9:output.weight:shape=(4096, 248320):dtype=iq2_k_r4:elements=1017118720:bytes=301957120 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00003-of-00024.gguf:03cb436568cd2319a67be3dfa791aec3646b1a762550e9072454b113676f2490:token_embd.weight:shape=(4096, 248320):dtype=iq2_k:elements=1017118720:bytes=301957120 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00004-of-00024.gguf:4666227b3d00494c9bd510d4a620f7fb23097435e6c4501a475c8fbc2c7a6484:blk.60.attn_q.weight:shape=(4096, 16384):dtype=iq2_k_r4:elements=67108864:bytes=19922944 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00005-of-00024.gguf:e660dfb6da321d01725f18b8d2194aae2814b47a26c474619c72c1b0b7f47745:blk.60.nextn.eh_proj.weight:shape=(8192, 4096):dtype=iq2_k_r4:elements=33554432:bytes=9961472 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00006-of-00024.gguf:4eb5d3303e3c802a15dae4a1cfa24a5d47dcaad899afaa49ffbce4916b0976fa:blk.60.attn_output.weight:shape=(8192, 4096):dtype=iq2_k_r4:elements=33554432:bytes=9961472 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00007-of-00024.gguf:2439e05c75a111d0cf04c507204a6de067cbb82098454d152c7fb9bd73241df0:output_norm.weight:shape=(4096,):dtype=f32:elements=4096:bytes=16384 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00008-of-00024.gguf:1a383841b9c1a14f4526917d4ed05710344fc5583e4c826e0ad427618293c9eb:blk.60.attn_norm.weight:shape=(4096,):dtype=f32:elements=4096:bytes=16384 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00009-of-00024.gguf:c71b64d5a540706f6c944523b786134f12ac53c0dda014016135c29794d831e3:blk.60.ffn_down_exps.weight:shape=(1024, 4096, 512):dtype=iq2_k_r4:elements=2147483648:bytes=637534208 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00010-of-00024.gguf:9165300e8699d1eef144938c62867d1e6a4ccc6c2f7a6d430b0160e30175197a:blk.60.ffn_gate_exps.weight:shape=(4096, 1024, 512):dtype=iq2_k_r4:elements=2147483648:bytes=637534208 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00011-of-00024.gguf:ba837961a47fd28cf8ceef7ad5c9927c8663b1e007639f04804978530be0c14e:blk.60.ffn_up_exps.weight:shape=(4096, 1024, 512):dtype=iq2_k_r4:elements=2147483648:bytes=637534208 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00012-of-00024.gguf:5700fd87103c9525804cdcc87f8d25f5c2153bf1ec5db300de3abe011afc4a37:blk.60.ffn_gate_inp.weight:shape=(4096, 512):dtype=bf16:elements=2097152:bytes=4194304 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00013-of-00024.gguf:7d4389c1c37d1f499a6186f8dc9caa9638665852eb3e7caa68ab330855767c6e:blk.60.ffn_down_shexp.weight:shape=(1024, 4096):dtype=iq2_k_r4:elements=4194304:bytes=1245184 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00014-of-00024.gguf:ffe287bfa35cfedb1bb562b7314d15242392ee0d10c4dc0cf3f9ca3687065e37:blk.60.ffn_gate_shexp.weight:shape=(4096, 1024):dtype=iq2_k_r4:elements=4194304:bytes=1245184 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00015-of-00024.gguf:04421fe3ff7ae4717acbff6e065b77c62af1111b9e70cd2152dcc64b705b3b9b:blk.60.ffn_up_shexp.weight:shape=(4096, 1024):dtype=iq2_k_r4:elements=4194304:bytes=1245184 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00016-of-00024.gguf:da01c2854a2b2689da9016560432916f40907d53b4383facc193b030690d117b:blk.60.ffn_gate_inp_shexp.weight:shape=(4096,):dtype=bf16:elements=4096:bytes=8192 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00017-of-00024.gguf:31c12485ad7302732e14c61468643b9646c5101ef86ce09416a040dbcc73ab28:blk.60.post_attention_norm.weight:shape=(4096,):dtype=f32:elements=4096:bytes=16384 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00018-of-00024.gguf:b1dd08c4fa66cb1ef4b884ca61d1f39ae308a21aa18f5bfb5cdb3e4ebbd3ed30:blk.60.attn_k_norm.weight:shape=(256,):dtype=f32:elements=256:bytes=1024 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00019-of-00024.gguf:1abc9d9293b7ca270caa4add9e488c44e13bfd4f7b2ca6b287b135cbba458930:blk.60.attn_k.weight:shape=(4096, 512):dtype=iq2_k_r4:elements=2097152:bytes=622592 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00020-of-00024.gguf:13d11323507a6ae7fcc950d01198c78d26d71b589c25c7489ee75d2679023419:blk.60.attn_q_norm.weight:shape=(256,):dtype=f32:elements=256:bytes=1024 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00021-of-00024.gguf:d01f9837e820276a2fc274763cc22a2e48b75b7979434eb18a7bac28f899c455:blk.60.attn_v.weight:shape=(4096, 512):dtype=iq2_k_r4:elements=2097152:bytes=622592 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00022-of-00024.gguf:5f9192fcd24af94df159de8e20ac22c4c26e37558e27b7adc86322abae79ed08:blk.60.nextn.shared_head_norm.weight:shape=(4096,):dtype=f32:elements=4096:bytes=16384 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00023-of-00024.gguf:64ef3cc4d66ab84b84ec15a3a3f37257914b73ab1446bb4d85484bc7d089ba13:blk.60.nextn.enorm.weight:shape=(4096,):dtype=f32:elements=4096:bytes=16384 | |
| mtp-Qwen3.5-397B-A17B-THIREUS-IQ2_K_R4-SPECIAL_TENSOR-00024-of-00024.gguf:3770f6f1db4ce7763dcf6745cfe274c59d7e4d4cdc1031ce6c186e015dd95da7:blk.60.nextn.hnorm.weight:shape=(4096,):dtype=f32:elements=4096:bytes=16384 | |