tfjack commited on
Commit
41f48cd
·
verified ·
1 Parent(s): 8c170a8

Verified card: file sizes, bpw, vision dtype float32

Browse files
Files changed (1) hide show
  1. README.md +73 -6
README.md CHANGED
@@ -1,18 +1,85 @@
1
  ---
2
  library_name: mlx
 
 
 
 
3
  tags:
4
  - mlx
 
 
5
  - oq
 
 
 
6
  - quantized
 
 
 
 
 
 
7
  ---
8
 
9
  # Qwen3.8-27B-oQ4e-fp16-mtp
10
 
11
- This model was quantized using [oQ](https://github.com/jundot/omlx) (oMLX v0.6.4) mixed-precision quantization.
12
 
13
- ## Quantization details
14
 
15
- - **Model type**: qwen3_5
16
- - **Bits**: 4
17
- - **Group size**: 64
18
- - **Format**: MLX safetensors
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  library_name: mlx
3
+ license: apache-2.0
4
+ base_model: Qwen/Qwen3.8-27B
5
+ base_model_relation: quantized
6
+ pipeline_tag: image-text-to-text
7
  tags:
8
  - mlx
9
+ - image-text-to-text
10
+ - qwen3_5_text
11
  - oq
12
+ - oQe
13
+ - enhanced
14
+ - mixed-precision
15
  - quantized
16
+ - dense
17
+ - vision-language
18
+ - multimodal
19
+ - conversational
20
+ - apple-silicon
21
+ track_downloads: true
22
  ---
23
 
24
  # Qwen3.8-27B-oQ4e-fp16-mtp
25
 
26
+ This is an **oQe (Enhanced Quantization)** build of [`Qwen/Qwen3.8-27B`](https://huggingface.co/Qwen/Qwen3.8-27B), converted and optimized for Apple Silicon using **oMLX**.
27
 
28
+ It is a **multimodal (vision-language)** model — the vision tower is preserved at `float16`, unchanged, so image and video understanding remain fully intact alongside the quantized language model.
29
 
30
+ > [!NOTE]
31
+ > **Card generation:** This model card was drafted with the assistance of an AI coding interface. All technical content — quantization details, sampling parameters, output-length guidance, and the citation — is reproduced from the official [`Qwen/Qwen3.8-27B`](https://huggingface.co/Qwen/Qwen3.8-27B) model card and the quantization configuration.
32
+
33
+ ## Quantization Details
34
+
35
+ * **Base Model:** [`Qwen/Qwen3.8-27B`](https://huggingface.co/Qwen/Qwen3.8-27B)
36
+ * **Quant Scheme:** oQe enhanced — imatrix-enhanced dynamic mixed-precision with sensitivity-driven bit allocation
37
+ * **Effective Bits-per-Weight:** ~4.9 bpw (oQ4e)
38
+ * **Output File Size:** 16.66 GiB (17.89 GB)
39
+ * **Context Length:** 262,144 tokens natively; up to 1,000,000 with YaRN (RoPE) scaling
40
+ * **Non-Quantized Precision:** `float16` (chosen for ~20% faster prefill on M1/M2; M3 and newer default to bfloat16, which is natively supported at full speed)
41
+ * **Vision Encoder:** Preserved at `float32`
42
+ * **MTP Support:** Preserved (Multi-Token Prediction heads intact)
43
+ * **Format:** MLX `safetensors` (compatible with oMLX, `mlx-lm`, and LM Studio MLX runtime)
44
+
45
+ ## Compatibility & Runtimes
46
+
47
+ This model works out-of-the-box on Apple Silicon with:
48
+
49
+ 1. **oMLX Engine:** Native support for MTP draft heads and SSD-tiered KV prompt caching.
50
+ 2. **`mlx-lm` / `mlx-vlm`:** Standard Apple Silicon python runtime (use `mlx-vlm` for image input).
51
+ 3. **LM Studio:** Load via the native MLX engine (`mlx-engine`).
52
+
53
+ ## Recommended Usage (from the Base Model Card)
54
+
55
+ Because this is a quantization of [`Qwen/Qwen3.8-27B`](https://huggingface.co/Qwen/Qwen3.8-27B), the base model's own recommended settings apply directly to this quant. These settings come from the base model's official [Best Practices](https://huggingface.co/Qwen/Qwen3.8-27B#best-practices) and are recommended for optimal performance:
56
+
57
+ ### Recommended Sampling Parameters
58
+
59
+ | Mode | temperature | top_p | top_k | min_p | presence_penalty | repetition_penalty |
60
+ |------|-------------|-------|-------|-------|------------------|-------------------|
61
+ | Thinking | 1.0 | 0.95 | 20 | 0.0 | 0.0 | 1.0 |
62
+ | Instruct (non-thinking) | 0.7 | 0.80 | 20 | 0.0 | 1.5 | 1.0 |
63
+
64
+ Thinking mode is on by default; reasoning depth can be tuned with `reasoning_effort` (default `xhigh`; also `medium` and `low`). For supported frameworks, `presence_penalty` can be raised up to 2 to reduce repetition.
65
+
66
+ ### Output Length
67
+
68
+ >The base model recommends allocating sufficient output length for agentic tasks. For frameworks that support *separate* token limits for reasoning and final output, it suggests (within the 1M context length): **Reasoning Content — 262,144 tokens**, **Final Response — 131,072 tokens**.
69
+
70
+ > [!Note]
71
+ > Local runtimes (oMLX, `mlx-lm`/`mlx-vlm`, LM Studio) expose a single `max_tokens` limit that covers both reasoning and the final answer, so these budgets cannot be set separately. On Apple Silicon the native context window is 262,144 tokens; the 1M extension requires RoPE (YaRN) scaling, which is supported by serving frameworks like vLLM/SGLang/TokenSpeed but is not exposed in oMLX itself.
72
+
73
+ ## Citation
74
+
75
+ If you use this quantization, please cite the base model:
76
+
77
+ ```bibtex
78
+ @misc{qwen38,
79
+ title = {{Qwen3.8-Max}: A New Bar for Coding and Cowork},
80
+ url = {https://qwen.ai/blog?id=qwen3.8},
81
+ author = {{Qwen Team}},
82
+ month = {August},
83
+ year = {2026}
84
+ }
85
+ ```