Instructions to use Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4 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 Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16 # Run inference directly in the terminal: llama cli -hf Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16 # Run inference directly in the terminal: llama cli -hf Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16
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 Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16
Use Docker
docker model run hf.co/Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16
- Llama new
- LM Studio
- Jan
- vLLM
How to use Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4", "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/Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16
- SGLang
How to use Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4 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 "Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4" \ --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": "Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4", "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 "Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4" \ --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": "Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4", "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 Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4 with Ollama:
ollama run hf.co/Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16
- Unsloth Desktop
- Pi
How to use Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16
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": "Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4 with Docker Model Runner:
docker model run hf.co/Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16
- Lemonade
How to use Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16
Run and chat with the model
lemonade run user.Qwen3.8-Flash-Next-heretic-2-ROCMFP4-BF16
List all available models
lemonade list
- Hermes Agent
How to use Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16
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 Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16
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 "Deritak/Qwen3.8-Flash-Next-heretic-2-ROCMFP4:BF16" \ --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"
Update README.md
Browse filesAdding numbers, fix grammar, fix script. [MTP not needed in script as it doesn't seem to help + plus delete other MTP as it doesn't seem to load].
|
@@ -15,7 +15,7 @@ tags:
|
|
| 15 |
|
| 16 |
-- Start Edits --
|
| 17 |
|
| 18 |
-
# The Model was also quantized using ROcmFP4 in a mix to best suit the AMD AI
|
| 19 |
|
| 20 |
To recreate the quantization you need a special branch. Qwen3.8-Flash-Next itself merged into upstream llama.cpp ([ggml-org/llama.cpp#27742](https://github.com/ggml-org/llama.cpp/pull/27742)) - this file still needs this fork for two things upstream doesn't have: the ROCmFPx quant types, and the n-gram table split per head (upstream only reads it joined, which is past what most Vulkan devices accept as a single buffer). Build this branch:
|
| 21 |
|
|
@@ -70,11 +70,14 @@ DEFAULT_QUANT="Q4_0_ROCMFP4" # Fallback quantization type for any unmapped stand
|
|
| 70 |
#!/usr/bin/env bash
|
| 71 |
|
| 72 |
./llama-server --model ./Qwen3.8-Flash-Next-heretic-2-ROCMFP4 \
|
| 73 |
-
--model-draft ./mtp-Qwen3.8-Flash-Next-heretic-2-Q8_0 \
|
| 74 |
--mmproj ./mmproj-Qwen3.8-Flash-Next-heretic-2-BF16.gguf \
|
| 75 |
-
--spec-type draft-mtp --spec-draft-n-max 3 \
|
| 76 |
-ngl 99 --ctx-size 262144 --n-gpu-layers all --temperature 1.0 --top-k 20 --top-p 0.95 --min-p 0 --repeat-penalty 1.0 --host 0.0.0.0 --port 8080
|
| 77 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
-- End Edits --
|
| 80 |
|
|
|
|
| 15 |
|
| 16 |
-- Start Edits --
|
| 17 |
|
| 18 |
+
# The Model was also quantized using ROcmFP4 in a mix to best suit the the AMD AI Max+ PRO 395.
|
| 19 |
|
| 20 |
To recreate the quantization you need a special branch. Qwen3.8-Flash-Next itself merged into upstream llama.cpp ([ggml-org/llama.cpp#27742](https://github.com/ggml-org/llama.cpp/pull/27742)) - this file still needs this fork for two things upstream doesn't have: the ROCmFPx quant types, and the n-gram table split per head (upstream only reads it joined, which is past what most Vulkan devices accept as a single buffer). Build this branch:
|
| 21 |
|
|
|
|
| 70 |
#!/usr/bin/env bash
|
| 71 |
|
| 72 |
./llama-server --model ./Qwen3.8-Flash-Next-heretic-2-ROCMFP4 \
|
|
|
|
| 73 |
--mmproj ./mmproj-Qwen3.8-Flash-Next-heretic-2-BF16.gguf \
|
|
|
|
| 74 |
-ngl 99 --ctx-size 262144 --n-gpu-layers all --temperature 1.0 --top-k 20 --top-p 0.95 --min-p 0 --repeat-penalty 1.0 --host 0.0.0.0 --port 8080
|
| 75 |
```
|
| 76 |
+
I believe I messed up the MTP quant, it is built in, but do not use it.
|
| 77 |
+
I meassured 22.07 tk/s on the AMD AI Max+ PRO 395 with MTP,
|
| 78 |
+
But 31.56 tk/s without MTP on the same hardware.
|
| 79 |
+
I'm not exactly sure why this is, someone can make a community post after reviewing the recreation process and maybe I messed something up.
|
| 80 |
+
But it performs well and has something slightly above 5 bit per weight accuracy overall [I didn't record the numbers and not the room to requantize it.]
|
| 81 |
|
| 82 |
-- End Edits --
|
| 83 |
|