txgsync commited on
Commit
41878fd
·
verified ·
1 Parent(s): 0141c28

Document Maple sampler and context settings

Browse files
Files changed (1) hide show
  1. README.md +90 -0
README.md ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language: en
4
+ library_name: mlx
5
+ pipeline_tag: text-generation
6
+ base_model: deepgrove/maple-preview
7
+ base_model_relation: quantized
8
+ tags:
9
+ - mlx
10
+ - causal-lm
11
+ - mixture-of-experts
12
+ - reasoning
13
+ - custom-code
14
+ - quantized
15
+ - oq8e
16
+ ---
17
+
18
+ # Maple Preview — oQ8e MLX quantization
19
+
20
+ This repository contains an enhanced oQ8e MLX quantization of [`deepgrove/maple-preview`](https://huggingface.co/deepgrove/maple-preview), converted from the BF16 safetensors with oMLX.
21
+
22
+ ## This MLX quant upload
23
+
24
+ - Approximately 21.5 GB for the complete local model directory (21,497,386,683 bytes).
25
+ - Uses a 1,024-sample, 512-token enhanced iMatrix calibration.
26
+ - All quantized tensors are 8-bit.
27
+ - The 24 MoE router matrices and all normalization weights remain BF16.
28
+ - `lm_head` and `model.word_embeddings` are 8-bit.
29
+ - Requires custom-code loading (`trust_remote_code=True`). In oMLX, enable **Trust Remote Code** for this model.
30
+
31
+ This is an MLX conversion for local inference on Apple Silicon. Please follow the base model's MIT license and usage terms.
32
+
33
+ ## Recommended generation settings
34
+
35
+ Maple is a reasoning-heavy model and may spend a substantial part of its response budget thinking. For the OpenAI-compatible API or oMLX UI, start with:
36
+
37
+ ```text
38
+ temperature: 1.0
39
+ top_p: 0.95
40
+ top_k: 40
41
+ min_p: 0.05
42
+ repetition_penalty: 1.0
43
+ max_tokens: 8192 or higher
44
+ max context: 131072 tokens (native model limit)
45
+ ```
46
+
47
+ These sampler values match DeepGrove's Maple `llama.cpp` setup. The model declares a native 131,072-token context window and does not require RoPE/YARN scaling for that window. Actual usable context may be lower on systems constrained by KV-cache memory; do not assume that extending beyond 131,072 tokens is supported.
48
+
49
+ ---
50
+
51
+ ## Base model description
52
+
53
+ # Maple-Preview
54
+
55
+ **DeepGrove · 2026**
56
+
57
+ Today we introduce Maple-Preview, an open-source 20B-A1B ternary-weight reasoning LLM. Maple-Preview has SOTA reasoning for its weight class and is even competitive with larger models. It solves IMO-level problems and runs at 200+ tokens/sec on a Mac mini M4, 5–16× faster than efficient models like Gemma 4, Qwen3.5, and gpt-oss.
58
+
59
+ - 20B-A1B Model
60
+ - 218 tok/s M4 Mac mini
61
+ - 5.31 GB Checkpoint
62
+ - 131,072 Token context
63
+
64
+ ![Maple-Preview speed and performance frontier](assets/01-speed-frontier.png)
65
+
66
+ > [!NOTE]
67
+ > The included Transformers implementation depends on Triton and FlashAttention
68
+ > and is intended for a compatible CUDA environment. The reported Apple Silicon
69
+ > result uses a separate on-device runtime.
70
+
71
+ ## Architecture
72
+
73
+ Maple-Preview is a 20B-A1B reasoning model designed from the start for efficient on-device inference. It utilizes a 24-layer, 256-expert (8 active) configuration with 3:1 SWA-512:GA attention.
74
+
75
+ ## Evaluation
76
+
77
+ On benchmarks, Maple-Preview sets a new point on the Pareto frontier for both memory-to-performance and speed-to-performance, demonstrating its strong reasoning capabilities. However, we note that this preview is focused primarily on raw reasoning and, as such, may underperform on agentic benchmarks. We intend to continue improving general performance through extended training before Maple's full release.
78
+
79
+ ![Benchmark score comparison](assets/05-benchmark-scores-table.png)
80
+
81
+ Capability comparison using the dense output head across LCBv6, AIME 2026, HMMT 2026, and GPQA-D.
82
+
83
+ ## Limitations
84
+
85
+ This preview received minimal post-training for agentic tasks and only
86
+ small-scale general reinforcement learning.
87
+
88
+ ## License
89
+
90
+ Maple-Preview is released under the [MIT License](LICENSE).