Instructions to use kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-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 kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-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 kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0 # Run inference directly in the terminal: llama cli -hf kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
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 kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
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 kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
Use Docker
docker model run hf.co/kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
- LM Studio
- Jan
- vLLM
How to use kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-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": "kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
- Ollama
How to use kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF with Ollama:
ollama run hf.co/kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
- Unsloth Desktop
- Pi
How to use kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
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": "kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF with Docker Model Runner:
docker model run hf.co/kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
- Lemonade
How to use kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
Run and chat with the model
lemonade run user.Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF-Q4_0
List all available models
lemonade list
- Hermes Agent
How to use kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-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 kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
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 kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0
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 "kingjones777/Qwen3.8-Flash-Next-ROCmFP4-STRIX-GGUF:Q4_0" \ --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"
Compatible llama.cpp
Sorry if this is a stupid question, but I am having a tough time finding the appropriate llama.cpp ROCmFPX fork I can patch with qwen4exp. I use Kyuz0's toolboxes, where he has a ROCmFPX toolbox (built from charlie12345's fork) but I haven't had success patching it to support qwen4exp. Any tips on which fork you used would be greatly appreciated. Thanks, BTW. I'm excited to try this model!
Not a stupid question at all β you're on the right fork already, which is the good news. Here's exactly what I did.
Base: https://github.com/charlie12345/ROCmFPX.git at commit d3ca537 ("Merge pull request #59 from charlie12345/fix/spec-replay-livelock"). Same fork Kyuz0's ROCmFPX toolbox is built from.
Donor: upstream ggml-org/llama.cpp, branch pr27742, at 035e227 β "llama: hold the qwen4exp indexer cache in a new llama_memory_hybrid_idx". That commit message is the hint to the thing that trips most people up.
Why naive patching fails: qwen4exp isn't just a new arch file. It needs a whole new memory class for the Qwen Sparse Attention indexer. If you only copy the obvious arch bits you'll get a tree that compiles but can't load. The merge touched 26 files; the ones people miss are the new ones:
src/llama-memory-hybrid-idx.cpp <-- new, the QSA indexer cache
src/llama-memory-hybrid-idx.h <-- new
src/models/qwen4exp.cpp <-- new
conversion/qwen4exp.py <-- new
src/CMakeLists.txt <-- MUST add the new .cpp files or they never build
Plus modifications to llama-arch.{cpp,h}, llama-batch.{cpp,h}, llama-hparams.{cpp,h}, llama-kv-cache.{cpp,h}, llama-model{,-loader,-saver}.{cpp,h}, llama-quant.cpp, models/models.h, gguf-py/gguf/{constants,gguf_writer,tensor_mapping}.py, conversion/init.py, and tests/test-llama-archs.cpp.
I did it as a real merge of pr27742 into d3ca537 and resolved the conflicts by hand β 26 files' worth. Cherry-picking individual files will bite you because the batch/kv-cache changes are interdependent.
Build:
-DGGML_HIP=ON -DGPU_TARGETS=gfx1151 -DGGML_NATIVE=ON
If you only want to run my GGUFs, that's all you need. Two things if you go further and convert your own:
The entry point is the conversion/ package, not convert_hf_to_gguf.py β the generic converter rejects Qwen4ExpForConditionalGeneration outright.
The 51B-parameter PLE table will OOM a naive conversion. Mine died twice building a 205 GiB F32 intermediate before I made it cast each shard straight to BF16 and write positionally with per-shard flush. On a 128 GB box you cannot materialise that table.
And a runtime tip that'll save you an afternoon: don't use --no-mmap. The PLE table is a sparse lookup that streams from SSD through the page cache β with mmap only ~63 GiB of the 98 GiB file is ever GPU-resident. Force it into anonymous memory and the cgroup OOM-killer takes the process with nothing in the server log.
Hope you enjoy it β and if you get it running, I'd love to know what pp/gen you see at long context.
Thank you for taking the time to write this up. I've spent the day trying to build llama.cpp correctly, and will keep at it. If I can get it up and running, I'll certainly share my stats.
Let me know if I can help further
Ok, up and running. At 100k context (out of 256k), I am getting ~400 t/s prompt processing and an avg of 19.2t/s. This is a fair bit quicker than my experience with Unsloth's Flash Next Q4_K_XL. To get up and running, I started with Kyuz0's toolbox and built your llama.cpp from https://github.com/kingjones30/ROCmFPX within it. This is my launch command:
toolbox run --container llama-rocm-7.14-rocmfpx sh -c "export HIP_VISIBLE_DEVICES=0; export HSA_ENABLE_SDMA=1; export ROCR_VISIBLE_DEVICES=0; export HSA_OVERRIDE_GFX_VERSION=11.5.1; export LLAMA_CHAT_TEMPLATE_KWARGS='{"reasoning_effort":"medium"}'; home/USERNAME/Documents/AI/ROCmFPX/build/bin/llama-server -m " home/USERNAME/ai-models/Qwen3.8/Flash-Next-ROCmFP4/Qwen3.8-Flash-Next-Q4_0-ROCmFP4-STRIX.gguf" --port 8080 --ctx-size 262144 -ngl 999 --fit off -fa on --host 0.0.0.0 --temp 1.0 --top-p 0.95 --min-p 0.0 --presence-penalty 0.0 --repeat-penalty 1.0 --jinja --verbosity 4"