File size: 4,838 Bytes
8c170a8
 
41f48cd
 
 
 
8c170a8
 
41f48cd
 
8c170a8
41f48cd
 
 
8c170a8
41f48cd
 
 
 
 
 
8c170a8
 
2169397
 
 
 
 
 
 
 
 
 
8c170a8
 
41f48cd
8c170a8
41f48cd
8c170a8
41f48cd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
library_name: mlx
license: apache-2.0
base_model: Qwen/Qwen3.8-27B
base_model_relation: quantized
pipeline_tag: image-text-to-text
tags:
- mlx
- image-text-to-text
- qwen3_5_text
- oq
- oQe
- enhanced
- mixed-precision
- quantized
- dense
- vision-language
- multimodal
- conversational
- apple-silicon
track_downloads: true
---

> [!WARNING]
> **⚠️ DEPRECATED β€” superseded by the official oMLX build.**
>
> These community oQ quants were converted *before* the oMLX 0.7.3 oQ improvement, which changed the bit split to lower KL by up to 73% at the same quant level (oMLX PR [#4776](https://github.com/jundot/omlx/pull/4776)). The **original oMLX maintainer (`Jundot`) now publishes better, officially-maintained quants of this same base model** β€” please use those instead.
>
> πŸ‘‰ **Official replacement:** https://huggingface.co/Jundot/Qwen3.8-27B-oQ4e-fp16-mtp  (also oQ2.5e / oQ3e / oQ3.5e / oQ6e / oQ8e, in fp16 and bf16)
>
> The weight files on this repository have been removed. This card is kept only as a pointer.


# Qwen3.8-27B-oQ4e-fp16-mtp

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**.

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.

> [!NOTE]
> **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.

## Quantization Details

* **Base Model:** [`Qwen/Qwen3.8-27B`](https://huggingface.co/Qwen/Qwen3.8-27B)
* **Quant Scheme:** oQe enhanced β€” imatrix-enhanced dynamic mixed-precision with sensitivity-driven bit allocation
* **Effective Bits-per-Weight:** ~4.9 bpw (oQ4e)
* **Output File Size:** 16.66 GiB (17.89 GB)
* **Context Length:** 262,144 tokens natively; up to 1,000,000 with YaRN (RoPE) scaling
* **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)
* **Vision Encoder:** Preserved at `float32`
* **MTP Support:** Preserved (Multi-Token Prediction heads intact)
* **Format:** MLX `safetensors` (compatible with oMLX, `mlx-lm`, and LM Studio MLX runtime)

## Compatibility & Runtimes

This model works out-of-the-box on Apple Silicon with:

1. **oMLX Engine:** Native support for MTP draft heads and SSD-tiered KV prompt caching.
2. **`mlx-lm` / `mlx-vlm`:** Standard Apple Silicon python runtime (use `mlx-vlm` for image input).
3. **LM Studio:** Load via the native MLX engine (`mlx-engine`).

## Recommended Usage (from the Base Model Card)

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:

### Recommended Sampling Parameters

| Mode | temperature | top_p | top_k | min_p | presence_penalty | repetition_penalty |
|------|-------------|-------|-------|-------|------------------|-------------------|
| Thinking | 1.0 | 0.95 | 20 | 0.0 | 0.0 | 1.0 |
| Instruct (non-thinking) | 0.7 | 0.80 | 20 | 0.0 | 1.5 | 1.0 |

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.

### Output Length

>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**.

> [!Note]
> 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.

## Citation

If you use this quantization, please cite the base model:

```bibtex
@misc{qwen38,
    title = {{Qwen3.8-Max}: A New Bar for Coding and Cowork},
    url = {https://qwen.ai/blog?id=qwen3.8},
    author = {{Qwen Team}},
    month = {August},
    year = {2026}
}
```