Instructions to use alesha-pro/Hy4-flash-Uncensored-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 alesha-pro/Hy4-flash-Uncensored-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 alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS # Run inference directly in the terminal: llama cli -hf alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS # Run inference directly in the terminal: llama cli -hf alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS
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 alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS # Run inference directly in the terminal: ./build/bin/llama cli -hf alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS
Use Docker
docker model run hf.co/alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS
- Llama new
- LM Studio
- Jan
- vLLM
How to use alesha-pro/Hy4-flash-Uncensored-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "alesha-pro/Hy4-flash-Uncensored-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": "alesha-pro/Hy4-flash-Uncensored-GGUF", "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/alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS
- Ollama
How to use alesha-pro/Hy4-flash-Uncensored-GGUF with Ollama:
ollama run hf.co/alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS
- Unsloth Desktop
- Pi
How to use alesha-pro/Hy4-flash-Uncensored-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS
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": "alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use alesha-pro/Hy4-flash-Uncensored-GGUF with Docker Model Runner:
docker model run hf.co/alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS
- Lemonade
How to use alesha-pro/Hy4-flash-Uncensored-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS
Run and chat with the model
lemonade run user.Hy4-flash-Uncensored-GGUF-IQ2_XXS
List all available models
lemonade list
- Hermes Agent
How to use alesha-pro/Hy4-flash-Uncensored-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 alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS
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 alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use alesha-pro/Hy4-flash-Uncensored-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS
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 "alesha-pro/Hy4-flash-Uncensored-GGUF:IQ2_XXS" \ --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"
Hy4-flash Uncensored GGUF for 4, 2 or 1 RTX 3090
Tencent's 220B Hy4-flash with the full 262144 token context, image input and MTP, on consumer cards, with a refusal vector that removes most refusals. Runs on my Project Maya branch: alesha-pro/project-maya, branch hy4-flash (docs). Stock llama.cpp does not load it.
| Setup | Decode, tok/s | Prefill, tok/s | RAM |
|---|---|---|---|
| 4x RTX 3090, Q3_K | 176 to 251 | 2947 | about 60 GiB |
| 2x RTX 3090, Q3_K | 70 to 104 | 1225 | 137 GiB |
| 2x RTX 3090, IQ2 | 95 to 123 | 1999 | |
| 1x RTX 3090, Q3_K | 37 to 54 | 1510 | 137 GiB, 78 GiB with Engram on NVMe |
| 1x RTX 3090, IQ2, Engram on NVMe | 54 to 68 | 1184 to 1199 | 45 GiB |
Files
| File | GB | What |
|---|---|---|
Hy4-flash-Q3_K-00001-of-00002.gguf |
86.2 | trunk: experts Q3_K/Q4_K, attention Q8_0, MTP layer Q3_K/Q8_0 |
Hy4-flash-Q3_K-00002-of-00002.gguf |
63.4 | Engram table |
Hy4-flash-IQ2_XXS-00001-of-00002.gguf |
51.1 | the same trunk with IQ2 experts: faster, further from the base |
Hy4-flash-IQ2_XXS-00002-of-00002.gguf |
63.4 | the same Engram table, so each set is complete (stored once) |
mmproj-Hy4-flash-bf16.gguf |
1.04 | vision |
Hy4-flash-refusal-directions.bin |
0.004 | the uncensored vector (HY4F_ABLATE) |
configs/, tokenizer/, routing-profile*.txt, tools/ |
server configs, tokenizer, expert heat, the scripts behind every file |
Get one set of two files: Q3_K (150 GB) or IQ2_XXS (115 GB).
Uncensored
The weights are stock. The vector holds refusal directions for every layer and each of the four hyper-connection streams, and the engine projects them out of the residual stream as it runs. The configs here have it on (HY4F_ABLATE); delete that line for the stock model.
| Held-out refusals, judged by the stock model | Stock | Uncensored |
|---|---|---|
| AdvBench 64 + JailbreakBench 82, thinking off | 139 | 32 |
| AdvBench 24, thinking on | 22 | 3 |
| Harmless requests 64 | 1 | 0 |
Cost: on long text the top token matches the stock model in 85.7% of positions (two stock runs agree on 88.3%), median KL 0.014. Most refusals are gone, not all.
Quality of the quants
Against the 4 card Q3_K run on 512 positions: 2 cards 88.3% same top token, 1 card 88.5% (both inside the noise of the test), IQ2 experts 74 to 76%. AngelSlim report their Q3_K within 0.5 points of BF16 on their suites. No task benchmarks of my own.
Run
git clone -b hy4-flash https://github.com/alesha-pro/project-maya && cd project-maya
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON \
-DCMAKE_CUDA_ARCHITECTURES=86 -DSTRATA_BUILD_TESTS=OFF
cmake --build build -j 24 --target maya-hy4f
# edit the paths in the config, then
python -m serve.server --engine maya --config configs/hy4f-2gpu.json --host 127.0.0.1 --port 18000
OpenAI chat API on /v1. For the IQ2_XXS set put its two files into the config instead. For the NVMe mode (1 card) put the Engram file on NVMe and keep HY4F_ENGRAM_IO=direct, as in hy4f-1gpu-iq2-nvme.json.
What I changed (Tencent Hy License, section 4)
Hy4-flash-Q3_K-00001-of-00002.gguf: AngelSlim's file with the MTP layer (blk.42, 21 tensors) requantized from BF16 to Q3_K/Q8_0/F32 so it fits next to 256K context on 24 GB cards (tools/requant_mtp_q3k.py). Everything else as it was.Hy4-flash-IQ2_XXS-00001-of-00002.gguf: the Q3_K trunk above with the 123 routed expert tensors of layers 1 to 41 copied byte for byte from AtomicChat's IQ2 file (revdc1525fe); nothing requantized (tools/merge_experts_gguf.py).Hy4-flash-Q3_K-00002-of-00002.ggufandHy4-flash-IQ2_XXS-00002-of-00002.gguf: AngelSlim's Engram file, byte for byte.mmproj-Hy4-flash-bf16.gguf: Tencent's vision tower in BF16, converted with AngelSlim's llama.cpp patch.Hy4-flash-refusal-directions.bin,routing-profile*.txt: mine, measured on this model (tools/abliteration/).
Credits
Model: Tencent. Q3_K quantization: AngelSlim. IQ2 experts: AtomicChat. Engine family: Project Maya by mw00 and Peasant Smith, grown out of Strata by Niko1221. GGUF formats and kernels: llama.cpp and ggml.
License
Tencent Hy License, Version 1.0, derived from Apache 2.0 with extra terms for large Model-as-a-Service businesses in section 10.
- Downloads last month
- 2,466
2-bit
Model tree for alesha-pro/Hy4-flash-Uncensored-GGUF
Base model
tencent/Hy4-flash