Instructions to use JANGQ-AI/Hy3-JANG_2K-MTP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use JANGQ-AI/Hy3-JANG_2K-MTP 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("JANGQ-AI/Hy3-JANG_2K-MTP") 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 JANGQ-AI/Hy3-JANG_2K-MTP with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "JANGQ-AI/Hy3-JANG_2K-MTP"
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": "JANGQ-AI/Hy3-JANG_2K-MTP" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use JANGQ-AI/Hy3-JANG_2K-MTP 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 "JANGQ-AI/Hy3-JANG_2K-MTP"
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 JANGQ-AI/Hy3-JANG_2K-MTP
Run Hermes
hermes
- OpenClaw new
How to use JANGQ-AI/Hy3-JANG_2K-MTP with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "JANGQ-AI/Hy3-JANG_2K-MTP"
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 "JANGQ-AI/Hy3-JANG_2K-MTP" \ --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 JANGQ-AI/Hy3-JANG_2K-MTP with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "JANGQ-AI/Hy3-JANG_2K-MTP"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "JANGQ-AI/Hy3-JANG_2K-MTP" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JANGQ-AI/Hy3-JANG_2K-MTP", "messages": [ {"role": "user", "content": "Hello"} ] }'

Hy3-JANG_2K-MTP
Quantized tencent/Hy3 for Apple Silicon MLX / JANG runtimes — a 295B-total / 21B-active text MoE, packed to ~98 GiB with the native Multi-Token-Prediction (MTP) head preserved.
| Source | tencent/Hy3 |
| License | other — inherits the upstream Tencent Hunyuan Community License |
| Architecture | hy_v3 (HYV3ForCausalLM), text-only |
| Parameters | 295B total / 21B active per token |
| Format | JANG_2K (mixed-affine), routed experts avg 2.33-bit |
| Bundle size | 105.28 GB (98.05 GiB), 23 shards, 2,918 tensor keys |
| MTP | num_nextn_predict_layers = 1 — speculative-decoding head preserved |
| Context | 262,144 tokens |
What this is
Hy3-JANG_2K-MTP is a JANG mixed-affine quantization of Tencent's Hy3 dense-MoE. It targets Apple Silicon runtimes (MLX / vMLX) and keeps the model's native MTP layer in the bundle so a compatible engine can run next-token speculative decoding. The 2K profile spends an extra bit on the routed down_proj (3-bit vs the 2-bit gate/up), which cleans up the sampling tail relative to a uniform 2-bit pack.
Quantization (JANG_2K)
| Tensor family | Policy |
|---|---|
Routed expert gate_proj / up_proj |
affine 2-bit, group size 128 |
Routed expert down_proj |
affine 3-bit, group size 128 |
Attention q/k/v/o |
affine 8-bit |
| Shared expert | affine 8-bit |
| Dense layer-0 MLP | affine 8-bit |
embed_tokens |
affine 6-bit |
lm_head |
affine 8-bit |
| RMSNorms, router gate, expert bias | 16-bit passthrough |
| MTP matmuls | affine 8-bit |
Routed-expert effective average: 2.33 bit. AWQ scaling is disabled for this bundle (measured negligible on Hy3).
Architecture
Hy3 is a text-only dense-causal-GQA MoE — not MLA, not SSM, not sliding-window, not a VLM.
- 80 decoder layers,
hidden_size4096 - GQA: 64 attention heads / 8 KV heads,
head_dim128, QK-norm - RoPE
default,rope_theta11,158,840,max_position_embeddings262,144 - MoE: 192 routed experts, top-8, sigmoid router + expert-correction bias,
route_norm,router_scaling_factor2.826, 1 shared expert,first_k_dense_replace1 - MTP: 1 next-token-prediction layer preserved (
num_nextn_predict_layers = 1) vocab_size120,832
Reasoning & tool use
- Reasoning:
<think>…</think>tags,reasoning_effort(no_think/low/high). - Tool calling: Hunyuan / Tencent XML-style tags (
<tool_calls>,<tool_call>,<arg_key>,<arg_value>). - Hy3's tokenizer uses a
:opensourcespecial-token dialect (e.g.<|hy_eos:opensource|>,<think:opensource>); the bundledchat_template.jinjais the upstream template. A compatible runtime must resolve these variant-suffixed tokens at the token→text boundary.
Runtime support
- Converted and structurally verified (index complete, 2,918 tensors / 23 shards).
- Runs on the vMLX Python engine with Hy3 support: JANG affine loader, GQA KV cache,
<think>reasoning stream, and Hunyuan tool-call parsing. - The MTP head is preserved and the runtime supports Hy3 speculative decoding. MTP throughput on a 2-bit-routed backbone is workload-dependent; this bundle is provided so a compatible engine can exercise the native head.
Requires a Hy3-aware MLX/JANG runtime. Stock mlx-lm / transformers will not load the JANG mixed-affine layout or the MTP head as-is.
Known limitations
- No published quality benchmark yet for this specific pack.
- MTP speculative-decode speedup is not asserted as a fixed figure — it depends on acceptance rate at the target sampling regime.
- Very loose sampling (
top_p1.0 +temperature0.9) exposes more of the routed-expert tail; a mildtop_p ≤ 0.9ormin_pfloor is recommended for long-form generation.
소개 (Korean)
이 번들은 Tencent의 Hy3 (295B 총 파라미터 / 21B 활성 MoE, 텍스트 전용)를 Apple Silicon MLX / JANG 런타임용으로 양자화한 모델입니다. JANG_2K 프로파일은 라우팅 전문가의 down_proj를 3-bit로, gate/up을 2-bit로 양자화하며(평균 2.33-bit), 네이티브 MTP(Multi-Token-Prediction) 헤드를 번들에 보존합니다. Hy3의 GQA 어텐션 상태와 MoE 라우팅, :opensource 특수 토큰 방식을 정확히 구현한 런타임에서만 사용해야 합니다.
- Downloads last month
- 429
Quantized
Model tree for JANGQ-AI/Hy3-JANG_2K-MTP
Base model
tencent/Hy3