Image-Text-to-Text
MLX
Safetensors
English
qwen4_exp
jang
jang-4m
quantized
apple-silicon
vision
video
reasoning
agent
tool-use
Mixture of Experts
ngram-embedding
imatrix
awq
conversational
Instructions to use JANGQ-AI/Qwen3.8-Flash-Next-JANG_4M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use JANGQ-AI/Qwen3.8-Flash-Next-JANG_4M with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("JANGQ-AI/Qwen3.8-Flash-Next-JANG_4M") config = load_config("JANGQ-AI/Qwen3.8-Flash-Next-JANG_4M") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use JANGQ-AI/Qwen3.8-Flash-Next-JANG_4M 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/Qwen3.8-Flash-Next-JANG_4M"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/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/Qwen3.8-Flash-Next-JANG_4M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use JANGQ-AI/Qwen3.8-Flash-Next-JANG_4M 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/Qwen3.8-Flash-Next-JANG_4M"
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/Qwen3.8-Flash-Next-JANG_4M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use JANGQ-AI/Qwen3.8-Flash-Next-JANG_4M 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/Qwen3.8-Flash-Next-JANG_4M"
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/Qwen3.8-Flash-Next-JANG_4M" \ --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"
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
library_name: mlx
|
| 5 |
+
license: other
|
| 6 |
+
license_name: qwen-community-1.0
|
| 7 |
+
license_link: LICENSE
|
| 8 |
+
pipeline_tag: image-text-to-text
|
| 9 |
+
base_model: Qwen/Qwen3.8-Flash-Next
|
| 10 |
+
tags:
|
| 11 |
+
- mlx
|
| 12 |
+
- jang
|
| 13 |
+
- jang-4m
|
| 14 |
+
- quantized
|
| 15 |
+
- apple-silicon
|
| 16 |
+
- vision
|
| 17 |
+
- video
|
| 18 |
+
- reasoning
|
| 19 |
+
- agent
|
| 20 |
+
- tool-use
|
| 21 |
+
- qwen4_exp
|
| 22 |
+
- moe
|
| 23 |
+
- ngram-embedding
|
| 24 |
+
- imatrix
|
| 25 |
+
- awq
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
# JANGQ-AI/Qwen3.8-Flash-Next-JANG_4M
|
| 29 |
+
|
| 30 |
+
**The recommended quality/size balance — median KL 0.0039 vs bf16 at 96.6 GiB (~73 GiB resident with the SSD-served table).**
|
| 31 |
+
|
| 32 |
+
A JANG bundle of [Qwen/Qwen3.8-Flash-Next](https://huggingface.co/Qwen/Qwen3.8-Flash-Next)
|
| 33 |
+
— the Qwen4-architecture preview: a 125B mixture-of-experts (512 experts,
|
| 34 |
+
6B active) with a 51B hashed n-gram embedding, Gated DeltaNet + Qwen Sparse
|
| 35 |
+
Attention hybrid layers, gated-residual streams, and vision+video towers —
|
| 36 |
+
quantized for Apple Silicon / MLX. Text, image and video weights are all
|
| 37 |
+
present in this exact bundle. Native multi-token-prediction head preserved (4-bit).
|
| 38 |
+
|
| 39 |
+
> Runtime support is landing — this repo is private while the serving path
|
| 40 |
+
> is finalized.
|
| 41 |
+
|
| 42 |
+
## Quality (measured, 5,931 held-out positions vs bf16)
|
| 43 |
+
|
| 44 |
+

|
| 45 |
+
|
| 46 |
+
| Tier | Size | RAM w/ SSD-table | median KL | top-1 | top-5 | top-10 |
|
| 47 |
+
|---|---|---|---|---|---|---|
|
| 48 |
+
| JANG_1L | 60.4 GiB | ~41 GiB | 0.0366 | 86.7% | 97.6% | 98.8% |
|
| 49 |
+
| JANG_2L | 65.9 GiB | ~48 GiB | 0.0249 | 87.8% | 98.2% | 99.1% |
|
| 50 |
+
| JANG_4S | 72.4 GiB | ~53 GiB | 0.0161 | 89.7% | 98.6% | 99.3% |
|
| 51 |
+
| **JANG_4M** | **96.6 GiB** | **~73 GiB** | **0.0039** | **94.4%** | **99.7%** | **99.9%** |
|
| 52 |
+
| JANG_6S | 106.9 GiB | ~83 GiB | 0.0035 | 94.8% | 99.7% | 99.9% |
|
| 53 |
+
|
| 54 |
+
Margin-conditioned flip curves are monotone-decreasing on every tier —
|
| 55 |
+
quantization noise lives in the reference model's own uncertainty band, with
|
| 56 |
+
zero disagreement at high-confidence positions on the upper tiers.
|
| 57 |
+
|
| 58 |
+
## The n-gram table & memory
|
| 59 |
+
|
| 60 |
+
The 51B n-gram embedding can be served directly from SSD by supporting
|
| 61 |
+
runtimes; the "RAM w/ SSD-table" column above is the resident footprint in
|
| 62 |
+
that mode.
|
| 63 |
+
|
| 64 |
+
## What's in the bundle
|
| 65 |
+
|
| 66 |
+
- **Vision + video:** the full vision tower and both image and video
|
| 67 |
+
preprocessors ship in this exact bundle — image-text-to-text and video
|
| 68 |
+
understanding work out of the box on supporting runtimes (image and video
|
| 69 |
+
token ids, mRoPE positions, and the merger are all present).
|
| 70 |
+
- **Multi-token prediction:** the model's native MTP head is preserved (trained multi-step). Enables self-speculative decode on supporting runtimes.
|
| 71 |
+
- **Thinking + agentic:** thinking mode on by default with three reasoning
|
| 72 |
+
efforts and preserved thinking history; Hermes-style tool calling; the
|
| 73 |
+
instruct preset gives direct non-thinking responses.
|
| 74 |
+
- **Long context:** 262,144 tokens native, extensible to 1M with YaRN.
|
| 75 |
+
|
| 76 |
+
## Serving contract
|
| 77 |
+
|
| 78 |
+
- Thinking mode ON by default: `temperature=1.0, top_p=0.95, top_k=20`
|
| 79 |
+
- Instruct mode: `temperature=0.7, top_p=0.80, top_k=20, presence_penalty=1.5`
|
| 80 |
+
- Reasoning efforts `low / medium / xhigh` (default **xhigh**) and
|
| 81 |
+
`preserve_thinking` (default **on**) via chat-template kwargs
|
| 82 |
+
- Context 262,144 native, extensible to 1M with YaRN
|
| 83 |
+
- EOS `[248046, 248044]` · tool calls: Hermes-style `<tool_call>`
|
| 84 |
+
|
| 85 |
+
Quantized and validated by **Jinho Jang** — eric@jangq.ai
|