Instructions to use Harsha001/Hy4-flash-ROCmFPX 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 Harsha001/Hy4-flash-ROCmFPX 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 Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX # Run inference directly in the terminal: llama cli -hf Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX # Run inference directly in the terminal: llama cli -hf Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX
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 Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX # Run inference directly in the terminal: ./build/bin/llama cli -hf Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX
Use Docker
docker model run hf.co/Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX
- Llama new
- LM Studio
- Jan
- vLLM
How to use Harsha001/Hy4-flash-ROCmFPX with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Harsha001/Hy4-flash-ROCmFPX" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Harsha001/Hy4-flash-ROCmFPX", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX
- Ollama
How to use Harsha001/Hy4-flash-ROCmFPX with Ollama:
ollama run hf.co/Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX
- Unsloth Desktop
- Pi
How to use Harsha001/Hy4-flash-ROCmFPX with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX
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": "Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Harsha001/Hy4-flash-ROCmFPX with Docker Model Runner:
docker model run hf.co/Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX
- Lemonade
How to use Harsha001/Hy4-flash-ROCmFPX with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX
Run and chat with the model
lemonade run user.Hy4-flash-ROCmFPX-Q4_0_STRIX
List all available models
lemonade list
- Hermes Agent
How to use Harsha001/Hy4-flash-ROCmFPX with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX
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 Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Harsha001/Hy4-flash-ROCmFPX with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX
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 "Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX" \ --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"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX# Run inference directly in the terminal:
llama cli -hf Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIXBuild 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 Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX# Run inference directly in the terminal:
./build/bin/llama cli -hf Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIXUse Docker
docker model run hf.co/Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIXHy4-flash ROCmFPX (AMD Strix Halo first)
Hardware-aware GGUF quants of tencent/Hy4-flash, built with the ROCmFPX formats for AMD GPUs. The 4-bit files are sized so the whole GPU part runs fully resident on one AMD Ryzen AI Max+ 395 (Strix Halo, 128 GB, 96 GB set as GPU memory).
Hy4-flash: 220B parameters in total, of which 64B are the Engram lookup table, 12B active per token, 42 layers, 512 experts with top-16 routing. Text only here (the vision encoder and the DFly2 drafter are not included yet).
Files
| File | Weights | GPU part | Engram table (CPU / SSD) | Target |
|---|---|---|---|---|
Q4_0_STRIX/ |
experts Q4_0_ROCMFP4, everything else Q8_0_ROCMFPX | 84.7 GiB | Q4_0, 33 GiB | Strix Halo 128 GB (recommended) |
Q4_0_STRIXFAST/ |
experts Q4_0_ROCMFP4_FAST (faster kernel), rest Q8_0_ROCMFPX | 80.4 GiB | Q4_0, 33 GiB | Strix Halo 128 GB, speed pick |
Each folder holds a split GGUF (parts of at most 45 GB). Point llama.cpp at the -00001-of- file.
How it was made:
- importance matrix from agentic text: coding agent runs, tool calls, function calling, shell and database tasks, rendered with the model's own chat template (tool schemas included). These quants are tuned for agent work, tool calling and coding, not for essays. English first.
- ROCmFPX tensor scales on, token embedding kept at Q8_0.
- the Engram table is only read by row lookups, one row per token, so it does not need GPU memory. Keep it on the CPU
side (
-ot "per_layer_token_embd=CPU"); with mmap it can stay on the SSD.
Running
Hy4-flash support (architecture hy_v4_flash, with ROCmFPX tensor scales) is in the ROCmFPX fork of llama.cpp,
branch hy4-flash. Build it with Vulkan or ROCm/HIP, then for example:
llama-server -m Q4_0_STRIX/Hy4-flash-Q4_0_STRIX-00001-of-00003.gguf \
-ngl 99 -ot "per_layer_token_embd=CPU" -c 65536 --jinja \
--chat-template-kwargs '{"reasoning_effort":"no_think"}'
reasoning_effort takes "high" (thinking, the default) or "no_think".
Every file passed a smoke test before upload. Quality numbers on held-out agentic chats (assistant tokens only) will be added here.
Licence
Tencent Hy License, Version 1.0 (see LICENSE, copied from the original repo). It is derived from Apache 2.0 with
extra commercial terms for large Model-as-a-Service businesses (section 10). All credit for the model goes to Tencent.
- Downloads last month
- 747
4-bit
Model tree for Harsha001/Hy4-flash-ROCmFPX
Base model
tencent/Hy4-flash
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX# Run inference directly in the terminal: llama cli -hf Harsha001/Hy4-flash-ROCmFPX:Q4_0_STRIX