Instructions to use unigilby/Hy3-oQ4e with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use unigilby/Hy3-oQ4e with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("unigilby/Hy3-oQ4e") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use unigilby/Hy3-oQ4e with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "unigilby/Hy3-oQ4e"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "unigilby/Hy3-oQ4e" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use unigilby/Hy3-oQ4e with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "unigilby/Hy3-oQ4e"
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 unigilby/Hy3-oQ4e
Run Hermes
hermes
- OpenClaw new
How to use unigilby/Hy3-oQ4e with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "unigilby/Hy3-oQ4e"
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 "unigilby/Hy3-oQ4e" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- MLX LM
How to use unigilby/Hy3-oQ4e with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "unigilby/Hy3-oQ4e"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "unigilby/Hy3-oQ4e" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "unigilby/Hy3-oQ4e", "messages": [ {"role": "user", "content": "Hello"} ] }'
Hy3-oQ4e
oMLX oQ4e (imatrix-enhanced affine 4-bit, group size 64, sensitivity-driven mixed placements) quantization of tencent/Hy3 (HunYuan V3, 80-layer MoE: 192 routed experts + 1 shared, sigmoid router with expert bias).
- 158 GB (from the 598 GB BF16 source) across 32 safetensors shards.
- imatrix: 128×512-token calibration (876 entries incl. per-expert statistics for all 192 experts), collected by running an 8-bit affine proxy of the model — the BF16 source exceeds 512 GB unified memory, so calibration ran on the half-size proxy and the resulting activation statistics were applied to the BF16→4-bit quantization.
- Sensitivity: data-driven per-layer measurement (uniform 4-bit disk proxy); the most sensitive projections (final layers 76–79, early layers 2–4) receive 5-bit boosts.
- MTP (
num_nextn_predict_layers) weights are stripped; this is a pure decoder checkpoint. - Coherency-verified at temperature 0 (arithmetic, factual recall, code generation, trick-question reasoning, strict format following): 6/6.
Benchmark results (12-category graded suite, thinking mode on)
Graded near-expert across the board on a role-mapped benchmark (coding, QA, sales,
marketing, legal, operations, sysops, devops + clinical/pharma/psych): A in eight
categories, A- in coding/devops/pharma. Single-stream ~25 tok/s, TPOT ~41 ms on an
M3 Ultra (512 GB). Run with reasoning_effort: "high" and the official sampling
(temperature=0.9, top_p=1.0 — greedy decoding degrades the chain-of-thought).
This affine oQ4e clearly beat its MX-float sibling (Hy3-MLX-MXFP4-imatrix) at identical speed: mxfp4's parameter-free E2M1 rounding produces sporadic stray-token garbling in long outputs (corrupted identifiers inside otherwise-correct code and contract text; coding graded C vs this model's A-), while the imatrix-weighted affine fit preserves those precision-critical circuits. If you're choosing between the two, use this one.
Known model-level limitation (both quants, matches Tencent's Hy3-preview notes): weak error recovery in multi-turn tool calling — mid-conversation the model can emit tool calls as plain text without its sentinel tokens. Single-shot tool calls parse fine.
Requirements
model_type: hy_v3 support is not yet merged into mlx-lm — it requires
mlx-lm PR #1211 (adds
mlx_lm/models/hy_v3.py, the hy_v3 tool parsers, and thinking-tag inference).
Apply the PR (or install from its branch) before loading:
from mlx_lm import load, generate
model, tokenizer = load("unigilby/Hy3-oQ4e")
prompt = tokenizer.apply_chat_template(
[{"role": "user", "content": "Hello!"}], add_generation_prompt=True
)
print(generate(model, tokenizer, prompt=prompt, max_tokens=200))
Quantized with oMLX quantize_oq_streaming
(enhanced/imatrix mode) on a Mac Studio M3 Ultra.
- Downloads last month
- 6
4-bit
Model tree for unigilby/Hy3-oQ4e
Base model
tencent/Hy3