jangq commited on
Commit
12a3013
·
verified ·
1 Parent(s): ab644bf

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +85 -0
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
+ ![JANG ladder](./jang_ladder_wide.png)
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